gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] branch master updated: Comments in sel


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] branch master updated: Comments in selenium script
Date: Tue, 14 Feb 2017 21:39:20 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository wallet-webex.

The following commit(s) were added to refs/heads/master by this push:
     new 1d2afc8  Comments in selenium script
1d2afc8 is described below

commit 1d2afc8be54627a8d31b73bf6470931b23ad03bb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 14 21:38:50 2017 +0100

    Comments in selenium script
---
 node_modules/typescript/.mailmap                   |    43 +-
 node_modules/typescript/.npmignore                 |     3 +
 node_modules/typescript/AUTHORS.md                 |    33 +
 node_modules/typescript/Gulpfile.ts                |  1046 -
 node_modules/typescript/lib/README.md              |    10 +-
 node_modules/typescript/lib/lib.d.ts               | 36426 ++++++++---------
 node_modules/typescript/lib/lib.dom.d.ts           | 27474 ++++++-------
 node_modules/typescript/lib/lib.dom.iterable.d.ts  |    66 +-
 .../typescript/lib/lib.es2015.collection.d.ts      |   176 +-
 node_modules/typescript/lib/lib.es2015.core.d.ts   |  1088 +-
 node_modules/typescript/lib/lib.es2015.d.ts        |    50 +-
 .../typescript/lib/lib.es2015.generator.d.ts       |    56 +-
 .../typescript/lib/lib.es2015.iterable.d.ts        |   928 +-
 .../typescript/lib/lib.es2015.promise.d.ts         |   546 +-
 node_modules/typescript/lib/lib.es2015.proxy.d.ts  |    76 +-
 .../typescript/lib/lib.es2015.reflect.d.ts         |    60 +-
 node_modules/typescript/lib/lib.es2015.symbol.d.ts |   110 +-
 .../lib/lib.es2015.symbol.wellknown.d.ts           |   692 +-
 .../typescript/lib/lib.es2016.array.include.d.ts   |   217 +-
 node_modules/typescript/lib/lib.es2016.d.ts        |    34 +-
 node_modules/typescript/lib/lib.es2017.d.ts        |    40 +-
 node_modules/typescript/lib/lib.es2017.object.d.ts |    79 +-
 .../typescript/lib/lib.es2017.sharedmemory.d.ts    |    92 +-
 node_modules/typescript/lib/lib.es5.d.ts           |  8390 ++--
 node_modules/typescript/lib/lib.es6.d.ts           | 39890 +++++++++----------
 node_modules/typescript/lib/lib.scripthost.d.ts    |   622 +-
 node_modules/typescript/lib/lib.webworker.d.ts     |  2546 +-
 node_modules/typescript/lib/protocol.d.ts          |    61 +
 node_modules/typescript/lib/tsc.js                 |  1762 +-
 node_modules/typescript/lib/tsserver.js            |  3284 +-
 node_modules/typescript/lib/tsserverlibrary.d.ts   |   281 +-
 node_modules/typescript/lib/tsserverlibrary.js     |  3203 +-
 node_modules/typescript/lib/typescript.d.ts        |   128 +-
 node_modules/typescript/lib/typescript.js          |  3713 +-
 .../typescript/lib/typescriptServices.d.ts         |   126 +-
 node_modules/typescript/lib/typescriptServices.js  |  3713 +-
 node_modules/typescript/lib/typingsInstaller.js    |   433 +-
 node_modules/typescript/package.json               |   222 +-
 selenium/chrome_responsive.py                      |     4 +-
 selenium/withdraw_buy.py                           |    30 +-
 40 files changed, 69589 insertions(+), 68164 deletions(-)

diff --git a/node_modules/typescript/.mailmap b/node_modules/typescript/.mailmap
index cc101c0..ede478c 100644
--- a/node_modules/typescript/.mailmap
+++ b/node_modules/typescript/.mailmap
@@ -172,4 +172,45 @@ zhongsp <address@hidden> # Patrick Zhong
 T18970237136 <address@hidden> # @T18970237136
 JBerger <address@hidden>
 bootstraponline  <address@hidden> # @bootstraponline
-yortus  <address@hidden> # @yortus
\ No newline at end of file
+yortus  <address@hidden> # @yortus
+András Parditka  <address@hidden>
+Anton Khlynovskiy  <address@hidden>
+Charly POLY  <address@hidden>
+Cotton Hou  <address@hidden>
+Ethan Resnick  <address@hidden>
+Marius Schulz  <address@hidden>
+Mattias Buelens  <address@hidden>
+Myles Megyesi  <address@hidden>
+Tim Lancina  <address@hidden>
+Aaron Holmes <address@hidden> Aaron Holmes <address@hidden>
+Akshar Patel <address@hidden>
+Ali Sabzevari <address@hidden>
+Aliaksandr Radzivanovich <address@hidden>
+BuildTools <address@hidden> # Franklin Tse
+ChogyDan <address@hidden> # Daniel Hollocher
+Daniel Rosenwasser <address@hidden> Daniel Rosenwasser <address@hidden>
+David Kmenta <address@hidden>
+E020873 <address@hidden> # Nicolas Henry
+Elisée Maurer <address@hidden>
+Emilio García-Pumarino <address@hidden> dashaus <address@hidden>
+Guilherme Oenning <address@hidden>
+Herrington Darkholme <address@hidden>
+Ivo Gabe de Wolff <address@hidden>
+Joey Wilson <address@hidden>
+Jonathon Smith <address@hidden>
+Juan Luis Boya García <address@hidden>
+Kagami Sascha Rosylight <address@hidden>
+Lucien Greathouse <address@hidden>
+Martin Vseticka <address@hidden>
+Mattias Buelens <address@hidden>
+Michael Bromley <address@hidden>
+Paul Jolly <address@hidden>
+Perry Jiang <address@hidden>
+Peter Burns <address@hidden>
+Robert Coie <address@hidden>
+Thomas Loubiou <address@hidden>
+Tim Perry <address@hidden>
+Vidar Tonaas Fauske <address@hidden>
+Viktor Zozulyak <address@hidden>
+rix <address@hidden> # Richard Sentino
+rohitverma007 <address@hidden> # Rohit Verma
\ No newline at end of file
diff --git a/node_modules/typescript/.npmignore 
b/node_modules/typescript/.npmignore
index 02d8fe4..d3c27af 100644
--- a/node_modules/typescript/.npmignore
+++ b/node_modules/typescript/.npmignore
@@ -1,8 +1,11 @@
 built
 doc
+Gulpfile.ts
 internal
 issue_template.md
+jenkins.sh
 lib/README.md
+netci.groovy
 pull_request_template.md
 scripts
 src
diff --git a/node_modules/typescript/AUTHORS.md 
b/node_modules/typescript/AUTHORS.md
index 50f1ea1..ae78321 100644
--- a/node_modules/typescript/AUTHORS.md
+++ b/node_modules/typescript/AUTHORS.md
@@ -1,17 +1,23 @@
 TypeScript is authored by:
+* Aaron Holmes
 * Abubaker Bashir
 * Adam Freidin
 * Adi Dahiya
 * Ahmad Farid
+* Akshar Patel
 * Alex Eagle
 * Alexander Kuvaev
 * Alexander Rusakov 
+* Ali Sabzevari
+* Aliaksandr Radzivanovich
 * Anatoly Ressin 
 * Anders Hejlsberg
 * Andrej Baran 
 * Andrew Z Allen
+* András Parditka 
 * Andy Hanson
 * Anil Anar
+* Anton Khlynovskiy 
 * Anton Tolmachev
 * Arnav Singh
 * Arthur Ozga
@@ -27,16 +33,20 @@ TypeScript is authored by:
 * Brett Mayen
 * Bryan Forbes
 * Caitlin Potter
+* Charly POLY 
 * Chris Bubernak
 * Christophe Vidal 
 * Chuck Jazdzewski
 * Colby Russell
 * Colin Snover
+* Cotton Hou 
 * Cyrus Najmabadi
 * Dafrok Zhang
 * Dan Corder
 * Dan Quirk
+* Daniel Hollocher
 * Daniel Rosenwasser
+* David Kmenta
 * David Li
 * David Souther
 * Denis Nedelyaev
@@ -45,8 +55,11 @@ TypeScript is authored by:
 * Dirk Holtwick
 * Dom Chen 
 * Doug Ilijev
+* Elisée Maurer
+* Emilio García-Pumarino
 * Eric Tsang
 * Erik Edrosa
+* Ethan Resnick 
 * Ethan Rubio
 * Evan Martin
 * Evan Sebastian
@@ -54,12 +67,14 @@ TypeScript is authored by:
 * Fabian Cook 
 * @falsandtru
 * Frank Wallis
+* Franklin Tse
 * František Žiacik
 * Gabe Moothart 
 * Gabriel Isenberg
 * Gilad Peleg
 * Godfrey Chan 
 * Graeme Wicksted
+* Guilherme Oenning
 * Guillaume Salles
 * Guy Bedford
 * Harald Niesche
@@ -78,12 +93,14 @@ TypeScript is authored by:
 * Jeffrey Morlan
 * Jesse Schalken
 * Jiri Tobisek
+* Joey Wilson
 * Johannes Rieken
 * John Vilk
 * Jonathan Bond-Caron
 * Jonathan Park
 * Jonathan Toland
 * Jonathan Turner
+* Jonathon Smith
 * Josh Abernathy 
 * Josh Kalderimis
 * Josh Soref
@@ -102,15 +119,21 @@ TypeScript is authored by:
 * Lucien Greathouse
 * Lukas Elmer 
 * Marin Marinov
+* Marius Schulz 
 * Martin Vseticka
 * Masahiro Wakame
 * Matt McCutchen
+* Mattias Buelens
+* Mattias Buelens 
 * Max Deepfield
 * Micah Zoltu
 * Michael 
+* Michael Bromley
 * Mohamed Hegazy
+* Myles Megyesi 
 * Nathan Shively-Sanders
 * Nathan Yee
+* Nicolas Henry
 * Nima Zahedi
 * Noah Chen 
 * Noj Vek
@@ -119,9 +142,12 @@ TypeScript is authored by:
 * Omer Sheikh 
 * Oskar Segersva¨rd
 * Patrick Zhong
+* Paul Jolly
 * Paul van Brenk
 * @pcbro
 * Pedro Maltez
+* Perry Jiang
+* Peter Burns
 * Philip Bulley
 * Piero Cangianiello
 * @piloopin
@@ -130,6 +156,9 @@ TypeScript is authored by:
 * Punya Biswal
 * Rado Kirov
 * Richard Knoll
+* Richard Sentino
+* Robert Coie
+* Rohit Verma
 * Ron Buckton
 * Rostislav Galimsky 
 * Rowan Wyborn
@@ -152,7 +181,9 @@ TypeScript is authored by:
 * @T18970237136
 * Tarik Ozket
 * Tetsuharu Ohzeki
+* Thomas Loubiou
 * Tien Hoanhtien
+* Tim Lancina 
 * Tim Perry
 * Tim Viiding-Spader
 * Tingan Ho
@@ -161,6 +192,8 @@ TypeScript is authored by:
 * Tomas Grubliauskas
 * Torben Fitschen 
 * TruongSinh Tran-Nguyen
+* Vidar Tonaas Fauske
+* Viktor Zozulyak
 * Vilic Vane
 * Vladimir Matveev
 * Wesley Wigham
diff --git a/node_modules/typescript/Gulpfile.ts 
b/node_modules/typescript/Gulpfile.ts
deleted file mode 100644
index 054e99c..0000000
--- a/node_modules/typescript/Gulpfile.ts
+++ /dev/null
@@ -1,1046 +0,0 @@
-/// <reference path="scripts/types/ambient.d.ts" />
-import * as cp from "child_process";
-import * as path from "path";
-import * as fs from "fs";
-import originalGulp = require("gulp");
-import helpMaker = require("gulp-help");
-import runSequence = require("run-sequence");
-import concat = require("gulp-concat");
-import clone = require("gulp-clone");
-import newer = require("gulp-newer");
-import tsc = require("gulp-typescript");
-declare module "gulp-typescript" {
-    interface Settings {
-        pretty?: boolean;
-        newLine?: string;
-        noImplicitThis?: boolean;
-        stripInternal?: boolean;
-        types?: string[];
-    }
-}
-import * as insert from "gulp-insert";
-import * as sourcemaps from "gulp-sourcemaps";
-import Q = require("q");
-declare global {
-    // `del` further depends on `Promise` (and is also not included), so we 
just, patch the global scope's Promise to Q's (which we already include in our 
deps because gulp depends on it)
-    type Promise<T> = Q.Promise<T>;
-}
-import del = require("del");
-import mkdirP = require("mkdirp");
-import minimist = require("minimist");
-import browserify = require("browserify");
-import through2 = require("through2");
-import merge2 = require("merge2");
-import intoStream = require("into-stream");
-import * as os from "os";
-import fold = require("travis-fold");
-const gulp = helpMaker(originalGulp);
-const mochaParallel = require("./scripts/mocha-parallel.js");
-const {runTestsInParallel} = mochaParallel;
-
-Error.stackTraceLimit = 1000;
-
-const cmdLineOptions = minimist(process.argv.slice(2), {
-    boolean: ["debug", "light", "colors", "lint", "soft"],
-    string: ["browser", "tests", "host", "reporter", "stackTraceLimit"],
-    alias: {
-        d: "debug",
-        t: "tests",
-        test: "tests",
-        r: "reporter",
-        color: "colors",
-        f: "files",
-        file: "files"
-    },
-    default: {
-        soft: false,
-        colors: process.env.colors || process.env.color || true,
-        debug: process.env.debug || process.env.d,
-        host: process.env.TYPESCRIPT_HOST || process.env.host || "node",
-        browser: process.env.browser || process.env.b || "IE",
-        tests: process.env.test || process.env.tests || process.env.t,
-        light: process.env.light || false,
-        reporter: process.env.reporter || process.env.r,
-        lint: process.env.lint || true,
-        files: process.env.f || process.env.file || process.env.files || "",
-    }
-});
-
-function exec(cmd: string, args: string[], complete: () => void = (() => { }), 
error: (e: any, status: number) => void = (() => { })) {
-    console.log(`${cmd} ${args.join(" ")}`);
-    // TODO (weswig): Update child_process types to add 
windowsVerbatimArguments to the type definition
-    const subshellFlag = isWin ? "/c" : "-c";
-    const command = isWin ? [possiblyQuote(cmd), ...args] : [`${cmd} 
${args.join(" ")}`];
-    const ex = cp.spawn(isWin ? "cmd" : "/bin/sh", [subshellFlag, ...command], 
{ stdio: "inherit", windowsVerbatimArguments: true } as any);
-    ex.on("exit", (code) => code === 0 ? complete() : error(/*e*/ undefined, 
code));
-    ex.on("error", error);
-}
-
-function possiblyQuote(cmd: string) {
-    return cmd.indexOf(" ") >= 0 ? `"${cmd}"` : cmd;
-}
-
-let useDebugMode = true;
-let host = cmdLineOptions["host"];
-
-// Constants
-const compilerDirectory = "src/compiler/";
-const harnessDirectory = "src/harness/";
-const libraryDirectory = "src/lib/";
-const scriptsDirectory = "scripts/";
-const docDirectory = "doc/";
-
-const builtDirectory = "built/";
-const builtLocalDirectory = "built/local/";
-const LKGDirectory = "lib/";
-
-const copyright = "CopyrightNotice.txt";
-
-const compilerFilename = "tsc.js";
-const LKGCompiler = path.join(LKGDirectory, compilerFilename);
-const builtLocalCompiler = path.join(builtLocalDirectory, compilerFilename);
-
-const nodeModulesPathPrefix = path.resolve("./node_modules/.bin/");
-const isWin = /^win/.test(process.platform);
-const mocha = path.join(nodeModulesPathPrefix, "mocha") + (isWin ? ".cmd" : 
"");
-
-const es2015LibrarySources = [
-    "es2015.core.d.ts",
-    "es2015.collection.d.ts",
-    "es2015.generator.d.ts",
-    "es2015.iterable.d.ts",
-    "es2015.promise.d.ts",
-    "es2015.proxy.d.ts",
-    "es2015.reflect.d.ts",
-    "es2015.symbol.d.ts",
-    "es2015.symbol.wellknown.d.ts"
-];
-
-const es2015LibrarySourceMap = es2015LibrarySources.map(function(source) {
-    return { target: "lib." + source, sources: ["header.d.ts", source] };
-});
-
-const es2016LibrarySource = ["es2016.array.include.d.ts"];
-
-const es2016LibrarySourceMap = es2016LibrarySource.map(function(source) {
-    return { target: "lib." + source, sources: ["header.d.ts", source] };
-});
-
-const es2017LibrarySource = [
-    "es2017.object.d.ts",
-    "es2017.sharedmemory.d.ts",
-    "es2017.string.d.ts",
-];
-
-const es2017LibrarySourceMap = es2017LibrarySource.map(function(source) {
-    return { target: "lib." + source, sources: ["header.d.ts", source] };
-});
-
-const hostsLibrarySources = ["dom.generated.d.ts", 
"webworker.importscripts.d.ts", "scripthost.d.ts"];
-
-const librarySourceMap = [
-    // Host library
-    { target: "lib.dom.d.ts", sources: ["header.d.ts", "dom.generated.d.ts"] },
-    { target: "lib.dom.iterable.d.ts", sources: ["header.d.ts", 
"dom.iterable.d.ts"] },
-    { target: "lib.webworker.d.ts", sources: ["header.d.ts", 
"webworker.generated.d.ts"] },
-    { target: "lib.scripthost.d.ts", sources: ["header.d.ts", 
"scripthost.d.ts"] },
-
-    // JavaScript library
-    { target: "lib.es5.d.ts", sources: ["header.d.ts", "es5.d.ts"] },
-    { target: "lib.es2015.d.ts", sources: ["header.d.ts", "es2015.d.ts"] },
-    { target: "lib.es2016.d.ts", sources: ["header.d.ts", "es2016.d.ts"] },
-    { target: "lib.es2017.d.ts", sources: ["header.d.ts", "es2017.d.ts"] },
-
-    // JavaScript + all host library
-    { target: "lib.d.ts", sources: ["header.d.ts", 
"es5.d.ts"].concat(hostsLibrarySources) },
-    { target: "lib.es6.d.ts", sources: ["header.d.ts", 
"es5.d.ts"].concat(es2015LibrarySources, hostsLibrarySources, 
"dom.iterable.d.ts") }
-].concat(es2015LibrarySourceMap, es2016LibrarySourceMap, 
es2017LibrarySourceMap);
-
-const libraryTargets = librarySourceMap.map(function(f) {
-    return path.join(builtLocalDirectory, f.target);
-});
-
-for (const i in libraryTargets) {
-    const entry = librarySourceMap[i];
-    const target = libraryTargets[i];
-    const sources = [copyright].concat(entry.sources.map(function(s) {
-        return path.join(libraryDirectory, s);
-    }));
-    gulp.task(target, false, [], function() {
-        return gulp.src(sources)
-            .pipe(newer(target))
-            .pipe(concat(target, { newLine: "\n\n" }))
-            .pipe(gulp.dest("."));
-    });
-}
-
-const configureNightlyJs = path.join(scriptsDirectory, "configureNightly.js");
-const configureNightlyTs = path.join(scriptsDirectory, "configureNightly.ts");
-const packageJson = "package.json";
-const versionFile = path.join(compilerDirectory, "core.ts");
-
-function needsUpdate(source: string | string[], dest: string | string[]): 
boolean {
-    if (typeof source === "string" && typeof dest === "string") {
-        if (fs.existsSync(dest)) {
-            const {mtime: outTime} = fs.statSync(dest);
-            const {mtime: inTime} = fs.statSync(source);
-            if (+inTime <= +outTime) {
-                return false;
-            }
-        }
-    }
-    else if (typeof source === "string" && typeof dest !== "string") {
-        const {mtime: inTime} = fs.statSync(source);
-        for (const filepath of dest) {
-            if (fs.existsSync(filepath)) {
-                const {mtime: outTime} = fs.statSync(filepath);
-                if (+inTime > +outTime) {
-                    return true;
-                }
-            }
-            else {
-                return true;
-            }
-        }
-        return false;
-    }
-    else if (typeof source !== "string" && typeof dest === "string") {
-        if (fs.existsSync(dest)) {
-            const {mtime: outTime} = fs.statSync(dest);
-            for (const filepath of source) {
-                if (fs.existsSync(filepath)) {
-                    const {mtime: inTime} = fs.statSync(filepath);
-                    if (+inTime > +outTime) {
-                        return true;
-                    }
-                }
-                else {
-                    return true;
-                }
-            }
-            return false;
-        }
-    }
-    else if (typeof source !== "string" && typeof dest !== "string") {
-        for (let i = 0; i < source.length; i++) {
-            if (!dest[i]) {
-                continue;
-            }
-            if (fs.existsSync(dest[i])) {
-                const {mtime: outTime} = fs.statSync(dest[i]);
-                const {mtime: inTime} = fs.statSync(source[i]);
-                if (+inTime > +outTime) {
-                    return true;
-                }
-            }
-            else {
-                return true;
-            }
-        }
-        return false;
-    }
-    return true;
-}
-
-function getCompilerSettings(base: tsc.Settings, useBuiltCompiler?: boolean): 
tsc.Settings {
-    const copy: tsc.Settings = {};
-    copy.noEmitOnError = true;
-    copy.noImplicitAny = true;
-    copy.noImplicitThis = true;
-    copy.pretty = true;
-    copy.types = [];
-    for (const key in base) {
-        copy[key] = base[key];
-    }
-    if (!useDebugMode) {
-        if (copy.removeComments === undefined) copy.removeComments = true;
-        copy.newLine = "lf";
-    }
-    else {
-        copy.preserveConstEnums = true;
-    }
-    if (useBuiltCompiler === true) {
-        copy.typescript = require("./built/local/typescript.js");
-    }
-    else if (useBuiltCompiler === false) {
-        copy.typescript = require("./lib/typescript.js");
-    }
-    return copy;
-}
-
-gulp.task(configureNightlyJs, false, [], () => {
-    const settings: tsc.Settings = {
-        declaration: false,
-        removeComments: true,
-        noResolve: false,
-        stripInternal: false,
-    };
-    return gulp.src(configureNightlyTs)
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write(path.dirname(configureNightlyJs)))
-        .pipe(gulp.dest(path.dirname(configureNightlyJs)));
-});
-
-
-// Nightly management tasks
-gulp.task("configure-nightly", "Runs scripts/configureNightly.ts to prepare a 
build for nightly publishing", [configureNightlyJs], (done) => {
-    exec(host, [configureNightlyJs, packageJson, versionFile], done, done);
-});
-gulp.task("publish-nightly", "Runs `npm publish --tag next` to create a new 
nightly build on npm", ["LKG"], () => {
-    return runSequence("clean", "useDebugMode", "runtests", (done) => {
-        exec("npm", ["publish", "--tag", "next"], done, done);
-    });
-});
-
-const importDefinitelyTypedTestsDirectory = path.join(scriptsDirectory, 
"importDefinitelyTypedTests");
-const importDefinitelyTypedTestsJs = 
path.join(importDefinitelyTypedTestsDirectory, "importDefinitelyTypedTests.js");
-const importDefinitelyTypedTestsTs = 
path.join(importDefinitelyTypedTestsDirectory, "importDefinitelyTypedTests.ts");
-
-gulp.task(importDefinitelyTypedTestsJs, false, [], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        declaration: false,
-        removeComments: true,
-        noResolve: false,
-        stripInternal: false,
-        outFile: importDefinitelyTypedTestsJs
-    }, /*useBuiltCompiler*/ false);
-    return gulp.src(importDefinitelyTypedTestsTs)
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-gulp.task("importDefinitelyTypedTests", "Runs 
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts to copy DT's 
tests to the TS-internal RWC tests", [importDefinitelyTypedTestsJs], (done) => {
-    exec(host, [importDefinitelyTypedTestsJs, "./", "../DefinitelyTyped"], 
done, done);
-});
-
-gulp.task("lib", "Builds the library targets", libraryTargets);
-
-
-// Generate diagnostics
-const processDiagnosticMessagesJs = path.join(scriptsDirectory, 
"processDiagnosticMessages.js");
-const processDiagnosticMessagesTs = path.join(scriptsDirectory, 
"processDiagnosticMessages.ts");
-const diagnosticMessagesJson = path.join(compilerDirectory, 
"diagnosticMessages.json");
-const diagnosticInfoMapTs = path.join(compilerDirectory, 
"diagnosticInformationMap.generated.ts");
-const generatedDiagnosticMessagesJSON = path.join(compilerDirectory, 
"diagnosticMessages.generated.json");
-const builtGeneratedDiagnosticMessagesJSON = path.join(builtLocalDirectory, 
"diagnosticMessages.generated.json");
-
-// processDiagnosticMessages script
-gulp.task(processDiagnosticMessagesJs, false, [], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        declaration: false,
-        removeComments: true,
-        noResolve: false,
-        stripInternal: false,
-        outFile: processDiagnosticMessagesJs
-    }, /*useBuiltCompiler*/ false);
-    return gulp.src(processDiagnosticMessagesTs)
-        .pipe(newer(processDiagnosticMessagesJs))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-// The generated diagnostics map; built for the compiler and for the 
"generate-diagnostics" task
-gulp.task(diagnosticInfoMapTs, [processDiagnosticMessagesJs], (done) => {
-    if (needsUpdate(diagnosticMessagesJson, [generatedDiagnosticMessagesJSON, 
diagnosticInfoMapTs])) {
-        exec(host, [processDiagnosticMessagesJs, diagnosticMessagesJson], 
done, done);
-    }
-    else {
-        done();
-    }
-});
-
-gulp.task(builtGeneratedDiagnosticMessagesJSON, [diagnosticInfoMapTs], (done) 
=> {
-    if (fs.existsSync(builtLocalDirectory) && 
needsUpdate(generatedDiagnosticMessagesJSON, 
builtGeneratedDiagnosticMessagesJSON)) {
-        fs.writeFileSync(builtGeneratedDiagnosticMessagesJSON, 
fs.readFileSync(generatedDiagnosticMessagesJSON));
-    }
-    done();
-});
-
-gulp.task("generate-diagnostics", "Generates a diagnostic file in TypeScript 
based on an input JSON file", [diagnosticInfoMapTs]);
-
-
-const servicesFile = path.join(builtLocalDirectory, "typescriptServices.js");
-const standaloneDefinitionsFile = path.join(builtLocalDirectory, 
"typescriptServices.d.ts");
-const nodePackageFile = path.join(builtLocalDirectory, "typescript.js");
-const nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
-const nodeStandaloneDefinitionsFile = path.join(builtLocalDirectory, 
"typescript_standalone.d.ts");
-
-let copyrightContent: string;
-function prependCopyright(outputCopyright: boolean = !useDebugMode) {
-    return insert.prepend(outputCopyright ? (copyrightContent || 
(copyrightContent = fs.readFileSync(copyright).toString())) : "");
-}
-
-gulp.task(builtLocalCompiler, false, [servicesFile], () => {
-    const localCompilerProject = 
tsc.createProject("src/compiler/tsconfig.json", getCompilerSettings({}, 
/*useBuiltCompiler*/true));
-    return localCompilerProject.src()
-        .pipe(newer(builtLocalCompiler))
-        .pipe(sourcemaps.init())
-        .pipe(localCompilerProject())
-        .pipe(prependCopyright())
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-gulp.task(servicesFile, false, ["lib", "generate-diagnostics"], () => {
-    const servicesProject = tsc.createProject("src/services/tsconfig.json", 
getCompilerSettings({ removeComments: false }, /*useBuiltCompiler*/false));
-    const {js, dts} = servicesProject.src()
-        .pipe(newer(servicesFile))
-        .pipe(sourcemaps.init())
-        .pipe(servicesProject());
-    const completedJs = js.pipe(prependCopyright())
-        .pipe(sourcemaps.write("."));
-    const completedDts = dts.pipe(prependCopyright(/*outputCopyright*/true))
-        .pipe(insert.transform((contents, file) => {
-            file.path = standaloneDefinitionsFile;
-            return contents.replace(/^(\s*)(export )?const enum (\S+) 
{(\s*)$/gm, "$1$2enum $3 {$4");
-        }));
-    return merge2([
-        completedJs,
-        completedJs.pipe(clone())
-            .pipe(insert.transform((content, file) => (file.path = 
nodePackageFile, content))),
-        completedDts,
-        completedDts.pipe(clone())
-            .pipe(insert.transform((content, file) => {
-                file.path = nodeDefinitionsFile;
-                return content + "\r\nexport = ts;";
-            }))
-            .pipe(gulp.dest(".")),
-        completedDts.pipe(clone())
-            .pipe(insert.transform((content, file) => {
-                file.path = nodeStandaloneDefinitionsFile;
-                return content.replace(/declare (namespace|module) ts/g, 
'declare module "typescript"');
-            }))
-    ]).pipe(gulp.dest("."));
-});
-
-// cancellationToken.js
-const cancellationTokenJs = path.join(builtLocalDirectory, 
"cancellationToken.js");
-gulp.task(cancellationTokenJs, false, [servicesFile], () => {
-    const cancellationTokenProject = 
tsc.createProject("src/server/cancellationToken/tsconfig.json", 
getCompilerSettings({}, /*useBuiltCompiler*/true));
-    return cancellationTokenProject.src()
-        .pipe(newer(cancellationTokenJs))
-        .pipe(sourcemaps.init())
-        .pipe(cancellationTokenProject())
-        .pipe(prependCopyright())
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest(builtLocalDirectory));
-});
-
-// typingsInstallerFile.js
-const typingsInstallerJs = path.join(builtLocalDirectory, 
"typingsInstaller.js");
-gulp.task(typingsInstallerJs, false, [servicesFile], () => {
-    const cancellationTokenProject = 
tsc.createProject("src/server/typingsInstaller/tsconfig.json", 
getCompilerSettings({}, /*useBuiltCompiler*/true));
-    return cancellationTokenProject.src()
-        .pipe(newer(typingsInstallerJs))
-        .pipe(sourcemaps.init())
-        .pipe(cancellationTokenProject())
-        .pipe(prependCopyright())
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-const serverFile = path.join(builtLocalDirectory, "tsserver.js");
-
-gulp.task(serverFile, false, [servicesFile, typingsInstallerJs, 
cancellationTokenJs], () => {
-    const serverProject = tsc.createProject("src/server/tsconfig.json", 
getCompilerSettings({}, /*useBuiltCompiler*/true));
-    return serverProject.src()
-        .pipe(newer(serverFile))
-        .pipe(sourcemaps.init())
-        .pipe(serverProject())
-        .pipe(prependCopyright())
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-const tsserverLibraryFile = path.join(builtLocalDirectory, 
"tsserverlibrary.js");
-const tsserverLibraryDefinitionFile = path.join(builtLocalDirectory, 
"tsserverlibrary.d.ts");
-
-gulp.task(tsserverLibraryFile, false, [servicesFile], (done) => {
-    const serverLibraryProject = 
tsc.createProject("src/server/tsconfig.library.json", getCompilerSettings({}, 
/*useBuiltCompiler*/ true));
-    const {js, dts}: { js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream } 
= serverLibraryProject.src()
-        .pipe(sourcemaps.init())
-        .pipe(newer(tsserverLibraryFile))
-        .pipe(serverLibraryProject());
-
-    return merge2([
-        js.pipe(prependCopyright())
-            .pipe(sourcemaps.write("."))
-            .pipe(gulp.dest(".")),
-        dts.pipe(prependCopyright())
-            .pipe(gulp.dest("."))
-    ]);
-});
-
-gulp.task("lssl", "Builds language service server library", 
[tsserverLibraryFile]);
-gulp.task("local", "Builds the full compiler and services", 
[builtLocalCompiler, servicesFile, serverFile, 
builtGeneratedDiagnosticMessagesJSON, tsserverLibraryFile]);
-gulp.task("tsc", "Builds only the compiler", [builtLocalCompiler]);
-
-// Generate Markdown spec
-const word2mdJs = path.join(scriptsDirectory, "word2md.js");
-const word2mdTs = path.join(scriptsDirectory, "word2md.ts");
-const specWord = path.join(docDirectory, "TypeScript Language 
Specification.docx");
-const specMd = path.join(docDirectory, "spec.md");
-
-gulp.task(word2mdJs, false, [], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        outFile: word2mdJs
-    }, /*useBuiltCompiler*/ false);
-    return gulp.src(word2mdTs)
-        .pipe(newer(word2mdJs))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-gulp.task(specMd, false, [word2mdJs], (done) => {
-    const specWordFullPath = path.resolve(specWord);
-    const specMDFullPath = path.resolve(specMd);
-    const cmd = "cscript //nologo " + word2mdJs + " \"" + specWordFullPath + 
"\" " + "\"" + specMDFullPath + "\"";
-    console.log(cmd);
-    cp.exec(cmd, function() {
-        done();
-    });
-});
-
-gulp.task("generate-spec", "Generates a Markdown version of the Language 
Specification", [specMd]);
-
-gulp.task("clean", "Cleans the compiler output, declare files, and tests", [], 
() => {
-    return del([builtDirectory]);
-});
-
-gulp.task("useDebugMode", false, [], (done) => { useDebugMode = true; done(); 
});
-gulp.task("dontUseDebugMode", false, [], (done) => { useDebugMode = false; 
done(); });
-
-gulp.task("VerifyLKG", false, [], () => {
-    const expectedFiles = [builtLocalCompiler, servicesFile, serverFile, 
nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, 
tsserverLibraryFile, tsserverLibraryDefinitionFile, typingsInstallerJs, 
cancellationTokenJs].concat(libraryTargets);
-    const missingFiles = expectedFiles.filter(function(f) {
-        return !fs.existsSync(f);
-    });
-    if (missingFiles.length > 0) {
-        throw new Error("Cannot replace the LKG unless all built targets are 
present in directory " + builtLocalDirectory +
-            ". The following files are missing:\n" + missingFiles.join("\n"));
-    }
-    // Copy all the targets into the LKG directory
-    return gulp.src(expectedFiles).pipe(gulp.dest(LKGDirectory));
-});
-
-gulp.task("LKGInternal", false, ["lib", "local"]);
-
-gulp.task("LKG", "Makes a new LKG out of the built js files", ["clean", 
"dontUseDebugMode"], () => {
-    return runSequence("LKGInternal", "VerifyLKG");
-});
-
-
-// Task to build the tests infrastructure using the built compiler
-const run = path.join(builtLocalDirectory, "run.js");
-gulp.task(run, false, [servicesFile], () => {
-    const testProject = tsc.createProject("src/harness/tsconfig.json", 
getCompilerSettings({}, /*useBuiltCompiler*/true));
-    return testProject.src()
-        .pipe(newer(run))
-        .pipe(sourcemaps.init())
-        .pipe(testProject())
-        .pipe(sourcemaps.write(".", { includeContent: false, sourceRoot: 
"../../" }))
-        .pipe(gulp.dest("."));
-});
-
-const internalTests = "internal/";
-
-const localBaseline = "tests/baselines/local/";
-const refBaseline = "tests/baselines/reference/";
-
-const localRwcBaseline = path.join(internalTests, "baselines/rwc/local");
-const refRwcBaseline = path.join(internalTests, "baselines/rwc/reference");
-
-const localTest262Baseline = path.join(internalTests, 
"baselines/test262/local");
-
-gulp.task("tests", "Builds the test infrastructure using the built compiler", 
[run]);
-gulp.task("tests-debug", "Builds the test sources and automation in debug 
mode", () => {
-    return runSequence("useDebugMode", "tests");
-});
-
-function deleteTemporaryProjectOutput() {
-    return del(path.join(localBaseline, "projectOutput/"));
-}
-
-let savedNodeEnv: string;
-function setNodeEnvToDevelopment() {
-    savedNodeEnv = process.env.NODE_ENV;
-    process.env.NODE_ENV = "development";
-}
-
-function restoreSavedNodeEnv() {
-    process.env.NODE_ENV = savedNodeEnv;
-}
-
-let testTimeout = 40000;
-function runConsoleTests(defaultReporter: string, runInParallel: boolean, 
done: (e?: any) => void) {
-    const lintFlag = cmdLineOptions["lint"];
-    cleanTestDirs((err) => {
-        if (err) { console.error(err); failWithStatus(err, 1); }
-        const debug = cmdLineOptions["debug"];
-        const tests = cmdLineOptions["tests"];
-        const light = cmdLineOptions["light"];
-        const stackTraceLimit = cmdLineOptions["stackTraceLimit"];
-        const testConfigFile = "test.config";
-        if (fs.existsSync(testConfigFile)) {
-            fs.unlinkSync(testConfigFile);
-        }
-        let workerCount, taskConfigsFolder;
-        if (runInParallel) {
-            // generate name to store task configuration files
-            const prefix = os.tmpdir() + "/ts-tests";
-            let i = 1;
-            do {
-                taskConfigsFolder = prefix + i;
-                i++;
-            } while (fs.existsSync(taskConfigsFolder));
-            fs.mkdirSync(taskConfigsFolder);
-
-            workerCount = process.env.workerCount || os.cpus().length;
-        }
-
-        if (tests || light || taskConfigsFolder) {
-            writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, 
stackTraceLimit);
-        }
-
-        if (tests && tests.toLocaleLowerCase() === "rwc") {
-            testTimeout = 400000;
-        }
-
-        const colors = cmdLineOptions["colors"];
-        const reporter = cmdLineOptions["reporter"] || defaultReporter;
-
-        // timeout normally isn"t necessary but Travis-CI has been timing out 
on compiler baselines occasionally
-        // default timeout is 2sec which really should be enough, but maybe we 
just need a small amount longer
-        if (!runInParallel) {
-            const args = [];
-            if (debug) {
-                args.push("--debug-brk");
-            }
-            args.push("-R", reporter);
-            if (tests) {
-                args.push("-g", `"${tests}"`);
-            }
-            if (colors) {
-                args.push("--colors");
-            }
-            else {
-                args.push("--no-colors");
-            }
-            args.push("-t", testTimeout);
-            args.push(run);
-            setNodeEnvToDevelopment();
-            exec(mocha, args, lintThenFinish, function(e, status) {
-                finish(e, status);
-            });
-
-        }
-        else {
-            // run task to load all tests and partition them between workers
-            const args = [];
-            args.push("-R", "min");
-            if (colors) {
-                args.push("--colors");
-            }
-            else {
-                args.push("--no-colors");
-            }
-            args.push(run);
-            setNodeEnvToDevelopment();
-            runTestsInParallel(taskConfigsFolder, run, { testTimeout: 
testTimeout, noColors: colors === " --no-colors " }, function(err) {
-                // last worker clean everything and runs linter in case if 
there were no errors
-                del(taskConfigsFolder).then(() => {
-                    if (!err) {
-                        lintThenFinish();
-                    }
-                    else {
-                        finish(err);
-                    }
-                });
-            });
-        }
-    });
-
-    function failWithStatus(err?: any, status?: number) {
-        if (err) {
-            console.log(err);
-        }
-        done(err || status);
-        process.exit(status);
-    }
-
-    function lintThenFinish() {
-        if (lintFlag) {
-            runSequence("lint", finish);
-        }
-        else {
-            finish();
-        }
-    }
-
-    function finish(error?: any, errorStatus?: number) {
-        restoreSavedNodeEnv();
-        deleteTemporaryProjectOutput().then(() => {
-            if (error !== undefined || errorStatus !== undefined) {
-                failWithStatus(error, errorStatus);
-            }
-            else {
-                done();
-            }
-        });
-    }
-}
-
-gulp.task("runtests-parallel", "Runs all the tests in parallel using the built 
run.js file. Optional arguments are: --t[ests]=category1|category2|... 
--d[ebug]=true.", ["build-rules", "tests"], (done) => {
-    runConsoleTests("min", /*runInParallel*/ true, done);
-});
-gulp.task("runtests",
-    "Runs the tests using the built run.js file. Optional arguments are: 
--t[ests]=regex --r[eporter]=[list|spec|json|<more>] --d[ebug]=true 
--color[s]=false --lint=true.",
-    ["build-rules", "tests"],
-    (done) => {
-        runConsoleTests("mocha-fivemat-progress-reporter", /*runInParallel*/ 
false, done);
-    });
-
-const nodeServerOutFile = "tests/webTestServer.js";
-const nodeServerInFile = "tests/webTestServer.ts";
-gulp.task(nodeServerOutFile, false, [servicesFile], () => {
-    const settings: tsc.Settings = getCompilerSettings({ module: "commonjs" }, 
/*useBuiltCompiler*/ true);
-    return gulp.src(nodeServerInFile)
-        .pipe(newer(nodeServerOutFile))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest(path.dirname(nodeServerOutFile)));
-});
-
-import convertMap = require("convert-source-map");
-import sorcery = require("sorcery");
-declare module "convert-source-map" {
-    export function fromSource(source: string, largeSource?: boolean): 
SourceMapConverter;
-}
-
-gulp.task("browserify", "Runs browserify on run.js to produce a file suitable 
for running tests in the browser", [servicesFile], (done) => {
-    const testProject = tsc.createProject("src/harness/tsconfig.json", 
getCompilerSettings({ outFile: "../../built/local/bundle.js" }, 
/*useBuiltCompiler*/ true));
-    return testProject.src()
-        .pipe(newer("built/local/bundle.js"))
-        .pipe(sourcemaps.init())
-        .pipe(testProject())
-        .pipe(through2.obj((file, enc, next) => {
-            const originalMap = file.sourceMap;
-            const prebundledContent = file.contents.toString();
-            // Make paths absolute to help sorcery deal with all the terrible 
paths being thrown around
-            originalMap.sources = originalMap.sources.map(s => 
path.resolve(s));
-            // intoStream (below) makes browserify think the input file is 
named this, so this is what it puts in the sourcemap
-            originalMap.file = "built/local/_stream_0.js";
-
-            browserify(intoStream(file.contents), { debug: true })
-                .bundle((err, res) => {
-                    // assumes file.contents is a Buffer
-                    const maps = 
JSON.parse(convertMap.fromSource(res.toString(), /*largeSource*/true).toJSON());
-                    delete maps.sourceRoot;
-                    maps.sources = maps.sources.map(s => path.resolve(s === 
"_stream_0.js" ? "built/local/_stream_0.js" : s));
-                    // Strip browserify's inline comments away (could probably 
just let sorcery do this, but then we couldn't fix the paths)
-                    file.contents = new 
Buffer(convertMap.removeComments(res.toString()));
-                    const chain = sorcery.loadSync("built/local/bundle.js", {
-                        content: {
-                            "built/local/_stream_0.js": prebundledContent,
-                            "built/local/bundle.js": file.contents.toString()
-                        },
-                        sourcemaps: {
-                            "built/local/_stream_0.js": originalMap,
-                            "built/local/bundle.js": maps,
-                            
"node_modules/source-map-support/source-map-support.js": undefined,
-                        }
-                    });
-                    const finalMap = chain.apply();
-                    file.sourceMap = finalMap;
-                    next(undefined, file);
-                });
-        }))
-        .pipe(sourcemaps.write(".", { includeContent: false }))
-        .pipe(gulp.dest("."));
-});
-
-
-function cleanTestDirs(done: (e?: any) => void) {
-    // Clean the local baselines & Rwc baselines directories
-    del([
-        localBaseline,
-        localRwcBaseline,
-    ]).then(() => {
-        mkdirP(localRwcBaseline, (err) => {
-            if (err) done(err);
-            mkdirP(localTest262Baseline, () => {
-                if (err) done(err);
-                mkdirP(localBaseline, (err) => done(err));
-            });
-        });
-    });
-}
-
-// used to pass data from jake command line directly to run.js
-function writeTestConfigFile(tests: string, light: boolean, 
taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) {
-    const testConfigContents = JSON.stringify({ test: tests ? [tests] : 
undefined, light, workerCount, stackTraceLimit, taskConfigsFolder });
-    console.log("Running tests with config: " + testConfigContents);
-    fs.writeFileSync("test.config", testConfigContents);
-}
-
-
-gulp.task("runtests-browser", "Runs the tests using the built run.js file like 
'gulp runtests'. Syntax is gulp runtests-browser. Additional optional 
parameters --tests=[regex], --browser=[chrome|IE]", ["browserify", 
nodeServerOutFile], (done) => {
-    cleanTestDirs((err) => {
-        if (err) { console.error(err); done(err); process.exit(1); }
-        host = "node";
-        const tests = cmdLineOptions["tests"];
-        const light = cmdLineOptions["light"];
-        const testConfigFile = "test.config";
-        if (fs.existsSync(testConfigFile)) {
-            fs.unlinkSync(testConfigFile);
-        }
-        if (tests || light) {
-            writeTestConfigFile(tests, light);
-        }
-
-        const args = [nodeServerOutFile];
-        if (cmdLineOptions["browser"]) {
-            args.push(cmdLineOptions["browser"]);
-        }
-        if (tests) {
-            args.push(JSON.stringify(tests));
-        }
-        exec(host, args, done, done);
-    });
-});
-
-gulp.task("generate-code-coverage", "Generates code coverage data via 
istanbul", ["tests"], (done) => {
-    exec("istanbul", ["cover", "node_modules/mocha/bin/_mocha", "--", "-R", 
"min", "-t", testTimeout.toString(), run], done, done);
-});
-
-
-function getDiffTool() {
-    const program = process.env["DIFF"];
-    if (!program) {
-        console.error("Add the 'DIFF' environment variable to the path of the 
program you want to use.");
-        process.exit(1);
-    }
-    return program;
-}
-
-gulp.task("diff", "Diffs the compiler baselines using the diff tool specified 
by the 'DIFF' environment variable", (done) => {
-    exec(getDiffTool(), [refBaseline, localBaseline], done, done);
-});
-gulp.task("diff-rwc", "Diffs the RWC baselines using the diff tool specified 
by the 'DIFF' environment variable", (done) => {
-    exec(getDiffTool(), [refRwcBaseline, localRwcBaseline], done, done);
-});
-
-gulp.task("baseline-accept", "Makes the most recent test results the new 
baseline, overwriting the old baseline", () => {
-    return baselineAccept("");
-});
-
-function baselineAccept(subfolder = "") {
-    return merge2(baselineCopy(subfolder), baselineDelete(subfolder));
-}
-
-function baselineCopy(subfolder = "") {
-    return gulp.src([`tests/baselines/local/${subfolder}/**`, 
`!tests/baselines/local/${subfolder}/**/*.delete`])
-        .pipe(gulp.dest(refBaseline));
-}
-
-function baselineDelete(subfolder = "") {
-    return gulp.src(["tests/baselines/local/**/*.delete"])
-        .pipe(insert.transform((content, fileObj) => {
-            const target = path.join(refBaseline, fileObj.relative.substr(0, 
fileObj.relative.length - ".delete".length));
-            del.sync(target);
-            del.sync(fileObj.path);
-            return "";
-        }));
-}
-
-gulp.task("baseline-accept-rwc", "Makes the most recent rwc test results the 
new baseline, overwriting the old baseline", () => {
-    return baselineAccept("rwc");
-});
-
-
-gulp.task("baseline-accept-test262", "Makes the most recent test262 test 
results the new baseline, overwriting the old baseline", () => {
-    return baselineAccept("test262");
-});
-
-
-// Webhost
-const webhostPath = "tests/webhost/webtsc.ts";
-const webhostJsPath = "tests/webhost/webtsc.js";
-gulp.task(webhostJsPath, false, [servicesFile], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        outFile: webhostJsPath
-    }, /*useBuiltCompiler*/ true);
-    return gulp.src(webhostPath)
-        .pipe(newer(webhostJsPath))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest(path.dirname(webhostJsPath)));
-});
-
-gulp.task("webhost", "Builds the tsc web host", [webhostJsPath], () => {
-    return gulp.src(path.join(builtLocalDirectory, 
"lib.d.ts")).pipe(gulp.dest("tests/webhost/"));
-});
-
-
-// Perf compiler
-const perftscPath = "tests/perftsc.ts";
-const perftscJsPath = "built/local/perftsc.js";
-gulp.task(perftscJsPath, false, [servicesFile], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        outFile: perftscJsPath
-    }, /*useBuiltCompiler*/ true);
-    return gulp.src(perftscPath)
-        .pipe(newer(perftscJsPath))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-gulp.task("perftsc", "Builds augmented version of the compiler for perf 
tests", [perftscJsPath]);
-
-
-// Instrumented compiler
-const loggedIOpath = path.join(harnessDirectory, "loggedIO.ts");
-const loggedIOJsPath = path.join(builtLocalDirectory, "loggedIO.js");
-gulp.task(loggedIOJsPath, false, [], (done) => {
-    const temp = path.join(builtLocalDirectory, "temp");
-    mkdirP(temp, (err) => {
-        if (err) { console.error(err); done(err); process.exit(1); };
-        exec(host, [LKGCompiler, "--types --outdir", temp, loggedIOpath], () 
=> {
-            fs.renameSync(path.join(temp, "/harness/loggedIO.js"), 
loggedIOJsPath);
-            del(temp).then(() => done(), done);
-        }, done);
-    });
-});
-
-const instrumenterPath = path.join(harnessDirectory, "instrumenter.ts");
-const instrumenterJsPath = path.join(builtLocalDirectory, "instrumenter.js");
-gulp.task(instrumenterJsPath, false, [servicesFile], () => {
-    const settings: tsc.Settings = getCompilerSettings({
-        outFile: instrumenterJsPath
-    }, /*useBuiltCompiler*/ true);
-    return gulp.src(instrumenterPath)
-        .pipe(newer(instrumenterJsPath))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest("."));
-});
-
-gulp.task("tsc-instrumented", "Builds an instrumented tsc.js", ["local", 
loggedIOJsPath, instrumenterJsPath, servicesFile], (done) => {
-    exec(host, [instrumenterJsPath, "record", "iocapture", 
builtLocalCompiler], done, done);
-});
-
-gulp.task("update-sublime", "Updates the sublime plugin's tsserver", ["local", 
serverFile], () => {
-    return gulp.src([serverFile, serverFile + 
".map"]).pipe(gulp.dest("../TypeScript-Sublime-Plugin/tsserver/"));
-});
-
-gulp.task("build-rules", "Compiles tslint rules to js", () => {
-    const settings: tsc.Settings = getCompilerSettings({ module: "commonjs" }, 
/*useBuiltCompiler*/ false);
-    const dest = path.join(builtLocalDirectory, "tslint");
-    return gulp.src("scripts/tslint/**/*.ts")
-        .pipe(newer({
-            dest,
-            ext: ".js"
-        }))
-        .pipe(sourcemaps.init())
-        .pipe(tsc(settings))
-        .pipe(sourcemaps.write("."))
-        .pipe(gulp.dest(dest));
-});
-
-const lintTargets = [
-    "Gulpfile.ts",
-    "src/compiler/**/*.ts",
-    "src/harness/**/*.ts",
-    "!src/harness/unittests/services/formatting/**/*.ts",
-    "src/server/**/*.ts",
-    "scripts/tslint/**/*.ts",
-    "src/services/**/*.ts",
-    "tests/*.ts", "tests/webhost/*.ts" // Note: does *not* descend recursively
-];
-
-function sendNextFile(files: {path: string}[], child: cp.ChildProcess, 
callback: (failures: number) => void, failures: number) {
-    const file = files.pop();
-    if (file) {
-        console.log(`Linting '${file.path}'.`);
-        child.send({ kind: "file", name: file.path });
-    }
-    else {
-        child.send({ kind: "close" });
-        callback(failures);
-    }
-}
-
-function spawnLintWorker(files: {path: string}[], callback: (failures: number) 
=> void) {
-    const child = cp.fork("./scripts/parallel-lint");
-    let failures = 0;
-    child.on("message", function(data) {
-        switch (data.kind) {
-            case "result":
-                if (data.failures > 0) {
-                    failures += data.failures;
-                    console.log(data.output);
-                }
-                sendNextFile(files, child, callback, failures);
-                break;
-            case "error":
-                console.error(data.error);
-                failures++;
-                sendNextFile(files, child, callback, failures);
-                break;
-        }
-    });
-    sendNextFile(files, child, callback, failures);
-}
-
-gulp.task("lint", "Runs tslint on the compiler sources. Optional arguments 
are: --f[iles]=regex", ["build-rules"], () => {
-    const fileMatcher = RegExp(cmdLineOptions["files"]);
-    if (fold.isTravis()) console.log(fold.start("lint"));
-
-    let files: {stat: fs.Stats, path: string}[] = [];
-    return gulp.src(lintTargets, { read: false })
-        .pipe(through2.obj((chunk, enc, cb) => {
-            files.push(chunk);
-            cb();
-        }, (cb) => {
-            files = files.filter(file =>  
fileMatcher.test(file.path)).sort((filea, fileb) => filea.stat.size - 
fileb.stat.size);
-            const workerCount = (process.env.workerCount && 
+process.env.workerCount) || os.cpus().length;
-            for (let i = 0; i < workerCount; i++) {
-                spawnLintWorker(files, finished);
-            }
-
-            let completed = 0;
-            let failures = 0;
-            function finished(fails) {
-                completed++;
-                failures += fails;
-                if (completed === workerCount) {
-                    if (fold.isTravis()) console.log(fold.end("lint"));
-                    if (failures > 0) {
-                        throw new Error(`Linter errors: ${failures}`);
-                    }
-                    else {
-                        cb();
-                    }
-                }
-            }
-        }));
-});
-
-
-gulp.task("default", "Runs 'local'", ["local"]);
-
-gulp.task("watch", "Watches the src/ directory for changes and executes 
runtests-parallel.", [], () => {
-    gulp.watch("src/**/*.*", ["runtests-parallel"]);
-});
diff --git a/node_modules/typescript/lib/README.md 
b/node_modules/typescript/lib/README.md
index 852d449..0a85a9e 100644
--- a/node_modules/typescript/lib/README.md
+++ b/node_modules/typescript/lib/README.md
@@ -1,5 +1,5 @@
-# Read This!
-
-**These files are not meant to be edited by hand.**
-If you need to make modifications, the respective files should be changed 
within the repository's top-level `src` directory.
-Running `jake LKG` will then appropriately update the files in this directory.
+# Read This!
+
+**These files are not meant to be edited by hand.**
+If you need to make modifications, the respective files should be changed 
within the repository's top-level `src` directory.
+Running `jake LKG` will then appropriately update the files in this directory.
diff --git a/node_modules/typescript/lib/lib.d.ts 
b/node_modules/typescript/lib/lib.d.ts
index ed066de..5b1f3d7 100644
--- a/node_modules/typescript/lib/lib.d.ts
+++ b/node_modules/typescript/lib/lib.d.ts
@@ -1,18215 +1,18215 @@
-/*! 
*****************************************************************************
-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"/>
-
-
-/////////////////////////////
-/// ECMAScript APIs
-/////////////////////////////
-
-declare const NaN: number;
-declare const 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 s A string to convert into a number.
-  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
-  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
-  * All other strings are considered decimal.
-  */
-declare function parseInt(s: 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 encoded 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 encoded URI component.
-  */
-declare function encodeURIComponent(uriComponent: string): string;
-
-interface PropertyDescriptor {
-    configurable?: boolean;
-    enumerable?: boolean;
-    value?: any;
-    writable?: boolean;
-    get? (): any;
-    set? (v: any): void;
-}
-
-interface PropertyDescriptorMap {
-    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
-
-    /**
-      * 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 null prototype.
-      * @param o Object to use as a prototype. May be null
-      */
-    create(o: 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
-      */
-    create<T>(o: T): T;
-
-    /**
-      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
-
-    /**
-      * 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(o: any, properties: PropertyDescriptorMap): any;
-
-    /**
-      * 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 o Object on which to lock the attributes.
-      */
-    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
-}
-
-/**
-  * Provides functionality common to all JavaScript objects.
-  */
-declare const 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 const Function: FunctionConstructor;
-
-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): RegExpMatchArray | null;
-
-    /**
-      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
-      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
-      */
-    match(regexp: RegExp): RegExpMatchArray | null;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: string, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: RegExp, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: 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): number;
-
-    /**
-      * Finds the first substring match in a regular expression search.
-      * @param regexp The regular expression pattern and applicable flags.
-      */
-    search(regexp: 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, limit?: number): string[];
-
-    /**
-      * Split a string into substrings using the specified separator and 
return them as an array.
-      * @param separator A Regular Express 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: 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(): 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(): 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.
-      * @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 const String: StringConstructor;
-
-interface Boolean {
-    /** Returns the primitive value of the specified object. */
-    valueOf(): boolean;
-}
-
-interface BooleanConstructor {
-    new (value?: any): Boolean;
-    (value?: any): boolean;
-    readonly prototype: Boolean;
-}
-
-declare const 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 const Number: NumberConstructor;
-
-interface TemplateStringsArray extends ReadonlyArray<string> {
-    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
-      * @param x The value to be rounded to the nearest number.
-      */
-    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 const 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;
-    /** Gets the time value in milliseconds. */
-    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
-    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): Date;
-    new (value: string): Date;
-    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
-      * @param date The date as an number between 1 and 31.
-      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
-      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
-      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
-      * @param ms An number from 0 to 999 that specifies the milliseconds.
-      */
-    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
-    now(): number;
-}
-
-declare const Date: DateConstructor;
-
-interface RegExpMatchArray extends Array<string> {
-    index?: number;
-    input?: string;
-}
-
-interface RegExpExecArray extends Array<string> {
-    index: number;
-    input: 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
-    compile(): this;
-}
-
-interface RegExpConstructor {
-    new (pattern: RegExp): RegExp;
-    new (pattern: string, flags?: string): RegExp;
-    (pattern: RegExp): RegExp;
-    (pattern: string, flags?: string): RegExp;
-    readonly prototype: RegExp;
-
-    // Non-standard extensions
-    $1: string;
-    $2: string;
-    $3: string;
-    $4: string;
-    $5: string;
-    $6: string;
-    $7: string;
-    $8: string;
-    $9: string;
-    lastMatch: string;
-}
-
-declare const RegExp: RegExpConstructor;
-
-interface Error {
-    name: string;
-    message: string;
-    stack?: string;
-}
-
-interface ErrorConstructor {
-    new (message?: string): Error;
-    (message?: string): Error;
-    readonly prototype: Error;
-}
-
-declare const Error: ErrorConstructor;
-
-interface EvalError extends Error {
-}
-
-interface EvalErrorConstructor {
-    new (message?: string): EvalError;
-    (message?: string): EvalError;
-    readonly prototype: EvalError;
-}
-
-declare const EvalError: EvalErrorConstructor;
-
-interface RangeError extends Error {
-}
-
-interface RangeErrorConstructor {
-    new (message?: string): RangeError;
-    (message?: string): RangeError;
-    readonly prototype: RangeError;
-}
-
-declare const RangeError: RangeErrorConstructor;
-
-interface ReferenceError extends Error {
-}
-
-interface ReferenceErrorConstructor {
-    new (message?: string): ReferenceError;
-    (message?: string): ReferenceError;
-    readonly prototype: ReferenceError;
-}
-
-declare const ReferenceError: ReferenceErrorConstructor;
-
-interface SyntaxError extends Error {
-}
-
-interface SyntaxErrorConstructor {
-    new (message?: string): SyntaxError;
-    (message?: string): SyntaxError;
-    readonly prototype: SyntaxError;
-}
-
-declare const SyntaxError: SyntaxErrorConstructor;
-
-interface TypeError extends Error {
-}
-
-interface TypeErrorConstructor {
-    new (message?: string): TypeError;
-    (message?: string): TypeError;
-    readonly prototype: TypeError;
-}
-
-declare const TypeError: TypeErrorConstructor;
-
-interface URIError extends Error {
-}
-
-interface URIErrorConstructor {
-    new (message?: string): URIError;
-    (message?: string): URIError;
-    readonly prototype: URIError;
-}
-
-declare const 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.
-      */
-    parse(text: string, reviver?: (key: any, 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.
-      */
-    stringify(value: any, replacer?: (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 a 
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.
-      */
-    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 const 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;
-    toLocaleString(): string;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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.
-      */
-    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
-    /**
-     * Returns the elements of an array that meet the condition specified in a 
callback function.
-     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-     */
-    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
-    /**
-      * Returns the elements of an array that meet the condition specified in 
a callback function.
-      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
-
-    readonly [n: number]: T;
-}
-
-interface Array<T> {
-    /**
-      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
-      */
-    length: number;
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-    toLocaleString(): string;
-    /**
-      * Appends new elements to an array, and returns the new length of the 
array.
-      * @param items New elements of the Array.
-      */
-    push(...items: T[]): number;
-    /**
-      * Removes the last element from an array and returns it.
-      */
-    pop(): T | undefined;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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;
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): T[];
-    /**
-      * Removes the first element from an array and returns it.
-      */
-    shift(): T | undefined;
-    /**
-      * 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): T[];
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
-      */
-    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.
-      */
-    splice(start: 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.
-      * @param items Elements to insert into the array in place of the deleted 
elements.
-      */
-    splice(start: number, deleteCount: number, ...items: T[]): T[];
-    /**
-      * Inserts new elements at the start of an 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.
-      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
-    /**
-      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
-    /**
-      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
-    /**
-      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
-    readonly prototype: Array<any>;
-}
-
-declare const Array: ArrayConstructor;
-
-interface TypedPropertyDescriptor<T> {
-    enumerable?: boolean;
-    configurable?: boolean;
-    writable?: boolean;
-    value?: T;
-    get?: () => T;
-    set?: (value: T) => void;
-}
-
-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, parameterIndex: number) => 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(
-        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
-        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
-
-    /**
-     * 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<TResult>(
-        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
-        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
-
-    /**
-     * 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, TResult2>(
-        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
-        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
-}
-
-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 readonly
- */
-type Readonly<T> = {
-    readonly [P in keyof T]: T[P];
-};
-
-/**
- * From T pick a set of properties 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 string, T> = {
-    [P in K]: T;
-}
-
-/**
-  * 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;
-}
-
-interface ArrayBufferConstructor {
-    readonly prototype: ArrayBuffer;
-    new (byteLength: number): ArrayBuffer;
-    isView(arg: any): arg is ArrayBufferView;
-}
-declare const ArrayBuffer: ArrayBufferConstructor;
-
-interface ArrayBufferView {
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    buffer: ArrayBuffer;
-
-    /**
-      * The length in bytes of the array.
-      */
-    byteLength: number;
-
-    /**
-      * The offset in bytes of the array.
-      */
-    byteOffset: number;
-}
-
-interface DataView {
-    readonly buffer: ArrayBuffer;
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-endian value should be written.
-      */
-    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
-}
-
-interface DataViewConstructor {
-    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-interface Int8ArrayConstructor {
-    readonly prototype: Int8Array;
-    new (length: number): Int8Array;
-    new (array: ArrayLike<number>): Int8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ArrayConstructor {
-    readonly prototype: Uint8Array;
-    new (length: number): Uint8Array;
-    new (array: ArrayLike<number>): Uint8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8ClampedArray;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ClampedArrayConstructor {
-    readonly prototype: Uint8ClampedArray;
-    new (length: number): Uint8ClampedArray;
-    new (array: ArrayLike<number>): Uint8ClampedArray;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int16ArrayConstructor {
-    readonly prototype: Int16Array;
-    new (length: number): Int16Array;
-    new (array: ArrayLike<number>): Int16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint16ArrayConstructor {
-    readonly prototype: Uint16Array;
-    new (length: number): Uint16Array;
-    new (array: ArrayLike<number>): Uint16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int32ArrayConstructor {
-    readonly prototype: Int32Array;
-    new (length: number): Int32Array;
-    new (array: ArrayLike<number>): Int32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint32ArrayConstructor {
-    readonly prototype: Uint32Array;
-    new (length: number): Uint32Array;
-    new (array: ArrayLike<number>): Uint32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float32ArrayConstructor {
-    readonly prototype: Float32Array;
-    new (length: number): Float32Array;
-    new (array: ArrayLike<number>): Float32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float64Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float64Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float64ArrayConstructor {
-    readonly prototype: Float64Array;
-    new (length: number): Float64Array;
-    new (array: ArrayLike<number>): Float64Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
-}
-declare const Float64Array: Float64ArrayConstructor;
-
-/////////////////////////////
-/// ECMAScript Internationalization API
-/////////////////////////////
-
-declare module Intl {
-    interface CollatorOptions {
-        usage?: string;
-        localeMatcher?: string;
-        numeric?: boolean;
-        caseFirst?: string;
-        sensitivity?: string;
-        ignorePunctuation?: boolean;
-    }
-
-    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;
-    }
-    var Collator: {
-        new (locales?: string | string[], options?: CollatorOptions): Collator;
-        (locales?: string | string[], options?: CollatorOptions): Collator;
-        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
-    }
-
-    interface NumberFormatOptions {
-        localeMatcher?: string;
-        style?: string;
-        currency?: string;
-        currencyDisplay?: string;
-        useGrouping?: boolean;
-        minimumIntegerDigits?: number;
-        minimumFractionDigits?: number;
-        maximumFractionDigits?: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-    }
-
-    interface ResolvedNumberFormatOptions {
-        locale: string;
-        numberingSystem: string;
-        style: string;
-        currency?: string;
-        currencyDisplay?: string;
-        minimumIntegerDigits: number;
-        minimumFractionDigits: number;
-        maximumFractionDigits: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-        useGrouping: boolean;
-    }
-
-    interface NumberFormat {
-        format(value: number): string;
-        resolvedOptions(): ResolvedNumberFormatOptions;
-    }
-    var NumberFormat: {
-        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
-    }
-
-    interface DateTimeFormatOptions {
-        localeMatcher?: string;
-        weekday?: string;
-        era?: string;
-        year?: string;
-        month?: string;
-        day?: string;
-        hour?: string;
-        minute?: string;
-        second?: string;
-        timeZoneName?: string;
-        formatMatcher?: string;
-        hour12?: boolean;
-        timeZone?: string;
-    }
-
-    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;
-    }
-    var DateTimeFormat: {
-        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
-    }
-}
-
-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;
-}
-
-
-
-/////////////////////////////
-/// IE DOM APIs
-/////////////////////////////
-
-interface Algorithm {
-    name: string;
-}
-
-interface AriaRequestEventInit extends EventInit {
-    attributeName?: string;
-    attributeValue?: string;
-}
-
-interface CommandEventInit extends EventInit {
-    commandName?: string;
-    detail?: string;
-}
-
-interface CompositionEventInit extends UIEventInit {
-    data?: string;
-}
-
-interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface ConstrainBooleanParameters {
-    exact?: boolean;
-    ideal?: boolean;
-}
-
-interface ConstrainDOMStringParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface ConstrainDoubleRange extends DoubleRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainLongRange extends LongRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainVideoFacingModeParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface CustomEventInit extends EventInit {
-    detail?: any;
-}
-
-interface DeviceAccelerationDict {
-    x?: number;
-    y?: number;
-    z?: number;
-}
-
-interface DeviceLightEventInit extends EventInit {
-    value?: number;
-}
-
-interface DeviceRotationRateDict {
-    alpha?: number;
-    beta?: number;
-    gamma?: number;
-}
-
-interface DoubleRange {
-    max?: number;
-    min?: number;
-}
-
-interface EventInit {
-    scoped?: boolean;
-    bubbles?: boolean;
-    cancelable?: boolean;
-}
-
-interface EventModifierInit extends UIEventInit {
-    ctrlKey?: boolean;
-    shiftKey?: boolean;
-    altKey?: boolean;
-    metaKey?: boolean;
-    modifierAltGraph?: boolean;
-    modifierCapsLock?: boolean;
-    modifierFn?: boolean;
-    modifierFnLock?: boolean;
-    modifierHyper?: boolean;
-    modifierNumLock?: boolean;
-    modifierOS?: boolean;
-    modifierScrollLock?: boolean;
-    modifierSuper?: boolean;
-    modifierSymbol?: boolean;
-    modifierSymbolLock?: boolean;
-}
-
-interface ExceptionInformation {
-    domain?: string;
-}
-
-interface FocusEventInit extends UIEventInit {
-    relatedTarget?: EventTarget;
-}
-
-interface HashChangeEventInit extends EventInit {
-    newURL?: string;
-    oldURL?: string;
-}
-
-interface IDBIndexParameters {
-    multiEntry?: boolean;
-    unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
-    autoIncrement?: boolean;
-    keyPath?: IDBKeyPath;
-}
-
-interface KeyAlgorithm {
-    name?: string;
-}
-
-interface KeyboardEventInit extends EventModifierInit {
-    code?: string;
-    key?: string;
-    location?: number;
-    repeat?: boolean;
-}
-
-interface LongRange {
-    max?: number;
-    min?: number;
-}
-
-interface MSAccountInfo {
-    rpDisplayName?: string;
-    userDisplayName?: string;
-    accountName?: string;
-    userId?: string;
-    accountImageUri?: string;
-}
-
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
-    networkSendQualityEventRatio?: number;
-    networkDelayEventRatio?: number;
-    cpuInsufficientEventRatio?: number;
-    deviceHalfDuplexAECEventRatio?: number;
-    deviceRenderNotFunctioningEventRatio?: number;
-    deviceCaptureNotFunctioningEventRatio?: number;
-    deviceGlitchesEventRatio?: number;
-    deviceLowSNREventRatio?: number;
-    deviceLowSpeechLevelEventRatio?: number;
-    deviceClippingEventRatio?: number;
-    deviceEchoEventRatio?: number;
-    deviceNearEndToEchoRatioEventRatio?: number;
-    deviceRenderZeroVolumeEventRatio?: number;
-    deviceRenderMuteEventRatio?: number;
-    deviceMultipleEndpointsEventCount?: number;
-    deviceHowlingEventCount?: number;
-}
-
-interface MSAudioRecvPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioRecvSignal;
-    packetReorderRatio?: number;
-    packetReorderDepthAvg?: number;
-    packetReorderDepthMax?: number;
-    burstLossLength1?: number;
-    burstLossLength2?: number;
-    burstLossLength3?: number;
-    burstLossLength4?: number;
-    burstLossLength5?: number;
-    burstLossLength6?: number;
-    burstLossLength7?: number;
-    burstLossLength8OrHigher?: number;
-    fecRecvDistance1?: number;
-    fecRecvDistance2?: number;
-    fecRecvDistance3?: number;
-    ratioConcealedSamplesAvg?: number;
-    ratioStretchedSamplesAvg?: number;
-    ratioCompressedSamplesAvg?: number;
-}
-
-interface MSAudioRecvSignal {
-    initialSignalLevelRMS?: number;
-    recvSignalLevelCh1?: number;
-    recvNoiseLevelCh1?: number;
-    renderSignalLevel?: number;
-    renderNoiseLevel?: number;
-    renderLoopbackSignalLevel?: number;
-}
-
-interface MSAudioSendPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioSendSignal;
-    audioFECUsed?: boolean;
-    sendMutePercent?: number;
-}
-
-interface MSAudioSendSignal {
-    noiseLevel?: number;
-    sendSignalLevelCh1?: number;
-    sendNoiseLevelCh1?: number;
-}
-
-interface MSConnectivity {
-    iceType?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    relayAddress?: MSRelayAddress;
-}
-
-interface MSCredentialFilter {
-    accept?: MSCredentialSpec[];
-}
-
-interface MSCredentialParameters {
-    type?: string;
-}
-
-interface MSCredentialSpec {
-    type?: string;
-    id?: string;
-}
-
-interface MSDelay {
-    roundTrip?: number;
-    roundTripMax?: number;
-}
-
-interface MSDescription extends RTCStats {
-    connectivity?: MSConnectivity;
-    transport?: string;
-    networkconnectivity?: MSNetworkConnectivityInfo;
-    localAddr?: MSIPAddressInfo;
-    remoteAddr?: MSIPAddressInfo;
-    deviceDevName?: string;
-    reflexiveLocalIPAddr?: MSIPAddressInfo;
-}
-
-interface MSFIDOCredentialParameters extends MSCredentialParameters {
-    algorithm?: string | Algorithm;
-    authenticators?: AAGUID[];
-}
-
-interface MSIPAddressInfo {
-    ipAddr?: string;
-    port?: number;
-    manufacturerMacAddrMask?: string;
-}
-
-interface MSIceWarningFlags {
-    turnTcpTimedOut?: boolean;
-    turnUdpAllocateFailed?: boolean;
-    turnUdpSendFailed?: boolean;
-    turnTcpAllocateFailed?: boolean;
-    turnTcpSendFailed?: boolean;
-    udpLocalConnectivityFailed?: boolean;
-    udpNatConnectivityFailed?: boolean;
-    udpRelayConnectivityFailed?: boolean;
-    tcpNatConnectivityFailed?: boolean;
-    tcpRelayConnectivityFailed?: boolean;
-    connCheckMessageIntegrityFailed?: boolean;
-    allocationMessageIntegrityFailed?: boolean;
-    connCheckOtherError?: boolean;
-    turnAuthUnknownUsernameError?: boolean;
-    noRelayServersConfigured?: boolean;
-    multipleRelayServersAttempted?: boolean;
-    portRangeExhausted?: boolean;
-    alternateServerReceived?: boolean;
-    pseudoTLSFailure?: boolean;
-    turnTurnTcpConnectivityFailed?: boolean;
-    useCandidateChecksFailed?: boolean;
-    fipsAllocationFailure?: boolean;
-}
-
-interface MSJitter {
-    interArrival?: number;
-    interArrivalMax?: number;
-    interArrivalSD?: number;
-}
-
-interface MSLocalClientEventBase extends RTCStats {
-    networkReceiveQualityEventRatio?: number;
-    networkBandwidthLowEventRatio?: number;
-}
-
-interface MSNetwork extends RTCStats {
-    jitter?: MSJitter;
-    delay?: MSDelay;
-    packetLoss?: MSPacketLoss;
-    utilization?: MSUtilization;
-}
-
-interface MSNetworkConnectivityInfo {
-    vpn?: boolean;
-    linkspeed?: number;
-    networkConnectionDetails?: string;
-}
-
-interface MSNetworkInterfaceType {
-    interfaceTypeEthernet?: boolean;
-    interfaceTypeWireless?: boolean;
-    interfaceTypePPP?: boolean;
-    interfaceTypeTunnel?: boolean;
-    interfaceTypeWWAN?: boolean;
-}
-
-interface MSOutboundNetwork extends MSNetwork {
-    appliedBandwidthLimit?: number;
-}
-
-interface MSPacketLoss {
-    lossRate?: number;
-    lossRateMax?: number;
-}
-
-interface MSPayloadBase extends RTCStats {
-    payloadDescription?: string;
-}
-
-interface MSRelayAddress {
-    relayAddress?: string;
-    port?: number;
-}
-
-interface MSSignatureParameters {
-    userPrompt?: string;
-}
-
-interface MSTransportDiagnosticsStats extends RTCStats {
-    baseAddress?: string;
-    localAddress?: string;
-    localSite?: string;
-    networkName?: string;
-    remoteAddress?: string;
-    remoteSite?: string;
-    localMR?: string;
-    remoteMR?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    portRangeMin?: number;
-    portRangeMax?: number;
-    localMRTCPPort?: number;
-    remoteMRTCPPort?: number;
-    stunVer?: number;
-    numConsentReqSent?: number;
-    numConsentReqReceived?: number;
-    numConsentRespSent?: number;
-    numConsentRespReceived?: number;
-    interfaces?: MSNetworkInterfaceType;
-    baseInterface?: MSNetworkInterfaceType;
-    protocol?: string;
-    localInterface?: MSNetworkInterfaceType;
-    localAddrType?: string;
-    remoteAddrType?: string;
-    iceRole?: string;
-    rtpRtcpMux?: boolean;
-    allocationTimeInMs?: number;
-    msRtcEngineVersion?: string;
-}
-
-interface MSUtilization {
-    packets?: number;
-    bandwidthEstimation?: number;
-    bandwidthEstimationMin?: number;
-    bandwidthEstimationMax?: number;
-    bandwidthEstimationStdDev?: number;
-    bandwidthEstimationAvg?: number;
-}
-
-interface MSVideoPayload extends MSPayloadBase {
-    resoluton?: string;
-    videoBitRateAvg?: number;
-    videoBitRateMax?: number;
-    videoFrameRateAvg?: number;
-    videoPacketLossRate?: number;
-    durationSeconds?: number;
-}
-
-interface MSVideoRecvPayload extends MSVideoPayload {
-    videoFrameLossRate?: number;
-    recvCodecType?: string;
-    recvResolutionWidth?: number;
-    recvResolutionHeight?: number;
-    videoResolutions?: MSVideoResolutionDistribution;
-    recvFrameRateAverage?: number;
-    recvBitRateMaximum?: number;
-    recvBitRateAverage?: number;
-    recvVideoStreamsMax?: number;
-    recvVideoStreamsMin?: number;
-    recvVideoStreamsMode?: number;
-    videoPostFECPLR?: number;
-    lowBitRateCallPercent?: number;
-    lowFrameRateCallPercent?: number;
-    reorderBufferTotalPackets?: number;
-    recvReorderBufferReorderedPackets?: number;
-    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
-    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
-    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
-    recvReorderBufferPacketsDroppedDueToTimeout?: number;
-    recvFpsHarmonicAverage?: number;
-    recvNumResSwitches?: number;
-}
-
-interface MSVideoResolutionDistribution {
-    cifQuality?: number;
-    vgaQuality?: number;
-    h720Quality?: number;
-    h1080Quality?: number;
-    h1440Quality?: number;
-    h2160Quality?: number;
-}
-
-interface MSVideoSendPayload extends MSVideoPayload {
-    sendFrameRateAverage?: number;
-    sendBitRateMaximum?: number;
-    sendBitRateAverage?: number;
-    sendVideoStreamsMax?: number;
-    sendResolutionWidth?: number;
-    sendResolutionHeight?: number;
-}
-
-interface MediaEncryptedEventInit extends EventInit {
-    initDataType?: string;
-    initData?: ArrayBuffer;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
-    messageType?: string;
-    message?: ArrayBuffer;
-}
-
-interface MediaKeySystemConfiguration {
-    initDataTypes?: string[];
-    audioCapabilities?: MediaKeySystemMediaCapability[];
-    videoCapabilities?: MediaKeySystemMediaCapability[];
-    distinctiveIdentifier?: string;
-    persistentState?: string;
-}
-
-interface MediaKeySystemMediaCapability {
-    contentType?: string;
-    robustness?: string;
-}
-
-interface MediaStreamConstraints {
-    video?: boolean | MediaTrackConstraints;
-    audio?: boolean | MediaTrackConstraints;
-}
-
-interface MediaStreamErrorEventInit extends EventInit {
-    error?: MediaStreamError;
-}
-
-interface MediaStreamTrackEventInit extends EventInit {
-    track?: MediaStreamTrack;
-}
-
-interface MediaTrackCapabilities {
-    width?: number | LongRange;
-    height?: number | LongRange;
-    aspectRatio?: number | DoubleRange;
-    frameRate?: number | DoubleRange;
-    facingMode?: string;
-    volume?: number | DoubleRange;
-    sampleRate?: number | LongRange;
-    sampleSize?: number | LongRange;
-    echoCancellation?: boolean[];
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackConstraintSet {
-    width?: number | ConstrainLongRange;
-    height?: number | ConstrainLongRange;
-    aspectRatio?: number | ConstrainDoubleRange;
-    frameRate?: number | ConstrainDoubleRange;
-    facingMode?: string | string[] | ConstrainDOMStringParameters;
-    volume?: number | ConstrainDoubleRange;
-    sampleRate?: number | ConstrainLongRange;
-    sampleSize?: number | ConstrainLongRange;
-    echoCancelation?: boolean | ConstrainBooleanParameters;
-    deviceId?: string | string[] | ConstrainDOMStringParameters;
-    groupId?: string | string[] | ConstrainDOMStringParameters;
-}
-
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
-    advanced?: MediaTrackConstraintSet[];
-}
-
-interface MediaTrackSettings {
-    width?: number;
-    height?: number;
-    aspectRatio?: number;
-    frameRate?: number;
-    facingMode?: string;
-    volume?: number;
-    sampleRate?: number;
-    sampleSize?: number;
-    echoCancellation?: boolean;
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackSupportedConstraints {
-    width?: boolean;
-    height?: boolean;
-    aspectRatio?: boolean;
-    frameRate?: boolean;
-    facingMode?: boolean;
-    volume?: boolean;
-    sampleRate?: boolean;
-    sampleSize?: boolean;
-    echoCancellation?: boolean;
-    deviceId?: boolean;
-    groupId?: boolean;
-}
-
-interface MouseEventInit extends EventModifierInit {
-    screenX?: number;
-    screenY?: number;
-    clientX?: number;
-    clientY?: number;
-    button?: number;
-    buttons?: number;
-    relatedTarget?: EventTarget;
-}
-
-interface MsZoomToOptions {
-    contentX?: number;
-    contentY?: number;
-    viewportX?: string;
-    viewportY?: string;
-    scaleFactor?: number;
-    animate?: string;
-}
-
-interface MutationObserverInit {
-    childList?: boolean;
-    attributes?: boolean;
-    characterData?: boolean;
-    subtree?: boolean;
-    attributeOldValue?: boolean;
-    characterDataOldValue?: boolean;
-    attributeFilter?: string[];
-}
-
-interface ObjectURLOptions {
-    oneTimeOnly?: boolean;
-}
-
-interface PeriodicWaveConstraints {
-    disableNormalization?: boolean;
-}
-
-interface PointerEventInit extends MouseEventInit {
-    pointerId?: number;
-    width?: number;
-    height?: number;
-    pressure?: number;
-    tiltX?: number;
-    tiltY?: number;
-    pointerType?: string;
-    isPrimary?: boolean;
-}
-
-interface PositionOptions {
-    enableHighAccuracy?: boolean;
-    timeout?: number;
-    maximumAge?: number;
-}
-
-interface RTCDTMFToneChangeEventInit extends EventInit {
-    tone?: string;
-}
-
-interface RTCDtlsFingerprint {
-    algorithm?: string;
-    value?: string;
-}
-
-interface RTCDtlsParameters {
-    role?: string;
-    fingerprints?: RTCDtlsFingerprint[];
-}
-
-interface RTCIceCandidate {
-    foundation?: string;
-    priority?: number;
-    ip?: string;
-    protocol?: string;
-    port?: number;
-    type?: string;
-    tcpType?: string;
-    relatedAddress?: string;
-    relatedPort?: number;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
-    ipAddress?: string;
-    portNumber?: number;
-    transport?: string;
-    candidateType?: string;
-    priority?: number;
-    addressSourceUrl?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidatePair {
-    local?: RTCIceCandidate;
-    remote?: RTCIceCandidate;
-}
-
-interface RTCIceCandidatePairStats extends RTCStats {
-    transportId?: string;
-    localCandidateId?: string;
-    remoteCandidateId?: string;
-    state?: string;
-    priority?: number;
-    nominated?: boolean;
-    writable?: boolean;
-    readable?: boolean;
-    bytesSent?: number;
-    bytesReceived?: number;
-    roundTripTime?: number;
-    availableOutgoingBitrate?: number;
-    availableIncomingBitrate?: number;
-}
-
-interface RTCIceGatherOptions {
-    gatherPolicy?: string;
-    iceservers?: RTCIceServer[];
-}
-
-interface RTCIceParameters {
-    usernameFragment?: string;
-    password?: string;
-}
-
-interface RTCIceServer {
-    urls?: any;
-    username?: string;
-    credential?: string;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsReceived?: number;
-    bytesReceived?: number;
-    packetsLost?: number;
-    jitter?: number;
-    fractionLost?: number;
-}
-
-interface RTCMediaStreamTrackStats extends RTCStats {
-    trackIdentifier?: string;
-    remoteSource?: boolean;
-    ssrcIds?: string[];
-    frameWidth?: number;
-    frameHeight?: number;
-    framesPerSecond?: number;
-    framesSent?: number;
-    framesReceived?: number;
-    framesDecoded?: number;
-    framesDropped?: number;
-    framesCorrupted?: number;
-    audioLevel?: number;
-    echoReturnLoss?: number;
-    echoReturnLossEnhancement?: number;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsSent?: number;
-    bytesSent?: number;
-    targetBitrate?: number;
-    roundTripTime?: number;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
-    ssrc?: string;
-    associateStatsId?: string;
-    isRemote?: boolean;
-    mediaTrackId?: string;
-    transportId?: string;
-    codecId?: string;
-    firCount?: number;
-    pliCount?: number;
-    nackCount?: number;
-    sliCount?: number;
-}
-
-interface RTCRtcpFeedback {
-    type?: string;
-    parameter?: string;
-}
-
-interface RTCRtcpParameters {
-    ssrc?: number;
-    cname?: string;
-    reducedSize?: boolean;
-    mux?: boolean;
-}
-
-interface RTCRtpCapabilities {
-    codecs?: RTCRtpCodecCapability[];
-    headerExtensions?: RTCRtpHeaderExtension[];
-    fecMechanisms?: string[];
-}
-
-interface RTCRtpCodecCapability {
-    name?: string;
-    kind?: string;
-    clockRate?: number;
-    preferredPayloadType?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-    options?: any;
-    maxTemporalLayers?: number;
-    maxSpatialLayers?: number;
-    svcMultiStreamSupport?: boolean;
-}
-
-interface RTCRtpCodecParameters {
-    name?: string;
-    payloadType?: any;
-    clockRate?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-}
-
-interface RTCRtpContributingSource {
-    timestamp?: number;
-    csrc?: number;
-    audioLevel?: number;
-}
-
-interface RTCRtpEncodingParameters {
-    ssrc?: number;
-    codecPayloadType?: number;
-    fec?: RTCRtpFecParameters;
-    rtx?: RTCRtpRtxParameters;
-    priority?: number;
-    maxBitrate?: number;
-    minQuality?: number;
-    framerateBias?: number;
-    resolutionScale?: number;
-    framerateScale?: number;
-    active?: boolean;
-    encodingId?: string;
-    dependencyEncodingIds?: string[];
-    ssrcRange?: RTCSsrcRange;
-}
-
-interface RTCRtpFecParameters {
-    ssrc?: number;
-    mechanism?: string;
-}
-
-interface RTCRtpHeaderExtension {
-    kind?: string;
-    uri?: string;
-    preferredId?: number;
-    preferredEncrypt?: boolean;
-}
-
-interface RTCRtpHeaderExtensionParameters {
-    uri?: string;
-    id?: number;
-    encrypt?: boolean;
-}
-
-interface RTCRtpParameters {
-    muxId?: string;
-    codecs?: RTCRtpCodecParameters[];
-    headerExtensions?: RTCRtpHeaderExtensionParameters[];
-    encodings?: RTCRtpEncodingParameters[];
-    rtcp?: RTCRtcpParameters;
-}
-
-interface RTCRtpRtxParameters {
-    ssrc?: number;
-}
-
-interface RTCRtpUnhandled {
-    ssrc?: number;
-    payloadType?: number;
-    muxId?: string;
-}
-
-interface RTCSrtpKeyParam {
-    keyMethod?: string;
-    keySalt?: string;
-    lifetime?: string;
-    mkiValue?: number;
-    mkiLength?: number;
-}
-
-interface RTCSrtpSdesParameters {
-    tag?: number;
-    cryptoSuite?: string;
-    keyParams?: RTCSrtpKeyParam[];
-    sessionParams?: string[];
-}
-
-interface RTCSsrcRange {
-    min?: number;
-    max?: number;
-}
-
-interface RTCStats {
-    timestamp?: number;
-    type?: string;
-    id?: string;
-    msType?: string;
-}
-
-interface RTCStatsReport {
-}
-
-interface RTCTransportStats extends RTCStats {
-    bytesSent?: number;
-    bytesReceived?: number;
-    rtcpTransportStatsId?: string;
-    activeConnection?: boolean;
-    selectedCandidatePairId?: string;
-    localCertificateId?: string;
-    remoteCertificateId?: string;
-}
-
-interface StoreExceptionsInformation extends ExceptionInformation {
-    siteName?: string;
-    explanationString?: string;
-    detailURI?: string;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface UIEventInit extends EventInit {
-    view?: Window;
-    detail?: number;
-}
-
-interface WebGLContextAttributes {
-    failIfMajorPerformanceCaveat?: boolean;
-    alpha?: boolean;
-    depth?: boolean;
-    stencil?: boolean;
-    antialias?: boolean;
-    premultipliedAlpha?: boolean;
-    preserveDrawingBuffer?: boolean;
-}
-
-interface WebGLContextEventInit extends EventInit {
-    statusMessage?: string;
-}
-
-interface WheelEventInit extends MouseEventInit {
-    deltaX?: number;
-    deltaY?: number;
-    deltaZ?: number;
-    deltaMode?: number;
-}
-
-interface EventListener {
-    (evt: Event): void;
-}
-
-interface ANGLE_instanced_arrays {
-    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
-    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
-    vertexAttribDivisorANGLE(index: number, divisor: number): void;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-declare var ANGLE_instanced_arrays: {
-    prototype: ANGLE_instanced_arrays;
-    new(): ANGLE_instanced_arrays;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-interface AnalyserNode extends AudioNode {
-    fftSize: number;
-    readonly frequencyBinCount: number;
-    maxDecibels: number;
-    minDecibels: number;
-    smoothingTimeConstant: number;
-    getByteFrequencyData(array: Uint8Array): void;
-    getByteTimeDomainData(array: Uint8Array): void;
-    getFloatFrequencyData(array: Float32Array): void;
-    getFloatTimeDomainData(array: Float32Array): void;
-}
-
-declare var AnalyserNode: {
-    prototype: AnalyserNode;
-    new(): AnalyserNode;
-}
-
-interface AnimationEvent extends Event {
-    readonly animationName: string;
-    readonly elapsedTime: number;
-    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var AnimationEvent: {
-    prototype: AnimationEvent;
-    new(): AnimationEvent;
-}
-
-interface ApplicationCacheEventMap {
-    "cached": Event;
-    "checking": Event;
-    "downloading": Event;
-    "error": ErrorEvent;
-    "noupdate": Event;
-    "obsolete": Event;
-    "progress": ProgressEvent;
-    "updateready": Event;
-}
-
-interface ApplicationCache extends EventTarget {
-    oncached: (this: ApplicationCache, ev: Event) => any;
-    onchecking: (this: ApplicationCache, ev: Event) => any;
-    ondownloading: (this: ApplicationCache, ev: Event) => any;
-    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
-    onnoupdate: (this: ApplicationCache, ev: Event) => any;
-    onobsolete: (this: ApplicationCache, ev: Event) => any;
-    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
-    onupdateready: (this: ApplicationCache, ev: Event) => any;
-    readonly status: number;
-    abort(): void;
-    swapCache(): void;
-    update(): void;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ApplicationCache: {
-    prototype: ApplicationCache;
-    new(): ApplicationCache;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-}
-
-interface AriaRequestEvent extends Event {
-    readonly attributeName: string;
-    attributeValue: string | null;
-}
-
-declare var AriaRequestEvent: {
-    prototype: AriaRequestEvent;
-    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
-}
-
-interface Attr extends Node {
-    readonly name: string;
-    readonly ownerElement: Element;
-    readonly prefix: string | null;
-    readonly specified: boolean;
-    value: string;
-}
-
-declare var Attr: {
-    prototype: Attr;
-    new(): Attr;
-}
-
-interface AudioBuffer {
-    readonly duration: number;
-    readonly length: number;
-    readonly numberOfChannels: number;
-    readonly sampleRate: number;
-    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
-    prototype: AudioBuffer;
-    new(): AudioBuffer;
-}
-
-interface AudioBufferSourceNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface AudioBufferSourceNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    readonly detune: AudioParam;
-    loop: boolean;
-    loopEnd: number;
-    loopStart: number;
-    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
-    readonly playbackRate: AudioParam;
-    start(when?: number, offset?: number, duration?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var AudioBufferSourceNode: {
-    prototype: AudioBufferSourceNode;
-    new(): AudioBufferSourceNode;
-}
-
-interface AudioContext extends EventTarget {
-    readonly currentTime: number;
-    readonly destination: AudioDestinationNode;
-    readonly listener: AudioListener;
-    readonly sampleRate: number;
-    state: string;
-    createAnalyser(): AnalyserNode;
-    createBiquadFilter(): BiquadFilterNode;
-    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
-    createBufferSource(): AudioBufferSourceNode;
-    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
-    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
-    createConvolver(): ConvolverNode;
-    createDelay(maxDelayTime?: number): DelayNode;
-    createDynamicsCompressor(): DynamicsCompressorNode;
-    createGain(): GainNode;
-    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
-    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
-    createOscillator(): OscillatorNode;
-    createPanner(): PannerNode;
-    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
-    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
-    createStereoPanner(): StereoPannerNode;
-    createWaveShaper(): WaveShaperNode;
-    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
-}
-
-declare var AudioContext: {
-    prototype: AudioContext;
-    new(): AudioContext;
-}
-
-interface AudioDestinationNode extends AudioNode {
-    readonly maxChannelCount: number;
-}
-
-declare var AudioDestinationNode: {
-    prototype: AudioDestinationNode;
-    new(): AudioDestinationNode;
-}
-
-interface AudioListener {
-    dopplerFactor: number;
-    speedOfSound: number;
-    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var AudioListener: {
-    prototype: AudioListener;
-    new(): AudioListener;
-}
-
-interface AudioNode extends EventTarget {
-    channelCount: number;
-    channelCountMode: string;
-    channelInterpretation: string;
-    readonly context: AudioContext;
-    readonly numberOfInputs: number;
-    readonly numberOfOutputs: number;
-    connect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(output?: number): void;
-    disconnect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(destination: AudioParam, output?: number): void;
-}
-
-declare var AudioNode: {
-    prototype: AudioNode;
-    new(): AudioNode;
-}
-
-interface AudioParam {
-    readonly defaultValue: number;
-    value: number;
-    cancelScheduledValues(startTime: number): void;
-    exponentialRampToValueAtTime(value: number, endTime: number): void;
-    linearRampToValueAtTime(value: number, endTime: number): void;
-    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
-    setValueAtTime(value: number, startTime: number): void;
-    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
-}
-
-declare var AudioParam: {
-    prototype: AudioParam;
-    new(): AudioParam;
-}
-
-interface AudioProcessingEvent extends Event {
-    readonly inputBuffer: AudioBuffer;
-    readonly outputBuffer: AudioBuffer;
-    readonly playbackTime: number;
-}
-
-declare var AudioProcessingEvent: {
-    prototype: AudioProcessingEvent;
-    new(): AudioProcessingEvent;
-}
-
-interface AudioTrack {
-    enabled: boolean;
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var AudioTrack: {
-    prototype: AudioTrack;
-    new(): AudioTrack;
-}
-
-interface AudioTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface AudioTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    onchange: (this: AudioTrackList, ev: Event) => any;
-    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    getTrackById(id: string): AudioTrack | null;
-    item(index: number): AudioTrack;
-    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: AudioTrack;
-}
-
-declare var AudioTrackList: {
-    prototype: AudioTrackList;
-    new(): AudioTrackList;
-}
-
-interface BarProp {
-    readonly visible: boolean;
-}
-
-declare var BarProp: {
-    prototype: BarProp;
-    new(): BarProp;
-}
-
-interface BeforeUnloadEvent extends Event {
-    returnValue: any;
-}
-
-declare var BeforeUnloadEvent: {
-    prototype: BeforeUnloadEvent;
-    new(): BeforeUnloadEvent;
-}
-
-interface BiquadFilterNode extends AudioNode {
-    readonly Q: AudioParam;
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    readonly gain: AudioParam;
-    type: string;
-    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
-}
-
-declare var BiquadFilterNode: {
-    prototype: BiquadFilterNode;
-    new(): BiquadFilterNode;
-}
-
-interface Blob {
-    readonly size: number;
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-    slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
-    prototype: Blob;
-    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
-
-interface CDATASection extends Text {
-}
-
-declare var CDATASection: {
-    prototype: CDATASection;
-    new(): CDATASection;
-}
-
-interface CSS {
-    supports(property: string, value?: string): boolean;
-}
-declare var CSS: CSS;
-
-interface CSSConditionRule extends CSSGroupingRule {
-    conditionText: string;
-}
-
-declare var CSSConditionRule: {
-    prototype: CSSConditionRule;
-    new(): CSSConditionRule;
-}
-
-interface CSSFontFaceRule extends CSSRule {
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSFontFaceRule: {
-    prototype: CSSFontFaceRule;
-    new(): CSSFontFaceRule;
-}
-
-interface CSSGroupingRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    deleteRule(index: number): void;
-    insertRule(rule: string, index: number): number;
-}
-
-declare var CSSGroupingRule: {
-    prototype: CSSGroupingRule;
-    new(): CSSGroupingRule;
-}
-
-interface CSSImportRule extends CSSRule {
-    readonly href: string;
-    readonly media: MediaList;
-    readonly styleSheet: CSSStyleSheet;
-}
-
-declare var CSSImportRule: {
-    prototype: CSSImportRule;
-    new(): CSSImportRule;
-}
-
-interface CSSKeyframeRule extends CSSRule {
-    keyText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSKeyframeRule: {
-    prototype: CSSKeyframeRule;
-    new(): CSSKeyframeRule;
-}
-
-interface CSSKeyframesRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    name: string;
-    appendRule(rule: string): void;
-    deleteRule(rule: string): void;
-    findRule(rule: string): CSSKeyframeRule;
-}
-
-declare var CSSKeyframesRule: {
-    prototype: CSSKeyframesRule;
-    new(): CSSKeyframesRule;
-}
-
-interface CSSMediaRule extends CSSConditionRule {
-    readonly media: MediaList;
-}
-
-declare var CSSMediaRule: {
-    prototype: CSSMediaRule;
-    new(): CSSMediaRule;
-}
-
-interface CSSNamespaceRule extends CSSRule {
-    readonly namespaceURI: string;
-    readonly prefix: string;
-}
-
-declare var CSSNamespaceRule: {
-    prototype: CSSNamespaceRule;
-    new(): CSSNamespaceRule;
-}
-
-interface CSSPageRule extends CSSRule {
-    readonly pseudoClass: string;
-    readonly selector: string;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSPageRule: {
-    prototype: CSSPageRule;
-    new(): CSSPageRule;
-}
-
-interface CSSRule {
-    cssText: string;
-    readonly parentRule: CSSRule;
-    readonly parentStyleSheet: CSSStyleSheet;
-    readonly type: number;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-declare var CSSRule: {
-    prototype: CSSRule;
-    new(): CSSRule;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-interface CSSRuleList {
-    readonly length: number;
-    item(index: number): CSSRule;
-    [index: number]: CSSRule;
-}
-
-declare var CSSRuleList: {
-    prototype: CSSRuleList;
-    new(): CSSRuleList;
-}
-
-interface CSSStyleDeclaration {
-    alignContent: string | null;
-    alignItems: string | null;
-    alignSelf: string | null;
-    alignmentBaseline: string | null;
-    animation: string | null;
-    animationDelay: string | null;
-    animationDirection: string | null;
-    animationDuration: string | null;
-    animationFillMode: string | null;
-    animationIterationCount: string | null;
-    animationName: string | null;
-    animationPlayState: string | null;
-    animationTimingFunction: string | null;
-    backfaceVisibility: string | null;
-    background: string | null;
-    backgroundAttachment: string | null;
-    backgroundClip: string | null;
-    backgroundColor: string | null;
-    backgroundImage: string | null;
-    backgroundOrigin: string | null;
-    backgroundPosition: string | null;
-    backgroundPositionX: string | null;
-    backgroundPositionY: string | null;
-    backgroundRepeat: string | null;
-    backgroundSize: string | null;
-    baselineShift: string | null;
-    border: string | null;
-    borderBottom: string | null;
-    borderBottomColor: string | null;
-    borderBottomLeftRadius: string | null;
-    borderBottomRightRadius: string | null;
-    borderBottomStyle: string | null;
-    borderBottomWidth: string | null;
-    borderCollapse: string | null;
-    borderColor: string | null;
-    borderImage: string | null;
-    borderImageOutset: string | null;
-    borderImageRepeat: string | null;
-    borderImageSlice: string | null;
-    borderImageSource: string | null;
-    borderImageWidth: string | null;
-    borderLeft: string | null;
-    borderLeftColor: string | null;
-    borderLeftStyle: string | null;
-    borderLeftWidth: string | null;
-    borderRadius: string | null;
-    borderRight: string | null;
-    borderRightColor: string | null;
-    borderRightStyle: string | null;
-    borderRightWidth: string | null;
-    borderSpacing: string | null;
-    borderStyle: string | null;
-    borderTop: string | null;
-    borderTopColor: string | null;
-    borderTopLeftRadius: string | null;
-    borderTopRightRadius: string | null;
-    borderTopStyle: string | null;
-    borderTopWidth: string | null;
-    borderWidth: string | null;
-    bottom: string | null;
-    boxShadow: string | null;
-    boxSizing: string | null;
-    breakAfter: string | null;
-    breakBefore: string | null;
-    breakInside: string | null;
-    captionSide: string | null;
-    clear: string | null;
-    clip: string | null;
-    clipPath: string | null;
-    clipRule: string | null;
-    color: string | null;
-    colorInterpolationFilters: string | null;
-    columnCount: any;
-    columnFill: string | null;
-    columnGap: any;
-    columnRule: string | null;
-    columnRuleColor: any;
-    columnRuleStyle: string | null;
-    columnRuleWidth: any;
-    columnSpan: string | null;
-    columnWidth: any;
-    columns: string | null;
-    content: string | null;
-    counterIncrement: string | null;
-    counterReset: string | null;
-    cssFloat: string | null;
-    cssText: string;
-    cursor: string | null;
-    direction: string | null;
-    display: string | null;
-    dominantBaseline: string | null;
-    emptyCells: string | null;
-    enableBackground: string | null;
-    fill: string | null;
-    fillOpacity: string | null;
-    fillRule: string | null;
-    filter: string | null;
-    flex: string | null;
-    flexBasis: string | null;
-    flexDirection: string | null;
-    flexFlow: string | null;
-    flexGrow: string | null;
-    flexShrink: string | null;
-    flexWrap: string | null;
-    floodColor: string | null;
-    floodOpacity: string | null;
-    font: string | null;
-    fontFamily: string | null;
-    fontFeatureSettings: string | null;
-    fontSize: string | null;
-    fontSizeAdjust: string | null;
-    fontStretch: string | null;
-    fontStyle: string | null;
-    fontVariant: string | null;
-    fontWeight: string | null;
-    glyphOrientationHorizontal: string | null;
-    glyphOrientationVertical: string | null;
-    height: string | null;
-    imeMode: string | null;
-    justifyContent: string | null;
-    kerning: string | null;
-    left: string | null;
-    readonly length: number;
-    letterSpacing: string | null;
-    lightingColor: string | null;
-    lineHeight: string | null;
-    listStyle: string | null;
-    listStyleImage: string | null;
-    listStylePosition: string | null;
-    listStyleType: string | null;
-    margin: string | null;
-    marginBottom: string | null;
-    marginLeft: string | null;
-    marginRight: string | null;
-    marginTop: string | null;
-    marker: string | null;
-    markerEnd: string | null;
-    markerMid: string | null;
-    markerStart: string | null;
-    mask: string | null;
-    maxHeight: string | null;
-    maxWidth: string | null;
-    minHeight: string | null;
-    minWidth: string | null;
-    msContentZoomChaining: string | null;
-    msContentZoomLimit: string | null;
-    msContentZoomLimitMax: any;
-    msContentZoomLimitMin: any;
-    msContentZoomSnap: string | null;
-    msContentZoomSnapPoints: string | null;
-    msContentZoomSnapType: string | null;
-    msContentZooming: string | null;
-    msFlowFrom: string | null;
-    msFlowInto: string | null;
-    msFontFeatureSettings: string | null;
-    msGridColumn: any;
-    msGridColumnAlign: string | null;
-    msGridColumnSpan: any;
-    msGridColumns: string | null;
-    msGridRow: any;
-    msGridRowAlign: string | null;
-    msGridRowSpan: any;
-    msGridRows: string | null;
-    msHighContrastAdjust: string | null;
-    msHyphenateLimitChars: string | null;
-    msHyphenateLimitLines: any;
-    msHyphenateLimitZone: any;
-    msHyphens: string | null;
-    msImeAlign: string | null;
-    msOverflowStyle: string | null;
-    msScrollChaining: string | null;
-    msScrollLimit: string | null;
-    msScrollLimitXMax: any;
-    msScrollLimitXMin: any;
-    msScrollLimitYMax: any;
-    msScrollLimitYMin: any;
-    msScrollRails: string | null;
-    msScrollSnapPointsX: string | null;
-    msScrollSnapPointsY: string | null;
-    msScrollSnapType: string | null;
-    msScrollSnapX: string | null;
-    msScrollSnapY: string | null;
-    msScrollTranslation: string | null;
-    msTextCombineHorizontal: string | null;
-    msTextSizeAdjust: any;
-    msTouchAction: string | null;
-    msTouchSelect: string | null;
-    msUserSelect: string | null;
-    msWrapFlow: string;
-    msWrapMargin: any;
-    msWrapThrough: string;
-    opacity: string | null;
-    order: string | null;
-    orphans: string | null;
-    outline: string | null;
-    outlineColor: string | null;
-    outlineStyle: string | null;
-    outlineWidth: string | null;
-    overflow: string | null;
-    overflowX: string | null;
-    overflowY: string | null;
-    padding: string | null;
-    paddingBottom: string | null;
-    paddingLeft: string | null;
-    paddingRight: string | null;
-    paddingTop: string | null;
-    pageBreakAfter: string | null;
-    pageBreakBefore: string | null;
-    pageBreakInside: string | null;
-    readonly parentRule: CSSRule;
-    perspective: string | null;
-    perspectiveOrigin: string | null;
-    pointerEvents: string | null;
-    position: string | null;
-    quotes: string | null;
-    right: string | null;
-    rubyAlign: string | null;
-    rubyOverhang: string | null;
-    rubyPosition: string | null;
-    stopColor: string | null;
-    stopOpacity: string | null;
-    stroke: string | null;
-    strokeDasharray: string | null;
-    strokeDashoffset: string | null;
-    strokeLinecap: string | null;
-    strokeLinejoin: string | null;
-    strokeMiterlimit: string | null;
-    strokeOpacity: string | null;
-    strokeWidth: string | null;
-    tableLayout: string | null;
-    textAlign: string | null;
-    textAlignLast: string | null;
-    textAnchor: string | null;
-    textDecoration: string | null;
-    textIndent: string | null;
-    textJustify: string | null;
-    textKashida: string | null;
-    textKashidaSpace: string | null;
-    textOverflow: string | null;
-    textShadow: string | null;
-    textTransform: string | null;
-    textUnderlinePosition: string | null;
-    top: string | null;
-    touchAction: string | null;
-    transform: string | null;
-    transformOrigin: string | null;
-    transformStyle: string | null;
-    transition: string | null;
-    transitionDelay: string | null;
-    transitionDuration: string | null;
-    transitionProperty: string | null;
-    transitionTimingFunction: string | null;
-    unicodeBidi: string | null;
-    verticalAlign: string | null;
-    visibility: string | null;
-    webkitAlignContent: string | null;
-    webkitAlignItems: string | null;
-    webkitAlignSelf: string | null;
-    webkitAnimation: string | null;
-    webkitAnimationDelay: string | null;
-    webkitAnimationDirection: string | null;
-    webkitAnimationDuration: string | null;
-    webkitAnimationFillMode: string | null;
-    webkitAnimationIterationCount: string | null;
-    webkitAnimationName: string | null;
-    webkitAnimationPlayState: string | null;
-    webkitAnimationTimingFunction: string | null;
-    webkitAppearance: string | null;
-    webkitBackfaceVisibility: string | null;
-    webkitBackgroundClip: string | null;
-    webkitBackgroundOrigin: string | null;
-    webkitBackgroundSize: string | null;
-    webkitBorderBottomLeftRadius: string | null;
-    webkitBorderBottomRightRadius: string | null;
-    webkitBorderImage: string | null;
-    webkitBorderRadius: string | null;
-    webkitBorderTopLeftRadius: string | null;
-    webkitBorderTopRightRadius: string | null;
-    webkitBoxAlign: string | null;
-    webkitBoxDirection: string | null;
-    webkitBoxFlex: string | null;
-    webkitBoxOrdinalGroup: string | null;
-    webkitBoxOrient: string | null;
-    webkitBoxPack: string | null;
-    webkitBoxSizing: string | null;
-    webkitColumnBreakAfter: string | null;
-    webkitColumnBreakBefore: string | null;
-    webkitColumnBreakInside: string | null;
-    webkitColumnCount: any;
-    webkitColumnGap: any;
-    webkitColumnRule: string | null;
-    webkitColumnRuleColor: any;
-    webkitColumnRuleStyle: string | null;
-    webkitColumnRuleWidth: any;
-    webkitColumnSpan: string | null;
-    webkitColumnWidth: any;
-    webkitColumns: string | null;
-    webkitFilter: string | null;
-    webkitFlex: string | null;
-    webkitFlexBasis: string | null;
-    webkitFlexDirection: string | null;
-    webkitFlexFlow: string | null;
-    webkitFlexGrow: string | null;
-    webkitFlexShrink: string | null;
-    webkitFlexWrap: string | null;
-    webkitJustifyContent: string | null;
-    webkitOrder: string | null;
-    webkitPerspective: string | null;
-    webkitPerspectiveOrigin: string | null;
-    webkitTapHighlightColor: string | null;
-    webkitTextFillColor: string | null;
-    webkitTextSizeAdjust: any;
-    webkitTransform: string | null;
-    webkitTransformOrigin: string | null;
-    webkitTransformStyle: string | null;
-    webkitTransition: string | null;
-    webkitTransitionDelay: string | null;
-    webkitTransitionDuration: string | null;
-    webkitTransitionProperty: string | null;
-    webkitTransitionTimingFunction: string | null;
-    webkitUserModify: string | null;
-    webkitUserSelect: string | null;
-    webkitWritingMode: string | null;
-    whiteSpace: string | null;
-    widows: string | null;
-    width: string | null;
-    wordBreak: string | null;
-    wordSpacing: string | null;
-    wordWrap: string | null;
-    writingMode: string | null;
-    zIndex: string | null;
-    zoom: string | null;
-    resize: string | null;
-    getPropertyPriority(propertyName: string): string;
-    getPropertyValue(propertyName: string): string;
-    item(index: number): string;
-    removeProperty(propertyName: string): string;
-    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
-    [index: number]: string;
-}
-
-declare var CSSStyleDeclaration: {
-    prototype: CSSStyleDeclaration;
-    new(): CSSStyleDeclaration;
-}
-
-interface CSSStyleRule extends CSSRule {
-    readonly readOnly: boolean;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSStyleRule: {
-    prototype: CSSStyleRule;
-    new(): CSSStyleRule;
-}
-
-interface CSSStyleSheet extends StyleSheet {
-    readonly cssRules: CSSRuleList;
-    cssText: string;
-    readonly href: string;
-    readonly id: string;
-    readonly imports: StyleSheetList;
-    readonly isAlternate: boolean;
-    readonly isPrefAlternate: boolean;
-    readonly ownerRule: CSSRule;
-    readonly owningElement: Element;
-    readonly pages: StyleSheetPageList;
-    readonly readOnly: boolean;
-    readonly rules: CSSRuleList;
-    addImport(bstrURL: string, lIndex?: number): number;
-    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
-    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
-    deleteRule(index?: number): void;
-    insertRule(rule: string, index?: number): number;
-    removeImport(lIndex: number): void;
-    removeRule(lIndex: number): void;
-}
-
-declare var CSSStyleSheet: {
-    prototype: CSSStyleSheet;
-    new(): CSSStyleSheet;
-}
-
-interface CSSSupportsRule extends CSSConditionRule {
-}
-
-declare var CSSSupportsRule: {
-    prototype: CSSSupportsRule;
-    new(): CSSSupportsRule;
-}
-
-interface CanvasGradient {
-    addColorStop(offset: number, color: string): void;
-}
-
-declare var CanvasGradient: {
-    prototype: CanvasGradient;
-    new(): CanvasGradient;
-}
-
-interface CanvasPattern {
-    setTransform(matrix: SVGMatrix): void;
-}
-
-declare var CanvasPattern: {
-    prototype: CanvasPattern;
-    new(): CanvasPattern;
-}
-
-interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
-    readonly canvas: HTMLCanvasElement;
-    fillStyle: string | CanvasGradient | CanvasPattern;
-    font: string;
-    globalAlpha: number;
-    globalCompositeOperation: string;
-    lineCap: string;
-    lineDashOffset: number;
-    lineJoin: string;
-    lineWidth: number;
-    miterLimit: number;
-    msFillRule: string;
-    msImageSmoothingEnabled: boolean;
-    shadowBlur: number;
-    shadowColor: string;
-    shadowOffsetX: number;
-    shadowOffsetY: number;
-    strokeStyle: string | CanvasGradient | CanvasPattern;
-    textAlign: string;
-    textBaseline: string;
-    mozImageSmoothingEnabled: boolean;
-    webkitImageSmoothingEnabled: boolean;
-    oImageSmoothingEnabled: boolean;
-    beginPath(): void;
-    clearRect(x: number, y: number, w: number, h: number): void;
-    clip(fillRule?: string): void;
-    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
-    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
-    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
-    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
-    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
-    fill(fillRule?: string): void;
-    fillRect(x: number, y: number, w: number, h: number): void;
-    fillText(text: string, x: number, y: number, maxWidth?: number): void;
-    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
-    getLineDash(): number[];
-    isPointInPath(x: number, y: number, fillRule?: string): boolean;
-    measureText(text: string): TextMetrics;
-    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
-    restore(): void;
-    rotate(angle: number): void;
-    save(): void;
-    scale(x: number, y: number): void;
-    setLineDash(segments: number[]): void;
-    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
-    stroke(): void;
-    strokeRect(x: number, y: number, w: number, h: number): void;
-    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
-    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
-    translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
-    prototype: CanvasRenderingContext2D;
-    new(): CanvasRenderingContext2D;
-}
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
-    prototype: ChannelMergerNode;
-    new(): ChannelMergerNode;
-}
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
-    prototype: ChannelSplitterNode;
-    new(): ChannelSplitterNode;
-}
-
-interface CharacterData extends Node, ChildNode {
-    data: string;
-    readonly length: number;
-    appendData(arg: string): void;
-    deleteData(offset: number, count: number): void;
-    insertData(offset: number, arg: string): void;
-    replaceData(offset: number, count: number, arg: string): void;
-    substringData(offset: number, count: number): string;
-}
-
-declare var CharacterData: {
-    prototype: CharacterData;
-    new(): CharacterData;
-}
-
-interface ClientRect {
-    bottom: number;
-    readonly height: number;
-    left: number;
-    right: number;
-    top: number;
-    readonly width: number;
-}
-
-declare var ClientRect: {
-    prototype: ClientRect;
-    new(): ClientRect;
-}
-
-interface ClientRectList {
-    readonly length: number;
-    item(index: number): ClientRect;
-    [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
-    prototype: ClientRectList;
-    new(): ClientRectList;
-}
-
-interface ClipboardEvent extends Event {
-    readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
-    prototype: ClipboardEvent;
-    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
-}
-
-interface CloseEvent extends Event {
-    readonly code: number;
-    readonly reason: string;
-    readonly wasClean: boolean;
-    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
-    prototype: CloseEvent;
-    new(): CloseEvent;
-}
-
-interface CommandEvent extends Event {
-    readonly commandName: string;
-    readonly detail: string | null;
-}
-
-declare var CommandEvent: {
-    prototype: CommandEvent;
-    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
-}
-
-interface Comment extends CharacterData {
-    text: string;
-}
-
-declare var Comment: {
-    prototype: Comment;
-    new(): Comment;
-}
-
-interface CompositionEvent extends UIEvent {
-    readonly data: string;
-    readonly locale: string;
-    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
-
-declare var CompositionEvent: {
-    prototype: CompositionEvent;
-    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
-}
-
-interface Console {
-    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
-    clear(): void;
-    count(countTitle?: string): void;
-    debug(message?: string, ...optionalParams: any[]): void;
-    dir(value?: any, ...optionalParams: any[]): void;
-    dirxml(value: any): void;
-    error(message?: any, ...optionalParams: any[]): void;
-    exception(message?: string, ...optionalParams: any[]): void;
-    group(groupTitle?: string): void;
-    groupCollapsed(groupTitle?: string): void;
-    groupEnd(): void;
-    info(message?: any, ...optionalParams: any[]): void;
-    log(message?: any, ...optionalParams: any[]): void;
-    msIsIndependentlyComposed(element: Element): boolean;
-    profile(reportName?: string): void;
-    profileEnd(): void;
-    select(element: Element): void;
-    table(...data: any[]): void;
-    time(timerName?: string): void;
-    timeEnd(timerName?: string): void;
-    trace(message?: any, ...optionalParams: any[]): void;
-    warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
-    prototype: Console;
-    new(): Console;
-}
-
-interface ConvolverNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    normalize: boolean;
-}
-
-declare var ConvolverNode: {
-    prototype: ConvolverNode;
-    new(): ConvolverNode;
-}
-
-interface Coordinates {
-    readonly accuracy: number;
-    readonly altitude: number | null;
-    readonly altitudeAccuracy: number | null;
-    readonly heading: number | null;
-    readonly latitude: number;
-    readonly longitude: number;
-    readonly speed: number | null;
-}
-
-declare var Coordinates: {
-    prototype: Coordinates;
-    new(): Coordinates;
-}
-
-interface Crypto extends Object, RandomSource {
-    readonly subtle: SubtleCrypto;
-}
-
-declare var Crypto: {
-    prototype: Crypto;
-    new(): Crypto;
-}
-
-interface CryptoKey {
-    readonly algorithm: KeyAlgorithm;
-    readonly extractable: boolean;
-    readonly type: string;
-    readonly usages: string[];
-}
-
-declare var CryptoKey: {
-    prototype: CryptoKey;
-    new(): CryptoKey;
-}
-
-interface CryptoKeyPair {
-    privateKey: CryptoKey;
-    publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
-    prototype: CryptoKeyPair;
-    new(): CryptoKeyPair;
-}
-
-interface CustomEvent extends Event {
-    readonly detail: any;
-    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
-}
-
-declare var CustomEvent: {
-    prototype: CustomEvent;
-    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-}
-
-interface DOMError {
-    readonly name: string;
-    toString(): string;
-}
-
-declare var DOMError: {
-    prototype: DOMError;
-    new(): DOMError;
-}
-
-interface DOMException {
-    readonly code: number;
-    readonly message: string;
-    readonly name: string;
-    toString(): string;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
-    prototype: DOMException;
-    new(): DOMException;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMImplementation {
-    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
-    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
-    createHTMLDocument(title: string): Document;
-    hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
-    prototype: DOMImplementation;
-    new(): DOMImplementation;
-}
-
-interface DOMParser {
-    parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
-    prototype: DOMParser;
-    new(): DOMParser;
-}
-
-interface DOMSettableTokenList extends DOMTokenList {
-    value: string;
-}
-
-declare var DOMSettableTokenList: {
-    prototype: DOMSettableTokenList;
-    new(): DOMSettableTokenList;
-}
-
-interface DOMStringList {
-    readonly length: number;
-    contains(str: string): boolean;
-    item(index: number): string | null;
-    [index: number]: string;
-}
-
-declare var DOMStringList: {
-    prototype: DOMStringList;
-    new(): DOMStringList;
-}
-
-interface DOMStringMap {
-    [name: string]: string;
-}
-
-declare var DOMStringMap: {
-    prototype: DOMStringMap;
-    new(): DOMStringMap;
-}
-
-interface DOMTokenList {
-    readonly length: number;
-    add(...token: string[]): void;
-    contains(token: string): boolean;
-    item(index: number): string;
-    remove(...token: string[]): void;
-    toString(): string;
-    toggle(token: string, force?: boolean): boolean;
-    [index: number]: string;
-}
-
-declare var DOMTokenList: {
-    prototype: DOMTokenList;
-    new(): DOMTokenList;
-}
-
-interface DataCue extends TextTrackCue {
-    data: ArrayBuffer;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DataCue: {
-    prototype: DataCue;
-    new(): DataCue;
-}
-
-interface DataTransfer {
-    dropEffect: string;
-    effectAllowed: string;
-    readonly files: FileList;
-    readonly items: DataTransferItemList;
-    readonly types: string[];
-    clearData(format?: string): boolean;
-    getData(format: string): string;
-    setData(format: string, data: string): boolean;
-}
-
-declare var DataTransfer: {
-    prototype: DataTransfer;
-    new(): DataTransfer;
-}
-
-interface DataTransferItem {
-    readonly kind: string;
-    readonly type: string;
-    getAsFile(): File | null;
-    getAsString(_callback: FunctionStringCallback | null): void;
-}
-
-declare var DataTransferItem: {
-    prototype: DataTransferItem;
-    new(): DataTransferItem;
-}
-
-interface DataTransferItemList {
-    readonly length: number;
-    add(data: File): DataTransferItem | null;
-    clear(): void;
-    item(index: number): DataTransferItem;
-    remove(index: number): void;
-    [index: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
-    prototype: DataTransferItemList;
-    new(): DataTransferItemList;
-}
-
-interface DeferredPermissionRequest {
-    readonly id: number;
-    readonly type: string;
-    readonly uri: string;
-    allow(): void;
-    deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
-    prototype: DeferredPermissionRequest;
-    new(): DeferredPermissionRequest;
-}
-
-interface DelayNode extends AudioNode {
-    readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
-    prototype: DelayNode;
-    new(): DelayNode;
-}
-
-interface DeviceAcceleration {
-    readonly x: number | null;
-    readonly y: number | null;
-    readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
-    prototype: DeviceAcceleration;
-    new(): DeviceAcceleration;
-}
-
-interface DeviceLightEvent extends Event {
-    readonly value: number;
-}
-
-declare var DeviceLightEvent: {
-    prototype: DeviceLightEvent;
-    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-}
-
-interface DeviceMotionEvent extends Event {
-    readonly acceleration: DeviceAcceleration | null;
-    readonly accelerationIncludingGravity: DeviceAcceleration | null;
-    readonly interval: number | null;
-    readonly rotationRate: DeviceRotationRate | null;
-    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
-    prototype: DeviceMotionEvent;
-    new(): DeviceMotionEvent;
-}
-
-interface DeviceOrientationEvent extends Event {
-    readonly absolute: boolean;
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
-    prototype: DeviceOrientationEvent;
-    new(): DeviceOrientationEvent;
-}
-
-interface DeviceRotationRate {
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
-    prototype: DeviceRotationRate;
-    new(): DeviceRotationRate;
-}
-
-interface DocumentEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforedeactivate": UIEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "fullscreenchange": Event;
-    "fullscreenerror": Event;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "mssitemodejumplistitemremoved": MSSiteModeEvent;
-    "msthumbnailclick": MSSiteModeEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "pointerlockchange": Event;
-    "pointerlockerror": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectionchange": Event;
-    "selectstart": Event;
-    "stalled": Event;
-    "stop": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "volumechange": Event;
-    "waiting": Event;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
-    /**
-      * Sets or gets the URL for the current document. 
-      */
-    readonly URL: string;
-    /**
-      * Gets the URL for the document, stripped of any character encoding.
-      */
-    readonly URLUnencoded: string;
-    /**
-      * Gets the object that has the focus when the parent document has focus.
-      */
-    readonly activeElement: Element;
-    /**
-      * Sets or gets the color of all active links in the document.
-      */
-    alinkColor: string;
-    /**
-      * Returns a reference to the collection of elements contained by the 
object.
-      */
-    readonly all: HTMLAllCollection;
-    /**
-      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
-      */
-    anchors: HTMLCollectionOf<HTMLAnchorElement>;
-    /**
-      * Retrieves a collection of all applet objects in the document.
-      */
-    applets: HTMLCollectionOf<HTMLAppletElement>;
-    /**
-      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
-      */
-    bgColor: string;
-    /**
-      * Specifies the beginning and end of the document body.
-      */
-    body: HTMLElement;
-    readonly characterSet: string;
-    /**
-      * Gets or sets the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
-      */
-    readonly compatMode: string;
-    cookie: string;
-    readonly currentScript: HTMLScriptElement | SVGScriptElement;
-    /**
-      * Gets the default character set from the current regional language 
settings.
-      */
-    readonly defaultCharset: string;
-    readonly defaultView: Window;
-    /**
-      * Sets or gets a value that indicates whether the document can be edited.
-      */
-    designMode: string;
-    /**
-      * Sets or retrieves a value that indicates the reading order of the 
object. 
-      */
-    dir: string;
-    /**
-      * Gets an object representing the document type declaration associated 
with the current document. 
-      */
-    readonly doctype: DocumentType;
-    /**
-      * Gets a reference to the root node of the document. 
-      */
-    documentElement: HTMLElement;
-    /**
-      * Sets or gets the security domain of the document. 
-      */
-    domain: string;
-    /**
-      * Retrieves a collection of all embed objects in the document.
-      */
-    embeds: HTMLCollectionOf<HTMLEmbedElement>;
-    /**
-      * Sets or gets the foreground (text) color of the document.
-      */
-    fgColor: string;
-    /**
-      * Retrieves a collection, in source order, of all form objects in the 
document.
-      */
-    forms: HTMLCollectionOf<HTMLFormElement>;
-    readonly fullscreenElement: Element | null;
-    readonly fullscreenEnabled: boolean;
-    readonly head: HTMLHeadElement;
-    readonly hidden: boolean;
-    /**
-      * Retrieves a collection, in source order, of img objects in the 
document.
-      */
-    images: HTMLCollectionOf<HTMLImageElement>;
-    /**
-      * Gets the implementation object of the current document. 
-      */
-    readonly implementation: DOMImplementation;
-    /**
-      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
-      */
-    readonly inputEncoding: string | null;
-    /**
-      * Gets the date that the page was last modified, if the page supplies 
one. 
-      */
-    readonly lastModified: string;
-    /**
-      * Sets or gets the color of the document links. 
-      */
-    linkColor: string;
-    /**
-      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
-      */
-    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
-    /**
-      * Contains information about the current URL. 
-      */
-    readonly location: Location;
-    msCSSOMElementFloatMetrics: boolean;
-    msCapsLockWarningOff: boolean;
-    /**
-      * Fires when the user aborts the download.
-      * @param ev The event.
-      */
-    onabort: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the object is set as the active element.
-      * @param ev The event.
-      */
-    onactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the object is set as the active element.
-      * @param ev The event.
-      */
-    onbeforeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
-      * @param ev The event.
-      */
-    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
-    /** 
-      * Fires when the object loses the input focus. 
-      * @param ev The focus event.
-      */
-    onblur: (this: Document, ev: FocusEvent) => any;
-    /**
-      * Occurs when playback is possible, but would require further buffering. 
-      * @param ev The event.
-      */
-    oncanplay: (this: Document, ev: Event) => any;
-    oncanplaythrough: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the contents of the object or selection have changed. 
-      * @param ev The event.
-      */
-    onchange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the left mouse button on the object
-      * @param ev The mouse event.
-      */
-    onclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
-      * @param ev The mouse event.
-      */
-    oncontextmenu: (this: Document, ev: PointerEvent) => any;
-    /**
-      * Fires when the user double-clicks the object.
-      * @param ev The mouse event.
-      */
-    ondblclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
-      * @param ev The UI Event
-      */
-    ondeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires on the source object continuously during a drag operation.
-      * @param ev The event.
-      */
-    ondrag: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
-      * @param ev The event.
-      */
-    ondragend: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target element when the user drags the object to a valid 
drop target.
-      * @param ev The drag event.
-      */
-    ondragenter: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
-      * @param ev The drag event.
-      */
-    ondragleave: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
-      * @param ev The event.
-      */
-    ondragover: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
-      * @param ev The event.
-      */
-    ondragstart: (this: Document, ev: DragEvent) => any;
-    ondrop: (this: Document, ev: DragEvent) => any;
-    /**
-      * Occurs when the duration attribute is updated. 
-      * @param ev The event.
-      */
-    ondurationchange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the media element is reset to its initial state. 
-      * @param ev The event.
-      */
-    onemptied: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the end of playback is reached. 
-      * @param ev The event
-      */
-    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
-    /**
-      * Fires when an error occurs during object loading.
-      * @param ev The event.
-      */
-    onerror: (this: Document, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus. 
-      * @param ev The event.
-      */
-    onfocus: (this: Document, ev: FocusEvent) => any;
-    onfullscreenchange: (this: Document, ev: Event) => any;
-    onfullscreenerror: (this: Document, ev: Event) => any;
-    oninput: (this: Document, ev: Event) => any;
-    oninvalid: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user presses a key.
-      * @param ev The keyboard event
-      */
-    onkeydown: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user presses an alphanumeric key.
-      * @param ev The event.
-      */
-    onkeypress: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user releases a key.
-      * @param ev The keyboard event
-      */
-    onkeyup: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires immediately after the browser loads the object. 
-      * @param ev The event.
-      */
-    onload: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when media data is loaded at the current playback position. 
-      * @param ev The event.
-      */
-    onloadeddata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the duration and dimensions of the media have been 
determined.
-      * @param ev The event.
-      */
-    onloadedmetadata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when Internet Explorer begins looking for media data. 
-      * @param ev The event.
-      */
-    onloadstart: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the object with either mouse button. 
-      * @param ev The mouse event.
-      */
-    onmousedown: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse over the object. 
-      * @param ev The mouse event.
-      */
-    onmousemove: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseout: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer into the object.
-      * @param ev The mouse event.
-      */
-    onmouseover: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user releases a mouse button while the mouse is over 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseup: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the wheel button is rotated. 
-      * @param ev The mouse event
-      */
-    onmousewheel: (this: Document, ev: WheelEvent) => any;
-    onmscontentzoom: (this: Document, ev: UIEvent) => any;
-    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
-    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
-    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
-    /**
-      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
-      * @param ev The event.
-      */
-    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
-    /**
-      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
-      * @param ev The event.
-      */
-    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
-    /**
-      * Occurs when playback is paused.
-      * @param ev The event.
-      */
-    onpause: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the play method is requested. 
-      * @param ev The event.
-      */
-    onplay: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the audio or video has started playing. 
-      * @param ev The event.
-      */
-    onplaying: (this: Document, ev: Event) => any;
-    onpointerlockchange: (this: Document, ev: Event) => any;
-    onpointerlockerror: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate progress while downloading media data. 
-      * @param ev The event.
-      */
-    onprogress: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Occurs when the playback rate is increased or decreased. 
-      * @param ev The event.
-      */
-    onratechange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the state of the object has changed.
-      * @param ev The event
-      */
-    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Fires when the user resets a form. 
-      * @param ev The event.
-      */
-    onreset: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
-      * @param ev The event.
-      */
-    onscroll: (this: Document, ev: UIEvent) => any;
-    /**
-      * Occurs when the seek operation ends. 
-      * @param ev The event.
-      */
-    onseeked: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the current playback position is moved. 
-      * @param ev The event.
-      */
-    onseeking: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the current selection changes.
-      * @param ev The event.
-      */
-    onselect: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the selection state of a document changes.
-      * @param ev The event.
-      */
-    onselectionchange: (this: Document, ev: Event) => any;
-    onselectstart: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the download has stopped. 
-      * @param ev The event.
-      */
-    onstalled: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the Stop button or leaves the Web page.
-      * @param ev The event.
-      */
-    onstop: (this: Document, ev: Event) => any;
-    onsubmit: (this: Document, ev: Event) => any;
-    /**
-      * Occurs if the load operation has been intentionally halted. 
-      * @param ev The event.
-      */
-    onsuspend: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate the current playback position.
-      * @param ev The event.
-      */
-    ontimeupdate: (this: Document, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    /**
-      * Occurs when the volume is changed, or playback is muted or unmuted.
-      * @param ev The event.
-      */
-    onvolumechange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when playback stops because the next frame of a video resource 
is not available. 
-      * @param ev The event.
-      */
-    onwaiting: (this: Document, ev: Event) => any;
-    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
-    plugins: HTMLCollectionOf<HTMLEmbedElement>;
-    readonly pointerLockElement: Element;
-    /**
-      * Retrieves a value that indicates the current state of the object.
-      */
-    readonly readyState: string;
-    /**
-      * Gets the URL of the location that referred the user to the current 
page.
-      */
-    readonly referrer: string;
-    /**
-      * Gets the root svg element in the document hierarchy.
-      */
-    readonly rootElement: SVGSVGElement;
-    /**
-      * Retrieves a collection of all script objects in the document.
-      */
-    scripts: HTMLCollectionOf<HTMLScriptElement>;
-    readonly scrollingElement: Element | null;
-    /**
-      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
-      */
-    readonly styleSheets: StyleSheetList;
-    /**
-      * Contains the title of the document.
-      */
-    title: string;
-    readonly visibilityState: string;
-    /** 
-      * Sets or gets the color of the links that the user has visited.
-      */
-    vlinkColor: string;
-    readonly webkitCurrentFullScreenElement: Element | null;
-    readonly webkitFullscreenElement: Element | null;
-    readonly webkitFullscreenEnabled: boolean;
-    readonly webkitIsFullScreen: boolean;
-    readonly xmlEncoding: string | null;
-    xmlStandalone: boolean;
-    /**
-      * Gets or sets the version attribute specified in the declaration of an 
XML document.
-      */
-    xmlVersion: string | null;
-    adoptNode(source: Node): Node;
-    captureEvents(): void;
-    caretRangeFromPoint(x: number, y: number): Range;
-    clear(): void;
-    /**
-      * Closes an output stream and forces the sent data to display.
-      */
-    close(): void;
-    /**
-      * Creates an attribute object with a specified name.
-      * @param name String that sets the attribute object's name.
-      */
-    createAttribute(name: string): Attr;
-    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
-    createCDATASection(data: string): CDATASection;
-    /**
-      * Creates a comment object with the specified data.
-      * @param data Sets the comment object's data.
-      */
-    createComment(data: string): Comment;
-    /**
-      * Creates a new document.
-      */
-    createDocumentFragment(): DocumentFragment;
-    /**
-      * Creates an instance of the element for the specified tag.
-      * @param tagName The name of an element.
-      */
-    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
-    createElement(tagName: string): HTMLElement;
-    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
-    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver: Node): XPathNSResolver;
-    /**
-      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list
-      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
-    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
-    /**
-      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
-      */
-    createRange(): Range;
-    /**
-      * Creates a text string from the specified value. 
-      * @param data String that specifies the nodeValue property of the text 
node.
-      */
-    createTextNode(data: string): Text;
-    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
-    createTouchList(...touches: Touch[]): TouchList;
-    /**
-      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
-      * @param filter A custom NodeFilter function to use.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
-    /**
-      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
-      * @param x The x-offset
-      * @param y The y-offset
-      */
-    elementFromPoint(x: number, y: number): Element;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-    /**
-      * Executes a command on the current document, current selection, or the 
given range.
-      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
-      * @param showUI Display the user interface, defaults to false.
-      * @param value Value to assign.
-      */
-    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
-    /**
-      * Displays help information for the given command identifier.
-      * @param commandId Displays help information for the given command 
identifier.
-      */
-    execCommandShowHelp(commandId: string): boolean;
-    exitFullscreen(): void;
-    exitPointerLock(): void;
-    /**
-      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
-      */
-    focus(): void;
-    /**
-      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
-      * @param elementId String that specifies the ID value. Case-insensitive.
-      */
-    getElementById(elementId: string): HTMLElement | null;
-    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
-    /**
-      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
-      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
-      */
-    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
-    /**
-      * Retrieves a collection of objects based on the specified element name.
-      * @param name Specifies the name of an element.
-      */
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(tagname: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    /**
-      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
-      */
-    getSelection(): Selection;
-    /**
-      * Gets a value indicating whether the object currently has focus.
-      */
-    hasFocus(): boolean;
-    importNode(importedNode: Node, deep: boolean): Node;
-    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
-    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
-    /**
-      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
-      * @param url Specifies a MIME type for the document.
-      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
-      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
-      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
-      */
-    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
-    /** 
-      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandEnabled(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandIndeterm(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates the current state of the 
command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandState(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandSupported(commandId: string): boolean;
-    /**
-      * Retrieves the string associated with a command.
-      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
-      */
-    queryCommandText(commandId: string): string;
-    /**
-      * Returns the current value of the document, range, or current selection 
for the given command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandValue(commandId: string): string;
-    releaseEvents(): void;
-    /**
-      * Allows updating the print settings for the page.
-      */
-    updateSettings(): void;
-    webkitCancelFullScreen(): void;
-    webkitExitFullscreen(): void;
-    /**
-      * Writes one or more HTML expressions to a document in the specified 
window. 
-      * @param content Specifies the text and HTML tags to write.
-      */
-    write(...content: string[]): void;
-    /**
-      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
-      * @param content The text and HTML tags to write.
-      */
-    writeln(...content: string[]): void;
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Document: {
-    prototype: Document;
-    new(): Document;
-}
-
-interface DocumentFragment extends Node, NodeSelector, ParentNode {
-}
-
-declare var DocumentFragment: {
-    prototype: DocumentFragment;
-    new(): DocumentFragment;
-}
-
-interface DocumentType extends Node, ChildNode {
-    readonly entities: NamedNodeMap;
-    readonly internalSubset: string | null;
-    readonly name: string;
-    readonly notations: NamedNodeMap;
-    readonly publicId: string | null;
-    readonly systemId: string | null;
-}
-
-declare var DocumentType: {
-    prototype: DocumentType;
-    new(): DocumentType;
-}
-
-interface DragEvent extends MouseEvent {
-    readonly dataTransfer: DataTransfer;
-    initDragEvent(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, dataTransferArg: DataTransfer): void;
-    msConvertURL(file: File, targetType: string, targetURL?: string): void;
-}
-
-declare var DragEvent: {
-    prototype: DragEvent;
-    new(): DragEvent;
-}
-
-interface DynamicsCompressorNode extends AudioNode {
-    readonly attack: AudioParam;
-    readonly knee: AudioParam;
-    readonly ratio: AudioParam;
-    readonly reduction: AudioParam;
-    readonly release: AudioParam;
-    readonly threshold: AudioParam;
-}
-
-declare var DynamicsCompressorNode: {
-    prototype: DynamicsCompressorNode;
-    new(): DynamicsCompressorNode;
-}
-
-interface EXT_frag_depth {
-}
-
-declare var EXT_frag_depth: {
-    prototype: EXT_frag_depth;
-    new(): EXT_frag_depth;
-}
-
-interface EXT_texture_filter_anisotropic {
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
-    prototype: EXT_texture_filter_anisotropic;
-    new(): EXT_texture_filter_anisotropic;
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-interface ElementEventMap extends GlobalEventHandlersEventMap {
-    "ariarequest": AriaRequestEvent;
-    "command": CommandEvent;
-    "gotpointercapture": PointerEvent;
-    "lostpointercapture": PointerEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSGotPointerCapture": MSPointerEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSLostPointerCapture": MSPointerEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
-    readonly classList: DOMTokenList;
-    className: string;
-    readonly clientHeight: number;
-    readonly clientLeft: number;
-    readonly clientTop: number;
-    readonly clientWidth: number;
-    id: string;
-    msContentZoomFactor: number;
-    readonly msRegionOverflow: string;
-    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
-    oncommand: (this: Element, ev: CommandEvent) => any;
-    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
-    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
-    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
-    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
-    readonly prefix: string | null;
-    readonly scrollHeight: number;
-    scrollLeft: number;
-    scrollTop: number;
-    readonly scrollWidth: number;
-    readonly tagName: string;
-    innerHTML: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    slot: string;
-    readonly shadowRoot: ShadowRoot | null;
-    getAttribute(name: string): string | null;
-    getAttributeNS(namespaceURI: string, localName: string): string;
-    getAttributeNode(name: string): Attr;
-    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(name: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    hasAttribute(name: string): boolean;
-    hasAttributeNS(namespaceURI: string, localName: string): boolean;
-    msGetRegionContent(): MSRangeCollection;
-    msGetUntransformedBounds(): ClientRect;
-    msMatchesSelector(selectors: string): boolean;
-    msReleasePointerCapture(pointerId: number): void;
-    msSetPointerCapture(pointerId: number): void;
-    msZoomTo(args: MsZoomToOptions): void;
-    releasePointerCapture(pointerId: number): void;
-    removeAttribute(name?: string): void;
-    removeAttributeNS(namespaceURI: string, localName: string): void;
-    removeAttributeNode(oldAttr: Attr): Attr;
-    requestFullscreen(): void;
-    requestPointerLock(): void;
-    setAttribute(name: string, value: string): void;
-    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
-    setAttributeNode(newAttr: Attr): Attr;
-    setAttributeNodeNS(newAttr: Attr): Attr;
-    setPointerCapture(pointerId: number): void;
-    webkitMatchesSelector(selectors: string): boolean;
-    webkitRequestFullScreen(): void;
-    webkitRequestFullscreen(): void;
-    getElementsByClassName(classNames: string): NodeListOf<Element>;
-    matches(selector: string): boolean;
-    closest(selector: string): Element | null;
-    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
-    scroll(options?: ScrollToOptions): void;
-    scroll(x: number, y: number): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollTo(x: number, y: number): void;
-    scrollBy(options?: ScrollToOptions): void;
-    scrollBy(x: number, y: number): void;
-    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
-    insertAdjacentHTML(where: string, html: string): void;
-    insertAdjacentText(where: string, text: string): void;
-    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
-    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Element: {
-    prototype: Element;
-    new(): Element;
-}
-
-interface ErrorEvent extends Event {
-    readonly colno: number;
-    readonly error: any;
-    readonly filename: string;
-    readonly lineno: number;
-    readonly message: string;
-    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
-    prototype: ErrorEvent;
-    new(): ErrorEvent;
-}
-
-interface Event {
-    readonly bubbles: boolean;
-    cancelBubble: boolean;
-    readonly cancelable: boolean;
-    readonly currentTarget: EventTarget;
-    readonly defaultPrevented: boolean;
-    readonly eventPhase: number;
-    readonly isTrusted: boolean;
-    returnValue: boolean;
-    readonly srcElement: Element | null;
-    readonly target: EventTarget;
-    readonly timeStamp: number;
-    readonly type: string;
-    readonly scoped: boolean;
-    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
-    preventDefault(): void;
-    stopImmediatePropagation(): void;
-    stopPropagation(): void;
-    deepPath(): EventTarget[];
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-declare var Event: {
-    prototype: Event;
-    new(type: string, eventInitDict?: EventInit): Event;
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-interface EventTarget {
-    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    dispatchEvent(evt: Event): boolean;
-    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var EventTarget: {
-    prototype: EventTarget;
-    new(): EventTarget;
-}
-
-interface External {
-}
-
-declare var External: {
-    prototype: External;
-    new(): External;
-}
-
-interface File extends Blob {
-    readonly lastModifiedDate: any;
-    readonly name: string;
-    readonly webkitRelativePath: string;
-}
-
-declare var File: {
-    prototype: File;
-    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
-}
-
-interface FileList {
-    readonly length: number;
-    item(index: number): File;
-    [index: number]: File;
-}
-
-declare var FileList: {
-    prototype: FileList;
-    new(): FileList;
-}
-
-interface FileReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(blob: Blob): void;
-    readAsBinaryString(blob: Blob): void;
-    readAsDataURL(blob: Blob): void;
-    readAsText(blob: Blob, encoding?: string): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var FileReader: {
-    prototype: FileReader;
-    new(): FileReader;
-}
-
-interface FocusEvent extends UIEvent {
-    readonly relatedTarget: EventTarget;
-    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
-}
-
-declare var FocusEvent: {
-    prototype: FocusEvent;
-    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
-}
-
-interface FormData {
-    append(name: any, value: any, blobName?: string): void;
-}
-
-declare var FormData: {
-    prototype: FormData;
-    new (form?: HTMLFormElement): FormData;
-}
-
-interface GainNode extends AudioNode {
-    readonly gain: AudioParam;
-}
-
-declare var GainNode: {
-    prototype: GainNode;
-    new(): GainNode;
-}
-
-interface Gamepad {
-    readonly axes: number[];
-    readonly buttons: GamepadButton[];
-    readonly connected: boolean;
-    readonly id: string;
-    readonly index: number;
-    readonly mapping: string;
-    readonly timestamp: number;
-}
-
-declare var Gamepad: {
-    prototype: Gamepad;
-    new(): Gamepad;
-}
-
-interface GamepadButton {
-    readonly pressed: boolean;
-    readonly value: number;
-}
-
-declare var GamepadButton: {
-    prototype: GamepadButton;
-    new(): GamepadButton;
-}
-
-interface GamepadEvent extends Event {
-    readonly gamepad: Gamepad;
-}
-
-declare var GamepadEvent: {
-    prototype: GamepadEvent;
-    new(): GamepadEvent;
-}
-
-interface Geolocation {
-    clearWatch(watchId: number): void;
-    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
-    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
-}
-
-declare var Geolocation: {
-    prototype: Geolocation;
-    new(): Geolocation;
-}
-
-interface HTMLAllCollection extends HTMLCollection {
-    namedItem(name: string): Element;
-}
-
-declare var HTMLAllCollection: {
-    prototype: HTMLAllCollection;
-    new(): HTMLAllCollection;
-}
-
-interface HTMLAnchorElement extends HTMLElement {
-    Methods: string;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Contains the anchor portion of the URL including the hash sign (#).
-      */
-    hash: string;
-    /**
-      * Contains the hostname and port values of the URL.
-      */
-    host: string;
-    /**
-      * Contains the hostname of a URL.
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    readonly mimeType: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    readonly nameProp: string;
-    /**
-      * Contains the pathname of the URL.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Contains the protocol of the URL.
-      */
-    protocol: string;
-    readonly protocolLong: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    type: string;
-    urn: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAnchorElement: {
-    prototype: HTMLAnchorElement;
-    new(): HTMLAnchorElement;
-}
-
-interface HTMLAppletElement extends HTMLElement {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
-      */
-    declare: boolean;
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    object: string | null;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    vspace: number;
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAppletElement: {
-    prototype: HTMLAppletElement;
-    new(): HTMLAppletElement;
-}
-
-interface HTMLAreaElement extends HTMLElement {
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
-      */
-    hash: string;
-    /**
-      * Sets or retrieves the hostname and port number of the location or URL.
-      */
-    host: string;
-    /**
-      * Sets or retrieves the host name part of the location or URL. 
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or gets whether clicks in this region cause action.
-      */
-    noHref: boolean;
-    /**
-      * Sets or retrieves the file name or path specified by the object.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Sets or retrieves the protocol portion of a URL.
-      */
-    protocol: string;
-    rel: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAreaElement: {
-    prototype: HTMLAreaElement;
-    new(): HTMLAreaElement;
-}
-
-interface HTMLAreasCollection extends HTMLCollection {
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Removes an element from the collection.
-      */
-    remove(index?: number): void;
-}
-
-declare var HTMLAreasCollection: {
-    prototype: HTMLAreasCollection;
-    new(): HTMLAreasCollection;
-}
-
-interface HTMLAudioElement extends HTMLMediaElement {
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAudioElement: {
-    prototype: HTMLAudioElement;
-    new(): HTMLAudioElement;
-}
-
-interface HTMLBRElement extends HTMLElement {
-    /**
-      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
-      */
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBRElement: {
-    prototype: HTMLBRElement;
-    new(): HTMLBRElement;
-}
-
-interface HTMLBaseElement extends HTMLElement {
-    /**
-      * Gets or sets the baseline URL on which relative links are based.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseElement: {
-    prototype: HTMLBaseElement;
-    new(): HTMLBaseElement;
-}
-
-interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    /**
-      * Sets or retrieves the font size of the object.
-      */
-    size: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseFontElement: {
-    prototype: HTMLBaseFontElement;
-    new(): HTMLBaseFontElement;
-}
-
-interface HTMLBodyElementEventMap extends HTMLElementEventMap {
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "popstate": PopStateEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLBodyElement extends HTMLElement {
-    aLink: any;
-    background: string;
-    bgColor: any;
-    bgProperties: string;
-    link: any;
-    noWrap: boolean;
-    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
-    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLBodyElement, ev: Event) => any;
-    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLBodyElement, ev: Event) => any;
-    ononline: (this: HTMLBodyElement, ev: Event) => any;
-    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
-    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
-    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLBodyElement, ev: Event) => any;
-    text: any;
-    vLink: any;
-    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBodyElement: {
-    prototype: HTMLBodyElement;
-    new(): HTMLBodyElement;
-}
-
-interface HTMLButtonElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /** 
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    status: any;
-    /**
-      * Gets the classification and default behavior of the button.
-      */
-    type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /** 
-      * Sets or retrieves the default or selected value of the control.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLButtonElement: {
-    prototype: HTMLButtonElement;
-    new(): HTMLButtonElement;
-}
-
-interface HTMLCanvasElement extends HTMLElement {
-    /**
-      * Gets or sets the height of a canvas element on a document.
-      */
-    height: number;
-    /**
-      * Gets or sets the width of a canvas element on a document.
-      */
-    width: number;
-    /**
-      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
-      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
-      */
-    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
-    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
-    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
-    /**
-      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
-      */
-    msToBlob(): Blob;
-    /**
-      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
-      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
-      */
-    toDataURL(type?: string, ...args: any[]): string;
-    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLCanvasElement: {
-    prototype: HTMLCanvasElement;
-    new(): HTMLCanvasElement;
-}
-
-interface HTMLCollection {
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Retrieves an object from various collections.
-      */
-    item(index: number): Element;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      */
-    namedItem(name: string): Element;
-    [index: number]: Element;
-}
-
-declare var HTMLCollection: {
-    prototype: HTMLCollection;
-    new(): HTMLCollection;
-}
-
-interface HTMLDListElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDListElement: {
-    prototype: HTMLDListElement;
-    new(): HTMLDListElement;
-}
-
-interface HTMLDataListElement extends HTMLElement {
-    options: HTMLCollectionOf<HTMLOptionElement>;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDataListElement: {
-    prototype: HTMLDataListElement;
-    new(): HTMLDataListElement;
-}
-
-interface HTMLDirectoryElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDirectoryElement: {
-    prototype: HTMLDirectoryElement;
-    new(): HTMLDirectoryElement;
-}
-
-interface HTMLDivElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDivElement: {
-    prototype: HTMLDivElement;
-    new(): HTMLDivElement;
-}
-
-interface HTMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDocument: {
-    prototype: HTMLDocument;
-    new(): HTMLDocument;
-}
-
-interface HTMLElementEventMap extends ElementEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforecopy": ClipboardEvent;
-    "beforecut": ClipboardEvent;
-    "beforedeactivate": UIEvent;
-    "beforepaste": ClipboardEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "copy": ClipboardEvent;
-    "cuechange": Event;
-    "cut": ClipboardEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "paste": ClipboardEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectstart": Event;
-    "stalled": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface HTMLElement extends Element {
-    accessKey: string;
-    readonly children: HTMLCollection;
-    contentEditable: string;
-    readonly dataset: DOMStringMap;
-    dir: string;
-    draggable: boolean;
-    hidden: boolean;
-    hideFocus: boolean;
-    innerHTML: string;
-    innerText: string;
-    readonly isContentEditable: boolean;
-    lang: string;
-    readonly offsetHeight: number;
-    readonly offsetLeft: number;
-    readonly offsetParent: Element;
-    readonly offsetTop: number;
-    readonly offsetWidth: number;
-    onabort: (this: HTMLElement, ev: UIEvent) => any;
-    onactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onblur: (this: HTMLElement, ev: FocusEvent) => any;
-    oncanplay: (this: HTMLElement, ev: Event) => any;
-    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
-    onchange: (this: HTMLElement, ev: Event) => any;
-    onclick: (this: HTMLElement, ev: MouseEvent) => any;
-    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
-    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    oncuechange: (this: HTMLElement, ev: Event) => any;
-    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
-    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    ondrag: (this: HTMLElement, ev: DragEvent) => any;
-    ondragend: (this: HTMLElement, ev: DragEvent) => any;
-    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
-    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
-    ondragover: (this: HTMLElement, ev: DragEvent) => any;
-    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
-    ondrop: (this: HTMLElement, ev: DragEvent) => any;
-    ondurationchange: (this: HTMLElement, ev: Event) => any;
-    onemptied: (this: HTMLElement, ev: Event) => any;
-    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
-    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
-    oninput: (this: HTMLElement, ev: Event) => any;
-    oninvalid: (this: HTMLElement, ev: Event) => any;
-    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onload: (this: HTMLElement, ev: Event) => any;
-    onloadeddata: (this: HTMLElement, ev: Event) => any;
-    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
-    onloadstart: (this: HTMLElement, ev: Event) => any;
-    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
-    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
-    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
-    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onpause: (this: HTMLElement, ev: Event) => any;
-    onplay: (this: HTMLElement, ev: Event) => any;
-    onplaying: (this: HTMLElement, ev: Event) => any;
-    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
-    onratechange: (this: HTMLElement, ev: Event) => any;
-    onreset: (this: HTMLElement, ev: Event) => any;
-    onscroll: (this: HTMLElement, ev: UIEvent) => any;
-    onseeked: (this: HTMLElement, ev: Event) => any;
-    onseeking: (this: HTMLElement, ev: Event) => any;
-    onselect: (this: HTMLElement, ev: UIEvent) => any;
-    onselectstart: (this: HTMLElement, ev: Event) => any;
-    onstalled: (this: HTMLElement, ev: Event) => any;
-    onsubmit: (this: HTMLElement, ev: Event) => any;
-    onsuspend: (this: HTMLElement, ev: Event) => any;
-    ontimeupdate: (this: HTMLElement, ev: Event) => any;
-    onvolumechange: (this: HTMLElement, ev: Event) => any;
-    onwaiting: (this: HTMLElement, ev: Event) => any;
-    outerHTML: string;
-    outerText: string;
-    spellcheck: boolean;
-    readonly style: CSSStyleDeclaration;
-    tabIndex: number;
-    title: string;
-    blur(): void;
-    click(): void;
-    dragDrop(): boolean;
-    focus(): void;
-    msGetInputContext(): MSInputMethodContext;
-    setActive(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLElement: {
-    prototype: HTMLElement;
-    new(): HTMLElement;
-}
-
-interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hidden: any;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the palette used for the embedded document.
-      */
-    readonly palette: string;
-    /**
-      * Retrieves the URL of the plug-in used to view an embedded document.
-      */
-    readonly pluginspage: string;
-    readonly readyState: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the height and width units of the embed object.
-      */
-    units: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLEmbedElement: {
-    prototype: HTMLEmbedElement;
-    new(): HTMLEmbedElement;
-}
-
-interface HTMLFieldSetElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFieldSetElement: {
-    prototype: HTMLFieldSetElement;
-    new(): HTMLFieldSetElement;
-}
-
-interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFontElement: {
-    prototype: HTMLFontElement;
-    new(): HTMLFontElement;
-}
-
-interface HTMLFormElement extends HTMLElement {
-    /**
-      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
-      */
-    acceptCharset: string;
-    /**
-      * Sets or retrieves the URL to which the form content is sent for 
processing.
-      */
-    action: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Retrieves a collection, in source order, of all controls in a given 
form.
-      */
-    readonly elements: HTMLCollection;
-    /**
-      * Sets or retrieves the MIME encoding for the form.
-      */
-    encoding: string;
-    /**
-      * Sets or retrieves the encoding type for the form.
-      */
-    enctype: string;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Sets or retrieves how to send the form data to the server.
-      */
-    method: string;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Designates a form that is not validated when submitted.
-      */
-    noValidate: boolean;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      */
-    namedItem(name: string): any;
-    /**
-      * Fires when the user resets a form.
-      */
-    reset(): void;
-    /**
-      * Fires when a FORM is about to be submitted.
-      */
-    submit(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLFormElement: {
-    prototype: HTMLFormElement;
-    new(): HTMLFormElement;
-}
-
-interface HTMLFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string | number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLFrameElement, ev: Event) => any;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string | number;
-    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameElement: {
-    prototype: HTMLFrameElement;
-    new(): HTMLFrameElement;
-}
-
-interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLFrameSetElement extends HTMLElement {
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Sets or retrieves the frame widths of the object.
-      */
-    cols: string;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    name: string;
-    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
-    /**
-      * Fires when the object loses the input focus.
-      */
-    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus.
-      */
-    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLFrameSetElement, ev: Event) => any;
-    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
-    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
-    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
-    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
-    /**
-      * Sets or retrieves the frame heights of the object.
-      */
-    rows: string;
-    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameSetElement: {
-    prototype: HTMLFrameSetElement;
-    new(): HTMLFrameSetElement;
-}
-
-interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
-      */
-    noShade: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHRElement: {
-    prototype: HTMLHRElement;
-    new(): HTMLHRElement;
-}
-
-interface HTMLHeadElement extends HTMLElement {
-    profile: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadElement: {
-    prototype: HTMLHeadElement;
-    new(): HTMLHeadElement;
-}
-
-interface HTMLHeadingElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadingElement: {
-    prototype: HTMLHeadingElement;
-    new(): HTMLHeadingElement;
-}
-
-interface HTMLHtmlElement extends HTMLElement {
-    /**
-      * Sets or retrieves the DTD version that governs the current document.
-      */
-    version: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHtmlElement: {
-    prototype: HTMLHtmlElement;
-    new(): HTMLHtmlElement;
-}
-
-interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    allowFullscreen: boolean;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the horizontal margin for the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLIFrameElement, ev: Event) => any;
-    readonly sandbox: DOMSettableTokenList;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLIFrameElement: {
-    prototype: HTMLIFrameElement;
-    new(): HTMLIFrameElement;
-}
-
-interface HTMLImageElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    crossOrigin: string;
-    readonly currentSrc: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: number;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves whether the image is a server-side image map.
-      */
-    isMap: boolean;
-    /**
-      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
-      */
-    longDesc: string;
-    lowsrc: string;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * The original height of the image resource before sizing.
-      */
-    readonly naturalHeight: number;
-    /**
-      * The original width of the image resource before sizing.
-      */
-    readonly naturalWidth: number;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    readonly x: number;
-    readonly y: number;
-    msGetAsCastingSource(): any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLImageElement: {
-    prototype: HTMLImageElement;
-    new(): HTMLImageElement;
-    create(): HTMLImageElement;
-}
-
-interface HTMLInputElement extends HTMLElement {
-    /**
-      * Sets or retrieves a comma-separated list of content types.
-      */
-    accept: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    checked: boolean;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    defaultChecked: boolean;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Returns a FileList object on a file type input object.
-      */
-    readonly files: FileList | null;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    indeterminate: boolean;
-    /**
-      * Specifies the ID of a pre-defined datalist of options for an input 
element.
-      */
-    readonly list: HTMLElement;
-    /**
-      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
-      */
-    max: string;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
-      */
-    min: string;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a string containing a regular expression that the user's 
input must match.
-      */
-    pattern: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    selectionDirection: string;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    size: number;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    status: boolean;
-    /**
-      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
-      */
-    step: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns the value of the data at the cursor's current position.
-      */
-    value: string;
-    valueAsDate: Date;
-    /**
-      * Returns the input field value as a number.
-      */
-    valueAsNumber: number;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    webkitdirectory: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Makes the selection equal to the current object.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start?: number, end?: number, direction?: string): void;
-    /**
-      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
-      * @param n Value to decrement the value by.
-      */
-    stepDown(n?: number): void;
-    /**
-      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
-      * @param n Value to increment the value by.
-      */
-    stepUp(n?: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLInputElement: {
-    prototype: HTMLInputElement;
-    new(): HTMLInputElement;
-}
-
-interface HTMLLIElement extends HTMLElement {
-    type: string;
-    /**
-      * Sets or retrieves the value of a list item.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLIElement: {
-    prototype: HTMLLIElement;
-    new(): HTMLLIElement;
-}
-
-interface HTMLLabelElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the object to which the given label object is 
assigned.
-      */
-    htmlFor: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLabelElement: {
-    prototype: HTMLLabelElement;
-    new(): HTMLLabelElement;
-}
-
-interface HTMLLegendElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    align: string;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLegendElement: {
-    prototype: HTMLLegendElement;
-    new(): HTMLLegendElement;
-}
-
-interface HTMLLinkElement extends HTMLElement, LinkStyle {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    disabled: boolean;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    import?: Document;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLinkElement: {
-    prototype: HTMLLinkElement;
-    new(): HTMLLinkElement;
-}
-
-interface HTMLMapElement extends HTMLElement {
-    /**
-      * Retrieves a collection of the area objects defined for the given map 
object.
-      */
-    readonly areas: HTMLAreasCollection;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMapElement: {
-    prototype: HTMLMapElement;
-    new(): HTMLMapElement;
-}
-
-interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
-    "bounce": Event;
-    "finish": Event;
-    "start": Event;
-}
-
-interface HTMLMarqueeElement extends HTMLElement {
-    behavior: string;
-    bgColor: any;
-    direction: string;
-    height: string;
-    hspace: number;
-    loop: number;
-    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
-    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
-    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
-    scrollAmount: number;
-    scrollDelay: number;
-    trueSpeed: boolean;
-    vspace: number;
-    width: string;
-    start(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMarqueeElement: {
-    prototype: HTMLMarqueeElement;
-    new(): HTMLMarqueeElement;
-}
-
-interface HTMLMediaElementEventMap extends HTMLElementEventMap {
-    "encrypted": MediaEncryptedEvent;
-    "msneedkey": MSMediaKeyNeededEvent;
-}
-
-interface HTMLMediaElement extends HTMLElement {
-    /**
-      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
-      */
-    readonly audioTracks: AudioTrackList;
-    /**
-      * Gets or sets a value that indicates whether to start playing the media 
automatically.
-      */
-    autoplay: boolean;
-    /**
-      * Gets a collection of buffered time ranges.
-      */
-    readonly buffered: TimeRanges;
-    /**
-      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
-      */
-    controls: boolean;
-    crossOrigin: string;
-    /**
-      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
-      */
-    readonly currentSrc: string;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    currentTime: number;
-    defaultMuted: boolean;
-    /**
-      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
-      */
-    defaultPlaybackRate: number;
-    /**
-      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
-      */
-    readonly duration: number;
-    /**
-      * Gets information about whether the playback has ended or not.
-      */
-    readonly ended: boolean;
-    /**
-      * Returns an object representing the current error state of the audio or 
video element.
-      */
-    readonly error: MediaError;
-    /**
-      * Gets or sets a flag to specify whether playback should restart after 
it completes.
-      */
-    loop: boolean;
-    readonly mediaKeys: MediaKeys | null;
-    /**
-      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
-      */
-    msAudioCategory: string;
-    /**
-      * Specifies the output device id that the audio will be sent to.
-      */
-    msAudioDeviceType: string;
-    readonly msGraphicsTrustStatus: MSGraphicsTrust;
-    /**
-      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
-      */
-    readonly msKeys: MSMediaKeys;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Specifies whether or not to enable low-latency playback on the media 
element.
-      */
-    msRealTime: boolean;
-    /**
-      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
-      */
-    muted: boolean;
-    /**
-      * Gets the current network activity for the element.
-      */
-    readonly networkState: number;
-    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
-    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
-    /**
-      * Gets a flag that specifies whether playback is paused.
-      */
-    readonly paused: boolean;
-    /**
-      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
-      */
-    playbackRate: number;
-    /**
-      * Gets TimeRanges for the current media resource that has been played.
-      */
-    readonly played: TimeRanges;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    preload: string;
-    readyState: number;
-    /**
-      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
-      */
-    readonly seekable: TimeRanges;
-    /**
-      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
-      */
-    readonly seeking: boolean;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcObject: MediaStream | null;
-    readonly textTracks: TextTrackList;
-    readonly videoTracks: VideoTrackList;
-    /**
-      * Gets or sets the volume level for audio portions of the media element.
-      */
-    volume: number;
-    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
-    /**
-      * Returns a string that specifies whether the client can play a given 
media resource type.
-      */
-    canPlayType(type: string): string;
-    /**
-      * Resets the audio or video object and loads a new media resource.
-      */
-    load(): void;
-    /**
-      * Clears all effects from the media pipeline.
-      */
-    msClearEffects(): void;
-    msGetAsCastingSource(): any;
-    /**
-      * Inserts the specified audio effect into media pipeline.
-      */
-    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
-    /**
-      * Specifies the media protection manager for a given media pipeline.
-      */
-    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
-    /**
-      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
-      */
-    pause(): void;
-    /**
-      * Loads and starts playback of a media resource.
-      */
-    play(): void;
-    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMediaElement: {
-    prototype: HTMLMediaElement;
-    new(): HTMLMediaElement;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-}
-
-interface HTMLMenuElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMenuElement: {
-    prototype: HTMLMenuElement;
-    new(): HTMLMenuElement;
-}
-
-interface HTMLMetaElement extends HTMLElement {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets or sets meta-information to associate with httpEquiv or name.
-      */
-    content: string;
-    /**
-      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
-      */
-    httpEquiv: string;
-    /**
-      * Sets or retrieves the value specified in the content attribute of the 
meta object.
-      */
-    name: string;
-    /**
-      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
-      */
-    scheme: string;
-    /**
-      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
-      */
-    url: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMetaElement: {
-    prototype: HTMLMetaElement;
-    new(): HTMLMetaElement;
-}
-
-interface HTMLMeterElement extends HTMLElement {
-    high: number;
-    low: number;
-    max: number;
-    min: number;
-    optimum: number;
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMeterElement: {
-    prototype: HTMLMeterElement;
-    new(): HTMLMeterElement;
-}
-
-interface HTMLModElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    /**
-      * Sets or retrieves the date and time of a modification to the object.
-      */
-    dateTime: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLModElement: {
-    prototype: HTMLModElement;
-    new(): HTMLModElement;
-}
-
-interface HTMLOListElement extends HTMLElement {
-    compact: boolean;
-    /**
-      * The starting number.
-      */
-    start: number;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOListElement: {
-    prototype: HTMLOListElement;
-    new(): HTMLOListElement;
-}
-
-interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    /**
-      * Sets or retrieves the URL of the file containing the compiled Java 
class.
-      */
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    declare: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the contained object.
-      */
-    readonly object: any;
-    readonly readyState: number;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLObjectElement: {
-    prototype: HTMLObjectElement;
-    new(): HTMLObjectElement;
-}
-
-interface HTMLOptGroupElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    readonly text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptGroupElement: {
-    prototype: HTMLOptGroupElement;
-    new(): HTMLOptGroupElement;
-}
-
-interface HTMLOptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptionElement: {
-    prototype: HTMLOptionElement;
-    new(): HTMLOptionElement;
-    create(): HTMLOptionElement;
-}
-
-interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
-    length: number;
-    selectedIndex: number;
-    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
-    remove(index: number): void;
-}
-
-declare var HTMLOptionsCollection: {
-    prototype: HTMLOptionsCollection;
-    new(): HTMLOptionsCollection;
-}
-
-interface HTMLParagraphElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParagraphElement: {
-    prototype: HTMLParagraphElement;
-    new(): HTMLParagraphElement;
-}
-
-interface HTMLParamElement extends HTMLElement {
-    /**
-      * Sets or retrieves the name of an input parameter for an element.
-      */
-    name: string;
-    /**
-      * Sets or retrieves the content type of the resource designated by the 
value attribute.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the value of an input parameter for an element.
-      */
-    value: string;
-    /**
-      * Sets or retrieves the data type of the value attribute.
-      */
-    valueType: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParamElement: {
-    prototype: HTMLParamElement;
-    new(): HTMLParamElement;
-}
-
-interface HTMLPictureElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPictureElement: {
-    prototype: HTMLPictureElement;
-    new(): HTMLPictureElement;
-}
-
-interface HTMLPreElement extends HTMLElement {
-    /**
-      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPreElement: {
-    prototype: HTMLPreElement;
-    new(): HTMLPreElement;
-}
-
-interface HTMLProgressElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Defines the maximum, or "done" value for a progress element.
-      */
-    max: number;
-    /**
-      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
-      */
-    readonly position: number;
-    /**
-      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLProgressElement: {
-    prototype: HTMLProgressElement;
-    new(): HTMLProgressElement;
-}
-
-interface HTMLQuoteElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLQuoteElement: {
-    prototype: HTMLQuoteElement;
-    new(): HTMLQuoteElement;
-}
-
-interface HTMLScriptElement extends HTMLElement {
-    async: boolean;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the status of the script.
-      */
-    defer: boolean;
-    /**
-      * Sets or retrieves the event for which the script is written. 
-      */
-    event: string;
-    /** 
-      * Sets or retrieves the object that is bound to the event script.
-      */
-    htmlFor: string;
-    /**
-      * Retrieves the URL to an external file that contains the source code or 
data.
-      */
-    src: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    /**
-      * Sets or retrieves the MIME type for the associated scripting engine.
-      */
-    type: string;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLScriptElement: {
-    prototype: HTMLScriptElement;
-    new(): HTMLScriptElement;
-}
-
-interface HTMLSelectElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    length: number;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    readonly options: HTMLOptionsCollection;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the index of the selected option in a select object.
-      */
-    selectedIndex: number;
-    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
-    /**
-      * Sets or retrieves the number of rows in the list box. 
-      */
-    size: number;
-    /**
-      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
-      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
-      */
-    namedItem(name: string): any;
-    /**
-      * Removes an element from the collection.
-      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
-      */
-    remove(index?: number): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLSelectElement: {
-    prototype: HTMLSelectElement;
-    new(): HTMLSelectElement;
-}
-
-interface HTMLSourceElement extends HTMLElement {
-    /**
-      * Gets or sets the intended media type of the media source.
-     */
-    media: string;
-    msKeySystem: string;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-     * Gets or sets the MIME type of a media resource.
-     */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSourceElement: {
-    prototype: HTMLSourceElement;
-    new(): HTMLSourceElement;
-}
-
-interface HTMLSpanElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSpanElement: {
-    prototype: HTMLSpanElement;
-    new(): HTMLSpanElement;
-}
-
-interface HTMLStyleElement extends HTMLElement, LinkStyle {
-    disabled: boolean;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Retrieves the CSS language in which the style sheet is written.
-      */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLStyleElement: {
-    prototype: HTMLStyleElement;
-    new(): HTMLStyleElement;
-}
-
-interface HTMLTableCaptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the alignment of the caption or legend.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
-      */
-    vAlign: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCaptionElement: {
-    prototype: HTMLTableCaptionElement;
-    new(): HTMLTableCaptionElement;
-}
-
-interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves abbreviated text for the object.
-      */
-    abbr: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
-      */
-    axis: string;
-    bgColor: any;
-    /**
-      * Retrieves the position of the object in the cells collection of a row.
-      */
-    readonly cellIndex: number;
-    /**
-      * Sets or retrieves the number columns in the table that the object 
should span.
-      */
-    colSpan: number;
-    /**
-      * Sets or retrieves a list of header cells that provide information for 
the object.
-      */
-    headers: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    /**
-      * Sets or retrieves how many rows in a table the cell should span.
-      */
-    rowSpan: number;
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCellElement: {
-    prototype: HTMLTableCellElement;
-    new(): HTMLTableCellElement;
-}
-
-interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves the alignment of the object relative to the display 
or table.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of columns in the group.
-      */
-    span: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableColElement: {
-    prototype: HTMLTableColElement;
-    new(): HTMLTableColElement;
-}
-
-interface HTMLTableDataCellElement extends HTMLTableCellElement {
-}
-
-declare var HTMLTableDataCellElement: {
-    prototype: HTMLTableDataCellElement;
-    new(): HTMLTableDataCellElement;
-}
-
-interface HTMLTableElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object. 
-      */
-    borderColor: any;
-    /**
-      * Retrieves the caption object of a table.
-      */
-    caption: HTMLTableCaptionElement;
-    /**
-      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
-      */
-    cellPadding: string;
-    /**
-      * Sets or retrieves the amount of space between cells in a table.
-      */
-    cellSpacing: string;
-    /**
-      * Sets or retrieves the number of columns in the table.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the way the border frame around the table is 
displayed.
-      */
-    frame: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Sets or retrieves which dividing lines (inner borders) are displayed.
-      */
-    rules: string;
-    /**
-      * Sets or retrieves a description and/or structure of the object.
-      */
-    summary: string;
-    /**
-      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
-      */
-    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
-    /**
-      * Retrieves the tFoot object of the table.
-      */
-    tFoot: HTMLTableSectionElement;
-    /**
-      * Retrieves the tHead object of the table.
-      */
-    tHead: HTMLTableSectionElement;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Creates an empty caption element in the table.
-      */
-    createCaption(): HTMLTableCaptionElement;
-    /**
-      * Creates an empty tBody element in the table.
-      */
-    createTBody(): HTMLTableSectionElement;
-    /**
-      * Creates an empty tFoot element in the table.
-      */
-    createTFoot(): HTMLTableSectionElement;
-    /**
-      * Returns the tHead element object if successful, or null otherwise.
-      */
-    createTHead(): HTMLTableSectionElement;
-    /**
-      * Deletes the caption element and its contents from the table.
-      */
-    deleteCaption(): void;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Deletes the tFoot element and its contents from the table.
-      */
-    deleteTFoot(): void;
-    /**
-      * Deletes the tHead element and its contents from the table.
-      */
-    deleteTHead(): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableElement: {
-    prototype: HTMLTableElement;
-    new(): HTMLTableElement;
-}
-
-interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-}
-
-declare var HTMLTableHeaderCellElement: {
-    prototype: HTMLTableHeaderCellElement;
-    new(): HTMLTableHeaderCellElement;
-}
-
-interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Retrieves a collection of all cells in the table row.
-      */
-    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Retrieves the position of the object in the rows collection for the 
table.
-      */
-    readonly rowIndex: number;
-    /**
-      * Retrieves the position of the object in the collection.
-      */
-    readonly sectionRowIndex: number;
-    /**
-      * Removes the specified cell from the table row, as well as from the 
cells collection.
-      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
-      */
-    deleteCell(index?: number): void;
-    /**
-      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
-      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
-      */
-    insertCell(index?: number): HTMLTableDataCellElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableRowElement: {
-    prototype: HTMLTableRowElement;
-    new(): HTMLTableRowElement;
-}
-
-interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableSectionElement: {
-    prototype: HTMLTableSectionElement;
-    new(): HTMLTableSectionElement;
-}
-
-interface HTMLTemplateElement extends HTMLElement {
-    readonly content: DocumentFragment;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTemplateElement: {
-    prototype: HTMLTemplateElement;
-    new(): HTMLTemplateElement;
-}
-
-interface HTMLTextAreaElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    /**
-      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
-      */
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: number;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    /**
-      * Sets or retrieves the value indicating whether the control is selected.
-      */
-    status: any;
-    /**
-      * Retrieves the type of control.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Retrieves or sets the text in the entry field of the textArea element.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Sets or retrieves how to handle wordwrapping in the object.
-      */
-    wrap: string;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Highlights the input area of a form element.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start: number, end: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTextAreaElement: {
-    prototype: HTMLTextAreaElement;
-    new(): HTMLTextAreaElement;
-}
-
-interface HTMLTitleElement extends HTMLElement {
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTitleElement: {
-    prototype: HTMLTitleElement;
-    new(): HTMLTitleElement;
-}
-
-interface HTMLTrackElement extends HTMLElement {
-    default: boolean;
-    kind: string;
-    label: string;
-    readonly readyState: number;
-    src: string;
-    srclang: string;
-    readonly track: TextTrack;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTrackElement: {
-    prototype: HTMLTrackElement;
-    new(): HTMLTrackElement;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-}
-
-interface HTMLUListElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUListElement: {
-    prototype: HTMLUListElement;
-    new(): HTMLUListElement;
-}
-
-interface HTMLUnknownElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUnknownElement: {
-    prototype: HTMLUnknownElement;
-    new(): HTMLUnknownElement;
-}
-
-interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
-    "MSVideoFormatChanged": Event;
-    "MSVideoFrameStepCompleted": Event;
-    "MSVideoOptimalLayoutChanged": Event;
-}
-
-interface HTMLVideoElement extends HTMLMediaElement {
-    /**
-      * Gets or sets the height of the video element.
-      */
-    height: number;
-    msHorizontalMirror: boolean;
-    readonly msIsLayoutOptimalForPlayback: boolean;
-    readonly msIsStereo3D: boolean;
-    msStereo3DPackingMode: string;
-    msStereo3DRenderMode: string;
-    msZoom: boolean;
-    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
-    /**
-      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
-      */
-    poster: string;
-    /**
-      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoHeight: number;
-    /**
-      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoWidth: number;
-    readonly webkitDisplayingFullscreen: boolean;
-    readonly webkitSupportsFullscreen: boolean;
-    /**
-      * Gets or sets the width of the video element.
-      */
-    width: number;
-    getVideoPlaybackQuality(): VideoPlaybackQuality;
-    msFrameStep(forward: boolean): void;
-    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
-    webkitEnterFullScreen(): void;
-    webkitEnterFullscreen(): void;
-    webkitExitFullScreen(): void;
-    webkitExitFullscreen(): void;
-    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLVideoElement: {
-    prototype: HTMLVideoElement;
-    new(): HTMLVideoElement;
-}
-
-interface HashChangeEvent extends Event {
-    readonly newURL: string | null;
-    readonly oldURL: string | null;
-}
-
-declare var HashChangeEvent: {
-    prototype: HashChangeEvent;
-    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
-}
-
-interface History {
-    readonly length: number;
-    readonly state: any;
-    scrollRestoration: ScrollRestoration;
-    back(): void;
-    forward(): void;
-    go(delta?: number): void;
-    pushState(data: any, title: string, url?: string | null): void;
-    replaceState(data: any, title: string, url?: string | null): void;
-}
-
-declare var History: {
-    prototype: History;
-    new(): History;
-}
-
-interface IDBCursor {
-    readonly direction: string;
-    key: IDBKeyRange | IDBValidKey;
-    readonly primaryKey: any;
-    source: IDBObjectStore | IDBIndex;
-    advance(count: number): void;
-    continue(key?: IDBKeyRange | IDBValidKey): void;
-    delete(): IDBRequest;
-    update(value: any): IDBRequest;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-declare var IDBCursor: {
-    prototype: IDBCursor;
-    new(): IDBCursor;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-interface IDBCursorWithValue extends IDBCursor {
-    readonly value: any;
-}
-
-declare var IDBCursorWithValue: {
-    prototype: IDBCursorWithValue;
-    new(): IDBCursorWithValue;
-}
-
-interface IDBDatabaseEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBDatabase extends EventTarget {
-    readonly name: string;
-    readonly objectStoreNames: DOMStringList;
-    onabort: (this: IDBDatabase, ev: Event) => any;
-    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
-    version: number;
-    onversionchange: (ev: IDBVersionChangeEvent) => any;
-    close(): void;
-    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
-    deleteObjectStore(name: string): void;
-    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
-    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
-    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBDatabase: {
-    prototype: IDBDatabase;
-    new(): IDBDatabase;
-}
-
-interface IDBFactory {
-    cmp(first: any, second: any): number;
-    deleteDatabase(name: string): IDBOpenDBRequest;
-    open(name: string, version?: number): IDBOpenDBRequest;
-}
-
-declare var IDBFactory: {
-    prototype: IDBFactory;
-    new(): IDBFactory;
-}
-
-interface IDBIndex {
-    keyPath: string | string[];
-    readonly name: string;
-    readonly objectStore: IDBObjectStore;
-    readonly unique: boolean;
-    multiEntry: boolean;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-}
-
-declare var IDBIndex: {
-    prototype: IDBIndex;
-    new(): IDBIndex;
-}
-
-interface IDBKeyRange {
-    readonly lower: any;
-    readonly lowerOpen: boolean;
-    readonly upper: any;
-    readonly upperOpen: boolean;
-}
-
-declare var IDBKeyRange: {
-    prototype: IDBKeyRange;
-    new(): IDBKeyRange;
-    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
-    lowerBound(lower: any, open?: boolean): IDBKeyRange;
-    only(value: any): IDBKeyRange;
-    upperBound(upper: any, open?: boolean): IDBKeyRange;
-}
-
-interface IDBObjectStore {
-    readonly indexNames: DOMStringList;
-    keyPath: string | string[];
-    readonly name: string;
-    readonly transaction: IDBTransaction;
-    autoIncrement: boolean;
-    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    clear(): IDBRequest;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
-    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    deleteIndex(indexName: string): void;
-    get(key: any): IDBRequest;
-    index(name: string): IDBIndex;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-}
-
-declare var IDBObjectStore: {
-    prototype: IDBObjectStore;
-    new(): IDBObjectStore;
-}
-
-interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
-    "blocked": Event;
-    "upgradeneeded": IDBVersionChangeEvent;
-}
-
-interface IDBOpenDBRequest extends IDBRequest {
-    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
-    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
-    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBOpenDBRequest: {
-    prototype: IDBOpenDBRequest;
-    new(): IDBOpenDBRequest;
-}
-
-interface IDBRequestEventMap {
-    "error": ErrorEvent;
-    "success": Event;
-}
-
-interface IDBRequest extends EventTarget {
-    readonly error: DOMError;
-    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
-    onsuccess: (this: IDBRequest, ev: Event) => any;
-    readonly readyState: string;
-    readonly result: any;
-    source: IDBObjectStore | IDBIndex | IDBCursor;
-    readonly transaction: IDBTransaction;
-    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBRequest: {
-    prototype: IDBRequest;
-    new(): IDBRequest;
-}
-
-interface IDBTransactionEventMap {
-    "abort": Event;
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBTransaction extends EventTarget {
-    readonly db: IDBDatabase;
-    readonly error: DOMError;
-    readonly mode: string;
-    onabort: (this: IDBTransaction, ev: Event) => any;
-    oncomplete: (this: IDBTransaction, ev: Event) => any;
-    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
-    abort(): void;
-    objectStore(name: string): IDBObjectStore;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBTransaction: {
-    prototype: IDBTransaction;
-    new(): IDBTransaction;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-}
-
-interface IDBVersionChangeEvent extends Event {
-    readonly newVersion: number | null;
-    readonly oldVersion: number;
-}
-
-declare var IDBVersionChangeEvent: {
-    prototype: IDBVersionChangeEvent;
-    new(): IDBVersionChangeEvent;
-}
-
-interface ImageData {
-    data: Uint8ClampedArray;
-    readonly height: number;
-    readonly width: number;
-}
-
-declare var ImageData: {
-    prototype: ImageData;
-    new(width: number, height: number): ImageData;
-    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
-}
-
-interface KeyboardEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly char: string | null;
-    readonly charCode: number;
-    readonly ctrlKey: boolean;
-    readonly key: string;
-    readonly keyCode: number;
-    readonly locale: string;
-    readonly location: number;
-    readonly metaKey: boolean;
-    readonly repeat: boolean;
-    readonly shiftKey: boolean;
-    readonly which: number;
-    readonly code: string;
-    getModifierState(keyArg: string): boolean;
-    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-declare var KeyboardEvent: {
-    prototype: KeyboardEvent;
-    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-interface ListeningStateChangedEvent extends Event {
-    readonly label: string;
-    readonly state: string;
-}
-
-declare var ListeningStateChangedEvent: {
-    prototype: ListeningStateChangedEvent;
-    new(): ListeningStateChangedEvent;
-}
-
-interface Location {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    assign(url: string): void;
-    reload(forcedReload?: boolean): void;
-    replace(url: string): void;
-    toString(): string;
-}
-
-declare var Location: {
-    prototype: Location;
-    new(): Location;
-}
-
-interface LongRunningScriptDetectedEvent extends Event {
-    readonly executionTime: number;
-    stopPageScriptExecution: boolean;
-}
-
-declare var LongRunningScriptDetectedEvent: {
-    prototype: LongRunningScriptDetectedEvent;
-    new(): LongRunningScriptDetectedEvent;
-}
-
-interface MSApp {
-    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
-    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
-    createDataPackage(object: any): any;
-    createDataPackageFromSelection(): any;
-    createFileFromStorageFile(storageFile: any): File;
-    createStreamFromInputStream(type: string, inputStream: any): MSStream;
-    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
-    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
-    getCurrentPriority(): string;
-    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
-    getViewId(view: any): any;
-    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
-    pageHandlesAllApplicationActivations(enabled: boolean): void;
-    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
-    terminateApp(exceptionObject: any): void;
-    readonly CURRENT: string;
-    readonly HIGH: string;
-    readonly IDLE: string;
-    readonly NORMAL: string;
-}
-declare var MSApp: MSApp;
-
-interface MSAppAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSAppAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
-    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSAppAsyncOperation: {
-    prototype: MSAppAsyncOperation;
-    new(): MSAppAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-}
-
-interface MSAssertion {
-    readonly id: string;
-    readonly type: string;
-}
-
-declare var MSAssertion: {
-    prototype: MSAssertion;
-    new(): MSAssertion;
-}
-
-interface MSBlobBuilder {
-    append(data: any, endings?: string): void;
-    getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
-    prototype: MSBlobBuilder;
-    new(): MSBlobBuilder;
-}
-
-interface MSCredentials {
-    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
-    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
-}
-
-declare var MSCredentials: {
-    prototype: MSCredentials;
-    new(): MSCredentials;
-}
-
-interface MSFIDOCredentialAssertion extends MSAssertion {
-    readonly algorithm: string | Algorithm;
-    readonly attestation: any;
-    readonly publicKey: string;
-    readonly transportHints: string[];
-}
-
-declare var MSFIDOCredentialAssertion: {
-    prototype: MSFIDOCredentialAssertion;
-    new(): MSFIDOCredentialAssertion;
-}
-
-interface MSFIDOSignature {
-    readonly authnrData: string;
-    readonly clientData: string;
-    readonly signature: string;
-}
-
-declare var MSFIDOSignature: {
-    prototype: MSFIDOSignature;
-    new(): MSFIDOSignature;
-}
-
-interface MSFIDOSignatureAssertion extends MSAssertion {
-    readonly signature: MSFIDOSignature;
-}
-
-declare var MSFIDOSignatureAssertion: {
-    prototype: MSFIDOSignatureAssertion;
-    new(): MSFIDOSignatureAssertion;
-}
-
-interface MSGesture {
-    target: Element;
-    addPointer(pointerId: number): void;
-    stop(): void;
-}
-
-declare var MSGesture: {
-    prototype: MSGesture;
-    new(): MSGesture;
-}
-
-interface MSGestureEvent extends UIEvent {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly expansion: number;
-    readonly gestureObject: any;
-    readonly hwTimestamp: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly rotation: number;
-    readonly scale: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly translationX: number;
-    readonly translationY: number;
-    readonly velocityAngular: number;
-    readonly velocityExpansion: number;
-    readonly velocityX: number;
-    readonly velocityY: number;
-    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
-    prototype: MSGestureEvent;
-    new(): MSGestureEvent;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-interface MSGraphicsTrust {
-    readonly constrictionActive: boolean;
-    readonly status: string;
-}
-
-declare var MSGraphicsTrust: {
-    prototype: MSGraphicsTrust;
-    new(): MSGraphicsTrust;
-}
-
-interface MSHTMLWebViewElement extends HTMLElement {
-    readonly canGoBack: boolean;
-    readonly canGoForward: boolean;
-    readonly containsFullScreenElement: boolean;
-    readonly documentTitle: string;
-    height: number;
-    readonly settings: MSWebViewSettings;
-    src: string;
-    width: number;
-    addWebAllowedObject(name: string, applicationObject: any): void;
-    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
-    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
-    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
-    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
-    getDeferredPermissionRequests(): DeferredPermissionRequest[];
-    goBack(): void;
-    goForward(): void;
-    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
-    navigate(uri: string): void;
-    navigateToLocalStreamUri(source: string, streamResolver: any): void;
-    navigateToString(contents: string): void;
-    navigateWithHttpRequestMessage(requestMessage: any): void;
-    refresh(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSHTMLWebViewElement: {
-    prototype: MSHTMLWebViewElement;
-    new(): MSHTMLWebViewElement;
-}
-
-interface MSInputMethodContextEventMap {
-    "MSCandidateWindowHide": Event;
-    "MSCandidateWindowShow": Event;
-    "MSCandidateWindowUpdate": Event;
-}
-
-interface MSInputMethodContext extends EventTarget {
-    readonly compositionEndOffset: number;
-    readonly compositionStartOffset: number;
-    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
-    readonly target: HTMLElement;
-    getCandidateWindowClientRect(): ClientRect;
-    getCompositionAlternatives(): string[];
-    hasComposition(): boolean;
-    isCandidateWindowVisible(): boolean;
-    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSInputMethodContext: {
-    prototype: MSInputMethodContext;
-    new(): MSInputMethodContext;
-}
-
-interface MSManipulationEvent extends UIEvent {
-    readonly currentState: number;
-    readonly inertiaDestinationX: number;
-    readonly inertiaDestinationY: number;
-    readonly lastState: number;
-    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-declare var MSManipulationEvent: {
-    prototype: MSManipulationEvent;
-    new(): MSManipulationEvent;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-interface MSMediaKeyError {
-    readonly code: number;
-    readonly systemCode: number;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-declare var MSMediaKeyError: {
-    prototype: MSMediaKeyError;
-    new(): MSMediaKeyError;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-interface MSMediaKeyMessageEvent extends Event {
-    readonly destinationURL: string | null;
-    readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
-    prototype: MSMediaKeyMessageEvent;
-    new(): MSMediaKeyMessageEvent;
-}
-
-interface MSMediaKeyNeededEvent extends Event {
-    readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
-    prototype: MSMediaKeyNeededEvent;
-    new(): MSMediaKeyNeededEvent;
-}
-
-interface MSMediaKeySession extends EventTarget {
-    readonly error: MSMediaKeyError | null;
-    readonly keySystem: string;
-    readonly sessionId: string;
-    close(): void;
-    update(key: Uint8Array): void;
-}
-
-declare var MSMediaKeySession: {
-    prototype: MSMediaKeySession;
-    new(): MSMediaKeySession;
-}
-
-interface MSMediaKeys {
-    readonly keySystem: string;
-    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
-}
-
-declare var MSMediaKeys: {
-    prototype: MSMediaKeys;
-    new(keySystem: string): MSMediaKeys;
-    isTypeSupported(keySystem: string, type?: string): boolean;
-    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
-}
-
-interface MSPointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var MSPointerEvent: {
-    prototype: MSPointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-}
-
-interface MSRangeCollection {
-    readonly length: number;
-    item(index: number): Range;
-    [index: number]: Range;
-}
-
-declare var MSRangeCollection: {
-    prototype: MSRangeCollection;
-    new(): MSRangeCollection;
-}
-
-interface MSSiteModeEvent extends Event {
-    readonly actionURL: string;
-    readonly buttonID: number;
-}
-
-declare var MSSiteModeEvent: {
-    prototype: MSSiteModeEvent;
-    new(): MSSiteModeEvent;
-}
-
-interface MSStream {
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-}
-
-declare var MSStream: {
-    prototype: MSStream;
-    new(): MSStream;
-}
-
-interface MSStreamReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(stream: MSStream, size?: number): void;
-    readAsBinaryString(stream: MSStream, size?: number): void;
-    readAsBlob(stream: MSStream, size?: number): void;
-    readAsDataURL(stream: MSStream, size?: number): void;
-    readAsText(stream: MSStream, encoding?: string, size?: number): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSStreamReader: {
-    prototype: MSStreamReader;
-    new(): MSStreamReader;
-}
-
-interface MSWebViewAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSWebViewAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
-    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    readonly target: MSHTMLWebViewElement;
-    readonly type: number;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSWebViewAsyncOperation: {
-    prototype: MSWebViewAsyncOperation;
-    new(): MSWebViewAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-}
-
-interface MSWebViewSettings {
-    isIndexedDBEnabled: boolean;
-    isJavaScriptEnabled: boolean;
-}
-
-declare var MSWebViewSettings: {
-    prototype: MSWebViewSettings;
-    new(): MSWebViewSettings;
-}
-
-interface MediaDeviceInfo {
-    readonly deviceId: string;
-    readonly groupId: string;
-    readonly kind: string;
-    readonly label: string;
-}
-
-declare var MediaDeviceInfo: {
-    prototype: MediaDeviceInfo;
-    new(): MediaDeviceInfo;
-}
-
-interface MediaDevicesEventMap {
-    "devicechange": Event;
-}
-
-interface MediaDevices extends EventTarget {
-    ondevicechange: (this: MediaDevices, ev: Event) => any;
-    enumerateDevices(): any;
-    getSupportedConstraints(): MediaTrackSupportedConstraints;
-    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
-    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaDevices: {
-    prototype: MediaDevices;
-    new(): MediaDevices;
-}
-
-interface MediaElementAudioSourceNode extends AudioNode {
-}
-
-declare var MediaElementAudioSourceNode: {
-    prototype: MediaElementAudioSourceNode;
-    new(): MediaElementAudioSourceNode;
-}
-
-interface MediaEncryptedEvent extends Event {
-    readonly initData: ArrayBuffer | null;
-    readonly initDataType: string;
-}
-
-declare var MediaEncryptedEvent: {
-    prototype: MediaEncryptedEvent;
-    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
-}
-
-interface MediaError {
-    readonly code: number;
-    readonly msExtendedCode: number;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-declare var MediaError: {
-    prototype: MediaError;
-    new(): MediaError;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-interface MediaKeyMessageEvent extends Event {
-    readonly message: ArrayBuffer;
-    readonly messageType: string;
-}
-
-declare var MediaKeyMessageEvent: {
-    prototype: MediaKeyMessageEvent;
-    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
-}
-
-interface MediaKeySession extends EventTarget {
-    readonly closed: PromiseLike<void>;
-    readonly expiration: number;
-    readonly keyStatuses: MediaKeyStatusMap;
-    readonly sessionId: string;
-    close(): PromiseLike<void>;
-    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
-    load(sessionId: string): PromiseLike<boolean>;
-    remove(): PromiseLike<void>;
-    update(response: any): PromiseLike<void>;
-}
-
-declare var MediaKeySession: {
-    prototype: MediaKeySession;
-    new(): MediaKeySession;
-}
-
-interface MediaKeyStatusMap {
-    readonly size: number;
-    forEach(callback: ForEachCallback): void;
-    get(keyId: any): string;
-    has(keyId: any): boolean;
-}
-
-declare var MediaKeyStatusMap: {
-    prototype: MediaKeyStatusMap;
-    new(): MediaKeyStatusMap;
-}
-
-interface MediaKeySystemAccess {
-    readonly keySystem: string;
-    createMediaKeys(): PromiseLike<MediaKeys>;
-    getConfiguration(): MediaKeySystemConfiguration;
-}
-
-declare var MediaKeySystemAccess: {
-    prototype: MediaKeySystemAccess;
-    new(): MediaKeySystemAccess;
-}
-
-interface MediaKeys {
-    createSession(sessionType?: string): MediaKeySession;
-    setServerCertificate(serverCertificate: any): PromiseLike<void>;
-}
-
-declare var MediaKeys: {
-    prototype: MediaKeys;
-    new(): MediaKeys;
-}
-
-interface MediaList {
-    readonly length: number;
-    mediaText: string;
-    appendMedium(newMedium: string): void;
-    deleteMedium(oldMedium: string): void;
-    item(index: number): string;
-    toString(): string;
-    [index: number]: string;
-}
-
-declare var MediaList: {
-    prototype: MediaList;
-    new(): MediaList;
-}
-
-interface MediaQueryList {
-    readonly matches: boolean;
-    readonly media: string;
-    addListener(listener: MediaQueryListListener): void;
-    removeListener(listener: MediaQueryListListener): void;
-}
-
-declare var MediaQueryList: {
-    prototype: MediaQueryList;
-    new(): MediaQueryList;
-}
-
-interface MediaSource extends EventTarget {
-    readonly activeSourceBuffers: SourceBufferList;
-    duration: number;
-    readonly readyState: string;
-    readonly sourceBuffers: SourceBufferList;
-    addSourceBuffer(type: string): SourceBuffer;
-    endOfStream(error?: number): void;
-    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
-}
-
-declare var MediaSource: {
-    prototype: MediaSource;
-    new(): MediaSource;
-    isTypeSupported(type: string): boolean;
-}
-
-interface MediaStreamEventMap {
-    "active": Event;
-    "addtrack": TrackEvent;
-    "inactive": Event;
-    "removetrack": TrackEvent;
-}
-
-interface MediaStream extends EventTarget {
-    readonly active: boolean;
-    readonly id: string;
-    onactive: (this: MediaStream, ev: Event) => any;
-    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
-    oninactive: (this: MediaStream, ev: Event) => any;
-    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
-    addTrack(track: MediaStreamTrack): void;
-    clone(): MediaStream;
-    getAudioTracks(): MediaStreamTrack[];
-    getTrackById(trackId: string): MediaStreamTrack | null;
-    getTracks(): MediaStreamTrack[];
-    getVideoTracks(): MediaStreamTrack[];
-    removeTrack(track: MediaStreamTrack): void;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStream: {
-    prototype: MediaStream;
-    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
-}
-
-interface MediaStreamAudioSourceNode extends AudioNode {
-}
-
-declare var MediaStreamAudioSourceNode: {
-    prototype: MediaStreamAudioSourceNode;
-    new(): MediaStreamAudioSourceNode;
-}
-
-interface MediaStreamError {
-    readonly constraintName: string | null;
-    readonly message: string | null;
-    readonly name: string;
-}
-
-declare var MediaStreamError: {
-    prototype: MediaStreamError;
-    new(): MediaStreamError;
-}
-
-interface MediaStreamErrorEvent extends Event {
-    readonly error: MediaStreamError | null;
-}
-
-declare var MediaStreamErrorEvent: {
-    prototype: MediaStreamErrorEvent;
-    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
-}
-
-interface MediaStreamTrackEventMap {
-    "ended": MediaStreamErrorEvent;
-    "mute": Event;
-    "overconstrained": MediaStreamErrorEvent;
-    "unmute": Event;
-}
-
-interface MediaStreamTrack extends EventTarget {
-    enabled: boolean;
-    readonly id: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly muted: boolean;
-    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
-    onmute: (this: MediaStreamTrack, ev: Event) => any;
-    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
-    onunmute: (this: MediaStreamTrack, ev: Event) => any;
-    readonly readonly: boolean;
-    readonly readyState: string;
-    readonly remote: boolean;
-    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
-    clone(): MediaStreamTrack;
-    getCapabilities(): MediaTrackCapabilities;
-    getConstraints(): MediaTrackConstraints;
-    getSettings(): MediaTrackSettings;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStreamTrack: {
-    prototype: MediaStreamTrack;
-    new(): MediaStreamTrack;
-}
-
-interface MediaStreamTrackEvent extends Event {
-    readonly track: MediaStreamTrack;
-}
-
-declare var MediaStreamTrackEvent: {
-    prototype: MediaStreamTrackEvent;
-    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
-}
-
-interface MessageChannel {
-    readonly port1: MessagePort;
-    readonly port2: MessagePort;
-}
-
-declare var MessageChannel: {
-    prototype: MessageChannel;
-    new(): MessageChannel;
-}
-
-interface MessageEvent extends Event {
-    readonly data: any;
-    readonly origin: string;
-    readonly ports: any;
-    readonly source: Window;
-    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
-}
-
-declare var MessageEvent: {
-    prototype: MessageEvent;
-    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
-}
-
-interface MessagePortEventMap {
-    "message": MessageEvent;
-}
-
-interface MessagePort extends EventTarget {
-    onmessage: (this: MessagePort, ev: MessageEvent) => any;
-    close(): void;
-    postMessage(message?: any, ports?: any): void;
-    start(): void;
-    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MessagePort: {
-    prototype: MessagePort;
-    new(): MessagePort;
-}
-
-interface MimeType {
-    readonly description: string;
-    readonly enabledPlugin: Plugin;
-    readonly suffixes: string;
-    readonly type: string;
-}
-
-declare var MimeType: {
-    prototype: MimeType;
-    new(): MimeType;
-}
-
-interface MimeTypeArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(type: string): Plugin;
-    [index: number]: Plugin;
-}
-
-declare var MimeTypeArray: {
-    prototype: MimeTypeArray;
-    new(): MimeTypeArray;
-}
-
-interface MouseEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly button: number;
-    readonly buttons: number;
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly ctrlKey: boolean;
-    readonly fromElement: Element;
-    readonly layerX: number;
-    readonly layerY: number;
-    readonly metaKey: boolean;
-    readonly movementX: number;
-    readonly movementY: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly relatedTarget: EventTarget;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly shiftKey: boolean;
-    readonly toElement: Element;
-    readonly which: number;
-    readonly x: number;
-    readonly y: number;
-    getModifierState(keyArg: string): boolean;
-    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
-}
-
-interface MutationEvent extends Event {
-    readonly attrChange: number;
-    readonly attrName: string;
-    readonly newValue: string;
-    readonly prevValue: string;
-    readonly relatedNode: Node;
-    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-declare var MutationEvent: {
-    prototype: MutationEvent;
-    new(): MutationEvent;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-interface MutationObserver {
-    disconnect(): void;
-    observe(target: Node, options: MutationObserverInit): void;
-    takeRecords(): MutationRecord[];
-}
-
-declare var MutationObserver: {
-    prototype: MutationObserver;
-    new(callback: MutationCallback): MutationObserver;
-}
-
-interface MutationRecord {
-    readonly addedNodes: NodeList;
-    readonly attributeName: string | null;
-    readonly attributeNamespace: string | null;
-    readonly nextSibling: Node | null;
-    readonly oldValue: string | null;
-    readonly previousSibling: Node | null;
-    readonly removedNodes: NodeList;
-    readonly target: Node;
-    readonly type: string;
-}
-
-declare var MutationRecord: {
-    prototype: MutationRecord;
-    new(): MutationRecord;
-}
-
-interface NamedNodeMap {
-    readonly length: number;
-    getNamedItem(name: string): Attr;
-    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    item(index: number): Attr;
-    removeNamedItem(name: string): Attr;
-    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    setNamedItem(arg: Attr): Attr;
-    setNamedItemNS(arg: Attr): Attr;
-    [index: number]: Attr;
-}
-
-declare var NamedNodeMap: {
-    prototype: NamedNodeMap;
-    new(): NamedNodeMap;
-}
-
-interface NavigationCompletedEvent extends NavigationEvent {
-    readonly isSuccess: boolean;
-    readonly webErrorStatus: number;
-}
-
-declare var NavigationCompletedEvent: {
-    prototype: NavigationCompletedEvent;
-    new(): NavigationCompletedEvent;
-}
-
-interface NavigationEvent extends Event {
-    readonly uri: string;
-}
-
-declare var NavigationEvent: {
-    prototype: NavigationEvent;
-    new(): NavigationEvent;
-}
-
-interface NavigationEventWithReferrer extends NavigationEvent {
-    readonly referer: string;
-}
-
-declare var NavigationEventWithReferrer: {
-    prototype: NavigationEventWithReferrer;
-    new(): NavigationEventWithReferrer;
-}
-
-interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
-    readonly appCodeName: string;
-    readonly cookieEnabled: boolean;
-    readonly language: string;
-    readonly maxTouchPoints: number;
-    readonly mimeTypes: MimeTypeArray;
-    readonly msManipulationViewsEnabled: boolean;
-    readonly msMaxTouchPoints: number;
-    readonly msPointerEnabled: boolean;
-    readonly plugins: PluginArray;
-    readonly pointerEnabled: boolean;
-    readonly webdriver: boolean;
-    readonly hardwareConcurrency: number;
-    getGamepads(): Gamepad[];
-    javaEnabled(): boolean;
-    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
-    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
-    vibrate(pattern: number | number[]): boolean;
-}
-
-declare var Navigator: {
-    prototype: Navigator;
-    new(): Navigator;
-}
-
-interface Node extends EventTarget {
-    readonly attributes: NamedNodeMap;
-    readonly baseURI: string | null;
-    readonly childNodes: NodeList;
-    readonly firstChild: Node | null;
-    readonly lastChild: Node | null;
-    readonly localName: string | null;
-    readonly namespaceURI: string | null;
-    readonly nextSibling: Node | null;
-    readonly nodeName: string;
-    readonly nodeType: number;
-    nodeValue: string | null;
-    readonly ownerDocument: Document;
-    readonly parentElement: HTMLElement | null;
-    readonly parentNode: Node | null;
-    readonly previousSibling: Node | null;
-    textContent: string | null;
-    appendChild(newChild: Node): Node;
-    cloneNode(deep?: boolean): Node;
-    compareDocumentPosition(other: Node): number;
-    contains(child: Node): boolean;
-    hasAttributes(): boolean;
-    hasChildNodes(): boolean;
-    insertBefore(newChild: Node, refChild: Node | null): Node;
-    isDefaultNamespace(namespaceURI: string | null): boolean;
-    isEqualNode(arg: Node): boolean;
-    isSameNode(other: Node): boolean;
-    lookupNamespaceURI(prefix: string | null): string | null;
-    lookupPrefix(namespaceURI: string | null): string | null;
-    normalize(): void;
-    removeChild(oldChild: Node): Node;
-    replaceChild(newChild: Node, oldChild: Node): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-declare var Node: {
-    prototype: Node;
-    new(): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-interface NodeFilter {
-    acceptNode(n: Node): number;
-}
-
-declare var NodeFilter: {
-    readonly FILTER_ACCEPT: number;
-    readonly FILTER_REJECT: number;
-    readonly FILTER_SKIP: number;
-    readonly SHOW_ALL: number;
-    readonly SHOW_ATTRIBUTE: number;
-    readonly SHOW_CDATA_SECTION: number;
-    readonly SHOW_COMMENT: number;
-    readonly SHOW_DOCUMENT: number;
-    readonly SHOW_DOCUMENT_FRAGMENT: number;
-    readonly SHOW_DOCUMENT_TYPE: number;
-    readonly SHOW_ELEMENT: number;
-    readonly SHOW_ENTITY: number;
-    readonly SHOW_ENTITY_REFERENCE: number;
-    readonly SHOW_NOTATION: number;
-    readonly SHOW_PROCESSING_INSTRUCTION: number;
-    readonly SHOW_TEXT: number;
-}
-
-interface NodeIterator {
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    detach(): void;
-    nextNode(): Node;
-    previousNode(): Node;
-}
-
-declare var NodeIterator: {
-    prototype: NodeIterator;
-    new(): NodeIterator;
-}
-
-interface NodeList {
-    readonly length: number;
-    item(index: number): Node;
-    [index: number]: Node;
-}
-
-declare var NodeList: {
-    prototype: NodeList;
-    new(): NodeList;
-}
-
-interface OES_element_index_uint {
-}
-
-declare var OES_element_index_uint: {
-    prototype: OES_element_index_uint;
-    new(): OES_element_index_uint;
-}
-
-interface OES_standard_derivatives {
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-declare var OES_standard_derivatives: {
-    prototype: OES_standard_derivatives;
-    new(): OES_standard_derivatives;
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-interface OES_texture_float {
-}
-
-declare var OES_texture_float: {
-    prototype: OES_texture_float;
-    new(): OES_texture_float;
-}
-
-interface OES_texture_float_linear {
-}
-
-declare var OES_texture_float_linear: {
-    prototype: OES_texture_float_linear;
-    new(): OES_texture_float_linear;
-}
-
-interface OfflineAudioCompletionEvent extends Event {
-    readonly renderedBuffer: AudioBuffer;
-}
-
-declare var OfflineAudioCompletionEvent: {
-    prototype: OfflineAudioCompletionEvent;
-    new(): OfflineAudioCompletionEvent;
-}
-
-interface OfflineAudioContextEventMap {
-    "complete": Event;
-}
-
-interface OfflineAudioContext extends AudioContext {
-    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
-    startRendering(): PromiseLike<AudioBuffer>;
-    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OfflineAudioContext: {
-    prototype: OfflineAudioContext;
-    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
-}
-
-interface OscillatorNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface OscillatorNode extends AudioNode {
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
-    type: string;
-    setPeriodicWave(periodicWave: PeriodicWave): void;
-    start(when?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OscillatorNode: {
-    prototype: OscillatorNode;
-    new(): OscillatorNode;
-}
-
-interface OverflowEvent extends UIEvent {
-    readonly horizontalOverflow: boolean;
-    readonly orient: number;
-    readonly verticalOverflow: boolean;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-declare var OverflowEvent: {
-    prototype: OverflowEvent;
-    new(): OverflowEvent;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-interface PageTransitionEvent extends Event {
-    readonly persisted: boolean;
-}
-
-declare var PageTransitionEvent: {
-    prototype: PageTransitionEvent;
-    new(): PageTransitionEvent;
-}
-
-interface PannerNode extends AudioNode {
-    coneInnerAngle: number;
-    coneOuterAngle: number;
-    coneOuterGain: number;
-    distanceModel: string;
-    maxDistance: number;
-    panningModel: string;
-    refDistance: number;
-    rolloffFactor: number;
-    setOrientation(x: number, y: number, z: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var PannerNode: {
-    prototype: PannerNode;
-    new(): PannerNode;
-}
-
-interface PerfWidgetExternal {
-    readonly activeNetworkRequestCount: number;
-    readonly averageFrameTime: number;
-    readonly averagePaintTime: number;
-    readonly extraInformationEnabled: boolean;
-    readonly independentRenderingEnabled: boolean;
-    readonly irDisablingContentString: string;
-    readonly irStatusAvailable: boolean;
-    readonly maxCpuSpeed: number;
-    readonly paintRequestsPerSecond: number;
-    readonly performanceCounter: number;
-    readonly performanceCounterFrequency: number;
-    addEventListener(eventType: string, callback: Function): void;
-    getMemoryUsage(): number;
-    getProcessCpuUsage(): number;
-    getRecentCpuUsage(last: number | null): any;
-    getRecentFrames(last: number | null): any;
-    getRecentMemoryUsage(last: number | null): any;
-    getRecentPaintRequests(last: number | null): any;
-    removeEventListener(eventType: string, callback: Function): void;
-    repositionWindow(x: number, y: number): void;
-    resizeWindow(width: number, height: number): void;
-}
-
-declare var PerfWidgetExternal: {
-    prototype: PerfWidgetExternal;
-    new(): PerfWidgetExternal;
-}
-
-interface Performance {
-    readonly navigation: PerformanceNavigation;
-    readonly timing: PerformanceTiming;
-    clearMarks(markName?: string): void;
-    clearMeasures(measureName?: string): void;
-    clearResourceTimings(): void;
-    getEntries(): any;
-    getEntriesByName(name: string, entryType?: string): any;
-    getEntriesByType(entryType: string): any;
-    getMarks(markName?: string): any;
-    getMeasures(measureName?: string): any;
-    mark(markName: string): void;
-    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
-    now(): number;
-    setResourceTimingBufferSize(maxSize: number): void;
-    toJSON(): any;
-}
-
-declare var Performance: {
-    prototype: Performance;
-    new(): Performance;
-}
-
-interface PerformanceEntry {
-    readonly duration: number;
-    readonly entryType: string;
-    readonly name: string;
-    readonly startTime: number;
-}
-
-declare var PerformanceEntry: {
-    prototype: PerformanceEntry;
-    new(): PerformanceEntry;
-}
-
-interface PerformanceMark extends PerformanceEntry {
-}
-
-declare var PerformanceMark: {
-    prototype: PerformanceMark;
-    new(): PerformanceMark;
-}
-
-interface PerformanceMeasure extends PerformanceEntry {
-}
-
-declare var PerformanceMeasure: {
-    prototype: PerformanceMeasure;
-    new(): PerformanceMeasure;
-}
-
-interface PerformanceNavigation {
-    readonly redirectCount: number;
-    readonly type: number;
-    toJSON(): any;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-declare var PerformanceNavigation: {
-    prototype: PerformanceNavigation;
-    new(): PerformanceNavigation;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-interface PerformanceNavigationTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly navigationStart: number;
-    readonly redirectCount: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly type: string;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-}
-
-declare var PerformanceNavigationTiming: {
-    prototype: PerformanceNavigationTiming;
-    new(): PerformanceNavigationTiming;
-}
-
-interface PerformanceResourceTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly initiatorType: string;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-}
-
-declare var PerformanceResourceTiming: {
-    prototype: PerformanceResourceTiming;
-    new(): PerformanceResourceTiming;
-}
-
-interface PerformanceTiming {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly msFirstPaint: number;
-    readonly navigationStart: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-    readonly secureConnectionStart: number;
-    toJSON(): any;
-}
-
-declare var PerformanceTiming: {
-    prototype: PerformanceTiming;
-    new(): PerformanceTiming;
-}
-
-interface PeriodicWave {
-}
-
-declare var PeriodicWave: {
-    prototype: PeriodicWave;
-    new(): PeriodicWave;
-}
-
-interface PermissionRequest extends DeferredPermissionRequest {
-    readonly state: string;
-    defer(): void;
-}
-
-declare var PermissionRequest: {
-    prototype: PermissionRequest;
-    new(): PermissionRequest;
-}
-
-interface PermissionRequestedEvent extends Event {
-    readonly permissionRequest: PermissionRequest;
-}
-
-declare var PermissionRequestedEvent: {
-    prototype: PermissionRequestedEvent;
-    new(): PermissionRequestedEvent;
-}
-
-interface Plugin {
-    readonly description: string;
-    readonly filename: string;
-    readonly length: number;
-    readonly name: string;
-    readonly version: string;
-    item(index: number): MimeType;
-    namedItem(type: string): MimeType;
-    [index: number]: MimeType;
-}
-
-declare var Plugin: {
-    prototype: Plugin;
-    new(): Plugin;
-}
-
-interface PluginArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(name: string): Plugin;
-    refresh(reload?: boolean): void;
-    [index: number]: Plugin;
-}
-
-declare var PluginArray: {
-    prototype: PluginArray;
-    new(): PluginArray;
-}
-
-interface PointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var PointerEvent: {
-    prototype: PointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
-}
-
-interface PopStateEvent extends Event {
-    readonly state: any;
-    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
-}
-
-declare var PopStateEvent: {
-    prototype: PopStateEvent;
-    new(): PopStateEvent;
-}
-
-interface Position {
-    readonly coords: Coordinates;
-    readonly timestamp: number;
-}
-
-declare var Position: {
-    prototype: Position;
-    new(): Position;
-}
-
-interface PositionError {
-    readonly code: number;
-    readonly message: string;
-    toString(): string;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-declare var PositionError: {
-    prototype: PositionError;
-    new(): PositionError;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-interface ProcessingInstruction extends CharacterData {
-    readonly target: string;
-}
-
-declare var ProcessingInstruction: {
-    prototype: ProcessingInstruction;
-    new(): ProcessingInstruction;
-}
-
-interface ProgressEvent extends Event {
-    readonly lengthComputable: boolean;
-    readonly loaded: number;
-    readonly total: number;
-    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
-}
-
-declare var ProgressEvent: {
-    prototype: ProgressEvent;
-    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
-}
-
-interface RTCDTMFToneChangeEvent extends Event {
-    readonly tone: string;
-}
-
-declare var RTCDTMFToneChangeEvent: {
-    prototype: RTCDTMFToneChangeEvent;
-    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtlsTransportEventMap {
-    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
-    "error": ErrorEvent;
-}
-
-interface RTCDtlsTransport extends RTCStatsProvider {
-    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
-    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
-    readonly state: string;
-    readonly transport: RTCIceTransport;
-    getLocalParameters(): RTCDtlsParameters;
-    getRemoteCertificates(): ArrayBuffer[];
-    getRemoteParameters(): RTCDtlsParameters | null;
-    start(remoteParameters: RTCDtlsParameters): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtlsTransport: {
-    prototype: RTCDtlsTransport;
-    new(transport: RTCIceTransport): RTCDtlsTransport;
-}
-
-interface RTCDtlsTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCDtlsTransportStateChangedEvent: {
-    prototype: RTCDtlsTransportStateChangedEvent;
-    new(): RTCDtlsTransportStateChangedEvent;
-}
-
-interface RTCDtmfSenderEventMap {
-    "tonechange": RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtmfSender extends EventTarget {
-    readonly canInsertDTMF: boolean;
-    readonly duration: number;
-    readonly interToneGap: number;
-    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
-    readonly sender: RTCRtpSender;
-    readonly toneBuffer: string;
-    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
-    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtmfSender: {
-    prototype: RTCDtmfSender;
-    new(sender: RTCRtpSender): RTCDtmfSender;
-}
-
-interface RTCIceCandidatePairChangedEvent extends Event {
-    readonly pair: RTCIceCandidatePair;
-}
-
-declare var RTCIceCandidatePairChangedEvent: {
-    prototype: RTCIceCandidatePairChangedEvent;
-    new(): RTCIceCandidatePairChangedEvent;
-}
-
-interface RTCIceGathererEventMap {
-    "error": ErrorEvent;
-    "localcandidate": RTCIceGathererEvent;
-}
-
-interface RTCIceGatherer extends RTCStatsProvider {
-    readonly component: string;
-    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
-    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
-    createAssociatedGatherer(): RTCIceGatherer;
-    getLocalCandidates(): RTCIceCandidate[];
-    getLocalParameters(): RTCIceParameters;
-    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceGatherer: {
-    prototype: RTCIceGatherer;
-    new(options: RTCIceGatherOptions): RTCIceGatherer;
-}
-
-interface RTCIceGathererEvent extends Event {
-    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
-}
-
-declare var RTCIceGathererEvent: {
-    prototype: RTCIceGathererEvent;
-    new(): RTCIceGathererEvent;
-}
-
-interface RTCIceTransportEventMap {
-    "candidatepairchange": RTCIceCandidatePairChangedEvent;
-    "icestatechange": RTCIceTransportStateChangedEvent;
-}
-
-interface RTCIceTransport extends RTCStatsProvider {
-    readonly component: string;
-    readonly iceGatherer: RTCIceGatherer | null;
-    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
-    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
-    readonly role: string;
-    readonly state: string;
-    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
-    createAssociatedTransport(): RTCIceTransport;
-    getNominatedCandidatePair(): RTCIceCandidatePair | null;
-    getRemoteCandidates(): RTCIceCandidate[];
-    getRemoteParameters(): RTCIceParameters | null;
-    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
-    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceTransport: {
-    prototype: RTCIceTransport;
-    new(): RTCIceTransport;
-}
-
-interface RTCIceTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCIceTransportStateChangedEvent: {
-    prototype: RTCIceTransportStateChangedEvent;
-    new(): RTCIceTransportStateChangedEvent;
-}
-
-interface RTCRtpReceiverEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCRtpReceiver extends RTCStatsProvider {
-    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack | null;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    getContributingSources(): RTCRtpContributingSource[];
-    receive(parameters: RTCRtpParameters): void;
-    requestSendCSRC(csrc: number): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpReceiver: {
-    prototype: RTCRtpReceiver;
-    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCRtpSenderEventMap {
-    "error": ErrorEvent;
-    "ssrcconflict": RTCSsrcConflictEvent;
-}
-
-interface RTCRtpSender extends RTCStatsProvider {
-    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
-    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    send(parameters: RTCRtpParameters): void;
-    setTrack(track: MediaStreamTrack): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpSender: {
-    prototype: RTCRtpSender;
-    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCSrtpSdesTransportEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCSrtpSdesTransport extends EventTarget {
-    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
-    readonly transport: RTCIceTransport;
-    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCSrtpSdesTransport: {
-    prototype: RTCSrtpSdesTransport;
-    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
-    getLocalParameters(): RTCSrtpSdesParameters[];
-}
-
-interface RTCSsrcConflictEvent extends Event {
-    readonly ssrc: number;
-}
-
-declare var RTCSsrcConflictEvent: {
-    prototype: RTCSsrcConflictEvent;
-    new(): RTCSsrcConflictEvent;
-}
-
-interface RTCStatsProvider extends EventTarget {
-    getStats(): PromiseLike<RTCStatsReport>;
-    msGetStats(): PromiseLike<RTCStatsReport>;
-}
-
-declare var RTCStatsProvider: {
-    prototype: RTCStatsProvider;
-    new(): RTCStatsProvider;
-}
-
-interface Range {
-    readonly collapsed: boolean;
-    readonly commonAncestorContainer: Node;
-    readonly endContainer: Node;
-    readonly endOffset: number;
-    readonly startContainer: Node;
-    readonly startOffset: number;
-    cloneContents(): DocumentFragment;
-    cloneRange(): Range;
-    collapse(toStart: boolean): void;
-    compareBoundaryPoints(how: number, sourceRange: Range): number;
-    createContextualFragment(fragment: string): DocumentFragment;
-    deleteContents(): void;
-    detach(): void;
-    expand(Unit: string): boolean;
-    extractContents(): DocumentFragment;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    insertNode(newNode: Node): void;
-    selectNode(refNode: Node): void;
-    selectNodeContents(refNode: Node): void;
-    setEnd(refNode: Node, offset: number): void;
-    setEndAfter(refNode: Node): void;
-    setEndBefore(refNode: Node): void;
-    setStart(refNode: Node, offset: number): void;
-    setStartAfter(refNode: Node): void;
-    setStartBefore(refNode: Node): void;
-    surroundContents(newParent: Node): void;
-    toString(): string;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-declare var Range: {
-    prototype: Range;
-    new(): Range;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly target: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGAElement: {
-    prototype: SVGAElement;
-    new(): SVGAElement;
-}
-
-interface SVGAngle {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-declare var SVGAngle: {
-    prototype: SVGAngle;
-    new(): SVGAngle;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-interface SVGAnimatedAngle {
-    readonly animVal: SVGAngle;
-    readonly baseVal: SVGAngle;
-}
-
-declare var SVGAnimatedAngle: {
-    prototype: SVGAnimatedAngle;
-    new(): SVGAnimatedAngle;
-}
-
-interface SVGAnimatedBoolean {
-    readonly animVal: boolean;
-    baseVal: boolean;
-}
-
-declare var SVGAnimatedBoolean: {
-    prototype: SVGAnimatedBoolean;
-    new(): SVGAnimatedBoolean;
-}
-
-interface SVGAnimatedEnumeration {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedEnumeration: {
-    prototype: SVGAnimatedEnumeration;
-    new(): SVGAnimatedEnumeration;
-}
-
-interface SVGAnimatedInteger {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedInteger: {
-    prototype: SVGAnimatedInteger;
-    new(): SVGAnimatedInteger;
-}
-
-interface SVGAnimatedLength {
-    readonly animVal: SVGLength;
-    readonly baseVal: SVGLength;
-}
-
-declare var SVGAnimatedLength: {
-    prototype: SVGAnimatedLength;
-    new(): SVGAnimatedLength;
-}
-
-interface SVGAnimatedLengthList {
-    readonly animVal: SVGLengthList;
-    readonly baseVal: SVGLengthList;
-}
-
-declare var SVGAnimatedLengthList: {
-    prototype: SVGAnimatedLengthList;
-    new(): SVGAnimatedLengthList;
-}
-
-interface SVGAnimatedNumber {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedNumber: {
-    prototype: SVGAnimatedNumber;
-    new(): SVGAnimatedNumber;
-}
-
-interface SVGAnimatedNumberList {
-    readonly animVal: SVGNumberList;
-    readonly baseVal: SVGNumberList;
-}
-
-declare var SVGAnimatedNumberList: {
-    prototype: SVGAnimatedNumberList;
-    new(): SVGAnimatedNumberList;
-}
-
-interface SVGAnimatedPreserveAspectRatio {
-    readonly animVal: SVGPreserveAspectRatio;
-    readonly baseVal: SVGPreserveAspectRatio;
-}
-
-declare var SVGAnimatedPreserveAspectRatio: {
-    prototype: SVGAnimatedPreserveAspectRatio;
-    new(): SVGAnimatedPreserveAspectRatio;
-}
-
-interface SVGAnimatedRect {
-    readonly animVal: SVGRect;
-    readonly baseVal: SVGRect;
-}
-
-declare var SVGAnimatedRect: {
-    prototype: SVGAnimatedRect;
-    new(): SVGAnimatedRect;
-}
-
-interface SVGAnimatedString {
-    readonly animVal: string;
-    baseVal: string;
-}
-
-declare var SVGAnimatedString: {
-    prototype: SVGAnimatedString;
-    new(): SVGAnimatedString;
-}
-
-interface SVGAnimatedTransformList {
-    readonly animVal: SVGTransformList;
-    readonly baseVal: SVGTransformList;
-}
-
-declare var SVGAnimatedTransformList: {
-    prototype: SVGAnimatedTransformList;
-    new(): SVGAnimatedTransformList;
-}
-
-interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGCircleElement: {
-    prototype: SVGCircleElement;
-    new(): SVGCircleElement;
-}
-
-interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
-    readonly clipPathUnits: SVGAnimatedEnumeration;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGClipPathElement: {
-    prototype: SVGClipPathElement;
-    new(): SVGClipPathElement;
-}
-
-interface SVGComponentTransferFunctionElement extends SVGElement {
-    readonly amplitude: SVGAnimatedNumber;
-    readonly exponent: SVGAnimatedNumber;
-    readonly intercept: SVGAnimatedNumber;
-    readonly offset: SVGAnimatedNumber;
-    readonly slope: SVGAnimatedNumber;
-    readonly tableValues: SVGAnimatedNumberList;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGComponentTransferFunctionElement: {
-    prototype: SVGComponentTransferFunctionElement;
-    new(): SVGComponentTransferFunctionElement;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-}
-
-interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDefsElement: {
-    prototype: SVGDefsElement;
-    new(): SVGDefsElement;
-}
-
-interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDescElement: {
-    prototype: SVGDescElement;
-    new(): SVGDescElement;
-}
-
-interface SVGElementEventMap extends ElementEventMap {
-    "click": MouseEvent;
-    "dblclick": MouseEvent;
-    "focusin": FocusEvent;
-    "focusout": FocusEvent;
-    "load": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-}
-
-interface SVGElement extends Element {
-    onclick: (this: SVGElement, ev: MouseEvent) => any;
-    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
-    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
-    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
-    onload: (this: SVGElement, ev: Event) => any;
-    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
-    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
-    readonly ownerSVGElement: SVGSVGElement;
-    readonly viewportElement: SVGElement;
-    xmlbase: string;
-    className: any;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGElement: {
-    prototype: SVGElement;
-    new(): SVGElement;
-}
-
-interface SVGElementInstance extends EventTarget {
-    readonly childNodes: SVGElementInstanceList;
-    readonly correspondingElement: SVGElement;
-    readonly correspondingUseElement: SVGUseElement;
-    readonly firstChild: SVGElementInstance;
-    readonly lastChild: SVGElementInstance;
-    readonly nextSibling: SVGElementInstance;
-    readonly parentNode: SVGElementInstance;
-    readonly previousSibling: SVGElementInstance;
-}
-
-declare var SVGElementInstance: {
-    prototype: SVGElementInstance;
-    new(): SVGElementInstance;
-}
-
-interface SVGElementInstanceList {
-    readonly length: number;
-    item(index: number): SVGElementInstance;
-}
-
-declare var SVGElementInstanceList: {
-    prototype: SVGElementInstanceList;
-    new(): SVGElementInstanceList;
-}
-
-interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGEllipseElement: {
-    prototype: SVGEllipseElement;
-    new(): SVGEllipseElement;
-}
-
-interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly mode: SVGAnimatedEnumeration;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEBlendElement: {
-    prototype: SVGFEBlendElement;
-    new(): SVGFEBlendElement;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-}
-
-interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly type: SVGAnimatedEnumeration;
-    readonly values: SVGAnimatedNumberList;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEColorMatrixElement: {
-    prototype: SVGFEColorMatrixElement;
-    new(): SVGFEColorMatrixElement;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-}
-
-interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEComponentTransferElement: {
-    prototype: SVGFEComponentTransferElement;
-    new(): SVGFEComponentTransferElement;
-}
-
-interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly k1: SVGAnimatedNumber;
-    readonly k2: SVGAnimatedNumber;
-    readonly k3: SVGAnimatedNumber;
-    readonly k4: SVGAnimatedNumber;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFECompositeElement: {
-    prototype: SVGFECompositeElement;
-    new(): SVGFECompositeElement;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-}
-
-interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly bias: SVGAnimatedNumber;
-    readonly divisor: SVGAnimatedNumber;
-    readonly edgeMode: SVGAnimatedEnumeration;
-    readonly in1: SVGAnimatedString;
-    readonly kernelMatrix: SVGAnimatedNumberList;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly orderX: SVGAnimatedInteger;
-    readonly orderY: SVGAnimatedInteger;
-    readonly preserveAlpha: SVGAnimatedBoolean;
-    readonly targetX: SVGAnimatedInteger;
-    readonly targetY: SVGAnimatedInteger;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEConvolveMatrixElement: {
-    prototype: SVGFEConvolveMatrixElement;
-    new(): SVGFEConvolveMatrixElement;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-}
-
-interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly diffuseConstant: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDiffuseLightingElement: {
-    prototype: SVGFEDiffuseLightingElement;
-    new(): SVGFEDiffuseLightingElement;
-}
-
-interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly scale: SVGAnimatedNumber;
-    readonly xChannelSelector: SVGAnimatedEnumeration;
-    readonly yChannelSelector: SVGAnimatedEnumeration;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDisplacementMapElement: {
-    prototype: SVGFEDisplacementMapElement;
-    new(): SVGFEDisplacementMapElement;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-}
-
-interface SVGFEDistantLightElement extends SVGElement {
-    readonly azimuth: SVGAnimatedNumber;
-    readonly elevation: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDistantLightElement: {
-    prototype: SVGFEDistantLightElement;
-    new(): SVGFEDistantLightElement;
-}
-
-interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEFloodElement: {
-    prototype: SVGFEFloodElement;
-    new(): SVGFEFloodElement;
-}
-
-interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncAElement: {
-    prototype: SVGFEFuncAElement;
-    new(): SVGFEFuncAElement;
-}
-
-interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncBElement: {
-    prototype: SVGFEFuncBElement;
-    new(): SVGFEFuncBElement;
-}
-
-interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncGElement: {
-    prototype: SVGFEFuncGElement;
-    new(): SVGFEFuncGElement;
-}
-
-interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncRElement: {
-    prototype: SVGFEFuncRElement;
-    new(): SVGFEFuncRElement;
-}
-
-interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly stdDeviationX: SVGAnimatedNumber;
-    readonly stdDeviationY: SVGAnimatedNumber;
-    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEGaussianBlurElement: {
-    prototype: SVGFEGaussianBlurElement;
-    new(): SVGFEGaussianBlurElement;
-}
-
-interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEImageElement: {
-    prototype: SVGFEImageElement;
-    new(): SVGFEImageElement;
-}
-
-interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeElement: {
-    prototype: SVGFEMergeElement;
-    new(): SVGFEMergeElement;
-}
-
-interface SVGFEMergeNodeElement extends SVGElement {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeNodeElement: {
-    prototype: SVGFEMergeNodeElement;
-    new(): SVGFEMergeNodeElement;
-}
-
-interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly radiusX: SVGAnimatedNumber;
-    readonly radiusY: SVGAnimatedNumber;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMorphologyElement: {
-    prototype: SVGFEMorphologyElement;
-    new(): SVGFEMorphologyElement;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-}
-
-interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly dx: SVGAnimatedNumber;
-    readonly dy: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEOffsetElement: {
-    prototype: SVGFEOffsetElement;
-    new(): SVGFEOffsetElement;
-}
-
-interface SVGFEPointLightElement extends SVGElement {
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEPointLightElement: {
-    prototype: SVGFEPointLightElement;
-    new(): SVGFEPointLightElement;
-}
-
-interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly specularConstant: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpecularLightingElement: {
-    prototype: SVGFESpecularLightingElement;
-    new(): SVGFESpecularLightingElement;
-}
-
-interface SVGFESpotLightElement extends SVGElement {
-    readonly limitingConeAngle: SVGAnimatedNumber;
-    readonly pointsAtX: SVGAnimatedNumber;
-    readonly pointsAtY: SVGAnimatedNumber;
-    readonly pointsAtZ: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpotLightElement: {
-    prototype: SVGFESpotLightElement;
-    new(): SVGFESpotLightElement;
-}
-
-interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETileElement: {
-    prototype: SVGFETileElement;
-    new(): SVGFETileElement;
-}
-
-interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly baseFrequencyX: SVGAnimatedNumber;
-    readonly baseFrequencyY: SVGAnimatedNumber;
-    readonly numOctaves: SVGAnimatedInteger;
-    readonly seed: SVGAnimatedNumber;
-    readonly stitchTiles: SVGAnimatedEnumeration;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETurbulenceElement: {
-    prototype: SVGFETurbulenceElement;
-    new(): SVGFETurbulenceElement;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-}
-
-interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
-    readonly filterResX: SVGAnimatedInteger;
-    readonly filterResY: SVGAnimatedInteger;
-    readonly filterUnits: SVGAnimatedEnumeration;
-    readonly height: SVGAnimatedLength;
-    readonly primitiveUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    setFilterRes(filterResX: number, filterResY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFilterElement: {
-    prototype: SVGFilterElement;
-    new(): SVGFilterElement;
-}
-
-interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGForeignObjectElement: {
-    prototype: SVGForeignObjectElement;
-    new(): SVGForeignObjectElement;
-}
-
-interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGElement: {
-    prototype: SVGGElement;
-    new(): SVGGElement;
-}
-
-interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
-    readonly gradientTransform: SVGAnimatedTransformList;
-    readonly gradientUnits: SVGAnimatedEnumeration;
-    readonly spreadMethod: SVGAnimatedEnumeration;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGradientElement: {
-    prototype: SVGGradientElement;
-    new(): SVGGradientElement;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-}
-
-interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly height: SVGAnimatedLength;
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGImageElement: {
-    prototype: SVGImageElement;
-    new(): SVGImageElement;
-}
-
-interface SVGLength {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-declare var SVGLength: {
-    prototype: SVGLength;
-    new(): SVGLength;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-interface SVGLengthList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGLength): SVGLength;
-    clear(): void;
-    getItem(index: number): SVGLength;
-    initialize(newItem: SVGLength): SVGLength;
-    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
-    removeItem(index: number): SVGLength;
-    replaceItem(newItem: SVGLength, index: number): SVGLength;
-}
-
-declare var SVGLengthList: {
-    prototype: SVGLengthList;
-    new(): SVGLengthList;
-}
-
-interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGLineElement: {
-    prototype: SVGLineElement;
-    new(): SVGLineElement;
-}
-
-interface SVGLinearGradientElement extends SVGGradientElement {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-}
-
-declare var SVGLinearGradientElement: {
-    prototype: SVGLinearGradientElement;
-    new(): SVGLinearGradientElement;
-}
-
-interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    readonly markerHeight: SVGAnimatedLength;
-    readonly markerUnits: SVGAnimatedEnumeration;
-    readonly markerWidth: SVGAnimatedLength;
-    readonly orientAngle: SVGAnimatedAngle;
-    readonly orientType: SVGAnimatedEnumeration;
-    readonly refX: SVGAnimatedLength;
-    readonly refY: SVGAnimatedLength;
-    setOrientToAngle(angle: SVGAngle): void;
-    setOrientToAuto(): void;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMarkerElement: {
-    prototype: SVGMarkerElement;
-    new(): SVGMarkerElement;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-}
-
-interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly maskContentUnits: SVGAnimatedEnumeration;
-    readonly maskUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMaskElement: {
-    prototype: SVGMaskElement;
-    new(): SVGMaskElement;
-}
-
-interface SVGMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    flipX(): SVGMatrix;
-    flipY(): SVGMatrix;
-    inverse(): SVGMatrix;
-    multiply(secondMatrix: SVGMatrix): SVGMatrix;
-    rotate(angle: number): SVGMatrix;
-    rotateFromVector(x: number, y: number): SVGMatrix;
-    scale(scaleFactor: number): SVGMatrix;
-    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
-    skewX(angle: number): SVGMatrix;
-    skewY(angle: number): SVGMatrix;
-    translate(x: number, y: number): SVGMatrix;
-}
-
-declare var SVGMatrix: {
-    prototype: SVGMatrix;
-    new(): SVGMatrix;
-}
-
-interface SVGMetadataElement extends SVGElement {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMetadataElement: {
-    prototype: SVGMetadataElement;
-    new(): SVGMetadataElement;
-}
-
-interface SVGNumber {
-    value: number;
-}
-
-declare var SVGNumber: {
-    prototype: SVGNumber;
-    new(): SVGNumber;
-}
-
-interface SVGNumberList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGNumber): SVGNumber;
-    clear(): void;
-    getItem(index: number): SVGNumber;
-    initialize(newItem: SVGNumber): SVGNumber;
-    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
-    removeItem(index: number): SVGNumber;
-    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
-}
-
-declare var SVGNumberList: {
-    prototype: SVGNumberList;
-    new(): SVGNumberList;
-}
-
-interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
-    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
-    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
-    createSVGPathSegClosePath(): SVGPathSegClosePath;
-    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
-    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
-    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
-    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
-    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
-    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
-    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
-    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
-    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
-    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
-    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
-    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
-    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
-    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
-    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
-    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
-    getPathSegAtLength(distance: number): number;
-    getPointAtLength(distance: number): SVGPoint;
-    getTotalLength(): number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPathElement: {
-    prototype: SVGPathElement;
-    new(): SVGPathElement;
-}
-
-interface SVGPathSeg {
-    readonly pathSegType: number;
-    readonly pathSegTypeAsLetter: string;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-declare var SVGPathSeg: {
-    prototype: SVGPathSeg;
-    new(): SVGPathSeg;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-interface SVGPathSegArcAbs extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcAbs: {
-    prototype: SVGPathSegArcAbs;
-    new(): SVGPathSegArcAbs;
-}
-
-interface SVGPathSegArcRel extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcRel: {
-    prototype: SVGPathSegArcRel;
-    new(): SVGPathSegArcRel;
-}
-
-interface SVGPathSegClosePath extends SVGPathSeg {
-}
-
-declare var SVGPathSegClosePath: {
-    prototype: SVGPathSegClosePath;
-    new(): SVGPathSegClosePath;
-}
-
-interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicAbs: {
-    prototype: SVGPathSegCurvetoCubicAbs;
-    new(): SVGPathSegCurvetoCubicAbs;
-}
-
-interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicRel: {
-    prototype: SVGPathSegCurvetoCubicRel;
-    new(): SVGPathSegCurvetoCubicRel;
-}
-
-interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothAbs: {
-    prototype: SVGPathSegCurvetoCubicSmoothAbs;
-    new(): SVGPathSegCurvetoCubicSmoothAbs;
-}
-
-interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothRel: {
-    prototype: SVGPathSegCurvetoCubicSmoothRel;
-    new(): SVGPathSegCurvetoCubicSmoothRel;
-}
-
-interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticAbs: {
-    prototype: SVGPathSegCurvetoQuadraticAbs;
-    new(): SVGPathSegCurvetoQuadraticAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticRel: {
-    prototype: SVGPathSegCurvetoQuadraticRel;
-    new(): SVGPathSegCurvetoQuadraticRel;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
-    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothRel: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
-    new(): SVGPathSegCurvetoQuadraticSmoothRel;
-}
-
-interface SVGPathSegLinetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoAbs: {
-    prototype: SVGPathSegLinetoAbs;
-    new(): SVGPathSegLinetoAbs;
-}
-
-interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalAbs: {
-    prototype: SVGPathSegLinetoHorizontalAbs;
-    new(): SVGPathSegLinetoHorizontalAbs;
-}
-
-interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalRel: {
-    prototype: SVGPathSegLinetoHorizontalRel;
-    new(): SVGPathSegLinetoHorizontalRel;
-}
-
-interface SVGPathSegLinetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoRel: {
-    prototype: SVGPathSegLinetoRel;
-    new(): SVGPathSegLinetoRel;
-}
-
-interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalAbs: {
-    prototype: SVGPathSegLinetoVerticalAbs;
-    new(): SVGPathSegLinetoVerticalAbs;
-}
-
-interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalRel: {
-    prototype: SVGPathSegLinetoVerticalRel;
-    new(): SVGPathSegLinetoVerticalRel;
-}
-
-interface SVGPathSegList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPathSeg): SVGPathSeg;
-    clear(): void;
-    getItem(index: number): SVGPathSeg;
-    initialize(newItem: SVGPathSeg): SVGPathSeg;
-    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
-    removeItem(index: number): SVGPathSeg;
-    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
-}
-
-declare var SVGPathSegList: {
-    prototype: SVGPathSegList;
-    new(): SVGPathSegList;
-}
-
-interface SVGPathSegMovetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoAbs: {
-    prototype: SVGPathSegMovetoAbs;
-    new(): SVGPathSegMovetoAbs;
-}
-
-interface SVGPathSegMovetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoRel: {
-    prototype: SVGPathSegMovetoRel;
-    new(): SVGPathSegMovetoRel;
-}
-
-interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly patternContentUnits: SVGAnimatedEnumeration;
-    readonly patternTransform: SVGAnimatedTransformList;
-    readonly patternUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPatternElement: {
-    prototype: SVGPatternElement;
-    new(): SVGPatternElement;
-}
-
-interface SVGPoint {
-    x: number;
-    y: number;
-    matrixTransform(matrix: SVGMatrix): SVGPoint;
-}
-
-declare var SVGPoint: {
-    prototype: SVGPoint;
-    new(): SVGPoint;
-}
-
-interface SVGPointList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPoint): SVGPoint;
-    clear(): void;
-    getItem(index: number): SVGPoint;
-    initialize(newItem: SVGPoint): SVGPoint;
-    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
-    removeItem(index: number): SVGPoint;
-    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
-}
-
-declare var SVGPointList: {
-    prototype: SVGPointList;
-    new(): SVGPointList;
-}
-
-interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolygonElement: {
-    prototype: SVGPolygonElement;
-    new(): SVGPolygonElement;
-}
-
-interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolylineElement: {
-    prototype: SVGPolylineElement;
-    new(): SVGPolylineElement;
-}
-
-interface SVGPreserveAspectRatio {
-    align: number;
-    meetOrSlice: number;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-declare var SVGPreserveAspectRatio: {
-    prototype: SVGPreserveAspectRatio;
-    new(): SVGPreserveAspectRatio;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-interface SVGRadialGradientElement extends SVGGradientElement {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly fx: SVGAnimatedLength;
-    readonly fy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-}
-
-declare var SVGRadialGradientElement: {
-    prototype: SVGRadialGradientElement;
-    new(): SVGRadialGradientElement;
-}
-
-interface SVGRect {
-    height: number;
-    width: number;
-    x: number;
-    y: number;
-}
-
-declare var SVGRect: {
-    prototype: SVGRect;
-    new(): SVGRect;
-}
-
-interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGRectElement: {
-    prototype: SVGRectElement;
-    new(): SVGRectElement;
-}
-
-interface SVGSVGElementEventMap extends SVGElementEventMap {
-    "SVGAbort": Event;
-    "SVGError": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "SVGUnload": Event;
-    "SVGZoom": SVGZoomEvent;
-}
-
-interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    contentScriptType: string;
-    contentStyleType: string;
-    currentScale: number;
-    readonly currentTranslate: SVGPoint;
-    readonly height: SVGAnimatedLength;
-    onabort: (this: SVGSVGElement, ev: Event) => any;
-    onerror: (this: SVGSVGElement, ev: Event) => any;
-    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
-    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
-    onunload: (this: SVGSVGElement, ev: Event) => any;
-    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
-    readonly pixelUnitToMillimeterX: number;
-    readonly pixelUnitToMillimeterY: number;
-    readonly screenPixelToMillimeterX: number;
-    readonly screenPixelToMillimeterY: number;
-    readonly viewport: SVGRect;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
-    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
-    createSVGAngle(): SVGAngle;
-    createSVGLength(): SVGLength;
-    createSVGMatrix(): SVGMatrix;
-    createSVGNumber(): SVGNumber;
-    createSVGPoint(): SVGPoint;
-    createSVGRect(): SVGRect;
-    createSVGTransform(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    deselectAll(): void;
-    forceRedraw(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getCurrentTime(): number;
-    getElementById(elementId: string): Element;
-    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    pauseAnimations(): void;
-    setCurrentTime(seconds: number): void;
-    suspendRedraw(maxWaitMilliseconds: number): number;
-    unpauseAnimations(): void;
-    unsuspendRedraw(suspendHandleID: number): void;
-    unsuspendRedrawAll(): void;
-    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSVGElement: {
-    prototype: SVGSVGElement;
-    new(): SVGSVGElement;
-}
-
-interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGScriptElement: {
-    prototype: SVGScriptElement;
-    new(): SVGScriptElement;
-}
-
-interface SVGStopElement extends SVGElement, SVGStylable {
-    readonly offset: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStopElement: {
-    prototype: SVGStopElement;
-    new(): SVGStopElement;
-}
-
-interface SVGStringList {
-    readonly numberOfItems: number;
-    appendItem(newItem: string): string;
-    clear(): void;
-    getItem(index: number): string;
-    initialize(newItem: string): string;
-    insertItemBefore(newItem: string, index: number): string;
-    removeItem(index: number): string;
-    replaceItem(newItem: string, index: number): string;
-}
-
-declare var SVGStringList: {
-    prototype: SVGStringList;
-    new(): SVGStringList;
-}
-
-interface SVGStyleElement extends SVGElement, SVGLangSpace {
-    disabled: boolean;
-    media: string;
-    title: string;
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStyleElement: {
-    prototype: SVGStyleElement;
-    new(): SVGStyleElement;
-}
-
-interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSwitchElement: {
-    prototype: SVGSwitchElement;
-    new(): SVGSwitchElement;
-}
-
-interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSymbolElement: {
-    prototype: SVGSymbolElement;
-    new(): SVGSymbolElement;
-}
-
-interface SVGTSpanElement extends SVGTextPositioningElement {
-}
-
-declare var SVGTSpanElement: {
-    prototype: SVGTSpanElement;
-    new(): SVGTSpanElement;
-}
-
-interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
-    readonly lengthAdjust: SVGAnimatedEnumeration;
-    readonly textLength: SVGAnimatedLength;
-    getCharNumAtPosition(point: SVGPoint): number;
-    getComputedTextLength(): number;
-    getEndPositionOfChar(charnum: number): SVGPoint;
-    getExtentOfChar(charnum: number): SVGRect;
-    getNumberOfChars(): number;
-    getRotationOfChar(charnum: number): number;
-    getStartPositionOfChar(charnum: number): SVGPoint;
-    getSubStringLength(charnum: number, nchars: number): number;
-    selectSubString(charnum: number, nchars: number): void;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextContentElement: {
-    prototype: SVGTextContentElement;
-    new(): SVGTextContentElement;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-}
-
-interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
-}
-
-declare var SVGTextElement: {
-    prototype: SVGTextElement;
-    new(): SVGTextElement;
-}
-
-interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
-    readonly method: SVGAnimatedEnumeration;
-    readonly spacing: SVGAnimatedEnumeration;
-    readonly startOffset: SVGAnimatedLength;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-declare var SVGTextPathElement: {
-    prototype: SVGTextPathElement;
-    new(): SVGTextPathElement;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-interface SVGTextPositioningElement extends SVGTextContentElement {
-    readonly dx: SVGAnimatedLengthList;
-    readonly dy: SVGAnimatedLengthList;
-    readonly rotate: SVGAnimatedNumberList;
-    readonly x: SVGAnimatedLengthList;
-    readonly y: SVGAnimatedLengthList;
-}
-
-declare var SVGTextPositioningElement: {
-    prototype: SVGTextPositioningElement;
-    new(): SVGTextPositioningElement;
-}
-
-interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTitleElement: {
-    prototype: SVGTitleElement;
-    new(): SVGTitleElement;
-}
-
-interface SVGTransform {
-    readonly angle: number;
-    readonly matrix: SVGMatrix;
-    readonly type: number;
-    setMatrix(matrix: SVGMatrix): void;
-    setRotate(angle: number, cx: number, cy: number): void;
-    setScale(sx: number, sy: number): void;
-    setSkewX(angle: number): void;
-    setSkewY(angle: number): void;
-    setTranslate(tx: number, ty: number): void;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-declare var SVGTransform: {
-    prototype: SVGTransform;
-    new(): SVGTransform;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-interface SVGTransformList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGTransform): SVGTransform;
-    clear(): void;
-    consolidate(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    getItem(index: number): SVGTransform;
-    initialize(newItem: SVGTransform): SVGTransform;
-    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
-    removeItem(index: number): SVGTransform;
-    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
-}
-
-declare var SVGTransformList: {
-    prototype: SVGTransformList;
-    new(): SVGTransformList;
-}
-
-interface SVGUnitTypes {
-    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
-    readonly SVG_UNIT_TYPE_UNKNOWN: number;
-    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
-}
-declare var SVGUnitTypes: SVGUnitTypes;
-
-interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly animatedInstanceRoot: SVGElementInstance;
-    readonly height: SVGAnimatedLength;
-    readonly instanceRoot: SVGElementInstance;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGUseElement: {
-    prototype: SVGUseElement;
-    new(): SVGUseElement;
-}
-
-interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    readonly viewTarget: SVGStringList;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGViewElement: {
-    prototype: SVGViewElement;
-    new(): SVGViewElement;
-}
-
-interface SVGZoomAndPan {
-    readonly zoomAndPan: number;
-}
-
-declare var SVGZoomAndPan: {
-    readonly SVG_ZOOMANDPAN_DISABLE: number;
-    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
-    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-}
-
-interface SVGZoomEvent extends UIEvent {
-    readonly newScale: number;
-    readonly newTranslate: SVGPoint;
-    readonly previousScale: number;
-    readonly previousTranslate: SVGPoint;
-    readonly zoomRectScreen: SVGRect;
-}
-
-declare var SVGZoomEvent: {
-    prototype: SVGZoomEvent;
-    new(): SVGZoomEvent;
-}
-
-interface ScreenEventMap {
-    "MSOrientationChange": Event;
-}
-
-interface Screen extends EventTarget {
-    readonly availHeight: number;
-    readonly availWidth: number;
-    bufferDepth: number;
-    readonly colorDepth: number;
-    readonly deviceXDPI: number;
-    readonly deviceYDPI: number;
-    readonly fontSmoothingEnabled: boolean;
-    readonly height: number;
-    readonly logicalXDPI: number;
-    readonly logicalYDPI: number;
-    readonly msOrientation: string;
-    onmsorientationchange: (this: Screen, ev: Event) => any;
-    readonly pixelDepth: number;
-    readonly systemXDPI: number;
-    readonly systemYDPI: number;
-    readonly width: number;
-    msLockOrientation(orientations: string | string[]): boolean;
-    msUnlockOrientation(): void;
-    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Screen: {
-    prototype: Screen;
-    new(): Screen;
-}
-
-interface ScriptNotifyEvent extends Event {
-    readonly callingUri: string;
-    readonly value: string;
-}
-
-declare var ScriptNotifyEvent: {
-    prototype: ScriptNotifyEvent;
-    new(): ScriptNotifyEvent;
-}
-
-interface ScriptProcessorNodeEventMap {
-    "audioprocess": AudioProcessingEvent;
-}
-
-interface ScriptProcessorNode extends AudioNode {
-    readonly bufferSize: number;
-    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
-    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ScriptProcessorNode: {
-    prototype: ScriptProcessorNode;
-    new(): ScriptProcessorNode;
-}
-
-interface Selection {
-    readonly anchorNode: Node;
-    readonly anchorOffset: number;
-    readonly focusNode: Node;
-    readonly focusOffset: number;
-    readonly isCollapsed: boolean;
-    readonly rangeCount: number;
-    readonly type: string;
-    addRange(range: Range): void;
-    collapse(parentNode: Node, offset: number): void;
-    collapseToEnd(): void;
-    collapseToStart(): void;
-    containsNode(node: Node, partlyContained: boolean): boolean;
-    deleteFromDocument(): void;
-    empty(): void;
-    extend(newNode: Node, offset: number): void;
-    getRangeAt(index: number): Range;
-    removeAllRanges(): void;
-    removeRange(range: Range): void;
-    selectAllChildren(parentNode: Node): void;
-    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
-    toString(): string;
-}
-
-declare var Selection: {
-    prototype: Selection;
-    new(): Selection;
-}
-
-interface SourceBuffer extends EventTarget {
-    appendWindowEnd: number;
-    appendWindowStart: number;
-    readonly audioTracks: AudioTrackList;
-    readonly buffered: TimeRanges;
-    mode: string;
-    timestampOffset: number;
-    readonly updating: boolean;
-    readonly videoTracks: VideoTrackList;
-    abort(): void;
-    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
-    appendStream(stream: MSStream, maxSize?: number): void;
-    remove(start: number, end: number): void;
-}
-
-declare var SourceBuffer: {
-    prototype: SourceBuffer;
-    new(): SourceBuffer;
-}
-
-interface SourceBufferList extends EventTarget {
-    readonly length: number;
-    item(index: number): SourceBuffer;
-    [index: number]: SourceBuffer;
-}
-
-declare var SourceBufferList: {
-    prototype: SourceBufferList;
-    new(): SourceBufferList;
-}
-
-interface StereoPannerNode extends AudioNode {
-    readonly pan: AudioParam;
-}
-
-declare var StereoPannerNode: {
-    prototype: StereoPannerNode;
-    new(): StereoPannerNode;
-}
-
-interface Storage {
-    readonly length: number;
-    clear(): void;
-    getItem(key: string): string | null;
-    key(index: number): string | null;
-    removeItem(key: string): void;
-    setItem(key: string, data: string): void;
-    [key: string]: any;
-    [index: number]: string;
-}
-
-declare var Storage: {
-    prototype: Storage;
-    new(): Storage;
-}
-
-interface StorageEvent extends Event {
-    readonly url: string;
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    storageArea?: Storage;
-}
-
-declare var StorageEvent: {
-    prototype: StorageEvent;
-    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
-}
-
-interface StyleMedia {
-    readonly type: string;
-    matchMedium(mediaquery: string): boolean;
-}
-
-declare var StyleMedia: {
-    prototype: StyleMedia;
-    new(): StyleMedia;
-}
-
-interface StyleSheet {
-    disabled: boolean;
-    readonly href: string;
-    readonly media: MediaList;
-    readonly ownerNode: Node;
-    readonly parentStyleSheet: StyleSheet;
-    readonly title: string;
-    readonly type: string;
-}
-
-declare var StyleSheet: {
-    prototype: StyleSheet;
-    new(): StyleSheet;
-}
-
-interface StyleSheetList {
-    readonly length: number;
-    item(index?: number): StyleSheet;
-    [index: number]: StyleSheet;
-}
-
-declare var StyleSheetList: {
-    prototype: StyleSheetList;
-    new(): StyleSheetList;
-}
-
-interface StyleSheetPageList {
-    readonly length: number;
-    item(index: number): CSSPageRule;
-    [index: number]: CSSPageRule;
-}
-
-declare var StyleSheetPageList: {
-    prototype: StyleSheetPageList;
-    new(): StyleSheetPageList;
-}
-
-interface SubtleCrypto {
-    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
-    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
-    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
-    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
-    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
-    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
-    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
-    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
-    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
-    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
-    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
-    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
-}
-
-declare var SubtleCrypto: {
-    prototype: SubtleCrypto;
-    new(): SubtleCrypto;
-}
-
-interface Text extends CharacterData {
-    readonly wholeText: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    splitText(offset: number): Text;
-}
-
-declare var Text: {
-    prototype: Text;
-    new(): Text;
-}
-
-interface TextEvent extends UIEvent {
-    readonly data: string;
-    readonly inputMethod: number;
-    readonly locale: string;
-    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-declare var TextEvent: {
-    prototype: TextEvent;
-    new(): TextEvent;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-interface TextMetrics {
-    readonly width: number;
-}
-
-declare var TextMetrics: {
-    prototype: TextMetrics;
-    new(): TextMetrics;
-}
-
-interface TextTrackEventMap {
-    "cuechange": Event;
-    "error": ErrorEvent;
-    "load": Event;
-}
-
-interface TextTrack extends EventTarget {
-    readonly activeCues: TextTrackCueList;
-    readonly cues: TextTrackCueList;
-    readonly inBandMetadataTrackDispatchType: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly language: string;
-    mode: any;
-    oncuechange: (this: TextTrack, ev: Event) => any;
-    onerror: (this: TextTrack, ev: ErrorEvent) => any;
-    onload: (this: TextTrack, ev: Event) => any;
-    readonly readyState: number;
-    addCue(cue: TextTrackCue): void;
-    removeCue(cue: TextTrackCue): void;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrack: {
-    prototype: TextTrack;
-    new(): TextTrack;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-}
-
-interface TextTrackCueEventMap {
-    "enter": Event;
-    "exit": Event;
-}
-
-interface TextTrackCue extends EventTarget {
-    endTime: number;
-    id: string;
-    onenter: (this: TextTrackCue, ev: Event) => any;
-    onexit: (this: TextTrackCue, ev: Event) => any;
-    pauseOnExit: boolean;
-    startTime: number;
-    text: string;
-    readonly track: TextTrack;
-    getCueAsHTML(): DocumentFragment;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrackCue: {
-    prototype: TextTrackCue;
-    new(startTime: number, endTime: number, text: string): TextTrackCue;
-}
-
-interface TextTrackCueList {
-    readonly length: number;
-    getCueById(id: string): TextTrackCue;
-    item(index: number): TextTrackCue;
-    [index: number]: TextTrackCue;
-}
-
-declare var TextTrackCueList: {
-    prototype: TextTrackCueList;
-    new(): TextTrackCueList;
-}
-
-interface TextTrackListEventMap {
-    "addtrack": TrackEvent;
-}
-
-interface TextTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
-    item(index: number): TextTrack;
-    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: TextTrack;
-}
-
-declare var TextTrackList: {
-    prototype: TextTrackList;
-    new(): TextTrackList;
-}
-
-interface TimeRanges {
-    readonly length: number;
-    end(index: number): number;
-    start(index: number): number;
-}
-
-declare var TimeRanges: {
-    prototype: TimeRanges;
-    new(): TimeRanges;
-}
-
-interface Touch {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly identifier: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly target: EventTarget;
-}
-
-declare var Touch: {
-    prototype: Touch;
-    new(): Touch;
-}
-
-interface TouchEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly changedTouches: TouchList;
-    readonly ctrlKey: boolean;
-    readonly metaKey: boolean;
-    readonly shiftKey: boolean;
-    readonly targetTouches: TouchList;
-    readonly touches: TouchList;
-}
-
-declare var TouchEvent: {
-    prototype: TouchEvent;
-    new(): TouchEvent;
-}
-
-interface TouchList {
-    readonly length: number;
-    item(index: number): Touch | null;
-    [index: number]: Touch;
-}
-
-declare var TouchList: {
-    prototype: TouchList;
-    new(): TouchList;
-}
-
-interface TrackEvent extends Event {
-    readonly track: any;
-}
-
-declare var TrackEvent: {
-    prototype: TrackEvent;
-    new(): TrackEvent;
-}
-
-interface TransitionEvent extends Event {
-    readonly elapsedTime: number;
-    readonly propertyName: string;
-    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var TransitionEvent: {
-    prototype: TransitionEvent;
-    new(): TransitionEvent;
-}
-
-interface TreeWalker {
-    currentNode: Node;
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    firstChild(): Node;
-    lastChild(): Node;
-    nextNode(): Node;
-    nextSibling(): Node;
-    parentNode(): Node;
-    previousNode(): Node;
-    previousSibling(): Node;
-}
-
-declare var TreeWalker: {
-    prototype: TreeWalker;
-    new(): TreeWalker;
-}
-
-interface UIEvent extends Event {
-    readonly detail: number;
-    readonly view: Window;
-    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
-}
-
-declare var UIEvent: {
-    prototype: UIEvent;
-    new(type: string, eventInitDict?: UIEventInit): UIEvent;
-}
-
-interface URL {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    password: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    username: string;
-    toString(): string;
-}
-
-declare var URL: {
-    prototype: URL;
-    new(url: string, base?: string): URL;
-    createObjectURL(object: any, options?: ObjectURLOptions): string;
-    revokeObjectURL(url: string): void;
-}
-
-interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
-    readonly mediaType: string;
-}
-
-declare var UnviewableContentIdentifiedEvent: {
-    prototype: UnviewableContentIdentifiedEvent;
-    new(): UnviewableContentIdentifiedEvent;
-}
-
-interface ValidityState {
-    readonly badInput: boolean;
-    readonly customError: boolean;
-    readonly patternMismatch: boolean;
-    readonly rangeOverflow: boolean;
-    readonly rangeUnderflow: boolean;
-    readonly stepMismatch: boolean;
-    readonly tooLong: boolean;
-    readonly typeMismatch: boolean;
-    readonly valid: boolean;
-    readonly valueMissing: boolean;
-}
-
-declare var ValidityState: {
-    prototype: ValidityState;
-    new(): ValidityState;
-}
-
-interface VideoPlaybackQuality {
-    readonly corruptedVideoFrames: number;
-    readonly creationTime: number;
-    readonly droppedVideoFrames: number;
-    readonly totalFrameDelay: number;
-    readonly totalVideoFrames: number;
-}
-
-declare var VideoPlaybackQuality: {
-    prototype: VideoPlaybackQuality;
-    new(): VideoPlaybackQuality;
-}
-
-interface VideoTrack {
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    selected: boolean;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var VideoTrack: {
-    prototype: VideoTrack;
-    new(): VideoTrack;
-}
-
-interface VideoTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface VideoTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    onchange: (this: VideoTrackList, ev: Event) => any;
-    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    readonly selectedIndex: number;
-    getTrackById(id: string): VideoTrack | null;
-    item(index: number): VideoTrack;
-    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: VideoTrack;
-}
-
-declare var VideoTrackList: {
-    prototype: VideoTrackList;
-    new(): VideoTrackList;
-}
-
-interface WEBGL_compressed_texture_s3tc {
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-declare var WEBGL_compressed_texture_s3tc: {
-    prototype: WEBGL_compressed_texture_s3tc;
-    new(): WEBGL_compressed_texture_s3tc;
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-interface WEBGL_debug_renderer_info {
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-declare var WEBGL_debug_renderer_info: {
-    prototype: WEBGL_debug_renderer_info;
-    new(): WEBGL_debug_renderer_info;
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-interface WEBGL_depth_texture {
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-declare var WEBGL_depth_texture: {
-    prototype: WEBGL_depth_texture;
-    new(): WEBGL_depth_texture;
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-interface WaveShaperNode extends AudioNode {
-    curve: Float32Array | null;
-    oversample: string;
-}
-
-declare var WaveShaperNode: {
-    prototype: WaveShaperNode;
-    new(): WaveShaperNode;
-}
-
-interface WebGLActiveInfo {
-    readonly name: string;
-    readonly size: number;
-    readonly type: number;
-}
-
-declare var WebGLActiveInfo: {
-    prototype: WebGLActiveInfo;
-    new(): WebGLActiveInfo;
-}
-
-interface WebGLBuffer extends WebGLObject {
-}
-
-declare var WebGLBuffer: {
-    prototype: WebGLBuffer;
-    new(): WebGLBuffer;
-}
-
-interface WebGLContextEvent extends Event {
-    readonly statusMessage: string;
-}
-
-declare var WebGLContextEvent: {
-    prototype: WebGLContextEvent;
-    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
-}
-
-interface WebGLFramebuffer extends WebGLObject {
-}
-
-declare var WebGLFramebuffer: {
-    prototype: WebGLFramebuffer;
-    new(): WebGLFramebuffer;
-}
-
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
-    prototype: WebGLObject;
-    new(): WebGLObject;
-}
-
-interface WebGLProgram extends WebGLObject {
-}
-
-declare var WebGLProgram: {
-    prototype: WebGLProgram;
-    new(): WebGLProgram;
-}
-
-interface WebGLRenderbuffer extends WebGLObject {
-}
-
-declare var WebGLRenderbuffer: {
-    prototype: WebGLRenderbuffer;
-    new(): WebGLRenderbuffer;
-}
-
-interface WebGLRenderingContext {
-    readonly canvas: HTMLCanvasElement;
-    readonly drawingBufferHeight: number;
-    readonly drawingBufferWidth: number;
-    activeTexture(texture: number): void;
-    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
-    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
-    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
-    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
-    bindTexture(target: number, texture: WebGLTexture | null): void;
-    blendColor(red: number, green: number, blue: number, alpha: number): void;
-    blendEquation(mode: number): void;
-    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
-    blendFunc(sfactor: number, dfactor: number): void;
-    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
-    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
-    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
-    checkFramebufferStatus(target: number): number;
-    clear(mask: number): void;
-    clearColor(red: number, green: number, blue: number, alpha: number): void;
-    clearDepth(depth: number): void;
-    clearStencil(s: number): void;
-    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
-    compileShader(shader: WebGLShader | null): void;
-    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
-    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
-    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
-    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
-    createBuffer(): WebGLBuffer | null;
-    createFramebuffer(): WebGLFramebuffer | null;
-    createProgram(): WebGLProgram | null;
-    createRenderbuffer(): WebGLRenderbuffer | null;
-    createShader(type: number): WebGLShader | null;
-    createTexture(): WebGLTexture | null;
-    cullFace(mode: number): void;
-    deleteBuffer(buffer: WebGLBuffer | null): void;
-    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
-    deleteProgram(program: WebGLProgram | null): void;
-    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
-    deleteShader(shader: WebGLShader | null): void;
-    deleteTexture(texture: WebGLTexture | null): void;
-    depthFunc(func: number): void;
-    depthMask(flag: boolean): void;
-    depthRange(zNear: number, zFar: number): void;
-    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    disable(cap: number): void;
-    disableVertexAttribArray(index: number): void;
-    drawArrays(mode: number, first: number, count: number): void;
-    drawElements(mode: number, count: number, type: number, offset: number): 
void;
-    enable(cap: number): void;
-    enableVertexAttribArray(index: number): void;
-    finish(): void;
-    flush(): void;
-    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
-    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
-    frontFace(mode: number): void;
-    generateMipmap(target: number): void;
-    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
-    getAttribLocation(program: WebGLProgram | null, name: string): number;
-    getBufferParameter(target: number, pname: number): any;
-    getContextAttributes(): WebGLContextAttributes;
-    getError(): number;
-    getExtension(name: string): any;
-    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
-    getParameter(pname: number): any;
-    getProgramInfoLog(program: WebGLProgram | null): string | null;
-    getProgramParameter(program: WebGLProgram | null, pname: number): any;
-    getRenderbufferParameter(target: number, pname: number): any;
-    getShaderInfoLog(shader: WebGLShader | null): string | null;
-    getShaderParameter(shader: WebGLShader | null, pname: number): any;
-    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
-    getShaderSource(shader: WebGLShader | null): string | null;
-    getSupportedExtensions(): string[] | null;
-    getTexParameter(target: number, pname: number): any;
-    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
-    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
-    getVertexAttrib(index: number, pname: number): any;
-    getVertexAttribOffset(index: number, pname: number): number;
-    hint(target: number, mode: number): void;
-    isBuffer(buffer: WebGLBuffer | null): boolean;
-    isContextLost(): boolean;
-    isEnabled(cap: number): boolean;
-    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
-    isProgram(program: WebGLProgram | null): boolean;
-    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
-    isShader(shader: WebGLShader | null): boolean;
-    isTexture(texture: WebGLTexture | null): boolean;
-    lineWidth(width: number): void;
-    linkProgram(program: WebGLProgram | null): void;
-    pixelStorei(pname: number, param: number): void;
-    polygonOffset(factor: number, units: number): void;
-    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
-    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
-    sampleCoverage(value: number, invert: boolean): void;
-    scissor(x: number, y: number, width: number, height: number): void;
-    shaderSource(shader: WebGLShader | null, source: string): void;
-    stencilFunc(func: number, ref: number, mask: number): void;
-    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
-    stencilMask(mask: number): void;
-    stencilMaskSeparate(face: number, mask: number): void;
-    stencilOp(fail: number, zfail: number, zpass: number): void;
-    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
-    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
-    texParameterf(target: number, pname: number, param: number): void;
-    texParameteri(target: number, pname: number, param: number): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
-    uniform1f(location: WebGLUniformLocation | null, x: number): void;
-    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform1i(location: WebGLUniformLocation | null, x: number): void;
-    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    useProgram(program: WebGLProgram | null): void;
-    validateProgram(program: WebGLProgram | null): void;
-    vertexAttrib1f(indx: number, x: number): void;
-    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib2f(indx: number, x: number, y: number): void;
-    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
-    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
-    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
-    viewport(x: number, y: number, width: number, height: number): void;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-declare var WebGLRenderingContext: {
-    prototype: WebGLRenderingContext;
-    new(): WebGLRenderingContext;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-interface WebGLShader extends WebGLObject {
-}
-
-declare var WebGLShader: {
-    prototype: WebGLShader;
-    new(): WebGLShader;
-}
-
-interface WebGLShaderPrecisionFormat {
-    readonly precision: number;
-    readonly rangeMax: number;
-    readonly rangeMin: number;
-}
-
-declare var WebGLShaderPrecisionFormat: {
-    prototype: WebGLShaderPrecisionFormat;
-    new(): WebGLShaderPrecisionFormat;
-}
-
-interface WebGLTexture extends WebGLObject {
-}
-
-declare var WebGLTexture: {
-    prototype: WebGLTexture;
-    new(): WebGLTexture;
-}
-
-interface WebGLUniformLocation {
-}
-
-declare var WebGLUniformLocation: {
-    prototype: WebGLUniformLocation;
-    new(): WebGLUniformLocation;
-}
-
-interface WebKitCSSMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    m11: number;
-    m12: number;
-    m13: number;
-    m14: number;
-    m21: number;
-    m22: number;
-    m23: number;
-    m24: number;
-    m31: number;
-    m32: number;
-    m33: number;
-    m34: number;
-    m41: number;
-    m42: number;
-    m43: number;
-    m44: number;
-    inverse(): WebKitCSSMatrix;
-    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
-    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
-    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
-    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
-    setMatrixValue(value: string): void;
-    skewX(angle: number): WebKitCSSMatrix;
-    skewY(angle: number): WebKitCSSMatrix;
-    toString(): string;
-    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
-}
-
-declare var WebKitCSSMatrix: {
-    prototype: WebKitCSSMatrix;
-    new(text?: string): WebKitCSSMatrix;
-}
-
-interface WebKitPoint {
-    x: number;
-    y: number;
-}
-
-declare var WebKitPoint: {
-    prototype: WebKitPoint;
-    new(x?: number, y?: number): WebKitPoint;
-}
-
-interface WebSocketEventMap {
-    "close": CloseEvent;
-    "error": ErrorEvent;
-    "message": MessageEvent;
-    "open": Event;
-}
-
-interface WebSocket extends EventTarget {
-    binaryType: string;
-    readonly bufferedAmount: number;
-    readonly extensions: string;
-    onclose: (this: WebSocket, ev: CloseEvent) => any;
-    onerror: (this: WebSocket, ev: ErrorEvent) => any;
-    onmessage: (this: WebSocket, ev: MessageEvent) => any;
-    onopen: (this: WebSocket, ev: Event) => any;
-    readonly protocol: string;
-    readonly readyState: number;
-    readonly url: string;
-    close(code?: number, reason?: string): void;
-    send(data: any): void;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WebSocket: {
-    prototype: WebSocket;
-    new(url: string, protocols?: string | string[]): WebSocket;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-}
-
-interface WheelEvent extends MouseEvent {
-    readonly deltaMode: number;
-    readonly deltaX: number;
-    readonly deltaY: number;
-    readonly deltaZ: number;
-    readonly wheelDelta: number;
-    readonly wheelDeltaX: number;
-    readonly wheelDeltaY: number;
-    getCurrentPoint(element: Element): void;
-    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-declare var WheelEvent: {
-    prototype: WheelEvent;
-    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-interface WindowEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "compassneedscalibration": Event;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "devicelight": DeviceLightEvent;
-    "devicemotion": DeviceMotionEvent;
-    "deviceorientation": DeviceOrientationEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "message": MessageEvent;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "popstate": PopStateEvent;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "stalled": Event;
-    "storage": StorageEvent;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "unload": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
-    readonly applicationCache: ApplicationCache;
-    readonly clientInformation: Navigator;
-    readonly closed: boolean;
-    readonly crypto: Crypto;
-    defaultStatus: string;
-    readonly devicePixelRatio: number;
-    readonly doNotTrack: string;
-    readonly document: Document;
-    event: Event | undefined;
-    readonly external: External;
-    readonly frameElement: Element;
-    readonly frames: Window;
-    readonly history: History;
-    readonly innerHeight: number;
-    readonly innerWidth: number;
-    readonly length: number;
-    readonly location: Location;
-    readonly locationbar: BarProp;
-    readonly menubar: BarProp;
-    readonly msCredentials: MSCredentials;
-    name: string;
-    readonly navigator: Navigator;
-    offscreenBuffering: string | boolean;
-    onabort: (this: Window, ev: UIEvent) => any;
-    onafterprint: (this: Window, ev: Event) => any;
-    onbeforeprint: (this: Window, ev: Event) => any;
-    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-    onblur: (this: Window, ev: FocusEvent) => any;
-    oncanplay: (this: Window, ev: Event) => any;
-    oncanplaythrough: (this: Window, ev: Event) => any;
-    onchange: (this: Window, ev: Event) => any;
-    onclick: (this: Window, ev: MouseEvent) => any;
-    oncompassneedscalibration: (this: Window, ev: Event) => any;
-    oncontextmenu: (this: Window, ev: PointerEvent) => any;
-    ondblclick: (this: Window, ev: MouseEvent) => any;
-    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
-    ondrag: (this: Window, ev: DragEvent) => any;
-    ondragend: (this: Window, ev: DragEvent) => any;
-    ondragenter: (this: Window, ev: DragEvent) => any;
-    ondragleave: (this: Window, ev: DragEvent) => any;
-    ondragover: (this: Window, ev: DragEvent) => any;
-    ondragstart: (this: Window, ev: DragEvent) => any;
-    ondrop: (this: Window, ev: DragEvent) => any;
-    ondurationchange: (this: Window, ev: Event) => any;
-    onemptied: (this: Window, ev: Event) => any;
-    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-    onerror: ErrorEventHandler;
-    onfocus: (this: Window, ev: FocusEvent) => any;
-    onhashchange: (this: Window, ev: HashChangeEvent) => any;
-    oninput: (this: Window, ev: Event) => any;
-    oninvalid: (this: Window, ev: Event) => any;
-    onkeydown: (this: Window, ev: KeyboardEvent) => any;
-    onkeypress: (this: Window, ev: KeyboardEvent) => any;
-    onkeyup: (this: Window, ev: KeyboardEvent) => any;
-    onload: (this: Window, ev: Event) => any;
-    onloadeddata: (this: Window, ev: Event) => any;
-    onloadedmetadata: (this: Window, ev: Event) => any;
-    onloadstart: (this: Window, ev: Event) => any;
-    onmessage: (this: Window, ev: MessageEvent) => any;
-    onmousedown: (this: Window, ev: MouseEvent) => any;
-    onmouseenter: (this: Window, ev: MouseEvent) => any;
-    onmouseleave: (this: Window, ev: MouseEvent) => any;
-    onmousemove: (this: Window, ev: MouseEvent) => any;
-    onmouseout: (this: Window, ev: MouseEvent) => any;
-    onmouseover: (this: Window, ev: MouseEvent) => any;
-    onmouseup: (this: Window, ev: MouseEvent) => any;
-    onmousewheel: (this: Window, ev: WheelEvent) => any;
-    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-    onoffline: (this: Window, ev: Event) => any;
-    ononline: (this: Window, ev: Event) => any;
-    onorientationchange: (this: Window, ev: Event) => any;
-    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-    onpause: (this: Window, ev: Event) => any;
-    onplay: (this: Window, ev: Event) => any;
-    onplaying: (this: Window, ev: Event) => any;
-    onpopstate: (this: Window, ev: PopStateEvent) => any;
-    onprogress: (this: Window, ev: ProgressEvent) => any;
-    onratechange: (this: Window, ev: Event) => any;
-    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-    onreset: (this: Window, ev: Event) => any;
-    onresize: (this: Window, ev: UIEvent) => any;
-    onscroll: (this: Window, ev: UIEvent) => any;
-    onseeked: (this: Window, ev: Event) => any;
-    onseeking: (this: Window, ev: Event) => any;
-    onselect: (this: Window, ev: UIEvent) => any;
-    onstalled: (this: Window, ev: Event) => any;
-    onstorage: (this: Window, ev: StorageEvent) => any;
-    onsubmit: (this: Window, ev: Event) => any;
-    onsuspend: (this: Window, ev: Event) => any;
-    ontimeupdate: (this: Window, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onunload: (this: Window, ev: Event) => any;
-    onvolumechange: (this: Window, ev: Event) => any;
-    onwaiting: (this: Window, ev: Event) => any;
-    opener: any;
-    orientation: string | number;
-    readonly outerHeight: number;
-    readonly outerWidth: number;
-    readonly pageXOffset: number;
-    readonly pageYOffset: number;
-    readonly parent: Window;
-    readonly performance: Performance;
-    readonly personalbar: BarProp;
-    readonly screen: Screen;
-    readonly screenLeft: number;
-    readonly screenTop: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly scrollX: number;
-    readonly scrollY: number;
-    readonly scrollbars: BarProp;
-    readonly self: Window;
-    status: string;
-    readonly statusbar: BarProp;
-    readonly styleMedia: StyleMedia;
-    readonly toolbar: BarProp;
-    readonly top: Window;
-    readonly window: Window;
-    URL: typeof URL;
-    Blob: typeof Blob;
-    alert(message?: any): void;
-    blur(): void;
-    cancelAnimationFrame(handle: number): void;
-    captureEvents(): void;
-    close(): void;
-    confirm(message?: string): boolean;
-    focus(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
-    getSelection(): Selection;
-    matchMedia(mediaQuery: string): MediaQueryList;
-    moveBy(x?: number, y?: number): void;
-    moveTo(x?: number, y?: number): void;
-    msWriteProfilerMark(profilerMarkName: string): void;
-    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
-    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
-    print(): void;
-    prompt(message?: string, _default?: string): string | null;
-    releaseEvents(): void;
-    requestAnimationFrame(callback: FrameRequestCallback): number;
-    resizeBy(x?: number, y?: number): void;
-    resizeTo(x?: number, y?: number): void;
-    scroll(x?: number, y?: number): void;
-    scrollBy(x?: number, y?: number): void;
-    scrollTo(x?: number, y?: number): void;
-    webkitCancelAnimationFrame(handle: number): void;
-    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
-    scroll(options?: ScrollToOptions): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollBy(options?: ScrollToOptions): void;
-    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Window: {
-    prototype: Window;
-    new(): Window;
-}
-
-interface WorkerEventMap extends AbstractWorkerEventMap {
-    "message": MessageEvent;
-}
-
-interface Worker extends EventTarget, AbstractWorker {
-    onmessage: (this: Worker, ev: MessageEvent) => any;
-    postMessage(message: any, ports?: any): void;
-    terminate(): void;
-    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Worker: {
-    prototype: Worker;
-    new(stringUrl: string): Worker;
-}
-
-interface XMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLDocument: {
-    prototype: XMLDocument;
-    new(): XMLDocument;
-}
-
-interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
-    "readystatechange": Event;
-}
-
-interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
-    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
-    readonly readyState: number;
-    readonly response: any;
-    readonly responseText: string;
-    responseType: string;
-    readonly responseXML: any;
-    readonly status: number;
-    readonly statusText: string;
-    timeout: number;
-    readonly upload: XMLHttpRequestUpload;
-    withCredentials: boolean;
-    msCaching?: string;
-    readonly responseURL: string;
-    abort(): void;
-    getAllResponseHeaders(): string;
-    getResponseHeader(header: string): string | null;
-    msCachingEnabled(): boolean;
-    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
-    overrideMimeType(mime: string): void;
-    send(data?: Document): void;
-    send(data?: string): void;
-    send(data?: any): void;
-    setRequestHeader(header: string, value: string): void;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequest: {
-    prototype: XMLHttpRequest;
-    new(): XMLHttpRequest;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    create(): XMLHttpRequest;
-}
-
-interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequestUpload: {
-    prototype: XMLHttpRequestUpload;
-    new(): XMLHttpRequestUpload;
-}
-
-interface XMLSerializer {
-    serializeToString(target: Node): string;
-}
-
-declare var XMLSerializer: {
-    prototype: XMLSerializer;
-    new(): XMLSerializer;
-}
-
-interface XPathEvaluator {
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver?: Node): XPathNSResolver;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-}
-
-declare var XPathEvaluator: {
-    prototype: XPathEvaluator;
-    new(): XPathEvaluator;
-}
-
-interface XPathExpression {
-    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
-}
-
-declare var XPathExpression: {
-    prototype: XPathExpression;
-    new(): XPathExpression;
-}
-
-interface XPathNSResolver {
-    lookupNamespaceURI(prefix: string): string;
-}
-
-declare var XPathNSResolver: {
-    prototype: XPathNSResolver;
-    new(): XPathNSResolver;
-}
-
-interface XPathResult {
-    readonly booleanValue: boolean;
-    readonly invalidIteratorState: boolean;
-    readonly numberValue: number;
-    readonly resultType: number;
-    readonly singleNodeValue: Node;
-    readonly snapshotLength: number;
-    readonly stringValue: string;
-    iterateNext(): Node;
-    snapshotItem(index: number): Node;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-declare var XPathResult: {
-    prototype: XPathResult;
-    new(): XPathResult;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-interface XSLTProcessor {
-    clearParameters(): void;
-    getParameter(namespaceURI: string, localName: string): any;
-    importStylesheet(style: Node): void;
-    removeParameter(namespaceURI: string, localName: string): void;
-    reset(): void;
-    setParameter(namespaceURI: string, localName: string, value: any): void;
-    transformToDocument(source: Node): Document;
-    transformToFragment(source: Node, document: Document): DocumentFragment;
-}
-
-declare var XSLTProcessor: {
-    prototype: XSLTProcessor;
-    new(): XSLTProcessor;
-}
-
-interface AbstractWorkerEventMap {
-    "error": ErrorEvent;
-}
-
-interface AbstractWorker {
-    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
-    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface CanvasPathMethods {
-    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
-    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
-    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
-    closePath(): void;
-    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
-    lineTo(x: number, y: number): void;
-    moveTo(x: number, y: number): void;
-    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
-    rect(x: number, y: number, w: number, h: number): void;
-}
-
-interface ChildNode {
-    remove(): void;
-}
-
-interface DOML2DeprecatedColorProperty {
-    color: string;
-}
-
-interface DOML2DeprecatedSizeProperty {
-    size: number;
-}
-
-interface DocumentEvent {
-    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
-    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
-    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
-    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
-    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
-    createEvent(eventInterface:"CloseEvent"): CloseEvent;
-    createEvent(eventInterface:"CommandEvent"): CommandEvent;
-    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
-    createEvent(eventInterface:"CustomEvent"): CustomEvent;
-    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
-    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:"GamepadEvent"): GamepadEvent;
-    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
-    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
-    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
-    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
-    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
-    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
-    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
-    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
-    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
-    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
-    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
-    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
-    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
-    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
-    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
-    createEvent(eventInterface:"MessageEvent"): MessageEvent;
-    createEvent(eventInterface:"MouseEvent"): MouseEvent;
-    createEvent(eventInterface:"MouseEvents"): MouseEvent;
-    createEvent(eventInterface:"MutationEvent"): MutationEvent;
-    createEvent(eventInterface:"MutationEvents"): MutationEvent;
-    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
-    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
-    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
-    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
-    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
-    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
-    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
-    createEvent(eventInterface:"PointerEvent"): PointerEvent;
-    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
-    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
-    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
-    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
-    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
-    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
-    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
-    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
-    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
-    createEvent(eventInterface:"StorageEvent"): StorageEvent;
-    createEvent(eventInterface:"TextEvent"): TextEvent;
-    createEvent(eventInterface:"TouchEvent"): TouchEvent;
-    createEvent(eventInterface:"TrackEvent"): TrackEvent;
-    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
-    createEvent(eventInterface:"UIEvent"): UIEvent;
-    createEvent(eventInterface:"UIEvents"): UIEvent;
-    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
-    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
-    createEvent(eventInterface:"WheelEvent"): WheelEvent;
-    createEvent(eventInterface: string): Event;
-}
-
-interface ElementTraversal {
-    readonly childElementCount: number;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly nextElementSibling: Element;
-    readonly previousElementSibling: Element;
-}
-
-interface GetSVGDocument {
-    getSVGDocument(): Document;
-}
-
-interface GlobalEventHandlersEventMap {
-    "pointercancel": PointerEvent;
-    "pointerdown": PointerEvent;
-    "pointerenter": PointerEvent;
-    "pointerleave": PointerEvent;
-    "pointermove": PointerEvent;
-    "pointerout": PointerEvent;
-    "pointerover": PointerEvent;
-    "pointerup": PointerEvent;
-    "wheel": WheelEvent;
-}
-
-interface GlobalEventHandlers {
-    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
-    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
-      */
-    ch: string;
-    /**
-      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
-      */
-    chOff: string;
-    /**
-      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
-      */
-    vAlign: string;
-}
-
-interface IDBEnvironment {
-    readonly indexedDB: IDBFactory;
-}
-
-interface LinkStyle {
-    readonly sheet: StyleSheet;
-}
-
-interface MSBaseReaderEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-}
-
-interface MSBaseReader {
-    onabort: (this: MSBaseReader, ev: Event) => any;
-    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
-    onload: (this: MSBaseReader, ev: Event) => any;
-    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
-    onloadstart: (this: MSBaseReader, ev: Event) => any;
-    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    abort(): void;
-    readonly DONE: number;
-    readonly EMPTY: number;
-    readonly LOADING: number;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface MSFileSaver {
-    msSaveBlob(blob: any, defaultName?: string): boolean;
-    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
-}
-
-interface MSNavigatorDoNotTrack {
-    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
-    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
-    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
-    removeWebWideTrackingException(args: ExceptionInformation): void;
-    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
-    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
-}
-
-interface NavigatorContentUtils {
-}
-
-interface NavigatorGeolocation {
-    readonly geolocation: Geolocation;
-}
-
-interface NavigatorID {
-    readonly appName: string;
-    readonly appVersion: string;
-    readonly platform: string;
-    readonly product: string;
-    readonly productSub: string;
-    readonly userAgent: string;
-    readonly vendor: string;
-    readonly vendorSub: string;
-}
-
-interface NavigatorOnLine {
-    readonly onLine: boolean;
-}
-
-interface NavigatorStorageUtils {
-}
-
-interface NavigatorUserMedia {
-    readonly mediaDevices: MediaDevices;
-    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
-}
-
-interface NodeSelector {
-    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
-    querySelector(selectors: string): Element | null;
-    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
-    querySelectorAll(selectors: string): NodeListOf<Element>;
-}
-
-interface RandomSource {
-    getRandomValues(array: ArrayBufferView): ArrayBufferView;
-}
-
-interface SVGAnimatedPathData {
-    readonly pathSegList: SVGPathSegList;
-}
-
-interface SVGAnimatedPoints {
-    readonly animatedPoints: SVGPointList;
-    readonly points: SVGPointList;
-}
-
-interface SVGExternalResourcesRequired {
-    readonly externalResourcesRequired: SVGAnimatedBoolean;
-}
-
-interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
-    readonly height: SVGAnimatedLength;
-    readonly result: SVGAnimatedString;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-}
-
-interface SVGFitToViewBox {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly viewBox: SVGAnimatedRect;
-}
-
-interface SVGLangSpace {
-    xmllang: string;
-    xmlspace: string;
-}
-
-interface SVGLocatable {
-    readonly farthestViewportElement: SVGElement;
-    readonly nearestViewportElement: SVGElement;
-    getBBox(): SVGRect;
-    getCTM(): SVGMatrix;
-    getScreenCTM(): SVGMatrix;
-    getTransformToElement(element: SVGElement): SVGMatrix;
-}
-
-interface SVGStylable {
-    className: any;
-    readonly style: CSSStyleDeclaration;
-}
-
-interface SVGTests {
-    readonly requiredExtensions: SVGStringList;
-    readonly requiredFeatures: SVGStringList;
-    readonly systemLanguage: SVGStringList;
-    hasExtension(extension: string): boolean;
-}
-
-interface SVGTransformable extends SVGLocatable {
-    readonly transform: SVGAnimatedTransformList;
-}
-
-interface SVGURIReference {
-    readonly href: SVGAnimatedString;
-}
-
-interface WindowBase64 {
-    atob(encodedString: string): string;
-    btoa(rawString: string): string;
-}
-
-interface WindowConsole {
-    readonly console: Console;
-}
-
-interface WindowLocalStorage {
-    readonly localStorage: Storage;
-}
-
-interface WindowSessionStorage {
-    readonly sessionStorage: Storage;
-}
-
-interface WindowTimers extends Object, WindowTimersExtension {
-    clearInterval(handle: number): void;
-    clearTimeout(handle: number): void;
-    setInterval(handler: (...args: any[]) => void, timeout: number): number;
-    setInterval(handler: any, timeout?: any, ...args: any[]): number;
-    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
-    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-}
-
-interface WindowTimersExtension {
-    clearImmediate(handle: number): void;
-    setImmediate(handler: (...args: any[]) => void): number;
-    setImmediate(handler: any, ...args: any[]): number;
-}
-
-interface XMLHttpRequestEventTargetEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-    "timeout": ProgressEvent;
-}
-
-interface XMLHttpRequestEventTarget {
-    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
-    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface StorageEventInit extends EventInit {
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    url: string;
-    storageArea?: Storage;
-}
-
-interface Canvas2DContextAttributes {
-    alpha?: boolean;
-    willReadFrequently?: boolean;
-    storage?: boolean;
-    [attribute: string]: boolean | string | undefined;
-}
-
-interface NodeListOf<TNode extends Node> extends NodeList {
-    length: number;
-    item(index: number): TNode;
-    [index: number]: TNode;
-}
-
-interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
-    item(index: number): T;
-    namedItem(name: string): T;
-    [index: number]: T;
-}
-
-interface BlobPropertyBag {
-    type?: string;
-    endings?: string;
-}
-
-interface FilePropertyBag {
-    type?: string;
-    lastModified?: number;
-}
-
-interface EventListenerObject {
-    handleEvent(evt: Event): void;
-}
-
-interface MessageEventInit extends EventInit {
-    data?: any;
-    origin?: string;
-    lastEventId?: string;
-    channel?: string;
-    source?: any;
-    ports?: MessagePort[];
-}
-
-interface ProgressEventInit extends EventInit {
-    lengthComputable?: boolean;
-    loaded?: number;
-    total?: number;
-}
-
-interface ScrollOptions {
-    behavior?: ScrollBehavior;
-}
-
-interface ScrollToOptions extends ScrollOptions {
-    left?: number;
-    top?: number;
-}
-
-interface ScrollIntoViewOptions extends ScrollOptions {
-    block?: ScrollLogicalPosition;
-    inline?: ScrollLogicalPosition;
-}
-
-interface ClipboardEventInit extends EventInit {
-    data?: string;
-    dataType?: string;
-}
-
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
-interface RsaKeyGenParams extends Algorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaHashedImportParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaPssParams {
-    saltLength: number;
-}
-
-interface RsaOaepParams extends Algorithm {
-    label?: BufferSource;
-}
-
-interface EcdsaParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface EcKeyGenParams extends Algorithm {
-    namedCurve: string;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
-    typedCurve: string;
-}
-
-interface EcKeyImportParams {
-    namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface AesCtrParams extends Algorithm {
-    counter: BufferSource;
-    length: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
-    length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
-    length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
-    length: number;
-}
-
-interface AesCbcParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface AesCmacParams extends Algorithm {
-    length: number;
-}
-
-interface AesGcmParams extends Algorithm {
-    iv: BufferSource;
-    additionalData?: BufferSource;
-    tagLength?: number;
-}
-
-interface AesCfbParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface HmacImportParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
-    hash: AlgorithmIdentifier;
-    length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface DhKeyGenParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface DhImportKeyParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface ConcatParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    algorithmId: Uint8Array;
-    partyUInfo: Uint8Array;
-    partyVInfo: Uint8Array;
-    publicInfo?: Uint8Array;
-    privateInfo?: Uint8Array;
-}
-
-interface HkdfCtrParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    label: BufferSource;
-    context: BufferSource;
-}
-
-interface Pbkdf2Params extends Algorithm {
-    salt: BufferSource;
-    iterations: number;
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaOtherPrimesInfo {
-    r: string;
-    d: string;
-    t: string;
-}
-
-interface JsonWebKey {
-    kty: string;
-    use?: string;
-    key_ops?: string[];
-    alg?: string;
-    kid?: string;
-    x5u?: string;
-    x5c?: string;
-    x5t?: string;
-    ext?: boolean;
-    crv?: string;
-    x?: string;
-    y?: string;
-    d?: string;
-    n?: string;
-    e?: string;
-    p?: string;
-    q?: string;
-    dp?: string;
-    dq?: string;
-    qi?: string;
-    oth?: RsaOtherPrimesInfo[];
-    k?: string;
-}
-
-interface ParentNode {
-    readonly children: HTMLCollection;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly childElementCount: number;
-}
-
-interface DocumentOrShadowRoot {
-    readonly activeElement: Element | null;
-    readonly stylesheets: StyleSheetList;
-    getSelection(): Selection | null;
-    elementFromPoint(x: number, y: number): Element | null;
-    elementsFromPoint(x: number, y: number): Element[];
-}
-
-interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
-    readonly host: Element;
-    innerHTML: string;
-}
-
-interface ShadowRootInit {
-    mode: 'open'|'closed';
-    delegatesFocus?: boolean;
-}
-
-interface HTMLSlotElement extends HTMLElement {
-    name: string;
-    assignedNodes(options?: AssignedNodesOptions): Node[];
-}
-
-interface AssignedNodesOptions {
-    flatten?: boolean;
-}
-
-declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
-
-interface ErrorEventHandler {
-    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
-}
-interface PositionCallback {
-    (position: Position): void;
-}
-interface PositionErrorCallback {
-    (error: PositionError): void;
-}
-interface MediaQueryListListener {
-    (mql: MediaQueryList): void;
-}
-interface MSLaunchUriCallback {
-    (): void;
-}
-interface FrameRequestCallback {
-    (time: number): void;
-}
-interface MSUnsafeFunctionCallback {
-    (): any;
-}
-interface MSExecAtPriorityFunctionCallback {
-    (...args: any[]): any;
-}
-interface MutationCallback {
-    (mutations: MutationRecord[], observer: MutationObserver): void;
-}
-interface DecodeSuccessCallback {
-    (decodedData: AudioBuffer): void;
-}
-interface DecodeErrorCallback {
-    (error: DOMException): void;
-}
-interface FunctionStringCallback {
-    (data: string): void;
-}
-interface NavigatorUserMediaSuccessCallback {
-    (stream: MediaStream): void;
-}
-interface NavigatorUserMediaErrorCallback {
-    (error: MediaStreamError): void;
-}
-interface ForEachCallback {
-    (keyId: any, status: string): void;
-}
-interface HTMLElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "audio": HTMLAudioElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "del": HTMLModElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "embed": HTMLEmbedElement;
-    "fieldset": HTMLFieldSetElement;
-    "font": HTMLFontElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "h1": HTMLHeadingElement;
-    "h2": HTMLHeadingElement;
-    "h3": HTMLHeadingElement;
-    "h4": HTMLHeadingElement;
-    "h5": HTMLHeadingElement;
-    "h6": HTMLHeadingElement;
-    "head": HTMLHeadElement;
-    "hr": HTMLHRElement;
-    "html": HTMLHtmlElement;
-    "iframe": HTMLIFrameElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "marquee": HTMLMarqueeElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "meter": HTMLMeterElement;
-    "nextid": HTMLUnknownElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "picture": HTMLPictureElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "script": HTMLScriptElement;
-    "select": HTMLSelectElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "style": HTMLStyleElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "ul": HTMLUListElement;
-    "video": HTMLVideoElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "abbr": HTMLElement;
-    "acronym": HTMLElement;
-    "address": HTMLElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "article": HTMLElement;
-    "aside": HTMLElement;
-    "audio": HTMLAudioElement;
-    "b": HTMLElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "bdo": HTMLElement;
-    "big": HTMLElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "center": HTMLElement;
-    "circle": SVGCircleElement;
-    "cite": HTMLElement;
-    "clippath": SVGClipPathElement;
-    "code": HTMLElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "dd": HTMLElement;
-    "defs": SVGDefsElement;
-    "del": HTMLModElement;
-    "desc": SVGDescElement;
-    "dfn": HTMLElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "dt": HTMLElement;
-    "ellipse": SVGEllipseElement;
-    "em": HTMLElement;
-    "embed": HTMLEmbedElement;
-    "feblend": SVGFEBlendElement;
-    "fecolormatrix": SVGFEColorMatrixElement;
-    "fecomponenttransfer": SVGFEComponentTransferElement;
-    "fecomposite": SVGFECompositeElement;
-    "feconvolvematrix": SVGFEConvolveMatrixElement;
-    "fediffuselighting": SVGFEDiffuseLightingElement;
-    "fedisplacementmap": SVGFEDisplacementMapElement;
-    "fedistantlight": SVGFEDistantLightElement;
-    "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;
-    "fieldset": HTMLFieldSetElement;
-    "figcaption": HTMLElement;
-    "figure": HTMLElement;
-    "filter": SVGFilterElement;
-    "font": HTMLFontElement;
-    "footer": HTMLElement;
-    "foreignobject": SVGForeignObjectElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "g": SVGGElement;
-    "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;
-    "image": SVGImageElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "kbd": HTMLElement;
-    "keygen": HTMLElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "line": SVGLineElement;
-    "lineargradient": SVGLinearGradientElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "mark": HTMLElement;
-    "marker": SVGMarkerElement;
-    "marquee": HTMLMarqueeElement;
-    "mask": SVGMaskElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "metadata": SVGMetadataElement;
-    "meter": HTMLMeterElement;
-    "nav": HTMLElement;
-    "nextid": HTMLUnknownElement;
-    "nobr": HTMLElement;
-    "noframes": HTMLElement;
-    "noscript": HTMLElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "path": SVGPathElement;
-    "pattern": SVGPatternElement;
-    "picture": HTMLPictureElement;
-    "plaintext": HTMLElement;
-    "polygon": SVGPolygonElement;
-    "polyline": SVGPolylineElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "radialgradient": SVGRadialGradientElement;
-    "rect": SVGRectElement;
-    "rt": HTMLElement;
-    "ruby": HTMLElement;
-    "s": HTMLElement;
-    "samp": HTMLElement;
-    "script": HTMLScriptElement;
-    "section": HTMLElement;
-    "select": HTMLSelectElement;
-    "small": HTMLElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "stop": SVGStopElement;
-    "strike": HTMLElement;
-    "strong": HTMLElement;
-    "style": HTMLStyleElement;
-    "sub": HTMLElement;
-    "sup": HTMLElement;
-    "svg": SVGSVGElement;
-    "switch": SVGSwitchElement;
-    "symbol": SVGSymbolElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "text": SVGTextElement;
-    "textpath": SVGTextPathElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "tspan": SVGTSpanElement;
-    "tt": HTMLElement;
-    "u": HTMLElement;
-    "ul": HTMLUListElement;
-    "use": SVGUseElement;
-    "var": HTMLElement;
-    "video": HTMLVideoElement;
-    "view": SVGViewElement;
-    "wbr": HTMLElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementListTagNameMap {
-    "a": NodeListOf<HTMLAnchorElement>;
-    "abbr": NodeListOf<HTMLElement>;
-    "acronym": NodeListOf<HTMLElement>;
-    "address": NodeListOf<HTMLElement>;
-    "applet": NodeListOf<HTMLAppletElement>;
-    "area": NodeListOf<HTMLAreaElement>;
-    "article": NodeListOf<HTMLElement>;
-    "aside": NodeListOf<HTMLElement>;
-    "audio": NodeListOf<HTMLAudioElement>;
-    "b": NodeListOf<HTMLElement>;
-    "base": NodeListOf<HTMLBaseElement>;
-    "basefont": NodeListOf<HTMLBaseFontElement>;
-    "bdo": NodeListOf<HTMLElement>;
-    "big": NodeListOf<HTMLElement>;
-    "blockquote": NodeListOf<HTMLQuoteElement>;
-    "body": NodeListOf<HTMLBodyElement>;
-    "br": NodeListOf<HTMLBRElement>;
-    "button": NodeListOf<HTMLButtonElement>;
-    "canvas": NodeListOf<HTMLCanvasElement>;
-    "caption": NodeListOf<HTMLTableCaptionElement>;
-    "center": NodeListOf<HTMLElement>;
-    "circle": NodeListOf<SVGCircleElement>;
-    "cite": NodeListOf<HTMLElement>;
-    "clippath": NodeListOf<SVGClipPathElement>;
-    "code": NodeListOf<HTMLElement>;
-    "col": NodeListOf<HTMLTableColElement>;
-    "colgroup": NodeListOf<HTMLTableColElement>;
-    "datalist": NodeListOf<HTMLDataListElement>;
-    "dd": NodeListOf<HTMLElement>;
-    "defs": NodeListOf<SVGDefsElement>;
-    "del": NodeListOf<HTMLModElement>;
-    "desc": NodeListOf<SVGDescElement>;
-    "dfn": NodeListOf<HTMLElement>;
-    "dir": NodeListOf<HTMLDirectoryElement>;
-    "div": NodeListOf<HTMLDivElement>;
-    "dl": NodeListOf<HTMLDListElement>;
-    "dt": NodeListOf<HTMLElement>;
-    "ellipse": NodeListOf<SVGEllipseElement>;
-    "em": NodeListOf<HTMLElement>;
-    "embed": NodeListOf<HTMLEmbedElement>;
-    "feblend": NodeListOf<SVGFEBlendElement>;
-    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
-    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
-    "fecomposite": NodeListOf<SVGFECompositeElement>;
-    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
-    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
-    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
-    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
-    "feflood": NodeListOf<SVGFEFloodElement>;
-    "fefunca": NodeListOf<SVGFEFuncAElement>;
-    "fefuncb": NodeListOf<SVGFEFuncBElement>;
-    "fefuncg": NodeListOf<SVGFEFuncGElement>;
-    "fefuncr": NodeListOf<SVGFEFuncRElement>;
-    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
-    "feimage": NodeListOf<SVGFEImageElement>;
-    "femerge": NodeListOf<SVGFEMergeElement>;
-    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
-    "femorphology": NodeListOf<SVGFEMorphologyElement>;
-    "feoffset": NodeListOf<SVGFEOffsetElement>;
-    "fepointlight": NodeListOf<SVGFEPointLightElement>;
-    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
-    "fespotlight": NodeListOf<SVGFESpotLightElement>;
-    "fetile": NodeListOf<SVGFETileElement>;
-    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
-    "fieldset": NodeListOf<HTMLFieldSetElement>;
-    "figcaption": NodeListOf<HTMLElement>;
-    "figure": NodeListOf<HTMLElement>;
-    "filter": NodeListOf<SVGFilterElement>;
-    "font": NodeListOf<HTMLFontElement>;
-    "footer": NodeListOf<HTMLElement>;
-    "foreignobject": NodeListOf<SVGForeignObjectElement>;
-    "form": NodeListOf<HTMLFormElement>;
-    "frame": NodeListOf<HTMLFrameElement>;
-    "frameset": NodeListOf<HTMLFrameSetElement>;
-    "g": NodeListOf<SVGGElement>;
-    "h1": NodeListOf<HTMLHeadingElement>;
-    "h2": NodeListOf<HTMLHeadingElement>;
-    "h3": NodeListOf<HTMLHeadingElement>;
-    "h4": NodeListOf<HTMLHeadingElement>;
-    "h5": NodeListOf<HTMLHeadingElement>;
-    "h6": NodeListOf<HTMLHeadingElement>;
-    "head": NodeListOf<HTMLHeadElement>;
-    "header": NodeListOf<HTMLElement>;
-    "hgroup": NodeListOf<HTMLElement>;
-    "hr": NodeListOf<HTMLHRElement>;
-    "html": NodeListOf<HTMLHtmlElement>;
-    "i": NodeListOf<HTMLElement>;
-    "iframe": NodeListOf<HTMLIFrameElement>;
-    "image": NodeListOf<SVGImageElement>;
-    "img": NodeListOf<HTMLImageElement>;
-    "input": NodeListOf<HTMLInputElement>;
-    "ins": NodeListOf<HTMLModElement>;
-    "isindex": NodeListOf<HTMLUnknownElement>;
-    "kbd": NodeListOf<HTMLElement>;
-    "keygen": NodeListOf<HTMLElement>;
-    "label": NodeListOf<HTMLLabelElement>;
-    "legend": NodeListOf<HTMLLegendElement>;
-    "li": NodeListOf<HTMLLIElement>;
-    "line": NodeListOf<SVGLineElement>;
-    "lineargradient": NodeListOf<SVGLinearGradientElement>;
-    "link": NodeListOf<HTMLLinkElement>;
-    "listing": NodeListOf<HTMLPreElement>;
-    "map": NodeListOf<HTMLMapElement>;
-    "mark": NodeListOf<HTMLElement>;
-    "marker": NodeListOf<SVGMarkerElement>;
-    "marquee": NodeListOf<HTMLMarqueeElement>;
-    "mask": NodeListOf<SVGMaskElement>;
-    "menu": NodeListOf<HTMLMenuElement>;
-    "meta": NodeListOf<HTMLMetaElement>;
-    "metadata": NodeListOf<SVGMetadataElement>;
-    "meter": NodeListOf<HTMLMeterElement>;
-    "nav": NodeListOf<HTMLElement>;
-    "nextid": NodeListOf<HTMLUnknownElement>;
-    "nobr": NodeListOf<HTMLElement>;
-    "noframes": NodeListOf<HTMLElement>;
-    "noscript": NodeListOf<HTMLElement>;
-    "object": NodeListOf<HTMLObjectElement>;
-    "ol": NodeListOf<HTMLOListElement>;
-    "optgroup": NodeListOf<HTMLOptGroupElement>;
-    "option": NodeListOf<HTMLOptionElement>;
-    "p": NodeListOf<HTMLParagraphElement>;
-    "param": NodeListOf<HTMLParamElement>;
-    "path": NodeListOf<SVGPathElement>;
-    "pattern": NodeListOf<SVGPatternElement>;
-    "picture": NodeListOf<HTMLPictureElement>;
-    "plaintext": NodeListOf<HTMLElement>;
-    "polygon": NodeListOf<SVGPolygonElement>;
-    "polyline": NodeListOf<SVGPolylineElement>;
-    "pre": NodeListOf<HTMLPreElement>;
-    "progress": NodeListOf<HTMLProgressElement>;
-    "q": NodeListOf<HTMLQuoteElement>;
-    "radialgradient": NodeListOf<SVGRadialGradientElement>;
-    "rect": NodeListOf<SVGRectElement>;
-    "rt": NodeListOf<HTMLElement>;
-    "ruby": NodeListOf<HTMLElement>;
-    "s": NodeListOf<HTMLElement>;
-    "samp": NodeListOf<HTMLElement>;
-    "script": NodeListOf<HTMLScriptElement>;
-    "section": NodeListOf<HTMLElement>;
-    "select": NodeListOf<HTMLSelectElement>;
-    "small": NodeListOf<HTMLElement>;
-    "source": NodeListOf<HTMLSourceElement>;
-    "span": NodeListOf<HTMLSpanElement>;
-    "stop": NodeListOf<SVGStopElement>;
-    "strike": NodeListOf<HTMLElement>;
-    "strong": NodeListOf<HTMLElement>;
-    "style": NodeListOf<HTMLStyleElement>;
-    "sub": NodeListOf<HTMLElement>;
-    "sup": NodeListOf<HTMLElement>;
-    "svg": NodeListOf<SVGSVGElement>;
-    "switch": NodeListOf<SVGSwitchElement>;
-    "symbol": NodeListOf<SVGSymbolElement>;
-    "table": NodeListOf<HTMLTableElement>;
-    "tbody": NodeListOf<HTMLTableSectionElement>;
-    "td": NodeListOf<HTMLTableDataCellElement>;
-    "template": NodeListOf<HTMLTemplateElement>;
-    "text": NodeListOf<SVGTextElement>;
-    "textpath": NodeListOf<SVGTextPathElement>;
-    "textarea": NodeListOf<HTMLTextAreaElement>;
-    "tfoot": NodeListOf<HTMLTableSectionElement>;
-    "th": NodeListOf<HTMLTableHeaderCellElement>;
-    "thead": NodeListOf<HTMLTableSectionElement>;
-    "title": NodeListOf<HTMLTitleElement>;
-    "tr": NodeListOf<HTMLTableRowElement>;
-    "track": NodeListOf<HTMLTrackElement>;
-    "tspan": NodeListOf<SVGTSpanElement>;
-    "tt": NodeListOf<HTMLElement>;
-    "u": NodeListOf<HTMLElement>;
-    "ul": NodeListOf<HTMLUListElement>;
-    "use": NodeListOf<SVGUseElement>;
-    "var": NodeListOf<HTMLElement>;
-    "video": NodeListOf<HTMLVideoElement>;
-    "view": NodeListOf<SVGViewElement>;
-    "wbr": NodeListOf<HTMLElement>;
-    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
-    "xmp": NodeListOf<HTMLPreElement>;
-}
-
-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; };
-declare var applicationCache: ApplicationCache;
-declare var clientInformation: Navigator;
-declare var closed: boolean;
-declare var crypto: Crypto;
-declare var defaultStatus: string;
-declare var devicePixelRatio: number;
-declare var doNotTrack: string;
-declare var document: Document;
-declare var event: Event | undefined;
-declare var external: External;
-declare var frameElement: Element;
-declare var frames: Window;
-declare var history: History;
-declare var innerHeight: number;
-declare var innerWidth: number;
-declare var length: number;
-declare var location: Location;
-declare var locationbar: BarProp;
-declare var menubar: BarProp;
-declare var msCredentials: MSCredentials;
-declare const name: never;
-declare var navigator: Navigator;
-declare var offscreenBuffering: string | boolean;
-declare var onabort: (this: Window, ev: UIEvent) => any;
-declare var onafterprint: (this: Window, ev: Event) => any;
-declare var onbeforeprint: (this: Window, ev: Event) => any;
-declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-declare var onblur: (this: Window, ev: FocusEvent) => any;
-declare var oncanplay: (this: Window, ev: Event) => any;
-declare var oncanplaythrough: (this: Window, ev: Event) => any;
-declare var onchange: (this: Window, ev: Event) => any;
-declare var onclick: (this: Window, ev: MouseEvent) => any;
-declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
-declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
-declare var ondblclick: (this: Window, ev: MouseEvent) => any;
-declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
-declare var ondrag: (this: Window, ev: DragEvent) => any;
-declare var ondragend: (this: Window, ev: DragEvent) => any;
-declare var ondragenter: (this: Window, ev: DragEvent) => any;
-declare var ondragleave: (this: Window, ev: DragEvent) => any;
-declare var ondragover: (this: Window, ev: DragEvent) => any;
-declare var ondragstart: (this: Window, ev: DragEvent) => any;
-declare var ondrop: (this: Window, ev: DragEvent) => any;
-declare var ondurationchange: (this: Window, ev: Event) => any;
-declare var onemptied: (this: Window, ev: Event) => any;
-declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-declare var onerror: ErrorEventHandler;
-declare var onfocus: (this: Window, ev: FocusEvent) => any;
-declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
-declare var oninput: (this: Window, ev: Event) => any;
-declare var oninvalid: (this: Window, ev: Event) => any;
-declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
-declare var onload: (this: Window, ev: Event) => any;
-declare var onloadeddata: (this: Window, ev: Event) => any;
-declare var onloadedmetadata: (this: Window, ev: Event) => any;
-declare var onloadstart: (this: Window, ev: Event) => any;
-declare var onmessage: (this: Window, ev: MessageEvent) => any;
-declare var onmousedown: (this: Window, ev: MouseEvent) => any;
-declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
-declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
-declare var onmousemove: (this: Window, ev: MouseEvent) => any;
-declare var onmouseout: (this: Window, ev: MouseEvent) => any;
-declare var onmouseover: (this: Window, ev: MouseEvent) => any;
-declare var onmouseup: (this: Window, ev: MouseEvent) => any;
-declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
-declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-declare var onoffline: (this: Window, ev: Event) => any;
-declare var ononline: (this: Window, ev: Event) => any;
-declare var onorientationchange: (this: Window, ev: Event) => any;
-declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpause: (this: Window, ev: Event) => any;
-declare var onplay: (this: Window, ev: Event) => any;
-declare var onplaying: (this: Window, ev: Event) => any;
-declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
-declare var onprogress: (this: Window, ev: ProgressEvent) => any;
-declare var onratechange: (this: Window, ev: Event) => any;
-declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-declare var onreset: (this: Window, ev: Event) => any;
-declare var onresize: (this: Window, ev: UIEvent) => any;
-declare var onscroll: (this: Window, ev: UIEvent) => any;
-declare var onseeked: (this: Window, ev: Event) => any;
-declare var onseeking: (this: Window, ev: Event) => any;
-declare var onselect: (this: Window, ev: UIEvent) => any;
-declare var onstalled: (this: Window, ev: Event) => any;
-declare var onstorage: (this: Window, ev: StorageEvent) => any;
-declare var onsubmit: (this: Window, ev: Event) => any;
-declare var onsuspend: (this: Window, ev: Event) => any;
-declare var ontimeupdate: (this: Window, ev: Event) => any;
-declare var ontouchcancel: (ev: TouchEvent) => any;
-declare var ontouchend: (ev: TouchEvent) => any;
-declare var ontouchmove: (ev: TouchEvent) => any;
-declare var ontouchstart: (ev: TouchEvent) => any;
-declare var onunload: (this: Window, ev: Event) => any;
-declare var onvolumechange: (this: Window, ev: Event) => any;
-declare var onwaiting: (this: Window, ev: Event) => any;
-declare var opener: any;
-declare var orientation: string | number;
-declare var outerHeight: number;
-declare var outerWidth: number;
-declare var pageXOffset: number;
-declare var pageYOffset: number;
-declare var parent: Window;
-declare var performance: Performance;
-declare var personalbar: BarProp;
-declare var screen: Screen;
-declare var screenLeft: number;
-declare var screenTop: number;
-declare var screenX: number;
-declare var screenY: number;
-declare var scrollX: number;
-declare var scrollY: number;
-declare var scrollbars: BarProp;
-declare var self: Window;
-declare var status: string;
-declare var statusbar: BarProp;
-declare var styleMedia: StyleMedia;
-declare var toolbar: BarProp;
-declare var top: Window;
-declare var window: Window;
-declare function alert(message?: any): void;
-declare function blur(): void;
-declare function cancelAnimationFrame(handle: number): void;
-declare function captureEvents(): void;
-declare function close(): void;
-declare function confirm(message?: string): boolean;
-declare function focus(): void;
-declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
-declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
-declare function getSelection(): Selection;
-declare function matchMedia(mediaQuery: string): MediaQueryList;
-declare function moveBy(x?: number, y?: number): void;
-declare function moveTo(x?: number, y?: number): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
-declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
-declare function print(): void;
-declare function prompt(message?: string, _default?: string): string | null;
-declare function releaseEvents(): void;
-declare function requestAnimationFrame(callback: FrameRequestCallback): number;
-declare function resizeBy(x?: number, y?: number): void;
-declare function resizeTo(x?: number, y?: number): void;
-declare function scroll(x?: number, y?: number): void;
-declare function scrollBy(x?: number, y?: number): void;
-declare function scrollTo(x?: number, y?: number): void;
-declare function webkitCancelAnimationFrame(handle: number): void;
-declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
-declare function scroll(options?: ScrollToOptions): void;
-declare function scrollTo(options?: ScrollToOptions): void;
-declare function scrollBy(options?: ScrollToOptions): void;
-declare function toString(): string;
-declare function dispatchEvent(evt: Event): boolean;
-declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare function clearInterval(handle: number): void;
-declare function clearTimeout(handle: number): void;
-declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function clearImmediate(handle: number): void;
-declare function setImmediate(handler: (...args: any[]) => void): number;
-declare function setImmediate(handler: any, ...args: any[]): number;
-declare var sessionStorage: Storage;
-declare var localStorage: Storage;
-declare var console: Console;
-declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
-declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
-declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
-declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
-declare var onpointermove: (this: Window, ev: PointerEvent) => any;
-declare var onpointerout: (this: Window, ev: PointerEvent) => any;
-declare var onpointerover: (this: Window, ev: PointerEvent) => any;
-declare var onpointerup: (this: Window, ev: PointerEvent) => any;
-declare var onwheel: (this: Window, ev: WheelEvent) => any;
-declare var indexedDB: IDBFactory;
-declare function atob(encodedString: string): string;
-declare function btoa(rawString: string): string;
-declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
-declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-type AAGUID = string;
-type AlgorithmIdentifier = string | Algorithm;
-type ConstrainBoolean = boolean | ConstrainBooleanParameters;
-type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
-type ConstrainDouble = number | ConstrainDoubleRange;
-type ConstrainLong = number | ConstrainLongRange;
-type CryptoOperationData = ArrayBufferView;
-type GLbitfield = number;
-type GLboolean = boolean;
-type GLbyte = number;
-type GLclampf = number;
-type GLenum = number;
-type GLfloat = number;
-type GLint = number;
-type GLintptr = number;
-type GLshort = number;
-type GLsizei = number;
-type GLsizeiptr = number;
-type GLubyte = number;
-type GLuint = number;
-type GLushort = number;
-type IDBKeyPath = string;
-type KeyFormat = string;
-type KeyType = string;
-type KeyUsage = string;
-type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
-type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
-type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
-type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
-type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
-type payloadtype = number;
-type ScrollBehavior = "auto" | "instant" | "smooth";
-type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
-type IDBValidKey = number | string | Date | IDBArrayKey;
-type BufferSource = ArrayBuffer | ArrayBufferView;
-type MouseWheelEvent = WheelEvent;
+/*! 
*****************************************************************************
+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"/>
+
+
+/////////////////////////////
+/// ECMAScript APIs
+/////////////////////////////
+
+declare const NaN: number;
+declare const 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 s A string to convert into a number.
+  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
+  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
+  * All other strings are considered decimal.
+  */
+declare function parseInt(s: 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 encoded 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 encoded URI component.
+  */
+declare function encodeURIComponent(uriComponent: string): string;
+
+interface PropertyDescriptor {
+    configurable?: boolean;
+    enumerable?: boolean;
+    value?: any;
+    writable?: boolean;
+    get? (): any;
+    set? (v: any): void;
+}
+
+interface PropertyDescriptorMap {
+    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
+
+    /**
+      * 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 null prototype.
+      * @param o Object to use as a prototype. May be null
+      */
+    create(o: 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
+      */
+    create<T>(o: T): T;
+
+    /**
+      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
+
+    /**
+      * 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(o: any, properties: PropertyDescriptorMap): any;
+
+    /**
+      * 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 o Object on which to lock the attributes.
+      */
+    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
+}
+
+/**
+  * Provides functionality common to all JavaScript objects.
+  */
+declare const 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 const Function: FunctionConstructor;
+
+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): RegExpMatchArray | null;
+
+    /**
+      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
+      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
+      */
+    match(regexp: RegExp): RegExpMatchArray | null;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: string, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: RegExp, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: 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): number;
+
+    /**
+      * Finds the first substring match in a regular expression search.
+      * @param regexp The regular expression pattern and applicable flags.
+      */
+    search(regexp: 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, limit?: number): string[];
+
+    /**
+      * Split a string into substrings using the specified separator and 
return them as an array.
+      * @param separator A Regular Express 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: 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(): 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(): 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.
+      * @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 const String: StringConstructor;
+
+interface Boolean {
+    /** Returns the primitive value of the specified object. */
+    valueOf(): boolean;
+}
+
+interface BooleanConstructor {
+    new (value?: any): Boolean;
+    (value?: any): boolean;
+    readonly prototype: Boolean;
+}
+
+declare const 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 const Number: NumberConstructor;
+
+interface TemplateStringsArray extends ReadonlyArray<string> {
+    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
+      * @param x The value to be rounded to the nearest number.
+      */
+    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 const 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;
+    /** Gets the time value in milliseconds. */
+    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
+    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): Date;
+    new (value: string): Date;
+    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
+      * @param date The date as an number between 1 and 31.
+      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
+      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
+      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
+      * @param ms An number from 0 to 999 that specifies the milliseconds.
+      */
+    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
+    now(): number;
+}
+
+declare const Date: DateConstructor;
+
+interface RegExpMatchArray extends Array<string> {
+    index?: number;
+    input?: string;
+}
+
+interface RegExpExecArray extends Array<string> {
+    index: number;
+    input: 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
+    compile(): this;
+}
+
+interface RegExpConstructor {
+    new (pattern: RegExp): RegExp;
+    new (pattern: string, flags?: string): RegExp;
+    (pattern: RegExp): RegExp;
+    (pattern: string, flags?: string): RegExp;
+    readonly prototype: RegExp;
+
+    // Non-standard extensions
+    $1: string;
+    $2: string;
+    $3: string;
+    $4: string;
+    $5: string;
+    $6: string;
+    $7: string;
+    $8: string;
+    $9: string;
+    lastMatch: string;
+}
+
+declare const RegExp: RegExpConstructor;
+
+interface Error {
+    name: string;
+    message: string;
+    stack?: string;
+}
+
+interface ErrorConstructor {
+    new (message?: string): Error;
+    (message?: string): Error;
+    readonly prototype: Error;
+}
+
+declare const Error: ErrorConstructor;
+
+interface EvalError extends Error {
+}
+
+interface EvalErrorConstructor {
+    new (message?: string): EvalError;
+    (message?: string): EvalError;
+    readonly prototype: EvalError;
+}
+
+declare const EvalError: EvalErrorConstructor;
+
+interface RangeError extends Error {
+}
+
+interface RangeErrorConstructor {
+    new (message?: string): RangeError;
+    (message?: string): RangeError;
+    readonly prototype: RangeError;
+}
+
+declare const RangeError: RangeErrorConstructor;
+
+interface ReferenceError extends Error {
+}
+
+interface ReferenceErrorConstructor {
+    new (message?: string): ReferenceError;
+    (message?: string): ReferenceError;
+    readonly prototype: ReferenceError;
+}
+
+declare const ReferenceError: ReferenceErrorConstructor;
+
+interface SyntaxError extends Error {
+}
+
+interface SyntaxErrorConstructor {
+    new (message?: string): SyntaxError;
+    (message?: string): SyntaxError;
+    readonly prototype: SyntaxError;
+}
+
+declare const SyntaxError: SyntaxErrorConstructor;
+
+interface TypeError extends Error {
+}
+
+interface TypeErrorConstructor {
+    new (message?: string): TypeError;
+    (message?: string): TypeError;
+    readonly prototype: TypeError;
+}
+
+declare const TypeError: TypeErrorConstructor;
+
+interface URIError extends Error {
+}
+
+interface URIErrorConstructor {
+    new (message?: string): URIError;
+    (message?: string): URIError;
+    readonly prototype: URIError;
+}
+
+declare const 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.
+      */
+    parse(text: string, reviver?: (key: any, 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.
+      */
+    stringify(value: any, replacer?: (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 a 
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.
+      */
+    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 const 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;
+    toLocaleString(): string;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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.
+      */
+    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
+    /**
+     * Returns the elements of an array that meet the condition specified in a 
callback function.
+     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+     */
+    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
+    /**
+      * Returns the elements of an array that meet the condition specified in 
a callback function.
+      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
+
+    readonly [n: number]: T;
+}
+
+interface Array<T> {
+    /**
+      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
+      */
+    length: number;
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+    toLocaleString(): string;
+    /**
+      * Appends new elements to an array, and returns the new length of the 
array.
+      * @param items New elements of the Array.
+      */
+    push(...items: T[]): number;
+    /**
+      * Removes the last element from an array and returns it.
+      */
+    pop(): T | undefined;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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;
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): T[];
+    /**
+      * Removes the first element from an array and returns it.
+      */
+    shift(): T | undefined;
+    /**
+      * 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): T[];
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
+      */
+    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.
+      */
+    splice(start: 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.
+      * @param items Elements to insert into the array in place of the deleted 
elements.
+      */
+    splice(start: number, deleteCount: number, ...items: T[]): T[];
+    /**
+      * Inserts new elements at the start of an 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.
+      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
+    /**
+      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
+    /**
+      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
+    /**
+      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
+    readonly prototype: Array<any>;
+}
+
+declare const Array: ArrayConstructor;
+
+interface TypedPropertyDescriptor<T> {
+    enumerable?: boolean;
+    configurable?: boolean;
+    writable?: boolean;
+    value?: T;
+    get?: () => T;
+    set?: (value: T) => void;
+}
+
+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, parameterIndex: number) => 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(
+        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
+        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
+
+    /**
+     * 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<TResult>(
+        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
+        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
+
+    /**
+     * 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, TResult2>(
+        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
+        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
+}
+
+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 readonly
+ */
+type Readonly<T> = {
+    readonly [P in keyof T]: T[P];
+};
+
+/**
+ * From T pick a set of properties 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 string, T> = {
+    [P in K]: T;
+}
+
+/**
+  * 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;
+}
+
+interface ArrayBufferConstructor {
+    readonly prototype: ArrayBuffer;
+    new (byteLength: number): ArrayBuffer;
+    isView(arg: any): arg is ArrayBufferView;
+}
+declare const ArrayBuffer: ArrayBufferConstructor;
+
+interface ArrayBufferView {
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    buffer: ArrayBuffer;
+
+    /**
+      * The length in bytes of the array.
+      */
+    byteLength: number;
+
+    /**
+      * The offset in bytes of the array.
+      */
+    byteOffset: number;
+}
+
+interface DataView {
+    readonly buffer: ArrayBuffer;
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-endian value should be written.
+      */
+    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
+}
+
+interface DataViewConstructor {
+    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+interface Int8ArrayConstructor {
+    readonly prototype: Int8Array;
+    new (length: number): Int8Array;
+    new (array: ArrayLike<number>): Int8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ArrayConstructor {
+    readonly prototype: Uint8Array;
+    new (length: number): Uint8Array;
+    new (array: ArrayLike<number>): Uint8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8ClampedArray;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ClampedArrayConstructor {
+    readonly prototype: Uint8ClampedArray;
+    new (length: number): Uint8ClampedArray;
+    new (array: ArrayLike<number>): Uint8ClampedArray;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int16ArrayConstructor {
+    readonly prototype: Int16Array;
+    new (length: number): Int16Array;
+    new (array: ArrayLike<number>): Int16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint16ArrayConstructor {
+    readonly prototype: Uint16Array;
+    new (length: number): Uint16Array;
+    new (array: ArrayLike<number>): Uint16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int32ArrayConstructor {
+    readonly prototype: Int32Array;
+    new (length: number): Int32Array;
+    new (array: ArrayLike<number>): Int32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint32ArrayConstructor {
+    readonly prototype: Uint32Array;
+    new (length: number): Uint32Array;
+    new (array: ArrayLike<number>): Uint32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float32ArrayConstructor {
+    readonly prototype: Float32Array;
+    new (length: number): Float32Array;
+    new (array: ArrayLike<number>): Float32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float64Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float64Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float64ArrayConstructor {
+    readonly prototype: Float64Array;
+    new (length: number): Float64Array;
+    new (array: ArrayLike<number>): Float64Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
+}
+declare const Float64Array: Float64ArrayConstructor;
+
+/////////////////////////////
+/// ECMAScript Internationalization API
+/////////////////////////////
+
+declare module Intl {
+    interface CollatorOptions {
+        usage?: string;
+        localeMatcher?: string;
+        numeric?: boolean;
+        caseFirst?: string;
+        sensitivity?: string;
+        ignorePunctuation?: boolean;
+    }
+
+    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;
+    }
+    var Collator: {
+        new (locales?: string | string[], options?: CollatorOptions): Collator;
+        (locales?: string | string[], options?: CollatorOptions): Collator;
+        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
+    }
+
+    interface NumberFormatOptions {
+        localeMatcher?: string;
+        style?: string;
+        currency?: string;
+        currencyDisplay?: string;
+        useGrouping?: boolean;
+        minimumIntegerDigits?: number;
+        minimumFractionDigits?: number;
+        maximumFractionDigits?: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+    }
+
+    interface ResolvedNumberFormatOptions {
+        locale: string;
+        numberingSystem: string;
+        style: string;
+        currency?: string;
+        currencyDisplay?: string;
+        minimumIntegerDigits: number;
+        minimumFractionDigits: number;
+        maximumFractionDigits: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+        useGrouping: boolean;
+    }
+
+    interface NumberFormat {
+        format(value: number): string;
+        resolvedOptions(): ResolvedNumberFormatOptions;
+    }
+    var NumberFormat: {
+        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
+    }
+
+    interface DateTimeFormatOptions {
+        localeMatcher?: string;
+        weekday?: string;
+        era?: string;
+        year?: string;
+        month?: string;
+        day?: string;
+        hour?: string;
+        minute?: string;
+        second?: string;
+        timeZoneName?: string;
+        formatMatcher?: string;
+        hour12?: boolean;
+        timeZone?: string;
+    }
+
+    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;
+    }
+    var DateTimeFormat: {
+        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
+    }
+}
+
+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;
+}
+
+
+
+/////////////////////////////
+/// IE DOM APIs
+/////////////////////////////
+
+interface Algorithm {
+    name: string;
+}
+
+interface AriaRequestEventInit extends EventInit {
+    attributeName?: string;
+    attributeValue?: string;
+}
+
+interface CommandEventInit extends EventInit {
+    commandName?: string;
+    detail?: string;
+}
+
+interface CompositionEventInit extends UIEventInit {
+    data?: string;
+}
+
+interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface ConstrainBooleanParameters {
+    exact?: boolean;
+    ideal?: boolean;
+}
+
+interface ConstrainDOMStringParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface ConstrainDoubleRange extends DoubleRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainLongRange extends LongRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainVideoFacingModeParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface CustomEventInit extends EventInit {
+    detail?: any;
+}
+
+interface DeviceAccelerationDict {
+    x?: number;
+    y?: number;
+    z?: number;
+}
+
+interface DeviceLightEventInit extends EventInit {
+    value?: number;
+}
+
+interface DeviceRotationRateDict {
+    alpha?: number;
+    beta?: number;
+    gamma?: number;
+}
+
+interface DoubleRange {
+    max?: number;
+    min?: number;
+}
+
+interface EventInit {
+    scoped?: boolean;
+    bubbles?: boolean;
+    cancelable?: boolean;
+}
+
+interface EventModifierInit extends UIEventInit {
+    ctrlKey?: boolean;
+    shiftKey?: boolean;
+    altKey?: boolean;
+    metaKey?: boolean;
+    modifierAltGraph?: boolean;
+    modifierCapsLock?: boolean;
+    modifierFn?: boolean;
+    modifierFnLock?: boolean;
+    modifierHyper?: boolean;
+    modifierNumLock?: boolean;
+    modifierOS?: boolean;
+    modifierScrollLock?: boolean;
+    modifierSuper?: boolean;
+    modifierSymbol?: boolean;
+    modifierSymbolLock?: boolean;
+}
+
+interface ExceptionInformation {
+    domain?: string;
+}
+
+interface FocusEventInit extends UIEventInit {
+    relatedTarget?: EventTarget;
+}
+
+interface HashChangeEventInit extends EventInit {
+    newURL?: string;
+    oldURL?: string;
+}
+
+interface IDBIndexParameters {
+    multiEntry?: boolean;
+    unique?: boolean;
+}
+
+interface IDBObjectStoreParameters {
+    autoIncrement?: boolean;
+    keyPath?: IDBKeyPath;
+}
+
+interface KeyAlgorithm {
+    name?: string;
+}
+
+interface KeyboardEventInit extends EventModifierInit {
+    code?: string;
+    key?: string;
+    location?: number;
+    repeat?: boolean;
+}
+
+interface LongRange {
+    max?: number;
+    min?: number;
+}
+
+interface MSAccountInfo {
+    rpDisplayName?: string;
+    userDisplayName?: string;
+    accountName?: string;
+    userId?: string;
+    accountImageUri?: string;
+}
+
+interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
+    networkSendQualityEventRatio?: number;
+    networkDelayEventRatio?: number;
+    cpuInsufficientEventRatio?: number;
+    deviceHalfDuplexAECEventRatio?: number;
+    deviceRenderNotFunctioningEventRatio?: number;
+    deviceCaptureNotFunctioningEventRatio?: number;
+    deviceGlitchesEventRatio?: number;
+    deviceLowSNREventRatio?: number;
+    deviceLowSpeechLevelEventRatio?: number;
+    deviceClippingEventRatio?: number;
+    deviceEchoEventRatio?: number;
+    deviceNearEndToEchoRatioEventRatio?: number;
+    deviceRenderZeroVolumeEventRatio?: number;
+    deviceRenderMuteEventRatio?: number;
+    deviceMultipleEndpointsEventCount?: number;
+    deviceHowlingEventCount?: number;
+}
+
+interface MSAudioRecvPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioRecvSignal;
+    packetReorderRatio?: number;
+    packetReorderDepthAvg?: number;
+    packetReorderDepthMax?: number;
+    burstLossLength1?: number;
+    burstLossLength2?: number;
+    burstLossLength3?: number;
+    burstLossLength4?: number;
+    burstLossLength5?: number;
+    burstLossLength6?: number;
+    burstLossLength7?: number;
+    burstLossLength8OrHigher?: number;
+    fecRecvDistance1?: number;
+    fecRecvDistance2?: number;
+    fecRecvDistance3?: number;
+    ratioConcealedSamplesAvg?: number;
+    ratioStretchedSamplesAvg?: number;
+    ratioCompressedSamplesAvg?: number;
+}
+
+interface MSAudioRecvSignal {
+    initialSignalLevelRMS?: number;
+    recvSignalLevelCh1?: number;
+    recvNoiseLevelCh1?: number;
+    renderSignalLevel?: number;
+    renderNoiseLevel?: number;
+    renderLoopbackSignalLevel?: number;
+}
+
+interface MSAudioSendPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioSendSignal;
+    audioFECUsed?: boolean;
+    sendMutePercent?: number;
+}
+
+interface MSAudioSendSignal {
+    noiseLevel?: number;
+    sendSignalLevelCh1?: number;
+    sendNoiseLevelCh1?: number;
+}
+
+interface MSConnectivity {
+    iceType?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    relayAddress?: MSRelayAddress;
+}
+
+interface MSCredentialFilter {
+    accept?: MSCredentialSpec[];
+}
+
+interface MSCredentialParameters {
+    type?: string;
+}
+
+interface MSCredentialSpec {
+    type?: string;
+    id?: string;
+}
+
+interface MSDelay {
+    roundTrip?: number;
+    roundTripMax?: number;
+}
+
+interface MSDescription extends RTCStats {
+    connectivity?: MSConnectivity;
+    transport?: string;
+    networkconnectivity?: MSNetworkConnectivityInfo;
+    localAddr?: MSIPAddressInfo;
+    remoteAddr?: MSIPAddressInfo;
+    deviceDevName?: string;
+    reflexiveLocalIPAddr?: MSIPAddressInfo;
+}
+
+interface MSFIDOCredentialParameters extends MSCredentialParameters {
+    algorithm?: string | Algorithm;
+    authenticators?: AAGUID[];
+}
+
+interface MSIPAddressInfo {
+    ipAddr?: string;
+    port?: number;
+    manufacturerMacAddrMask?: string;
+}
+
+interface MSIceWarningFlags {
+    turnTcpTimedOut?: boolean;
+    turnUdpAllocateFailed?: boolean;
+    turnUdpSendFailed?: boolean;
+    turnTcpAllocateFailed?: boolean;
+    turnTcpSendFailed?: boolean;
+    udpLocalConnectivityFailed?: boolean;
+    udpNatConnectivityFailed?: boolean;
+    udpRelayConnectivityFailed?: boolean;
+    tcpNatConnectivityFailed?: boolean;
+    tcpRelayConnectivityFailed?: boolean;
+    connCheckMessageIntegrityFailed?: boolean;
+    allocationMessageIntegrityFailed?: boolean;
+    connCheckOtherError?: boolean;
+    turnAuthUnknownUsernameError?: boolean;
+    noRelayServersConfigured?: boolean;
+    multipleRelayServersAttempted?: boolean;
+    portRangeExhausted?: boolean;
+    alternateServerReceived?: boolean;
+    pseudoTLSFailure?: boolean;
+    turnTurnTcpConnectivityFailed?: boolean;
+    useCandidateChecksFailed?: boolean;
+    fipsAllocationFailure?: boolean;
+}
+
+interface MSJitter {
+    interArrival?: number;
+    interArrivalMax?: number;
+    interArrivalSD?: number;
+}
+
+interface MSLocalClientEventBase extends RTCStats {
+    networkReceiveQualityEventRatio?: number;
+    networkBandwidthLowEventRatio?: number;
+}
+
+interface MSNetwork extends RTCStats {
+    jitter?: MSJitter;
+    delay?: MSDelay;
+    packetLoss?: MSPacketLoss;
+    utilization?: MSUtilization;
+}
+
+interface MSNetworkConnectivityInfo {
+    vpn?: boolean;
+    linkspeed?: number;
+    networkConnectionDetails?: string;
+}
+
+interface MSNetworkInterfaceType {
+    interfaceTypeEthernet?: boolean;
+    interfaceTypeWireless?: boolean;
+    interfaceTypePPP?: boolean;
+    interfaceTypeTunnel?: boolean;
+    interfaceTypeWWAN?: boolean;
+}
+
+interface MSOutboundNetwork extends MSNetwork {
+    appliedBandwidthLimit?: number;
+}
+
+interface MSPacketLoss {
+    lossRate?: number;
+    lossRateMax?: number;
+}
+
+interface MSPayloadBase extends RTCStats {
+    payloadDescription?: string;
+}
+
+interface MSRelayAddress {
+    relayAddress?: string;
+    port?: number;
+}
+
+interface MSSignatureParameters {
+    userPrompt?: string;
+}
+
+interface MSTransportDiagnosticsStats extends RTCStats {
+    baseAddress?: string;
+    localAddress?: string;
+    localSite?: string;
+    networkName?: string;
+    remoteAddress?: string;
+    remoteSite?: string;
+    localMR?: string;
+    remoteMR?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    portRangeMin?: number;
+    portRangeMax?: number;
+    localMRTCPPort?: number;
+    remoteMRTCPPort?: number;
+    stunVer?: number;
+    numConsentReqSent?: number;
+    numConsentReqReceived?: number;
+    numConsentRespSent?: number;
+    numConsentRespReceived?: number;
+    interfaces?: MSNetworkInterfaceType;
+    baseInterface?: MSNetworkInterfaceType;
+    protocol?: string;
+    localInterface?: MSNetworkInterfaceType;
+    localAddrType?: string;
+    remoteAddrType?: string;
+    iceRole?: string;
+    rtpRtcpMux?: boolean;
+    allocationTimeInMs?: number;
+    msRtcEngineVersion?: string;
+}
+
+interface MSUtilization {
+    packets?: number;
+    bandwidthEstimation?: number;
+    bandwidthEstimationMin?: number;
+    bandwidthEstimationMax?: number;
+    bandwidthEstimationStdDev?: number;
+    bandwidthEstimationAvg?: number;
+}
+
+interface MSVideoPayload extends MSPayloadBase {
+    resoluton?: string;
+    videoBitRateAvg?: number;
+    videoBitRateMax?: number;
+    videoFrameRateAvg?: number;
+    videoPacketLossRate?: number;
+    durationSeconds?: number;
+}
+
+interface MSVideoRecvPayload extends MSVideoPayload {
+    videoFrameLossRate?: number;
+    recvCodecType?: string;
+    recvResolutionWidth?: number;
+    recvResolutionHeight?: number;
+    videoResolutions?: MSVideoResolutionDistribution;
+    recvFrameRateAverage?: number;
+    recvBitRateMaximum?: number;
+    recvBitRateAverage?: number;
+    recvVideoStreamsMax?: number;
+    recvVideoStreamsMin?: number;
+    recvVideoStreamsMode?: number;
+    videoPostFECPLR?: number;
+    lowBitRateCallPercent?: number;
+    lowFrameRateCallPercent?: number;
+    reorderBufferTotalPackets?: number;
+    recvReorderBufferReorderedPackets?: number;
+    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
+    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
+    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
+    recvReorderBufferPacketsDroppedDueToTimeout?: number;
+    recvFpsHarmonicAverage?: number;
+    recvNumResSwitches?: number;
+}
+
+interface MSVideoResolutionDistribution {
+    cifQuality?: number;
+    vgaQuality?: number;
+    h720Quality?: number;
+    h1080Quality?: number;
+    h1440Quality?: number;
+    h2160Quality?: number;
+}
+
+interface MSVideoSendPayload extends MSVideoPayload {
+    sendFrameRateAverage?: number;
+    sendBitRateMaximum?: number;
+    sendBitRateAverage?: number;
+    sendVideoStreamsMax?: number;
+    sendResolutionWidth?: number;
+    sendResolutionHeight?: number;
+}
+
+interface MediaEncryptedEventInit extends EventInit {
+    initDataType?: string;
+    initData?: ArrayBuffer;
+}
+
+interface MediaKeyMessageEventInit extends EventInit {
+    messageType?: string;
+    message?: ArrayBuffer;
+}
+
+interface MediaKeySystemConfiguration {
+    initDataTypes?: string[];
+    audioCapabilities?: MediaKeySystemMediaCapability[];
+    videoCapabilities?: MediaKeySystemMediaCapability[];
+    distinctiveIdentifier?: string;
+    persistentState?: string;
+}
+
+interface MediaKeySystemMediaCapability {
+    contentType?: string;
+    robustness?: string;
+}
+
+interface MediaStreamConstraints {
+    video?: boolean | MediaTrackConstraints;
+    audio?: boolean | MediaTrackConstraints;
+}
+
+interface MediaStreamErrorEventInit extends EventInit {
+    error?: MediaStreamError;
+}
+
+interface MediaStreamTrackEventInit extends EventInit {
+    track?: MediaStreamTrack;
+}
+
+interface MediaTrackCapabilities {
+    width?: number | LongRange;
+    height?: number | LongRange;
+    aspectRatio?: number | DoubleRange;
+    frameRate?: number | DoubleRange;
+    facingMode?: string;
+    volume?: number | DoubleRange;
+    sampleRate?: number | LongRange;
+    sampleSize?: number | LongRange;
+    echoCancellation?: boolean[];
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackConstraintSet {
+    width?: number | ConstrainLongRange;
+    height?: number | ConstrainLongRange;
+    aspectRatio?: number | ConstrainDoubleRange;
+    frameRate?: number | ConstrainDoubleRange;
+    facingMode?: string | string[] | ConstrainDOMStringParameters;
+    volume?: number | ConstrainDoubleRange;
+    sampleRate?: number | ConstrainLongRange;
+    sampleSize?: number | ConstrainLongRange;
+    echoCancelation?: boolean | ConstrainBooleanParameters;
+    deviceId?: string | string[] | ConstrainDOMStringParameters;
+    groupId?: string | string[] | ConstrainDOMStringParameters;
+}
+
+interface MediaTrackConstraints extends MediaTrackConstraintSet {
+    advanced?: MediaTrackConstraintSet[];
+}
+
+interface MediaTrackSettings {
+    width?: number;
+    height?: number;
+    aspectRatio?: number;
+    frameRate?: number;
+    facingMode?: string;
+    volume?: number;
+    sampleRate?: number;
+    sampleSize?: number;
+    echoCancellation?: boolean;
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackSupportedConstraints {
+    width?: boolean;
+    height?: boolean;
+    aspectRatio?: boolean;
+    frameRate?: boolean;
+    facingMode?: boolean;
+    volume?: boolean;
+    sampleRate?: boolean;
+    sampleSize?: boolean;
+    echoCancellation?: boolean;
+    deviceId?: boolean;
+    groupId?: boolean;
+}
+
+interface MouseEventInit extends EventModifierInit {
+    screenX?: number;
+    screenY?: number;
+    clientX?: number;
+    clientY?: number;
+    button?: number;
+    buttons?: number;
+    relatedTarget?: EventTarget;
+}
+
+interface MsZoomToOptions {
+    contentX?: number;
+    contentY?: number;
+    viewportX?: string;
+    viewportY?: string;
+    scaleFactor?: number;
+    animate?: string;
+}
+
+interface MutationObserverInit {
+    childList?: boolean;
+    attributes?: boolean;
+    characterData?: boolean;
+    subtree?: boolean;
+    attributeOldValue?: boolean;
+    characterDataOldValue?: boolean;
+    attributeFilter?: string[];
+}
+
+interface ObjectURLOptions {
+    oneTimeOnly?: boolean;
+}
+
+interface PeriodicWaveConstraints {
+    disableNormalization?: boolean;
+}
+
+interface PointerEventInit extends MouseEventInit {
+    pointerId?: number;
+    width?: number;
+    height?: number;
+    pressure?: number;
+    tiltX?: number;
+    tiltY?: number;
+    pointerType?: string;
+    isPrimary?: boolean;
+}
+
+interface PositionOptions {
+    enableHighAccuracy?: boolean;
+    timeout?: number;
+    maximumAge?: number;
+}
+
+interface RTCDTMFToneChangeEventInit extends EventInit {
+    tone?: string;
+}
+
+interface RTCDtlsFingerprint {
+    algorithm?: string;
+    value?: string;
+}
+
+interface RTCDtlsParameters {
+    role?: string;
+    fingerprints?: RTCDtlsFingerprint[];
+}
+
+interface RTCIceCandidate {
+    foundation?: string;
+    priority?: number;
+    ip?: string;
+    protocol?: string;
+    port?: number;
+    type?: string;
+    tcpType?: string;
+    relatedAddress?: string;
+    relatedPort?: number;
+}
+
+interface RTCIceCandidateAttributes extends RTCStats {
+    ipAddress?: string;
+    portNumber?: number;
+    transport?: string;
+    candidateType?: string;
+    priority?: number;
+    addressSourceUrl?: string;
+}
+
+interface RTCIceCandidateComplete {
+}
+
+interface RTCIceCandidatePair {
+    local?: RTCIceCandidate;
+    remote?: RTCIceCandidate;
+}
+
+interface RTCIceCandidatePairStats extends RTCStats {
+    transportId?: string;
+    localCandidateId?: string;
+    remoteCandidateId?: string;
+    state?: string;
+    priority?: number;
+    nominated?: boolean;
+    writable?: boolean;
+    readable?: boolean;
+    bytesSent?: number;
+    bytesReceived?: number;
+    roundTripTime?: number;
+    availableOutgoingBitrate?: number;
+    availableIncomingBitrate?: number;
+}
+
+interface RTCIceGatherOptions {
+    gatherPolicy?: string;
+    iceservers?: RTCIceServer[];
+}
+
+interface RTCIceParameters {
+    usernameFragment?: string;
+    password?: string;
+}
+
+interface RTCIceServer {
+    urls?: any;
+    username?: string;
+    credential?: string;
+}
+
+interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsReceived?: number;
+    bytesReceived?: number;
+    packetsLost?: number;
+    jitter?: number;
+    fractionLost?: number;
+}
+
+interface RTCMediaStreamTrackStats extends RTCStats {
+    trackIdentifier?: string;
+    remoteSource?: boolean;
+    ssrcIds?: string[];
+    frameWidth?: number;
+    frameHeight?: number;
+    framesPerSecond?: number;
+    framesSent?: number;
+    framesReceived?: number;
+    framesDecoded?: number;
+    framesDropped?: number;
+    framesCorrupted?: number;
+    audioLevel?: number;
+    echoReturnLoss?: number;
+    echoReturnLossEnhancement?: number;
+}
+
+interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsSent?: number;
+    bytesSent?: number;
+    targetBitrate?: number;
+    roundTripTime?: number;
+}
+
+interface RTCRTPStreamStats extends RTCStats {
+    ssrc?: string;
+    associateStatsId?: string;
+    isRemote?: boolean;
+    mediaTrackId?: string;
+    transportId?: string;
+    codecId?: string;
+    firCount?: number;
+    pliCount?: number;
+    nackCount?: number;
+    sliCount?: number;
+}
+
+interface RTCRtcpFeedback {
+    type?: string;
+    parameter?: string;
+}
+
+interface RTCRtcpParameters {
+    ssrc?: number;
+    cname?: string;
+    reducedSize?: boolean;
+    mux?: boolean;
+}
+
+interface RTCRtpCapabilities {
+    codecs?: RTCRtpCodecCapability[];
+    headerExtensions?: RTCRtpHeaderExtension[];
+    fecMechanisms?: string[];
+}
+
+interface RTCRtpCodecCapability {
+    name?: string;
+    kind?: string;
+    clockRate?: number;
+    preferredPayloadType?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+    options?: any;
+    maxTemporalLayers?: number;
+    maxSpatialLayers?: number;
+    svcMultiStreamSupport?: boolean;
+}
+
+interface RTCRtpCodecParameters {
+    name?: string;
+    payloadType?: any;
+    clockRate?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+}
+
+interface RTCRtpContributingSource {
+    timestamp?: number;
+    csrc?: number;
+    audioLevel?: number;
+}
+
+interface RTCRtpEncodingParameters {
+    ssrc?: number;
+    codecPayloadType?: number;
+    fec?: RTCRtpFecParameters;
+    rtx?: RTCRtpRtxParameters;
+    priority?: number;
+    maxBitrate?: number;
+    minQuality?: number;
+    framerateBias?: number;
+    resolutionScale?: number;
+    framerateScale?: number;
+    active?: boolean;
+    encodingId?: string;
+    dependencyEncodingIds?: string[];
+    ssrcRange?: RTCSsrcRange;
+}
+
+interface RTCRtpFecParameters {
+    ssrc?: number;
+    mechanism?: string;
+}
+
+interface RTCRtpHeaderExtension {
+    kind?: string;
+    uri?: string;
+    preferredId?: number;
+    preferredEncrypt?: boolean;
+}
+
+interface RTCRtpHeaderExtensionParameters {
+    uri?: string;
+    id?: number;
+    encrypt?: boolean;
+}
+
+interface RTCRtpParameters {
+    muxId?: string;
+    codecs?: RTCRtpCodecParameters[];
+    headerExtensions?: RTCRtpHeaderExtensionParameters[];
+    encodings?: RTCRtpEncodingParameters[];
+    rtcp?: RTCRtcpParameters;
+}
+
+interface RTCRtpRtxParameters {
+    ssrc?: number;
+}
+
+interface RTCRtpUnhandled {
+    ssrc?: number;
+    payloadType?: number;
+    muxId?: string;
+}
+
+interface RTCSrtpKeyParam {
+    keyMethod?: string;
+    keySalt?: string;
+    lifetime?: string;
+    mkiValue?: number;
+    mkiLength?: number;
+}
+
+interface RTCSrtpSdesParameters {
+    tag?: number;
+    cryptoSuite?: string;
+    keyParams?: RTCSrtpKeyParam[];
+    sessionParams?: string[];
+}
+
+interface RTCSsrcRange {
+    min?: number;
+    max?: number;
+}
+
+interface RTCStats {
+    timestamp?: number;
+    type?: string;
+    id?: string;
+    msType?: string;
+}
+
+interface RTCStatsReport {
+}
+
+interface RTCTransportStats extends RTCStats {
+    bytesSent?: number;
+    bytesReceived?: number;
+    rtcpTransportStatsId?: string;
+    activeConnection?: boolean;
+    selectedCandidatePairId?: string;
+    localCertificateId?: string;
+    remoteCertificateId?: string;
+}
+
+interface StoreExceptionsInformation extends ExceptionInformation {
+    siteName?: string;
+    explanationString?: string;
+    detailURI?: string;
+}
+
+interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface UIEventInit extends EventInit {
+    view?: Window;
+    detail?: number;
+}
+
+interface WebGLContextAttributes {
+    failIfMajorPerformanceCaveat?: boolean;
+    alpha?: boolean;
+    depth?: boolean;
+    stencil?: boolean;
+    antialias?: boolean;
+    premultipliedAlpha?: boolean;
+    preserveDrawingBuffer?: boolean;
+}
+
+interface WebGLContextEventInit extends EventInit {
+    statusMessage?: string;
+}
+
+interface WheelEventInit extends MouseEventInit {
+    deltaX?: number;
+    deltaY?: number;
+    deltaZ?: number;
+    deltaMode?: number;
+}
+
+interface EventListener {
+    (evt: Event): void;
+}
+
+interface ANGLE_instanced_arrays {
+    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
+    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
+    vertexAttribDivisorANGLE(index: number, divisor: number): void;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+declare var ANGLE_instanced_arrays: {
+    prototype: ANGLE_instanced_arrays;
+    new(): ANGLE_instanced_arrays;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+interface AnalyserNode extends AudioNode {
+    fftSize: number;
+    readonly frequencyBinCount: number;
+    maxDecibels: number;
+    minDecibels: number;
+    smoothingTimeConstant: number;
+    getByteFrequencyData(array: Uint8Array): void;
+    getByteTimeDomainData(array: Uint8Array): void;
+    getFloatFrequencyData(array: Float32Array): void;
+    getFloatTimeDomainData(array: Float32Array): void;
+}
+
+declare var AnalyserNode: {
+    prototype: AnalyserNode;
+    new(): AnalyserNode;
+}
+
+interface AnimationEvent extends Event {
+    readonly animationName: string;
+    readonly elapsedTime: number;
+    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var AnimationEvent: {
+    prototype: AnimationEvent;
+    new(): AnimationEvent;
+}
+
+interface ApplicationCacheEventMap {
+    "cached": Event;
+    "checking": Event;
+    "downloading": Event;
+    "error": ErrorEvent;
+    "noupdate": Event;
+    "obsolete": Event;
+    "progress": ProgressEvent;
+    "updateready": Event;
+}
+
+interface ApplicationCache extends EventTarget {
+    oncached: (this: ApplicationCache, ev: Event) => any;
+    onchecking: (this: ApplicationCache, ev: Event) => any;
+    ondownloading: (this: ApplicationCache, ev: Event) => any;
+    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
+    onnoupdate: (this: ApplicationCache, ev: Event) => any;
+    onobsolete: (this: ApplicationCache, ev: Event) => any;
+    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
+    onupdateready: (this: ApplicationCache, ev: Event) => any;
+    readonly status: number;
+    abort(): void;
+    swapCache(): void;
+    update(): void;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ApplicationCache: {
+    prototype: ApplicationCache;
+    new(): ApplicationCache;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+}
+
+interface AriaRequestEvent extends Event {
+    readonly attributeName: string;
+    attributeValue: string | null;
+}
+
+declare var AriaRequestEvent: {
+    prototype: AriaRequestEvent;
+    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
+}
+
+interface Attr extends Node {
+    readonly name: string;
+    readonly ownerElement: Element;
+    readonly prefix: string | null;
+    readonly specified: boolean;
+    value: string;
+}
+
+declare var Attr: {
+    prototype: Attr;
+    new(): Attr;
+}
+
+interface AudioBuffer {
+    readonly duration: number;
+    readonly length: number;
+    readonly numberOfChannels: number;
+    readonly sampleRate: number;
+    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    getChannelData(channel: number): Float32Array;
+}
+
+declare var AudioBuffer: {
+    prototype: AudioBuffer;
+    new(): AudioBuffer;
+}
+
+interface AudioBufferSourceNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface AudioBufferSourceNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    readonly detune: AudioParam;
+    loop: boolean;
+    loopEnd: number;
+    loopStart: number;
+    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
+    readonly playbackRate: AudioParam;
+    start(when?: number, offset?: number, duration?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var AudioBufferSourceNode: {
+    prototype: AudioBufferSourceNode;
+    new(): AudioBufferSourceNode;
+}
+
+interface AudioContext extends EventTarget {
+    readonly currentTime: number;
+    readonly destination: AudioDestinationNode;
+    readonly listener: AudioListener;
+    readonly sampleRate: number;
+    state: string;
+    createAnalyser(): AnalyserNode;
+    createBiquadFilter(): BiquadFilterNode;
+    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
+    createBufferSource(): AudioBufferSourceNode;
+    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
+    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
+    createConvolver(): ConvolverNode;
+    createDelay(maxDelayTime?: number): DelayNode;
+    createDynamicsCompressor(): DynamicsCompressorNode;
+    createGain(): GainNode;
+    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
+    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
+    createOscillator(): OscillatorNode;
+    createPanner(): PannerNode;
+    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
+    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
+    createStereoPanner(): StereoPannerNode;
+    createWaveShaper(): WaveShaperNode;
+    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
+}
+
+declare var AudioContext: {
+    prototype: AudioContext;
+    new(): AudioContext;
+}
+
+interface AudioDestinationNode extends AudioNode {
+    readonly maxChannelCount: number;
+}
+
+declare var AudioDestinationNode: {
+    prototype: AudioDestinationNode;
+    new(): AudioDestinationNode;
+}
+
+interface AudioListener {
+    dopplerFactor: number;
+    speedOfSound: number;
+    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var AudioListener: {
+    prototype: AudioListener;
+    new(): AudioListener;
+}
+
+interface AudioNode extends EventTarget {
+    channelCount: number;
+    channelCountMode: string;
+    channelInterpretation: string;
+    readonly context: AudioContext;
+    readonly numberOfInputs: number;
+    readonly numberOfOutputs: number;
+    connect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(output?: number): void;
+    disconnect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(destination: AudioParam, output?: number): void;
+}
+
+declare var AudioNode: {
+    prototype: AudioNode;
+    new(): AudioNode;
+}
+
+interface AudioParam {
+    readonly defaultValue: number;
+    value: number;
+    cancelScheduledValues(startTime: number): void;
+    exponentialRampToValueAtTime(value: number, endTime: number): void;
+    linearRampToValueAtTime(value: number, endTime: number): void;
+    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
+    setValueAtTime(value: number, startTime: number): void;
+    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
+}
+
+declare var AudioParam: {
+    prototype: AudioParam;
+    new(): AudioParam;
+}
+
+interface AudioProcessingEvent extends Event {
+    readonly inputBuffer: AudioBuffer;
+    readonly outputBuffer: AudioBuffer;
+    readonly playbackTime: number;
+}
+
+declare var AudioProcessingEvent: {
+    prototype: AudioProcessingEvent;
+    new(): AudioProcessingEvent;
+}
+
+interface AudioTrack {
+    enabled: boolean;
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var AudioTrack: {
+    prototype: AudioTrack;
+    new(): AudioTrack;
+}
+
+interface AudioTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface AudioTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    onchange: (this: AudioTrackList, ev: Event) => any;
+    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    getTrackById(id: string): AudioTrack | null;
+    item(index: number): AudioTrack;
+    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: AudioTrack;
+}
+
+declare var AudioTrackList: {
+    prototype: AudioTrackList;
+    new(): AudioTrackList;
+}
+
+interface BarProp {
+    readonly visible: boolean;
+}
+
+declare var BarProp: {
+    prototype: BarProp;
+    new(): BarProp;
+}
+
+interface BeforeUnloadEvent extends Event {
+    returnValue: any;
+}
+
+declare var BeforeUnloadEvent: {
+    prototype: BeforeUnloadEvent;
+    new(): BeforeUnloadEvent;
+}
+
+interface BiquadFilterNode extends AudioNode {
+    readonly Q: AudioParam;
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    readonly gain: AudioParam;
+    type: string;
+    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
+}
+
+declare var BiquadFilterNode: {
+    prototype: BiquadFilterNode;
+    new(): BiquadFilterNode;
+}
+
+interface Blob {
+    readonly size: number;
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+    slice(start?: number, end?: number, contentType?: string): Blob;
+}
+
+declare var Blob: {
+    prototype: Blob;
+    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
+}
+
+interface CDATASection extends Text {
+}
+
+declare var CDATASection: {
+    prototype: CDATASection;
+    new(): CDATASection;
+}
+
+interface CSS {
+    supports(property: string, value?: string): boolean;
+}
+declare var CSS: CSS;
+
+interface CSSConditionRule extends CSSGroupingRule {
+    conditionText: string;
+}
+
+declare var CSSConditionRule: {
+    prototype: CSSConditionRule;
+    new(): CSSConditionRule;
+}
+
+interface CSSFontFaceRule extends CSSRule {
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSFontFaceRule: {
+    prototype: CSSFontFaceRule;
+    new(): CSSFontFaceRule;
+}
+
+interface CSSGroupingRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    deleteRule(index: number): void;
+    insertRule(rule: string, index: number): number;
+}
+
+declare var CSSGroupingRule: {
+    prototype: CSSGroupingRule;
+    new(): CSSGroupingRule;
+}
+
+interface CSSImportRule extends CSSRule {
+    readonly href: string;
+    readonly media: MediaList;
+    readonly styleSheet: CSSStyleSheet;
+}
+
+declare var CSSImportRule: {
+    prototype: CSSImportRule;
+    new(): CSSImportRule;
+}
+
+interface CSSKeyframeRule extends CSSRule {
+    keyText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSKeyframeRule: {
+    prototype: CSSKeyframeRule;
+    new(): CSSKeyframeRule;
+}
+
+interface CSSKeyframesRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    name: string;
+    appendRule(rule: string): void;
+    deleteRule(rule: string): void;
+    findRule(rule: string): CSSKeyframeRule;
+}
+
+declare var CSSKeyframesRule: {
+    prototype: CSSKeyframesRule;
+    new(): CSSKeyframesRule;
+}
+
+interface CSSMediaRule extends CSSConditionRule {
+    readonly media: MediaList;
+}
+
+declare var CSSMediaRule: {
+    prototype: CSSMediaRule;
+    new(): CSSMediaRule;
+}
+
+interface CSSNamespaceRule extends CSSRule {
+    readonly namespaceURI: string;
+    readonly prefix: string;
+}
+
+declare var CSSNamespaceRule: {
+    prototype: CSSNamespaceRule;
+    new(): CSSNamespaceRule;
+}
+
+interface CSSPageRule extends CSSRule {
+    readonly pseudoClass: string;
+    readonly selector: string;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSPageRule: {
+    prototype: CSSPageRule;
+    new(): CSSPageRule;
+}
+
+interface CSSRule {
+    cssText: string;
+    readonly parentRule: CSSRule;
+    readonly parentStyleSheet: CSSStyleSheet;
+    readonly type: number;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+declare var CSSRule: {
+    prototype: CSSRule;
+    new(): CSSRule;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+interface CSSRuleList {
+    readonly length: number;
+    item(index: number): CSSRule;
+    [index: number]: CSSRule;
+}
+
+declare var CSSRuleList: {
+    prototype: CSSRuleList;
+    new(): CSSRuleList;
+}
+
+interface CSSStyleDeclaration {
+    alignContent: string | null;
+    alignItems: string | null;
+    alignSelf: string | null;
+    alignmentBaseline: string | null;
+    animation: string | null;
+    animationDelay: string | null;
+    animationDirection: string | null;
+    animationDuration: string | null;
+    animationFillMode: string | null;
+    animationIterationCount: string | null;
+    animationName: string | null;
+    animationPlayState: string | null;
+    animationTimingFunction: string | null;
+    backfaceVisibility: string | null;
+    background: string | null;
+    backgroundAttachment: string | null;
+    backgroundClip: string | null;
+    backgroundColor: string | null;
+    backgroundImage: string | null;
+    backgroundOrigin: string | null;
+    backgroundPosition: string | null;
+    backgroundPositionX: string | null;
+    backgroundPositionY: string | null;
+    backgroundRepeat: string | null;
+    backgroundSize: string | null;
+    baselineShift: string | null;
+    border: string | null;
+    borderBottom: string | null;
+    borderBottomColor: string | null;
+    borderBottomLeftRadius: string | null;
+    borderBottomRightRadius: string | null;
+    borderBottomStyle: string | null;
+    borderBottomWidth: string | null;
+    borderCollapse: string | null;
+    borderColor: string | null;
+    borderImage: string | null;
+    borderImageOutset: string | null;
+    borderImageRepeat: string | null;
+    borderImageSlice: string | null;
+    borderImageSource: string | null;
+    borderImageWidth: string | null;
+    borderLeft: string | null;
+    borderLeftColor: string | null;
+    borderLeftStyle: string | null;
+    borderLeftWidth: string | null;
+    borderRadius: string | null;
+    borderRight: string | null;
+    borderRightColor: string | null;
+    borderRightStyle: string | null;
+    borderRightWidth: string | null;
+    borderSpacing: string | null;
+    borderStyle: string | null;
+    borderTop: string | null;
+    borderTopColor: string | null;
+    borderTopLeftRadius: string | null;
+    borderTopRightRadius: string | null;
+    borderTopStyle: string | null;
+    borderTopWidth: string | null;
+    borderWidth: string | null;
+    bottom: string | null;
+    boxShadow: string | null;
+    boxSizing: string | null;
+    breakAfter: string | null;
+    breakBefore: string | null;
+    breakInside: string | null;
+    captionSide: string | null;
+    clear: string | null;
+    clip: string | null;
+    clipPath: string | null;
+    clipRule: string | null;
+    color: string | null;
+    colorInterpolationFilters: string | null;
+    columnCount: any;
+    columnFill: string | null;
+    columnGap: any;
+    columnRule: string | null;
+    columnRuleColor: any;
+    columnRuleStyle: string | null;
+    columnRuleWidth: any;
+    columnSpan: string | null;
+    columnWidth: any;
+    columns: string | null;
+    content: string | null;
+    counterIncrement: string | null;
+    counterReset: string | null;
+    cssFloat: string | null;
+    cssText: string;
+    cursor: string | null;
+    direction: string | null;
+    display: string | null;
+    dominantBaseline: string | null;
+    emptyCells: string | null;
+    enableBackground: string | null;
+    fill: string | null;
+    fillOpacity: string | null;
+    fillRule: string | null;
+    filter: string | null;
+    flex: string | null;
+    flexBasis: string | null;
+    flexDirection: string | null;
+    flexFlow: string | null;
+    flexGrow: string | null;
+    flexShrink: string | null;
+    flexWrap: string | null;
+    floodColor: string | null;
+    floodOpacity: string | null;
+    font: string | null;
+    fontFamily: string | null;
+    fontFeatureSettings: string | null;
+    fontSize: string | null;
+    fontSizeAdjust: string | null;
+    fontStretch: string | null;
+    fontStyle: string | null;
+    fontVariant: string | null;
+    fontWeight: string | null;
+    glyphOrientationHorizontal: string | null;
+    glyphOrientationVertical: string | null;
+    height: string | null;
+    imeMode: string | null;
+    justifyContent: string | null;
+    kerning: string | null;
+    left: string | null;
+    readonly length: number;
+    letterSpacing: string | null;
+    lightingColor: string | null;
+    lineHeight: string | null;
+    listStyle: string | null;
+    listStyleImage: string | null;
+    listStylePosition: string | null;
+    listStyleType: string | null;
+    margin: string | null;
+    marginBottom: string | null;
+    marginLeft: string | null;
+    marginRight: string | null;
+    marginTop: string | null;
+    marker: string | null;
+    markerEnd: string | null;
+    markerMid: string | null;
+    markerStart: string | null;
+    mask: string | null;
+    maxHeight: string | null;
+    maxWidth: string | null;
+    minHeight: string | null;
+    minWidth: string | null;
+    msContentZoomChaining: string | null;
+    msContentZoomLimit: string | null;
+    msContentZoomLimitMax: any;
+    msContentZoomLimitMin: any;
+    msContentZoomSnap: string | null;
+    msContentZoomSnapPoints: string | null;
+    msContentZoomSnapType: string | null;
+    msContentZooming: string | null;
+    msFlowFrom: string | null;
+    msFlowInto: string | null;
+    msFontFeatureSettings: string | null;
+    msGridColumn: any;
+    msGridColumnAlign: string | null;
+    msGridColumnSpan: any;
+    msGridColumns: string | null;
+    msGridRow: any;
+    msGridRowAlign: string | null;
+    msGridRowSpan: any;
+    msGridRows: string | null;
+    msHighContrastAdjust: string | null;
+    msHyphenateLimitChars: string | null;
+    msHyphenateLimitLines: any;
+    msHyphenateLimitZone: any;
+    msHyphens: string | null;
+    msImeAlign: string | null;
+    msOverflowStyle: string | null;
+    msScrollChaining: string | null;
+    msScrollLimit: string | null;
+    msScrollLimitXMax: any;
+    msScrollLimitXMin: any;
+    msScrollLimitYMax: any;
+    msScrollLimitYMin: any;
+    msScrollRails: string | null;
+    msScrollSnapPointsX: string | null;
+    msScrollSnapPointsY: string | null;
+    msScrollSnapType: string | null;
+    msScrollSnapX: string | null;
+    msScrollSnapY: string | null;
+    msScrollTranslation: string | null;
+    msTextCombineHorizontal: string | null;
+    msTextSizeAdjust: any;
+    msTouchAction: string | null;
+    msTouchSelect: string | null;
+    msUserSelect: string | null;
+    msWrapFlow: string;
+    msWrapMargin: any;
+    msWrapThrough: string;
+    opacity: string | null;
+    order: string | null;
+    orphans: string | null;
+    outline: string | null;
+    outlineColor: string | null;
+    outlineStyle: string | null;
+    outlineWidth: string | null;
+    overflow: string | null;
+    overflowX: string | null;
+    overflowY: string | null;
+    padding: string | null;
+    paddingBottom: string | null;
+    paddingLeft: string | null;
+    paddingRight: string | null;
+    paddingTop: string | null;
+    pageBreakAfter: string | null;
+    pageBreakBefore: string | null;
+    pageBreakInside: string | null;
+    readonly parentRule: CSSRule;
+    perspective: string | null;
+    perspectiveOrigin: string | null;
+    pointerEvents: string | null;
+    position: string | null;
+    quotes: string | null;
+    right: string | null;
+    rubyAlign: string | null;
+    rubyOverhang: string | null;
+    rubyPosition: string | null;
+    stopColor: string | null;
+    stopOpacity: string | null;
+    stroke: string | null;
+    strokeDasharray: string | null;
+    strokeDashoffset: string | null;
+    strokeLinecap: string | null;
+    strokeLinejoin: string | null;
+    strokeMiterlimit: string | null;
+    strokeOpacity: string | null;
+    strokeWidth: string | null;
+    tableLayout: string | null;
+    textAlign: string | null;
+    textAlignLast: string | null;
+    textAnchor: string | null;
+    textDecoration: string | null;
+    textIndent: string | null;
+    textJustify: string | null;
+    textKashida: string | null;
+    textKashidaSpace: string | null;
+    textOverflow: string | null;
+    textShadow: string | null;
+    textTransform: string | null;
+    textUnderlinePosition: string | null;
+    top: string | null;
+    touchAction: string | null;
+    transform: string | null;
+    transformOrigin: string | null;
+    transformStyle: string | null;
+    transition: string | null;
+    transitionDelay: string | null;
+    transitionDuration: string | null;
+    transitionProperty: string | null;
+    transitionTimingFunction: string | null;
+    unicodeBidi: string | null;
+    verticalAlign: string | null;
+    visibility: string | null;
+    webkitAlignContent: string | null;
+    webkitAlignItems: string | null;
+    webkitAlignSelf: string | null;
+    webkitAnimation: string | null;
+    webkitAnimationDelay: string | null;
+    webkitAnimationDirection: string | null;
+    webkitAnimationDuration: string | null;
+    webkitAnimationFillMode: string | null;
+    webkitAnimationIterationCount: string | null;
+    webkitAnimationName: string | null;
+    webkitAnimationPlayState: string | null;
+    webkitAnimationTimingFunction: string | null;
+    webkitAppearance: string | null;
+    webkitBackfaceVisibility: string | null;
+    webkitBackgroundClip: string | null;
+    webkitBackgroundOrigin: string | null;
+    webkitBackgroundSize: string | null;
+    webkitBorderBottomLeftRadius: string | null;
+    webkitBorderBottomRightRadius: string | null;
+    webkitBorderImage: string | null;
+    webkitBorderRadius: string | null;
+    webkitBorderTopLeftRadius: string | null;
+    webkitBorderTopRightRadius: string | null;
+    webkitBoxAlign: string | null;
+    webkitBoxDirection: string | null;
+    webkitBoxFlex: string | null;
+    webkitBoxOrdinalGroup: string | null;
+    webkitBoxOrient: string | null;
+    webkitBoxPack: string | null;
+    webkitBoxSizing: string | null;
+    webkitColumnBreakAfter: string | null;
+    webkitColumnBreakBefore: string | null;
+    webkitColumnBreakInside: string | null;
+    webkitColumnCount: any;
+    webkitColumnGap: any;
+    webkitColumnRule: string | null;
+    webkitColumnRuleColor: any;
+    webkitColumnRuleStyle: string | null;
+    webkitColumnRuleWidth: any;
+    webkitColumnSpan: string | null;
+    webkitColumnWidth: any;
+    webkitColumns: string | null;
+    webkitFilter: string | null;
+    webkitFlex: string | null;
+    webkitFlexBasis: string | null;
+    webkitFlexDirection: string | null;
+    webkitFlexFlow: string | null;
+    webkitFlexGrow: string | null;
+    webkitFlexShrink: string | null;
+    webkitFlexWrap: string | null;
+    webkitJustifyContent: string | null;
+    webkitOrder: string | null;
+    webkitPerspective: string | null;
+    webkitPerspectiveOrigin: string | null;
+    webkitTapHighlightColor: string | null;
+    webkitTextFillColor: string | null;
+    webkitTextSizeAdjust: any;
+    webkitTransform: string | null;
+    webkitTransformOrigin: string | null;
+    webkitTransformStyle: string | null;
+    webkitTransition: string | null;
+    webkitTransitionDelay: string | null;
+    webkitTransitionDuration: string | null;
+    webkitTransitionProperty: string | null;
+    webkitTransitionTimingFunction: string | null;
+    webkitUserModify: string | null;
+    webkitUserSelect: string | null;
+    webkitWritingMode: string | null;
+    whiteSpace: string | null;
+    widows: string | null;
+    width: string | null;
+    wordBreak: string | null;
+    wordSpacing: string | null;
+    wordWrap: string | null;
+    writingMode: string | null;
+    zIndex: string | null;
+    zoom: string | null;
+    resize: string | null;
+    getPropertyPriority(propertyName: string): string;
+    getPropertyValue(propertyName: string): string;
+    item(index: number): string;
+    removeProperty(propertyName: string): string;
+    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
+    [index: number]: string;
+}
+
+declare var CSSStyleDeclaration: {
+    prototype: CSSStyleDeclaration;
+    new(): CSSStyleDeclaration;
+}
+
+interface CSSStyleRule extends CSSRule {
+    readonly readOnly: boolean;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSStyleRule: {
+    prototype: CSSStyleRule;
+    new(): CSSStyleRule;
+}
+
+interface CSSStyleSheet extends StyleSheet {
+    readonly cssRules: CSSRuleList;
+    cssText: string;
+    readonly href: string;
+    readonly id: string;
+    readonly imports: StyleSheetList;
+    readonly isAlternate: boolean;
+    readonly isPrefAlternate: boolean;
+    readonly ownerRule: CSSRule;
+    readonly owningElement: Element;
+    readonly pages: StyleSheetPageList;
+    readonly readOnly: boolean;
+    readonly rules: CSSRuleList;
+    addImport(bstrURL: string, lIndex?: number): number;
+    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
+    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
+    deleteRule(index?: number): void;
+    insertRule(rule: string, index?: number): number;
+    removeImport(lIndex: number): void;
+    removeRule(lIndex: number): void;
+}
+
+declare var CSSStyleSheet: {
+    prototype: CSSStyleSheet;
+    new(): CSSStyleSheet;
+}
+
+interface CSSSupportsRule extends CSSConditionRule {
+}
+
+declare var CSSSupportsRule: {
+    prototype: CSSSupportsRule;
+    new(): CSSSupportsRule;
+}
+
+interface CanvasGradient {
+    addColorStop(offset: number, color: string): void;
+}
+
+declare var CanvasGradient: {
+    prototype: CanvasGradient;
+    new(): CanvasGradient;
+}
+
+interface CanvasPattern {
+    setTransform(matrix: SVGMatrix): void;
+}
+
+declare var CanvasPattern: {
+    prototype: CanvasPattern;
+    new(): CanvasPattern;
+}
+
+interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
+    readonly canvas: HTMLCanvasElement;
+    fillStyle: string | CanvasGradient | CanvasPattern;
+    font: string;
+    globalAlpha: number;
+    globalCompositeOperation: string;
+    lineCap: string;
+    lineDashOffset: number;
+    lineJoin: string;
+    lineWidth: number;
+    miterLimit: number;
+    msFillRule: string;
+    msImageSmoothingEnabled: boolean;
+    shadowBlur: number;
+    shadowColor: string;
+    shadowOffsetX: number;
+    shadowOffsetY: number;
+    strokeStyle: string | CanvasGradient | CanvasPattern;
+    textAlign: string;
+    textBaseline: string;
+    mozImageSmoothingEnabled: boolean;
+    webkitImageSmoothingEnabled: boolean;
+    oImageSmoothingEnabled: boolean;
+    beginPath(): void;
+    clearRect(x: number, y: number, w: number, h: number): void;
+    clip(fillRule?: string): void;
+    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
+    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
+    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
+    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
+    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
+    fill(fillRule?: string): void;
+    fillRect(x: number, y: number, w: number, h: number): void;
+    fillText(text: string, x: number, y: number, maxWidth?: number): void;
+    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+    getLineDash(): number[];
+    isPointInPath(x: number, y: number, fillRule?: string): boolean;
+    measureText(text: string): TextMetrics;
+    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
+    restore(): void;
+    rotate(angle: number): void;
+    save(): void;
+    scale(x: number, y: number): void;
+    setLineDash(segments: number[]): void;
+    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
+    stroke(): void;
+    strokeRect(x: number, y: number, w: number, h: number): void;
+    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
+    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
+    translate(x: number, y: number): void;
+}
+
+declare var CanvasRenderingContext2D: {
+    prototype: CanvasRenderingContext2D;
+    new(): CanvasRenderingContext2D;
+}
+
+interface ChannelMergerNode extends AudioNode {
+}
+
+declare var ChannelMergerNode: {
+    prototype: ChannelMergerNode;
+    new(): ChannelMergerNode;
+}
+
+interface ChannelSplitterNode extends AudioNode {
+}
+
+declare var ChannelSplitterNode: {
+    prototype: ChannelSplitterNode;
+    new(): ChannelSplitterNode;
+}
+
+interface CharacterData extends Node, ChildNode {
+    data: string;
+    readonly length: number;
+    appendData(arg: string): void;
+    deleteData(offset: number, count: number): void;
+    insertData(offset: number, arg: string): void;
+    replaceData(offset: number, count: number, arg: string): void;
+    substringData(offset: number, count: number): string;
+}
+
+declare var CharacterData: {
+    prototype: CharacterData;
+    new(): CharacterData;
+}
+
+interface ClientRect {
+    bottom: number;
+    readonly height: number;
+    left: number;
+    right: number;
+    top: number;
+    readonly width: number;
+}
+
+declare var ClientRect: {
+    prototype: ClientRect;
+    new(): ClientRect;
+}
+
+interface ClientRectList {
+    readonly length: number;
+    item(index: number): ClientRect;
+    [index: number]: ClientRect;
+}
+
+declare var ClientRectList: {
+    prototype: ClientRectList;
+    new(): ClientRectList;
+}
+
+interface ClipboardEvent extends Event {
+    readonly clipboardData: DataTransfer;
+}
+
+declare var ClipboardEvent: {
+    prototype: ClipboardEvent;
+    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+}
+
+interface CloseEvent extends Event {
+    readonly code: number;
+    readonly reason: string;
+    readonly wasClean: boolean;
+    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
+}
+
+declare var CloseEvent: {
+    prototype: CloseEvent;
+    new(): CloseEvent;
+}
+
+interface CommandEvent extends Event {
+    readonly commandName: string;
+    readonly detail: string | null;
+}
+
+declare var CommandEvent: {
+    prototype: CommandEvent;
+    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
+}
+
+interface Comment extends CharacterData {
+    text: string;
+}
+
+declare var Comment: {
+    prototype: Comment;
+    new(): Comment;
+}
+
+interface CompositionEvent extends UIEvent {
+    readonly data: string;
+    readonly locale: string;
+    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
+}
+
+declare var CompositionEvent: {
+    prototype: CompositionEvent;
+    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
+}
+
+interface Console {
+    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
+    clear(): void;
+    count(countTitle?: string): void;
+    debug(message?: string, ...optionalParams: any[]): void;
+    dir(value?: any, ...optionalParams: any[]): void;
+    dirxml(value: any): void;
+    error(message?: any, ...optionalParams: any[]): void;
+    exception(message?: string, ...optionalParams: any[]): void;
+    group(groupTitle?: string): void;
+    groupCollapsed(groupTitle?: string): void;
+    groupEnd(): void;
+    info(message?: any, ...optionalParams: any[]): void;
+    log(message?: any, ...optionalParams: any[]): void;
+    msIsIndependentlyComposed(element: Element): boolean;
+    profile(reportName?: string): void;
+    profileEnd(): void;
+    select(element: Element): void;
+    table(...data: any[]): void;
+    time(timerName?: string): void;
+    timeEnd(timerName?: string): void;
+    trace(message?: any, ...optionalParams: any[]): void;
+    warn(message?: any, ...optionalParams: any[]): void;
+}
+
+declare var Console: {
+    prototype: Console;
+    new(): Console;
+}
+
+interface ConvolverNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    normalize: boolean;
+}
+
+declare var ConvolverNode: {
+    prototype: ConvolverNode;
+    new(): ConvolverNode;
+}
+
+interface Coordinates {
+    readonly accuracy: number;
+    readonly altitude: number | null;
+    readonly altitudeAccuracy: number | null;
+    readonly heading: number | null;
+    readonly latitude: number;
+    readonly longitude: number;
+    readonly speed: number | null;
+}
+
+declare var Coordinates: {
+    prototype: Coordinates;
+    new(): Coordinates;
+}
+
+interface Crypto extends Object, RandomSource {
+    readonly subtle: SubtleCrypto;
+}
+
+declare var Crypto: {
+    prototype: Crypto;
+    new(): Crypto;
+}
+
+interface CryptoKey {
+    readonly algorithm: KeyAlgorithm;
+    readonly extractable: boolean;
+    readonly type: string;
+    readonly usages: string[];
+}
+
+declare var CryptoKey: {
+    prototype: CryptoKey;
+    new(): CryptoKey;
+}
+
+interface CryptoKeyPair {
+    privateKey: CryptoKey;
+    publicKey: CryptoKey;
+}
+
+declare var CryptoKeyPair: {
+    prototype: CryptoKeyPair;
+    new(): CryptoKeyPair;
+}
+
+interface CustomEvent extends Event {
+    readonly detail: any;
+    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
+}
+
+declare var CustomEvent: {
+    prototype: CustomEvent;
+    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
+}
+
+interface DOMError {
+    readonly name: string;
+    toString(): string;
+}
+
+declare var DOMError: {
+    prototype: DOMError;
+    new(): DOMError;
+}
+
+interface DOMException {
+    readonly code: number;
+    readonly message: string;
+    readonly name: string;
+    toString(): string;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+declare var DOMException: {
+    prototype: DOMException;
+    new(): DOMException;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+interface DOMImplementation {
+    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
+    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
+    createHTMLDocument(title: string): Document;
+    hasFeature(feature: string | null, version: string | null): boolean;
+}
+
+declare var DOMImplementation: {
+    prototype: DOMImplementation;
+    new(): DOMImplementation;
+}
+
+interface DOMParser {
+    parseFromString(source: string, mimeType: string): Document;
+}
+
+declare var DOMParser: {
+    prototype: DOMParser;
+    new(): DOMParser;
+}
+
+interface DOMSettableTokenList extends DOMTokenList {
+    value: string;
+}
+
+declare var DOMSettableTokenList: {
+    prototype: DOMSettableTokenList;
+    new(): DOMSettableTokenList;
+}
+
+interface DOMStringList {
+    readonly length: number;
+    contains(str: string): boolean;
+    item(index: number): string | null;
+    [index: number]: string;
+}
+
+declare var DOMStringList: {
+    prototype: DOMStringList;
+    new(): DOMStringList;
+}
+
+interface DOMStringMap {
+    [name: string]: string;
+}
+
+declare var DOMStringMap: {
+    prototype: DOMStringMap;
+    new(): DOMStringMap;
+}
+
+interface DOMTokenList {
+    readonly length: number;
+    add(...token: string[]): void;
+    contains(token: string): boolean;
+    item(index: number): string;
+    remove(...token: string[]): void;
+    toString(): string;
+    toggle(token: string, force?: boolean): boolean;
+    [index: number]: string;
+}
+
+declare var DOMTokenList: {
+    prototype: DOMTokenList;
+    new(): DOMTokenList;
+}
+
+interface DataCue extends TextTrackCue {
+    data: ArrayBuffer;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var DataCue: {
+    prototype: DataCue;
+    new(): DataCue;
+}
+
+interface DataTransfer {
+    dropEffect: string;
+    effectAllowed: string;
+    readonly files: FileList;
+    readonly items: DataTransferItemList;
+    readonly types: string[];
+    clearData(format?: string): boolean;
+    getData(format: string): string;
+    setData(format: string, data: string): boolean;
+}
+
+declare var DataTransfer: {
+    prototype: DataTransfer;
+    new(): DataTransfer;
+}
+
+interface DataTransferItem {
+    readonly kind: string;
+    readonly type: string;
+    getAsFile(): File | null;
+    getAsString(_callback: FunctionStringCallback | null): void;
+}
+
+declare var DataTransferItem: {
+    prototype: DataTransferItem;
+    new(): DataTransferItem;
+}
+
+interface DataTransferItemList {
+    readonly length: number;
+    add(data: File): DataTransferItem | null;
+    clear(): void;
+    item(index: number): DataTransferItem;
+    remove(index: number): void;
+    [index: number]: DataTransferItem;
+}
+
+declare var DataTransferItemList: {
+    prototype: DataTransferItemList;
+    new(): DataTransferItemList;
+}
+
+interface DeferredPermissionRequest {
+    readonly id: number;
+    readonly type: string;
+    readonly uri: string;
+    allow(): void;
+    deny(): void;
+}
+
+declare var DeferredPermissionRequest: {
+    prototype: DeferredPermissionRequest;
+    new(): DeferredPermissionRequest;
+}
+
+interface DelayNode extends AudioNode {
+    readonly delayTime: AudioParam;
+}
+
+declare var DelayNode: {
+    prototype: DelayNode;
+    new(): DelayNode;
+}
+
+interface DeviceAcceleration {
+    readonly x: number | null;
+    readonly y: number | null;
+    readonly z: number | null;
+}
+
+declare var DeviceAcceleration: {
+    prototype: DeviceAcceleration;
+    new(): DeviceAcceleration;
+}
+
+interface DeviceLightEvent extends Event {
+    readonly value: number;
+}
+
+declare var DeviceLightEvent: {
+    prototype: DeviceLightEvent;
+    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
+}
+
+interface DeviceMotionEvent extends Event {
+    readonly acceleration: DeviceAcceleration | null;
+    readonly accelerationIncludingGravity: DeviceAcceleration | null;
+    readonly interval: number | null;
+    readonly rotationRate: DeviceRotationRate | null;
+    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
+}
+
+declare var DeviceMotionEvent: {
+    prototype: DeviceMotionEvent;
+    new(): DeviceMotionEvent;
+}
+
+interface DeviceOrientationEvent extends Event {
+    readonly absolute: boolean;
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
+}
+
+declare var DeviceOrientationEvent: {
+    prototype: DeviceOrientationEvent;
+    new(): DeviceOrientationEvent;
+}
+
+interface DeviceRotationRate {
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+declare var DeviceRotationRate: {
+    prototype: DeviceRotationRate;
+    new(): DeviceRotationRate;
+}
+
+interface DocumentEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforedeactivate": UIEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "fullscreenchange": Event;
+    "fullscreenerror": Event;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "mssitemodejumplistitemremoved": MSSiteModeEvent;
+    "msthumbnailclick": MSSiteModeEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "pointerlockchange": Event;
+    "pointerlockerror": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectionchange": Event;
+    "selectstart": Event;
+    "stalled": Event;
+    "stop": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "volumechange": Event;
+    "waiting": Event;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
+    /**
+      * Sets or gets the URL for the current document. 
+      */
+    readonly URL: string;
+    /**
+      * Gets the URL for the document, stripped of any character encoding.
+      */
+    readonly URLUnencoded: string;
+    /**
+      * Gets the object that has the focus when the parent document has focus.
+      */
+    readonly activeElement: Element;
+    /**
+      * Sets or gets the color of all active links in the document.
+      */
+    alinkColor: string;
+    /**
+      * Returns a reference to the collection of elements contained by the 
object.
+      */
+    readonly all: HTMLAllCollection;
+    /**
+      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
+      */
+    anchors: HTMLCollectionOf<HTMLAnchorElement>;
+    /**
+      * Retrieves a collection of all applet objects in the document.
+      */
+    applets: HTMLCollectionOf<HTMLAppletElement>;
+    /**
+      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
+      */
+    bgColor: string;
+    /**
+      * Specifies the beginning and end of the document body.
+      */
+    body: HTMLElement;
+    readonly characterSet: string;
+    /**
+      * Gets or sets the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
+      */
+    readonly compatMode: string;
+    cookie: string;
+    readonly currentScript: HTMLScriptElement | SVGScriptElement;
+    /**
+      * Gets the default character set from the current regional language 
settings.
+      */
+    readonly defaultCharset: string;
+    readonly defaultView: Window;
+    /**
+      * Sets or gets a value that indicates whether the document can be edited.
+      */
+    designMode: string;
+    /**
+      * Sets or retrieves a value that indicates the reading order of the 
object. 
+      */
+    dir: string;
+    /**
+      * Gets an object representing the document type declaration associated 
with the current document. 
+      */
+    readonly doctype: DocumentType;
+    /**
+      * Gets a reference to the root node of the document. 
+      */
+    documentElement: HTMLElement;
+    /**
+      * Sets or gets the security domain of the document. 
+      */
+    domain: string;
+    /**
+      * Retrieves a collection of all embed objects in the document.
+      */
+    embeds: HTMLCollectionOf<HTMLEmbedElement>;
+    /**
+      * Sets or gets the foreground (text) color of the document.
+      */
+    fgColor: string;
+    /**
+      * Retrieves a collection, in source order, of all form objects in the 
document.
+      */
+    forms: HTMLCollectionOf<HTMLFormElement>;
+    readonly fullscreenElement: Element | null;
+    readonly fullscreenEnabled: boolean;
+    readonly head: HTMLHeadElement;
+    readonly hidden: boolean;
+    /**
+      * Retrieves a collection, in source order, of img objects in the 
document.
+      */
+    images: HTMLCollectionOf<HTMLImageElement>;
+    /**
+      * Gets the implementation object of the current document. 
+      */
+    readonly implementation: DOMImplementation;
+    /**
+      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
+      */
+    readonly inputEncoding: string | null;
+    /**
+      * Gets the date that the page was last modified, if the page supplies 
one. 
+      */
+    readonly lastModified: string;
+    /**
+      * Sets or gets the color of the document links. 
+      */
+    linkColor: string;
+    /**
+      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
+      */
+    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
+    /**
+      * Contains information about the current URL. 
+      */
+    readonly location: Location;
+    msCSSOMElementFloatMetrics: boolean;
+    msCapsLockWarningOff: boolean;
+    /**
+      * Fires when the user aborts the download.
+      * @param ev The event.
+      */
+    onabort: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the object is set as the active element.
+      * @param ev The event.
+      */
+    onactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the object is set as the active element.
+      * @param ev The event.
+      */
+    onbeforeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
+      * @param ev The event.
+      */
+    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
+    /** 
+      * Fires when the object loses the input focus. 
+      * @param ev The focus event.
+      */
+    onblur: (this: Document, ev: FocusEvent) => any;
+    /**
+      * Occurs when playback is possible, but would require further buffering. 
+      * @param ev The event.
+      */
+    oncanplay: (this: Document, ev: Event) => any;
+    oncanplaythrough: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the contents of the object or selection have changed. 
+      * @param ev The event.
+      */
+    onchange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the left mouse button on the object
+      * @param ev The mouse event.
+      */
+    onclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
+      * @param ev The mouse event.
+      */
+    oncontextmenu: (this: Document, ev: PointerEvent) => any;
+    /**
+      * Fires when the user double-clicks the object.
+      * @param ev The mouse event.
+      */
+    ondblclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
+      * @param ev The UI Event
+      */
+    ondeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires on the source object continuously during a drag operation.
+      * @param ev The event.
+      */
+    ondrag: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
+      * @param ev The event.
+      */
+    ondragend: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target element when the user drags the object to a valid 
drop target.
+      * @param ev The drag event.
+      */
+    ondragenter: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
+      * @param ev The drag event.
+      */
+    ondragleave: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
+      * @param ev The event.
+      */
+    ondragover: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
+      * @param ev The event.
+      */
+    ondragstart: (this: Document, ev: DragEvent) => any;
+    ondrop: (this: Document, ev: DragEvent) => any;
+    /**
+      * Occurs when the duration attribute is updated. 
+      * @param ev The event.
+      */
+    ondurationchange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the media element is reset to its initial state. 
+      * @param ev The event.
+      */
+    onemptied: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the end of playback is reached. 
+      * @param ev The event
+      */
+    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
+    /**
+      * Fires when an error occurs during object loading.
+      * @param ev The event.
+      */
+    onerror: (this: Document, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus. 
+      * @param ev The event.
+      */
+    onfocus: (this: Document, ev: FocusEvent) => any;
+    onfullscreenchange: (this: Document, ev: Event) => any;
+    onfullscreenerror: (this: Document, ev: Event) => any;
+    oninput: (this: Document, ev: Event) => any;
+    oninvalid: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user presses a key.
+      * @param ev The keyboard event
+      */
+    onkeydown: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user presses an alphanumeric key.
+      * @param ev The event.
+      */
+    onkeypress: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user releases a key.
+      * @param ev The keyboard event
+      */
+    onkeyup: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires immediately after the browser loads the object. 
+      * @param ev The event.
+      */
+    onload: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when media data is loaded at the current playback position. 
+      * @param ev The event.
+      */
+    onloadeddata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the duration and dimensions of the media have been 
determined.
+      * @param ev The event.
+      */
+    onloadedmetadata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when Internet Explorer begins looking for media data. 
+      * @param ev The event.
+      */
+    onloadstart: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the object with either mouse button. 
+      * @param ev The mouse event.
+      */
+    onmousedown: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse over the object. 
+      * @param ev The mouse event.
+      */
+    onmousemove: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseout: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer into the object.
+      * @param ev The mouse event.
+      */
+    onmouseover: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user releases a mouse button while the mouse is over 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseup: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the wheel button is rotated. 
+      * @param ev The mouse event
+      */
+    onmousewheel: (this: Document, ev: WheelEvent) => any;
+    onmscontentzoom: (this: Document, ev: UIEvent) => any;
+    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
+    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
+    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
+    /**
+      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
+      * @param ev The event.
+      */
+    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
+    /**
+      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
+      * @param ev The event.
+      */
+    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
+    /**
+      * Occurs when playback is paused.
+      * @param ev The event.
+      */
+    onpause: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the play method is requested. 
+      * @param ev The event.
+      */
+    onplay: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the audio or video has started playing. 
+      * @param ev The event.
+      */
+    onplaying: (this: Document, ev: Event) => any;
+    onpointerlockchange: (this: Document, ev: Event) => any;
+    onpointerlockerror: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate progress while downloading media data. 
+      * @param ev The event.
+      */
+    onprogress: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Occurs when the playback rate is increased or decreased. 
+      * @param ev The event.
+      */
+    onratechange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the state of the object has changed.
+      * @param ev The event
+      */
+    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Fires when the user resets a form. 
+      * @param ev The event.
+      */
+    onreset: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
+      * @param ev The event.
+      */
+    onscroll: (this: Document, ev: UIEvent) => any;
+    /**
+      * Occurs when the seek operation ends. 
+      * @param ev The event.
+      */
+    onseeked: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the current playback position is moved. 
+      * @param ev The event.
+      */
+    onseeking: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the current selection changes.
+      * @param ev The event.
+      */
+    onselect: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the selection state of a document changes.
+      * @param ev The event.
+      */
+    onselectionchange: (this: Document, ev: Event) => any;
+    onselectstart: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the download has stopped. 
+      * @param ev The event.
+      */
+    onstalled: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the Stop button or leaves the Web page.
+      * @param ev The event.
+      */
+    onstop: (this: Document, ev: Event) => any;
+    onsubmit: (this: Document, ev: Event) => any;
+    /**
+      * Occurs if the load operation has been intentionally halted. 
+      * @param ev The event.
+      */
+    onsuspend: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate the current playback position.
+      * @param ev The event.
+      */
+    ontimeupdate: (this: Document, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    /**
+      * Occurs when the volume is changed, or playback is muted or unmuted.
+      * @param ev The event.
+      */
+    onvolumechange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when playback stops because the next frame of a video resource 
is not available. 
+      * @param ev The event.
+      */
+    onwaiting: (this: Document, ev: Event) => any;
+    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
+    plugins: HTMLCollectionOf<HTMLEmbedElement>;
+    readonly pointerLockElement: Element;
+    /**
+      * Retrieves a value that indicates the current state of the object.
+      */
+    readonly readyState: string;
+    /**
+      * Gets the URL of the location that referred the user to the current 
page.
+      */
+    readonly referrer: string;
+    /**
+      * Gets the root svg element in the document hierarchy.
+      */
+    readonly rootElement: SVGSVGElement;
+    /**
+      * Retrieves a collection of all script objects in the document.
+      */
+    scripts: HTMLCollectionOf<HTMLScriptElement>;
+    readonly scrollingElement: Element | null;
+    /**
+      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
+      */
+    readonly styleSheets: StyleSheetList;
+    /**
+      * Contains the title of the document.
+      */
+    title: string;
+    readonly visibilityState: string;
+    /** 
+      * Sets or gets the color of the links that the user has visited.
+      */
+    vlinkColor: string;
+    readonly webkitCurrentFullScreenElement: Element | null;
+    readonly webkitFullscreenElement: Element | null;
+    readonly webkitFullscreenEnabled: boolean;
+    readonly webkitIsFullScreen: boolean;
+    readonly xmlEncoding: string | null;
+    xmlStandalone: boolean;
+    /**
+      * Gets or sets the version attribute specified in the declaration of an 
XML document.
+      */
+    xmlVersion: string | null;
+    adoptNode(source: Node): Node;
+    captureEvents(): void;
+    caretRangeFromPoint(x: number, y: number): Range;
+    clear(): void;
+    /**
+      * Closes an output stream and forces the sent data to display.
+      */
+    close(): void;
+    /**
+      * Creates an attribute object with a specified name.
+      * @param name String that sets the attribute object's name.
+      */
+    createAttribute(name: string): Attr;
+    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
+    createCDATASection(data: string): CDATASection;
+    /**
+      * Creates a comment object with the specified data.
+      * @param data Sets the comment object's data.
+      */
+    createComment(data: string): Comment;
+    /**
+      * Creates a new document.
+      */
+    createDocumentFragment(): DocumentFragment;
+    /**
+      * Creates an instance of the element for the specified tag.
+      * @param tagName The name of an element.
+      */
+    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
+    createElement(tagName: string): HTMLElement;
+    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
+    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver: Node): XPathNSResolver;
+    /**
+      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list
+      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
+    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
+    /**
+      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
+      */
+    createRange(): Range;
+    /**
+      * Creates a text string from the specified value. 
+      * @param data String that specifies the nodeValue property of the text 
node.
+      */
+    createTextNode(data: string): Text;
+    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
+    createTouchList(...touches: Touch[]): TouchList;
+    /**
+      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
+      * @param filter A custom NodeFilter function to use.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
+    /**
+      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
+      * @param x The x-offset
+      * @param y The y-offset
+      */
+    elementFromPoint(x: number, y: number): Element;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+    /**
+      * Executes a command on the current document, current selection, or the 
given range.
+      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
+      * @param showUI Display the user interface, defaults to false.
+      * @param value Value to assign.
+      */
+    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
+    /**
+      * Displays help information for the given command identifier.
+      * @param commandId Displays help information for the given command 
identifier.
+      */
+    execCommandShowHelp(commandId: string): boolean;
+    exitFullscreen(): void;
+    exitPointerLock(): void;
+    /**
+      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
+      */
+    focus(): void;
+    /**
+      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
+      * @param elementId String that specifies the ID value. Case-insensitive.
+      */
+    getElementById(elementId: string): HTMLElement | null;
+    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
+    /**
+      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
+      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
+      */
+    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
+    /**
+      * Retrieves a collection of objects based on the specified element name.
+      * @param name Specifies the name of an element.
+      */
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(tagname: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    /**
+      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
+      */
+    getSelection(): Selection;
+    /**
+      * Gets a value indicating whether the object currently has focus.
+      */
+    hasFocus(): boolean;
+    importNode(importedNode: Node, deep: boolean): Node;
+    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
+    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
+    /**
+      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
+      * @param url Specifies a MIME type for the document.
+      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
+      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
+      */
+    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
+    /** 
+      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandEnabled(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandIndeterm(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates the current state of the 
command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandState(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandSupported(commandId: string): boolean;
+    /**
+      * Retrieves the string associated with a command.
+      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
+      */
+    queryCommandText(commandId: string): string;
+    /**
+      * Returns the current value of the document, range, or current selection 
for the given command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandValue(commandId: string): string;
+    releaseEvents(): void;
+    /**
+      * Allows updating the print settings for the page.
+      */
+    updateSettings(): void;
+    webkitCancelFullScreen(): void;
+    webkitExitFullscreen(): void;
+    /**
+      * Writes one or more HTML expressions to a document in the specified 
window. 
+      * @param content Specifies the text and HTML tags to write.
+      */
+    write(...content: string[]): void;
+    /**
+      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
+      * @param content The text and HTML tags to write.
+      */
+    writeln(...content: string[]): void;
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Document: {
+    prototype: Document;
+    new(): Document;
+}
+
+interface DocumentFragment extends Node, NodeSelector, ParentNode {
+}
+
+declare var DocumentFragment: {
+    prototype: DocumentFragment;
+    new(): DocumentFragment;
+}
+
+interface DocumentType extends Node, ChildNode {
+    readonly entities: NamedNodeMap;
+    readonly internalSubset: string | null;
+    readonly name: string;
+    readonly notations: NamedNodeMap;
+    readonly publicId: string | null;
+    readonly systemId: string | null;
+}
+
+declare var DocumentType: {
+    prototype: DocumentType;
+    new(): DocumentType;
+}
+
+interface DragEvent extends MouseEvent {
+    readonly dataTransfer: DataTransfer;
+    initDragEvent(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, dataTransferArg: DataTransfer): void;
+    msConvertURL(file: File, targetType: string, targetURL?: string): void;
+}
+
+declare var DragEvent: {
+    prototype: DragEvent;
+    new(): DragEvent;
+}
+
+interface DynamicsCompressorNode extends AudioNode {
+    readonly attack: AudioParam;
+    readonly knee: AudioParam;
+    readonly ratio: AudioParam;
+    readonly reduction: AudioParam;
+    readonly release: AudioParam;
+    readonly threshold: AudioParam;
+}
+
+declare var DynamicsCompressorNode: {
+    prototype: DynamicsCompressorNode;
+    new(): DynamicsCompressorNode;
+}
+
+interface EXT_frag_depth {
+}
+
+declare var EXT_frag_depth: {
+    prototype: EXT_frag_depth;
+    new(): EXT_frag_depth;
+}
+
+interface EXT_texture_filter_anisotropic {
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+declare var EXT_texture_filter_anisotropic: {
+    prototype: EXT_texture_filter_anisotropic;
+    new(): EXT_texture_filter_anisotropic;
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+interface ElementEventMap extends GlobalEventHandlersEventMap {
+    "ariarequest": AriaRequestEvent;
+    "command": CommandEvent;
+    "gotpointercapture": PointerEvent;
+    "lostpointercapture": PointerEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSGotPointerCapture": MSPointerEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSLostPointerCapture": MSPointerEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
+    readonly classList: DOMTokenList;
+    className: string;
+    readonly clientHeight: number;
+    readonly clientLeft: number;
+    readonly clientTop: number;
+    readonly clientWidth: number;
+    id: string;
+    msContentZoomFactor: number;
+    readonly msRegionOverflow: string;
+    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
+    oncommand: (this: Element, ev: CommandEvent) => any;
+    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
+    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
+    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
+    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
+    readonly prefix: string | null;
+    readonly scrollHeight: number;
+    scrollLeft: number;
+    scrollTop: number;
+    readonly scrollWidth: number;
+    readonly tagName: string;
+    innerHTML: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    slot: string;
+    readonly shadowRoot: ShadowRoot | null;
+    getAttribute(name: string): string | null;
+    getAttributeNS(namespaceURI: string, localName: string): string;
+    getAttributeNode(name: string): Attr;
+    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(name: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    hasAttribute(name: string): boolean;
+    hasAttributeNS(namespaceURI: string, localName: string): boolean;
+    msGetRegionContent(): MSRangeCollection;
+    msGetUntransformedBounds(): ClientRect;
+    msMatchesSelector(selectors: string): boolean;
+    msReleasePointerCapture(pointerId: number): void;
+    msSetPointerCapture(pointerId: number): void;
+    msZoomTo(args: MsZoomToOptions): void;
+    releasePointerCapture(pointerId: number): void;
+    removeAttribute(name?: string): void;
+    removeAttributeNS(namespaceURI: string, localName: string): void;
+    removeAttributeNode(oldAttr: Attr): Attr;
+    requestFullscreen(): void;
+    requestPointerLock(): void;
+    setAttribute(name: string, value: string): void;
+    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
+    setAttributeNode(newAttr: Attr): Attr;
+    setAttributeNodeNS(newAttr: Attr): Attr;
+    setPointerCapture(pointerId: number): void;
+    webkitMatchesSelector(selectors: string): boolean;
+    webkitRequestFullScreen(): void;
+    webkitRequestFullscreen(): void;
+    getElementsByClassName(classNames: string): NodeListOf<Element>;
+    matches(selector: string): boolean;
+    closest(selector: string): Element | null;
+    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
+    scroll(options?: ScrollToOptions): void;
+    scroll(x: number, y: number): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollTo(x: number, y: number): void;
+    scrollBy(options?: ScrollToOptions): void;
+    scrollBy(x: number, y: number): void;
+    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
+    insertAdjacentHTML(where: string, html: string): void;
+    insertAdjacentText(where: string, text: string): void;
+    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
+    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Element: {
+    prototype: Element;
+    new(): Element;
+}
+
+interface ErrorEvent extends Event {
+    readonly colno: number;
+    readonly error: any;
+    readonly filename: string;
+    readonly lineno: number;
+    readonly message: string;
+    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
+}
+
+declare var ErrorEvent: {
+    prototype: ErrorEvent;
+    new(): ErrorEvent;
+}
+
+interface Event {
+    readonly bubbles: boolean;
+    cancelBubble: boolean;
+    readonly cancelable: boolean;
+    readonly currentTarget: EventTarget;
+    readonly defaultPrevented: boolean;
+    readonly eventPhase: number;
+    readonly isTrusted: boolean;
+    returnValue: boolean;
+    readonly srcElement: Element | null;
+    readonly target: EventTarget;
+    readonly timeStamp: number;
+    readonly type: string;
+    readonly scoped: boolean;
+    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
+    preventDefault(): void;
+    stopImmediatePropagation(): void;
+    stopPropagation(): void;
+    deepPath(): EventTarget[];
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+declare var Event: {
+    prototype: Event;
+    new(type: string, eventInitDict?: EventInit): Event;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+interface EventTarget {
+    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    dispatchEvent(evt: Event): boolean;
+    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var EventTarget: {
+    prototype: EventTarget;
+    new(): EventTarget;
+}
+
+interface External {
+}
+
+declare var External: {
+    prototype: External;
+    new(): External;
+}
+
+interface File extends Blob {
+    readonly lastModifiedDate: any;
+    readonly name: string;
+    readonly webkitRelativePath: string;
+}
+
+declare var File: {
+    prototype: File;
+    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
+}
+
+interface FileList {
+    readonly length: number;
+    item(index: number): File;
+    [index: number]: File;
+}
+
+declare var FileList: {
+    prototype: FileList;
+    new(): FileList;
+}
+
+interface FileReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(blob: Blob): void;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): void;
+    readAsText(blob: Blob, encoding?: string): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var FileReader: {
+    prototype: FileReader;
+    new(): FileReader;
+}
+
+interface FocusEvent extends UIEvent {
+    readonly relatedTarget: EventTarget;
+    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
+}
+
+declare var FocusEvent: {
+    prototype: FocusEvent;
+    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
+}
+
+interface FormData {
+    append(name: any, value: any, blobName?: string): void;
+}
+
+declare var FormData: {
+    prototype: FormData;
+    new (form?: HTMLFormElement): FormData;
+}
+
+interface GainNode extends AudioNode {
+    readonly gain: AudioParam;
+}
+
+declare var GainNode: {
+    prototype: GainNode;
+    new(): GainNode;
+}
+
+interface Gamepad {
+    readonly axes: number[];
+    readonly buttons: GamepadButton[];
+    readonly connected: boolean;
+    readonly id: string;
+    readonly index: number;
+    readonly mapping: string;
+    readonly timestamp: number;
+}
+
+declare var Gamepad: {
+    prototype: Gamepad;
+    new(): Gamepad;
+}
+
+interface GamepadButton {
+    readonly pressed: boolean;
+    readonly value: number;
+}
+
+declare var GamepadButton: {
+    prototype: GamepadButton;
+    new(): GamepadButton;
+}
+
+interface GamepadEvent extends Event {
+    readonly gamepad: Gamepad;
+}
+
+declare var GamepadEvent: {
+    prototype: GamepadEvent;
+    new(): GamepadEvent;
+}
+
+interface Geolocation {
+    clearWatch(watchId: number): void;
+    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
+    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
+}
+
+declare var Geolocation: {
+    prototype: Geolocation;
+    new(): Geolocation;
+}
+
+interface HTMLAllCollection extends HTMLCollection {
+    namedItem(name: string): Element;
+}
+
+declare var HTMLAllCollection: {
+    prototype: HTMLAllCollection;
+    new(): HTMLAllCollection;
+}
+
+interface HTMLAnchorElement extends HTMLElement {
+    Methods: string;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Contains the anchor portion of the URL including the hash sign (#).
+      */
+    hash: string;
+    /**
+      * Contains the hostname and port values of the URL.
+      */
+    host: string;
+    /**
+      * Contains the hostname of a URL.
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    readonly mimeType: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    readonly nameProp: string;
+    /**
+      * Contains the pathname of the URL.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Contains the protocol of the URL.
+      */
+    protocol: string;
+    readonly protocolLong: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    type: string;
+    urn: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAnchorElement: {
+    prototype: HTMLAnchorElement;
+    new(): HTMLAnchorElement;
+}
+
+interface HTMLAppletElement extends HTMLElement {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
+      */
+    declare: boolean;
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    object: string | null;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    vspace: number;
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAppletElement: {
+    prototype: HTMLAppletElement;
+    new(): HTMLAppletElement;
+}
+
+interface HTMLAreaElement extends HTMLElement {
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
+      */
+    hash: string;
+    /**
+      * Sets or retrieves the hostname and port number of the location or URL.
+      */
+    host: string;
+    /**
+      * Sets or retrieves the host name part of the location or URL. 
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or gets whether clicks in this region cause action.
+      */
+    noHref: boolean;
+    /**
+      * Sets or retrieves the file name or path specified by the object.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Sets or retrieves the protocol portion of a URL.
+      */
+    protocol: string;
+    rel: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAreaElement: {
+    prototype: HTMLAreaElement;
+    new(): HTMLAreaElement;
+}
+
+interface HTMLAreasCollection extends HTMLCollection {
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Removes an element from the collection.
+      */
+    remove(index?: number): void;
+}
+
+declare var HTMLAreasCollection: {
+    prototype: HTMLAreasCollection;
+    new(): HTMLAreasCollection;
+}
+
+interface HTMLAudioElement extends HTMLMediaElement {
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAudioElement: {
+    prototype: HTMLAudioElement;
+    new(): HTMLAudioElement;
+}
+
+interface HTMLBRElement extends HTMLElement {
+    /**
+      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
+      */
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBRElement: {
+    prototype: HTMLBRElement;
+    new(): HTMLBRElement;
+}
+
+interface HTMLBaseElement extends HTMLElement {
+    /**
+      * Gets or sets the baseline URL on which relative links are based.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseElement: {
+    prototype: HTMLBaseElement;
+    new(): HTMLBaseElement;
+}
+
+interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    /**
+      * Sets or retrieves the font size of the object.
+      */
+    size: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseFontElement: {
+    prototype: HTMLBaseFontElement;
+    new(): HTMLBaseFontElement;
+}
+
+interface HTMLBodyElementEventMap extends HTMLElementEventMap {
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "popstate": PopStateEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLBodyElement extends HTMLElement {
+    aLink: any;
+    background: string;
+    bgColor: any;
+    bgProperties: string;
+    link: any;
+    noWrap: boolean;
+    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
+    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLBodyElement, ev: Event) => any;
+    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLBodyElement, ev: Event) => any;
+    ononline: (this: HTMLBodyElement, ev: Event) => any;
+    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
+    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
+    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLBodyElement, ev: Event) => any;
+    text: any;
+    vLink: any;
+    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBodyElement: {
+    prototype: HTMLBodyElement;
+    new(): HTMLBodyElement;
+}
+
+interface HTMLButtonElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /** 
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    status: any;
+    /**
+      * Gets the classification and default behavior of the button.
+      */
+    type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /** 
+      * Sets or retrieves the default or selected value of the control.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLButtonElement: {
+    prototype: HTMLButtonElement;
+    new(): HTMLButtonElement;
+}
+
+interface HTMLCanvasElement extends HTMLElement {
+    /**
+      * Gets or sets the height of a canvas element on a document.
+      */
+    height: number;
+    /**
+      * Gets or sets the width of a canvas element on a document.
+      */
+    width: number;
+    /**
+      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
+      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
+      */
+    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
+    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
+    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
+    /**
+      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
+      */
+    msToBlob(): Blob;
+    /**
+      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
+      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
+      */
+    toDataURL(type?: string, ...args: any[]): string;
+    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLCanvasElement: {
+    prototype: HTMLCanvasElement;
+    new(): HTMLCanvasElement;
+}
+
+interface HTMLCollection {
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Retrieves an object from various collections.
+      */
+    item(index: number): Element;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      */
+    namedItem(name: string): Element;
+    [index: number]: Element;
+}
+
+declare var HTMLCollection: {
+    prototype: HTMLCollection;
+    new(): HTMLCollection;
+}
+
+interface HTMLDListElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDListElement: {
+    prototype: HTMLDListElement;
+    new(): HTMLDListElement;
+}
+
+interface HTMLDataListElement extends HTMLElement {
+    options: HTMLCollectionOf<HTMLOptionElement>;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDataListElement: {
+    prototype: HTMLDataListElement;
+    new(): HTMLDataListElement;
+}
+
+interface HTMLDirectoryElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDirectoryElement: {
+    prototype: HTMLDirectoryElement;
+    new(): HTMLDirectoryElement;
+}
+
+interface HTMLDivElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDivElement: {
+    prototype: HTMLDivElement;
+    new(): HTMLDivElement;
+}
+
+interface HTMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDocument: {
+    prototype: HTMLDocument;
+    new(): HTMLDocument;
+}
+
+interface HTMLElementEventMap extends ElementEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforecopy": ClipboardEvent;
+    "beforecut": ClipboardEvent;
+    "beforedeactivate": UIEvent;
+    "beforepaste": ClipboardEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "copy": ClipboardEvent;
+    "cuechange": Event;
+    "cut": ClipboardEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "paste": ClipboardEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectstart": Event;
+    "stalled": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface HTMLElement extends Element {
+    accessKey: string;
+    readonly children: HTMLCollection;
+    contentEditable: string;
+    readonly dataset: DOMStringMap;
+    dir: string;
+    draggable: boolean;
+    hidden: boolean;
+    hideFocus: boolean;
+    innerHTML: string;
+    innerText: string;
+    readonly isContentEditable: boolean;
+    lang: string;
+    readonly offsetHeight: number;
+    readonly offsetLeft: number;
+    readonly offsetParent: Element;
+    readonly offsetTop: number;
+    readonly offsetWidth: number;
+    onabort: (this: HTMLElement, ev: UIEvent) => any;
+    onactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onblur: (this: HTMLElement, ev: FocusEvent) => any;
+    oncanplay: (this: HTMLElement, ev: Event) => any;
+    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
+    onchange: (this: HTMLElement, ev: Event) => any;
+    onclick: (this: HTMLElement, ev: MouseEvent) => any;
+    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
+    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    oncuechange: (this: HTMLElement, ev: Event) => any;
+    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
+    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    ondrag: (this: HTMLElement, ev: DragEvent) => any;
+    ondragend: (this: HTMLElement, ev: DragEvent) => any;
+    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
+    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
+    ondragover: (this: HTMLElement, ev: DragEvent) => any;
+    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
+    ondrop: (this: HTMLElement, ev: DragEvent) => any;
+    ondurationchange: (this: HTMLElement, ev: Event) => any;
+    onemptied: (this: HTMLElement, ev: Event) => any;
+    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
+    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
+    oninput: (this: HTMLElement, ev: Event) => any;
+    oninvalid: (this: HTMLElement, ev: Event) => any;
+    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onload: (this: HTMLElement, ev: Event) => any;
+    onloadeddata: (this: HTMLElement, ev: Event) => any;
+    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
+    onloadstart: (this: HTMLElement, ev: Event) => any;
+    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
+    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
+    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
+    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onpause: (this: HTMLElement, ev: Event) => any;
+    onplay: (this: HTMLElement, ev: Event) => any;
+    onplaying: (this: HTMLElement, ev: Event) => any;
+    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
+    onratechange: (this: HTMLElement, ev: Event) => any;
+    onreset: (this: HTMLElement, ev: Event) => any;
+    onscroll: (this: HTMLElement, ev: UIEvent) => any;
+    onseeked: (this: HTMLElement, ev: Event) => any;
+    onseeking: (this: HTMLElement, ev: Event) => any;
+    onselect: (this: HTMLElement, ev: UIEvent) => any;
+    onselectstart: (this: HTMLElement, ev: Event) => any;
+    onstalled: (this: HTMLElement, ev: Event) => any;
+    onsubmit: (this: HTMLElement, ev: Event) => any;
+    onsuspend: (this: HTMLElement, ev: Event) => any;
+    ontimeupdate: (this: HTMLElement, ev: Event) => any;
+    onvolumechange: (this: HTMLElement, ev: Event) => any;
+    onwaiting: (this: HTMLElement, ev: Event) => any;
+    outerHTML: string;
+    outerText: string;
+    spellcheck: boolean;
+    readonly style: CSSStyleDeclaration;
+    tabIndex: number;
+    title: string;
+    blur(): void;
+    click(): void;
+    dragDrop(): boolean;
+    focus(): void;
+    msGetInputContext(): MSInputMethodContext;
+    setActive(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLElement: {
+    prototype: HTMLElement;
+    new(): HTMLElement;
+}
+
+interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hidden: any;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the palette used for the embedded document.
+      */
+    readonly palette: string;
+    /**
+      * Retrieves the URL of the plug-in used to view an embedded document.
+      */
+    readonly pluginspage: string;
+    readonly readyState: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the height and width units of the embed object.
+      */
+    units: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLEmbedElement: {
+    prototype: HTMLEmbedElement;
+    new(): HTMLEmbedElement;
+}
+
+interface HTMLFieldSetElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFieldSetElement: {
+    prototype: HTMLFieldSetElement;
+    new(): HTMLFieldSetElement;
+}
+
+interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFontElement: {
+    prototype: HTMLFontElement;
+    new(): HTMLFontElement;
+}
+
+interface HTMLFormElement extends HTMLElement {
+    /**
+      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
+      */
+    acceptCharset: string;
+    /**
+      * Sets or retrieves the URL to which the form content is sent for 
processing.
+      */
+    action: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Retrieves a collection, in source order, of all controls in a given 
form.
+      */
+    readonly elements: HTMLCollection;
+    /**
+      * Sets or retrieves the MIME encoding for the form.
+      */
+    encoding: string;
+    /**
+      * Sets or retrieves the encoding type for the form.
+      */
+    enctype: string;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Sets or retrieves how to send the form data to the server.
+      */
+    method: string;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Designates a form that is not validated when submitted.
+      */
+    noValidate: boolean;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      */
+    namedItem(name: string): any;
+    /**
+      * Fires when the user resets a form.
+      */
+    reset(): void;
+    /**
+      * Fires when a FORM is about to be submitted.
+      */
+    submit(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLFormElement: {
+    prototype: HTMLFormElement;
+    new(): HTMLFormElement;
+}
+
+interface HTMLFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string | number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLFrameElement, ev: Event) => any;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string | number;
+    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameElement: {
+    prototype: HTMLFrameElement;
+    new(): HTMLFrameElement;
+}
+
+interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLFrameSetElement extends HTMLElement {
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Sets or retrieves the frame widths of the object.
+      */
+    cols: string;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    name: string;
+    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
+    /**
+      * Fires when the object loses the input focus.
+      */
+    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus.
+      */
+    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLFrameSetElement, ev: Event) => any;
+    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
+    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
+    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
+    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
+    /**
+      * Sets or retrieves the frame heights of the object.
+      */
+    rows: string;
+    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameSetElement: {
+    prototype: HTMLFrameSetElement;
+    new(): HTMLFrameSetElement;
+}
+
+interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
+      */
+    noShade: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHRElement: {
+    prototype: HTMLHRElement;
+    new(): HTMLHRElement;
+}
+
+interface HTMLHeadElement extends HTMLElement {
+    profile: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadElement: {
+    prototype: HTMLHeadElement;
+    new(): HTMLHeadElement;
+}
+
+interface HTMLHeadingElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadingElement: {
+    prototype: HTMLHeadingElement;
+    new(): HTMLHeadingElement;
+}
+
+interface HTMLHtmlElement extends HTMLElement {
+    /**
+      * Sets or retrieves the DTD version that governs the current document.
+      */
+    version: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHtmlElement: {
+    prototype: HTMLHtmlElement;
+    new(): HTMLHtmlElement;
+}
+
+interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    allowFullscreen: boolean;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the horizontal margin for the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLIFrameElement, ev: Event) => any;
+    readonly sandbox: DOMSettableTokenList;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLIFrameElement: {
+    prototype: HTMLIFrameElement;
+    new(): HTMLIFrameElement;
+}
+
+interface HTMLImageElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    crossOrigin: string;
+    readonly currentSrc: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: number;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves whether the image is a server-side image map.
+      */
+    isMap: boolean;
+    /**
+      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
+      */
+    longDesc: string;
+    lowsrc: string;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * The original height of the image resource before sizing.
+      */
+    readonly naturalHeight: number;
+    /**
+      * The original width of the image resource before sizing.
+      */
+    readonly naturalWidth: number;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    readonly x: number;
+    readonly y: number;
+    msGetAsCastingSource(): any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLImageElement: {
+    prototype: HTMLImageElement;
+    new(): HTMLImageElement;
+    create(): HTMLImageElement;
+}
+
+interface HTMLInputElement extends HTMLElement {
+    /**
+      * Sets or retrieves a comma-separated list of content types.
+      */
+    accept: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    checked: boolean;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    defaultChecked: boolean;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Returns a FileList object on a file type input object.
+      */
+    readonly files: FileList | null;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    indeterminate: boolean;
+    /**
+      * Specifies the ID of a pre-defined datalist of options for an input 
element.
+      */
+    readonly list: HTMLElement;
+    /**
+      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
+      */
+    max: string;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
+      */
+    min: string;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a string containing a regular expression that the user's 
input must match.
+      */
+    pattern: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    selectionDirection: string;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    size: number;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    status: boolean;
+    /**
+      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
+      */
+    step: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns the value of the data at the cursor's current position.
+      */
+    value: string;
+    valueAsDate: Date;
+    /**
+      * Returns the input field value as a number.
+      */
+    valueAsNumber: number;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    webkitdirectory: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Makes the selection equal to the current object.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start?: number, end?: number, direction?: string): void;
+    /**
+      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
+      * @param n Value to decrement the value by.
+      */
+    stepDown(n?: number): void;
+    /**
+      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
+      * @param n Value to increment the value by.
+      */
+    stepUp(n?: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLInputElement: {
+    prototype: HTMLInputElement;
+    new(): HTMLInputElement;
+}
+
+interface HTMLLIElement extends HTMLElement {
+    type: string;
+    /**
+      * Sets or retrieves the value of a list item.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLIElement: {
+    prototype: HTMLLIElement;
+    new(): HTMLLIElement;
+}
+
+interface HTMLLabelElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the object to which the given label object is 
assigned.
+      */
+    htmlFor: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLabelElement: {
+    prototype: HTMLLabelElement;
+    new(): HTMLLabelElement;
+}
+
+interface HTMLLegendElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    align: string;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLegendElement: {
+    prototype: HTMLLegendElement;
+    new(): HTMLLegendElement;
+}
+
+interface HTMLLinkElement extends HTMLElement, LinkStyle {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    disabled: boolean;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    import?: Document;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLinkElement: {
+    prototype: HTMLLinkElement;
+    new(): HTMLLinkElement;
+}
+
+interface HTMLMapElement extends HTMLElement {
+    /**
+      * Retrieves a collection of the area objects defined for the given map 
object.
+      */
+    readonly areas: HTMLAreasCollection;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMapElement: {
+    prototype: HTMLMapElement;
+    new(): HTMLMapElement;
+}
+
+interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
+    "bounce": Event;
+    "finish": Event;
+    "start": Event;
+}
+
+interface HTMLMarqueeElement extends HTMLElement {
+    behavior: string;
+    bgColor: any;
+    direction: string;
+    height: string;
+    hspace: number;
+    loop: number;
+    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
+    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
+    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
+    scrollAmount: number;
+    scrollDelay: number;
+    trueSpeed: boolean;
+    vspace: number;
+    width: string;
+    start(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMarqueeElement: {
+    prototype: HTMLMarqueeElement;
+    new(): HTMLMarqueeElement;
+}
+
+interface HTMLMediaElementEventMap extends HTMLElementEventMap {
+    "encrypted": MediaEncryptedEvent;
+    "msneedkey": MSMediaKeyNeededEvent;
+}
+
+interface HTMLMediaElement extends HTMLElement {
+    /**
+      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
+      */
+    readonly audioTracks: AudioTrackList;
+    /**
+      * Gets or sets a value that indicates whether to start playing the media 
automatically.
+      */
+    autoplay: boolean;
+    /**
+      * Gets a collection of buffered time ranges.
+      */
+    readonly buffered: TimeRanges;
+    /**
+      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
+      */
+    controls: boolean;
+    crossOrigin: string;
+    /**
+      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
+      */
+    readonly currentSrc: string;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    currentTime: number;
+    defaultMuted: boolean;
+    /**
+      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
+      */
+    defaultPlaybackRate: number;
+    /**
+      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
+      */
+    readonly duration: number;
+    /**
+      * Gets information about whether the playback has ended or not.
+      */
+    readonly ended: boolean;
+    /**
+      * Returns an object representing the current error state of the audio or 
video element.
+      */
+    readonly error: MediaError;
+    /**
+      * Gets or sets a flag to specify whether playback should restart after 
it completes.
+      */
+    loop: boolean;
+    readonly mediaKeys: MediaKeys | null;
+    /**
+      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
+      */
+    msAudioCategory: string;
+    /**
+      * Specifies the output device id that the audio will be sent to.
+      */
+    msAudioDeviceType: string;
+    readonly msGraphicsTrustStatus: MSGraphicsTrust;
+    /**
+      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
+      */
+    readonly msKeys: MSMediaKeys;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Specifies whether or not to enable low-latency playback on the media 
element.
+      */
+    msRealTime: boolean;
+    /**
+      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
+      */
+    muted: boolean;
+    /**
+      * Gets the current network activity for the element.
+      */
+    readonly networkState: number;
+    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
+    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
+    /**
+      * Gets a flag that specifies whether playback is paused.
+      */
+    readonly paused: boolean;
+    /**
+      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
+      */
+    playbackRate: number;
+    /**
+      * Gets TimeRanges for the current media resource that has been played.
+      */
+    readonly played: TimeRanges;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    preload: string;
+    readyState: number;
+    /**
+      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
+      */
+    readonly seekable: TimeRanges;
+    /**
+      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
+      */
+    readonly seeking: boolean;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcObject: MediaStream | null;
+    readonly textTracks: TextTrackList;
+    readonly videoTracks: VideoTrackList;
+    /**
+      * Gets or sets the volume level for audio portions of the media element.
+      */
+    volume: number;
+    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
+    /**
+      * Returns a string that specifies whether the client can play a given 
media resource type.
+      */
+    canPlayType(type: string): string;
+    /**
+      * Resets the audio or video object and loads a new media resource.
+      */
+    load(): void;
+    /**
+      * Clears all effects from the media pipeline.
+      */
+    msClearEffects(): void;
+    msGetAsCastingSource(): any;
+    /**
+      * Inserts the specified audio effect into media pipeline.
+      */
+    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
+    /**
+      * Specifies the media protection manager for a given media pipeline.
+      */
+    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
+    /**
+      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
+      */
+    pause(): void;
+    /**
+      * Loads and starts playback of a media resource.
+      */
+    play(): void;
+    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMediaElement: {
+    prototype: HTMLMediaElement;
+    new(): HTMLMediaElement;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+}
+
+interface HTMLMenuElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMenuElement: {
+    prototype: HTMLMenuElement;
+    new(): HTMLMenuElement;
+}
+
+interface HTMLMetaElement extends HTMLElement {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets or sets meta-information to associate with httpEquiv or name.
+      */
+    content: string;
+    /**
+      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
+      */
+    httpEquiv: string;
+    /**
+      * Sets or retrieves the value specified in the content attribute of the 
meta object.
+      */
+    name: string;
+    /**
+      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
+      */
+    scheme: string;
+    /**
+      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
+      */
+    url: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMetaElement: {
+    prototype: HTMLMetaElement;
+    new(): HTMLMetaElement;
+}
+
+interface HTMLMeterElement extends HTMLElement {
+    high: number;
+    low: number;
+    max: number;
+    min: number;
+    optimum: number;
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMeterElement: {
+    prototype: HTMLMeterElement;
+    new(): HTMLMeterElement;
+}
+
+interface HTMLModElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    /**
+      * Sets or retrieves the date and time of a modification to the object.
+      */
+    dateTime: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLModElement: {
+    prototype: HTMLModElement;
+    new(): HTMLModElement;
+}
+
+interface HTMLOListElement extends HTMLElement {
+    compact: boolean;
+    /**
+      * The starting number.
+      */
+    start: number;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOListElement: {
+    prototype: HTMLOListElement;
+    new(): HTMLOListElement;
+}
+
+interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    /**
+      * Sets or retrieves the URL of the file containing the compiled Java 
class.
+      */
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    declare: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the contained object.
+      */
+    readonly object: any;
+    readonly readyState: number;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLObjectElement: {
+    prototype: HTMLObjectElement;
+    new(): HTMLObjectElement;
+}
+
+interface HTMLOptGroupElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    readonly text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptGroupElement: {
+    prototype: HTMLOptGroupElement;
+    new(): HTMLOptGroupElement;
+}
+
+interface HTMLOptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptionElement: {
+    prototype: HTMLOptionElement;
+    new(): HTMLOptionElement;
+    create(): HTMLOptionElement;
+}
+
+interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
+    length: number;
+    selectedIndex: number;
+    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
+    remove(index: number): void;
+}
+
+declare var HTMLOptionsCollection: {
+    prototype: HTMLOptionsCollection;
+    new(): HTMLOptionsCollection;
+}
+
+interface HTMLParagraphElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParagraphElement: {
+    prototype: HTMLParagraphElement;
+    new(): HTMLParagraphElement;
+}
+
+interface HTMLParamElement extends HTMLElement {
+    /**
+      * Sets or retrieves the name of an input parameter for an element.
+      */
+    name: string;
+    /**
+      * Sets or retrieves the content type of the resource designated by the 
value attribute.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the value of an input parameter for an element.
+      */
+    value: string;
+    /**
+      * Sets or retrieves the data type of the value attribute.
+      */
+    valueType: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParamElement: {
+    prototype: HTMLParamElement;
+    new(): HTMLParamElement;
+}
+
+interface HTMLPictureElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPictureElement: {
+    prototype: HTMLPictureElement;
+    new(): HTMLPictureElement;
+}
+
+interface HTMLPreElement extends HTMLElement {
+    /**
+      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPreElement: {
+    prototype: HTMLPreElement;
+    new(): HTMLPreElement;
+}
+
+interface HTMLProgressElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Defines the maximum, or "done" value for a progress element.
+      */
+    max: number;
+    /**
+      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
+      */
+    readonly position: number;
+    /**
+      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLProgressElement: {
+    prototype: HTMLProgressElement;
+    new(): HTMLProgressElement;
+}
+
+interface HTMLQuoteElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLQuoteElement: {
+    prototype: HTMLQuoteElement;
+    new(): HTMLQuoteElement;
+}
+
+interface HTMLScriptElement extends HTMLElement {
+    async: boolean;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the status of the script.
+      */
+    defer: boolean;
+    /**
+      * Sets or retrieves the event for which the script is written. 
+      */
+    event: string;
+    /** 
+      * Sets or retrieves the object that is bound to the event script.
+      */
+    htmlFor: string;
+    /**
+      * Retrieves the URL to an external file that contains the source code or 
data.
+      */
+    src: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    /**
+      * Sets or retrieves the MIME type for the associated scripting engine.
+      */
+    type: string;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLScriptElement: {
+    prototype: HTMLScriptElement;
+    new(): HTMLScriptElement;
+}
+
+interface HTMLSelectElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    length: number;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    readonly options: HTMLOptionsCollection;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the index of the selected option in a select object.
+      */
+    selectedIndex: number;
+    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
+    /**
+      * Sets or retrieves the number of rows in the list box. 
+      */
+    size: number;
+    /**
+      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
+      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
+      */
+    namedItem(name: string): any;
+    /**
+      * Removes an element from the collection.
+      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
+      */
+    remove(index?: number): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLSelectElement: {
+    prototype: HTMLSelectElement;
+    new(): HTMLSelectElement;
+}
+
+interface HTMLSourceElement extends HTMLElement {
+    /**
+      * Gets or sets the intended media type of the media source.
+     */
+    media: string;
+    msKeySystem: string;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+     * Gets or sets the MIME type of a media resource.
+     */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSourceElement: {
+    prototype: HTMLSourceElement;
+    new(): HTMLSourceElement;
+}
+
+interface HTMLSpanElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSpanElement: {
+    prototype: HTMLSpanElement;
+    new(): HTMLSpanElement;
+}
+
+interface HTMLStyleElement extends HTMLElement, LinkStyle {
+    disabled: boolean;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Retrieves the CSS language in which the style sheet is written.
+      */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLStyleElement: {
+    prototype: HTMLStyleElement;
+    new(): HTMLStyleElement;
+}
+
+interface HTMLTableCaptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the alignment of the caption or legend.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
+      */
+    vAlign: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCaptionElement: {
+    prototype: HTMLTableCaptionElement;
+    new(): HTMLTableCaptionElement;
+}
+
+interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves abbreviated text for the object.
+      */
+    abbr: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
+      */
+    axis: string;
+    bgColor: any;
+    /**
+      * Retrieves the position of the object in the cells collection of a row.
+      */
+    readonly cellIndex: number;
+    /**
+      * Sets or retrieves the number columns in the table that the object 
should span.
+      */
+    colSpan: number;
+    /**
+      * Sets or retrieves a list of header cells that provide information for 
the object.
+      */
+    headers: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    /**
+      * Sets or retrieves how many rows in a table the cell should span.
+      */
+    rowSpan: number;
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCellElement: {
+    prototype: HTMLTableCellElement;
+    new(): HTMLTableCellElement;
+}
+
+interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves the alignment of the object relative to the display 
or table.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of columns in the group.
+      */
+    span: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableColElement: {
+    prototype: HTMLTableColElement;
+    new(): HTMLTableColElement;
+}
+
+interface HTMLTableDataCellElement extends HTMLTableCellElement {
+}
+
+declare var HTMLTableDataCellElement: {
+    prototype: HTMLTableDataCellElement;
+    new(): HTMLTableDataCellElement;
+}
+
+interface HTMLTableElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object. 
+      */
+    borderColor: any;
+    /**
+      * Retrieves the caption object of a table.
+      */
+    caption: HTMLTableCaptionElement;
+    /**
+      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
+      */
+    cellPadding: string;
+    /**
+      * Sets or retrieves the amount of space between cells in a table.
+      */
+    cellSpacing: string;
+    /**
+      * Sets or retrieves the number of columns in the table.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the way the border frame around the table is 
displayed.
+      */
+    frame: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Sets or retrieves which dividing lines (inner borders) are displayed.
+      */
+    rules: string;
+    /**
+      * Sets or retrieves a description and/or structure of the object.
+      */
+    summary: string;
+    /**
+      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
+      */
+    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
+    /**
+      * Retrieves the tFoot object of the table.
+      */
+    tFoot: HTMLTableSectionElement;
+    /**
+      * Retrieves the tHead object of the table.
+      */
+    tHead: HTMLTableSectionElement;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Creates an empty caption element in the table.
+      */
+    createCaption(): HTMLTableCaptionElement;
+    /**
+      * Creates an empty tBody element in the table.
+      */
+    createTBody(): HTMLTableSectionElement;
+    /**
+      * Creates an empty tFoot element in the table.
+      */
+    createTFoot(): HTMLTableSectionElement;
+    /**
+      * Returns the tHead element object if successful, or null otherwise.
+      */
+    createTHead(): HTMLTableSectionElement;
+    /**
+      * Deletes the caption element and its contents from the table.
+      */
+    deleteCaption(): void;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Deletes the tFoot element and its contents from the table.
+      */
+    deleteTFoot(): void;
+    /**
+      * Deletes the tHead element and its contents from the table.
+      */
+    deleteTHead(): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableElement: {
+    prototype: HTMLTableElement;
+    new(): HTMLTableElement;
+}
+
+interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+}
+
+declare var HTMLTableHeaderCellElement: {
+    prototype: HTMLTableHeaderCellElement;
+    new(): HTMLTableHeaderCellElement;
+}
+
+interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Retrieves a collection of all cells in the table row.
+      */
+    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Retrieves the position of the object in the rows collection for the 
table.
+      */
+    readonly rowIndex: number;
+    /**
+      * Retrieves the position of the object in the collection.
+      */
+    readonly sectionRowIndex: number;
+    /**
+      * Removes the specified cell from the table row, as well as from the 
cells collection.
+      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
+      */
+    deleteCell(index?: number): void;
+    /**
+      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
+      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
+      */
+    insertCell(index?: number): HTMLTableDataCellElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableRowElement: {
+    prototype: HTMLTableRowElement;
+    new(): HTMLTableRowElement;
+}
+
+interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableSectionElement: {
+    prototype: HTMLTableSectionElement;
+    new(): HTMLTableSectionElement;
+}
+
+interface HTMLTemplateElement extends HTMLElement {
+    readonly content: DocumentFragment;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTemplateElement: {
+    prototype: HTMLTemplateElement;
+    new(): HTMLTemplateElement;
+}
+
+interface HTMLTextAreaElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    /**
+      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
+      */
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: number;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    /**
+      * Sets or retrieves the value indicating whether the control is selected.
+      */
+    status: any;
+    /**
+      * Retrieves the type of control.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Retrieves or sets the text in the entry field of the textArea element.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Sets or retrieves how to handle wordwrapping in the object.
+      */
+    wrap: string;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Highlights the input area of a form element.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start: number, end: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTextAreaElement: {
+    prototype: HTMLTextAreaElement;
+    new(): HTMLTextAreaElement;
+}
+
+interface HTMLTitleElement extends HTMLElement {
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTitleElement: {
+    prototype: HTMLTitleElement;
+    new(): HTMLTitleElement;
+}
+
+interface HTMLTrackElement extends HTMLElement {
+    default: boolean;
+    kind: string;
+    label: string;
+    readonly readyState: number;
+    src: string;
+    srclang: string;
+    readonly track: TextTrack;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTrackElement: {
+    prototype: HTMLTrackElement;
+    new(): HTMLTrackElement;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+}
+
+interface HTMLUListElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUListElement: {
+    prototype: HTMLUListElement;
+    new(): HTMLUListElement;
+}
+
+interface HTMLUnknownElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUnknownElement: {
+    prototype: HTMLUnknownElement;
+    new(): HTMLUnknownElement;
+}
+
+interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
+    "MSVideoFormatChanged": Event;
+    "MSVideoFrameStepCompleted": Event;
+    "MSVideoOptimalLayoutChanged": Event;
+}
+
+interface HTMLVideoElement extends HTMLMediaElement {
+    /**
+      * Gets or sets the height of the video element.
+      */
+    height: number;
+    msHorizontalMirror: boolean;
+    readonly msIsLayoutOptimalForPlayback: boolean;
+    readonly msIsStereo3D: boolean;
+    msStereo3DPackingMode: string;
+    msStereo3DRenderMode: string;
+    msZoom: boolean;
+    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
+    /**
+      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
+      */
+    poster: string;
+    /**
+      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoHeight: number;
+    /**
+      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoWidth: number;
+    readonly webkitDisplayingFullscreen: boolean;
+    readonly webkitSupportsFullscreen: boolean;
+    /**
+      * Gets or sets the width of the video element.
+      */
+    width: number;
+    getVideoPlaybackQuality(): VideoPlaybackQuality;
+    msFrameStep(forward: boolean): void;
+    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
+    webkitEnterFullScreen(): void;
+    webkitEnterFullscreen(): void;
+    webkitExitFullScreen(): void;
+    webkitExitFullscreen(): void;
+    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLVideoElement: {
+    prototype: HTMLVideoElement;
+    new(): HTMLVideoElement;
+}
+
+interface HashChangeEvent extends Event {
+    readonly newURL: string | null;
+    readonly oldURL: string | null;
+}
+
+declare var HashChangeEvent: {
+    prototype: HashChangeEvent;
+    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
+}
+
+interface History {
+    readonly length: number;
+    readonly state: any;
+    scrollRestoration: ScrollRestoration;
+    back(): void;
+    forward(): void;
+    go(delta?: number): void;
+    pushState(data: any, title: string, url?: string | null): void;
+    replaceState(data: any, title: string, url?: string | null): void;
+}
+
+declare var History: {
+    prototype: History;
+    new(): History;
+}
+
+interface IDBCursor {
+    readonly direction: string;
+    key: IDBKeyRange | IDBValidKey;
+    readonly primaryKey: any;
+    source: IDBObjectStore | IDBIndex;
+    advance(count: number): void;
+    continue(key?: IDBKeyRange | IDBValidKey): void;
+    delete(): IDBRequest;
+    update(value: any): IDBRequest;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+declare var IDBCursor: {
+    prototype: IDBCursor;
+    new(): IDBCursor;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+interface IDBCursorWithValue extends IDBCursor {
+    readonly value: any;
+}
+
+declare var IDBCursorWithValue: {
+    prototype: IDBCursorWithValue;
+    new(): IDBCursorWithValue;
+}
+
+interface IDBDatabaseEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBDatabase extends EventTarget {
+    readonly name: string;
+    readonly objectStoreNames: DOMStringList;
+    onabort: (this: IDBDatabase, ev: Event) => any;
+    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
+    version: number;
+    onversionchange: (ev: IDBVersionChangeEvent) => any;
+    close(): void;
+    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
+    deleteObjectStore(name: string): void;
+    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
+    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
+    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBDatabase: {
+    prototype: IDBDatabase;
+    new(): IDBDatabase;
+}
+
+interface IDBFactory {
+    cmp(first: any, second: any): number;
+    deleteDatabase(name: string): IDBOpenDBRequest;
+    open(name: string, version?: number): IDBOpenDBRequest;
+}
+
+declare var IDBFactory: {
+    prototype: IDBFactory;
+    new(): IDBFactory;
+}
+
+interface IDBIndex {
+    keyPath: string | string[];
+    readonly name: string;
+    readonly objectStore: IDBObjectStore;
+    readonly unique: boolean;
+    multiEntry: boolean;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+}
+
+declare var IDBIndex: {
+    prototype: IDBIndex;
+    new(): IDBIndex;
+}
+
+interface IDBKeyRange {
+    readonly lower: any;
+    readonly lowerOpen: boolean;
+    readonly upper: any;
+    readonly upperOpen: boolean;
+}
+
+declare var IDBKeyRange: {
+    prototype: IDBKeyRange;
+    new(): IDBKeyRange;
+    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
+    lowerBound(lower: any, open?: boolean): IDBKeyRange;
+    only(value: any): IDBKeyRange;
+    upperBound(upper: any, open?: boolean): IDBKeyRange;
+}
+
+interface IDBObjectStore {
+    readonly indexNames: DOMStringList;
+    keyPath: string | string[];
+    readonly name: string;
+    readonly transaction: IDBTransaction;
+    autoIncrement: boolean;
+    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    clear(): IDBRequest;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
+    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    deleteIndex(indexName: string): void;
+    get(key: any): IDBRequest;
+    index(name: string): IDBIndex;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+}
+
+declare var IDBObjectStore: {
+    prototype: IDBObjectStore;
+    new(): IDBObjectStore;
+}
+
+interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
+    "blocked": Event;
+    "upgradeneeded": IDBVersionChangeEvent;
+}
+
+interface IDBOpenDBRequest extends IDBRequest {
+    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
+    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
+    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBOpenDBRequest: {
+    prototype: IDBOpenDBRequest;
+    new(): IDBOpenDBRequest;
+}
+
+interface IDBRequestEventMap {
+    "error": ErrorEvent;
+    "success": Event;
+}
+
+interface IDBRequest extends EventTarget {
+    readonly error: DOMError;
+    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
+    onsuccess: (this: IDBRequest, ev: Event) => any;
+    readonly readyState: string;
+    readonly result: any;
+    source: IDBObjectStore | IDBIndex | IDBCursor;
+    readonly transaction: IDBTransaction;
+    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBRequest: {
+    prototype: IDBRequest;
+    new(): IDBRequest;
+}
+
+interface IDBTransactionEventMap {
+    "abort": Event;
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBTransaction extends EventTarget {
+    readonly db: IDBDatabase;
+    readonly error: DOMError;
+    readonly mode: string;
+    onabort: (this: IDBTransaction, ev: Event) => any;
+    oncomplete: (this: IDBTransaction, ev: Event) => any;
+    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
+    abort(): void;
+    objectStore(name: string): IDBObjectStore;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBTransaction: {
+    prototype: IDBTransaction;
+    new(): IDBTransaction;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+}
+
+interface IDBVersionChangeEvent extends Event {
+    readonly newVersion: number | null;
+    readonly oldVersion: number;
+}
+
+declare var IDBVersionChangeEvent: {
+    prototype: IDBVersionChangeEvent;
+    new(): IDBVersionChangeEvent;
+}
+
+interface ImageData {
+    data: Uint8ClampedArray;
+    readonly height: number;
+    readonly width: number;
+}
+
+declare var ImageData: {
+    prototype: ImageData;
+    new(width: number, height: number): ImageData;
+    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
+}
+
+interface KeyboardEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly char: string | null;
+    readonly charCode: number;
+    readonly ctrlKey: boolean;
+    readonly key: string;
+    readonly keyCode: number;
+    readonly locale: string;
+    readonly location: number;
+    readonly metaKey: boolean;
+    readonly repeat: boolean;
+    readonly shiftKey: boolean;
+    readonly which: number;
+    readonly code: string;
+    getModifierState(keyArg: string): boolean;
+    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+declare var KeyboardEvent: {
+    prototype: KeyboardEvent;
+    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+interface ListeningStateChangedEvent extends Event {
+    readonly label: string;
+    readonly state: string;
+}
+
+declare var ListeningStateChangedEvent: {
+    prototype: ListeningStateChangedEvent;
+    new(): ListeningStateChangedEvent;
+}
+
+interface Location {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    assign(url: string): void;
+    reload(forcedReload?: boolean): void;
+    replace(url: string): void;
+    toString(): string;
+}
+
+declare var Location: {
+    prototype: Location;
+    new(): Location;
+}
+
+interface LongRunningScriptDetectedEvent extends Event {
+    readonly executionTime: number;
+    stopPageScriptExecution: boolean;
+}
+
+declare var LongRunningScriptDetectedEvent: {
+    prototype: LongRunningScriptDetectedEvent;
+    new(): LongRunningScriptDetectedEvent;
+}
+
+interface MSApp {
+    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
+    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
+    createDataPackage(object: any): any;
+    createDataPackageFromSelection(): any;
+    createFileFromStorageFile(storageFile: any): File;
+    createStreamFromInputStream(type: string, inputStream: any): MSStream;
+    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
+    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
+    getCurrentPriority(): string;
+    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
+    getViewId(view: any): any;
+    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
+    pageHandlesAllApplicationActivations(enabled: boolean): void;
+    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
+    terminateApp(exceptionObject: any): void;
+    readonly CURRENT: string;
+    readonly HIGH: string;
+    readonly IDLE: string;
+    readonly NORMAL: string;
+}
+declare var MSApp: MSApp;
+
+interface MSAppAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSAppAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
+    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSAppAsyncOperation: {
+    prototype: MSAppAsyncOperation;
+    new(): MSAppAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+}
+
+interface MSAssertion {
+    readonly id: string;
+    readonly type: string;
+}
+
+declare var MSAssertion: {
+    prototype: MSAssertion;
+    new(): MSAssertion;
+}
+
+interface MSBlobBuilder {
+    append(data: any, endings?: string): void;
+    getBlob(contentType?: string): Blob;
+}
+
+declare var MSBlobBuilder: {
+    prototype: MSBlobBuilder;
+    new(): MSBlobBuilder;
+}
+
+interface MSCredentials {
+    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
+    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
+}
+
+declare var MSCredentials: {
+    prototype: MSCredentials;
+    new(): MSCredentials;
+}
+
+interface MSFIDOCredentialAssertion extends MSAssertion {
+    readonly algorithm: string | Algorithm;
+    readonly attestation: any;
+    readonly publicKey: string;
+    readonly transportHints: string[];
+}
+
+declare var MSFIDOCredentialAssertion: {
+    prototype: MSFIDOCredentialAssertion;
+    new(): MSFIDOCredentialAssertion;
+}
+
+interface MSFIDOSignature {
+    readonly authnrData: string;
+    readonly clientData: string;
+    readonly signature: string;
+}
+
+declare var MSFIDOSignature: {
+    prototype: MSFIDOSignature;
+    new(): MSFIDOSignature;
+}
+
+interface MSFIDOSignatureAssertion extends MSAssertion {
+    readonly signature: MSFIDOSignature;
+}
+
+declare var MSFIDOSignatureAssertion: {
+    prototype: MSFIDOSignatureAssertion;
+    new(): MSFIDOSignatureAssertion;
+}
+
+interface MSGesture {
+    target: Element;
+    addPointer(pointerId: number): void;
+    stop(): void;
+}
+
+declare var MSGesture: {
+    prototype: MSGesture;
+    new(): MSGesture;
+}
+
+interface MSGestureEvent extends UIEvent {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly expansion: number;
+    readonly gestureObject: any;
+    readonly hwTimestamp: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly rotation: number;
+    readonly scale: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly translationX: number;
+    readonly translationY: number;
+    readonly velocityAngular: number;
+    readonly velocityExpansion: number;
+    readonly velocityX: number;
+    readonly velocityY: number;
+    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+declare var MSGestureEvent: {
+    prototype: MSGestureEvent;
+    new(): MSGestureEvent;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+interface MSGraphicsTrust {
+    readonly constrictionActive: boolean;
+    readonly status: string;
+}
+
+declare var MSGraphicsTrust: {
+    prototype: MSGraphicsTrust;
+    new(): MSGraphicsTrust;
+}
+
+interface MSHTMLWebViewElement extends HTMLElement {
+    readonly canGoBack: boolean;
+    readonly canGoForward: boolean;
+    readonly containsFullScreenElement: boolean;
+    readonly documentTitle: string;
+    height: number;
+    readonly settings: MSWebViewSettings;
+    src: string;
+    width: number;
+    addWebAllowedObject(name: string, applicationObject: any): void;
+    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
+    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
+    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
+    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
+    getDeferredPermissionRequests(): DeferredPermissionRequest[];
+    goBack(): void;
+    goForward(): void;
+    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
+    navigate(uri: string): void;
+    navigateToLocalStreamUri(source: string, streamResolver: any): void;
+    navigateToString(contents: string): void;
+    navigateWithHttpRequestMessage(requestMessage: any): void;
+    refresh(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSHTMLWebViewElement: {
+    prototype: MSHTMLWebViewElement;
+    new(): MSHTMLWebViewElement;
+}
+
+interface MSInputMethodContextEventMap {
+    "MSCandidateWindowHide": Event;
+    "MSCandidateWindowShow": Event;
+    "MSCandidateWindowUpdate": Event;
+}
+
+interface MSInputMethodContext extends EventTarget {
+    readonly compositionEndOffset: number;
+    readonly compositionStartOffset: number;
+    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
+    readonly target: HTMLElement;
+    getCandidateWindowClientRect(): ClientRect;
+    getCompositionAlternatives(): string[];
+    hasComposition(): boolean;
+    isCandidateWindowVisible(): boolean;
+    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSInputMethodContext: {
+    prototype: MSInputMethodContext;
+    new(): MSInputMethodContext;
+}
+
+interface MSManipulationEvent extends UIEvent {
+    readonly currentState: number;
+    readonly inertiaDestinationX: number;
+    readonly inertiaDestinationY: number;
+    readonly lastState: number;
+    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+declare var MSManipulationEvent: {
+    prototype: MSManipulationEvent;
+    new(): MSManipulationEvent;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+interface MSMediaKeyError {
+    readonly code: number;
+    readonly systemCode: number;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+declare var MSMediaKeyError: {
+    prototype: MSMediaKeyError;
+    new(): MSMediaKeyError;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+interface MSMediaKeyMessageEvent extends Event {
+    readonly destinationURL: string | null;
+    readonly message: Uint8Array;
+}
+
+declare var MSMediaKeyMessageEvent: {
+    prototype: MSMediaKeyMessageEvent;
+    new(): MSMediaKeyMessageEvent;
+}
+
+interface MSMediaKeyNeededEvent extends Event {
+    readonly initData: Uint8Array | null;
+}
+
+declare var MSMediaKeyNeededEvent: {
+    prototype: MSMediaKeyNeededEvent;
+    new(): MSMediaKeyNeededEvent;
+}
+
+interface MSMediaKeySession extends EventTarget {
+    readonly error: MSMediaKeyError | null;
+    readonly keySystem: string;
+    readonly sessionId: string;
+    close(): void;
+    update(key: Uint8Array): void;
+}
+
+declare var MSMediaKeySession: {
+    prototype: MSMediaKeySession;
+    new(): MSMediaKeySession;
+}
+
+interface MSMediaKeys {
+    readonly keySystem: string;
+    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
+}
+
+declare var MSMediaKeys: {
+    prototype: MSMediaKeys;
+    new(keySystem: string): MSMediaKeys;
+    isTypeSupported(keySystem: string, type?: string): boolean;
+    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
+}
+
+interface MSPointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var MSPointerEvent: {
+    prototype: MSPointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
+}
+
+interface MSRangeCollection {
+    readonly length: number;
+    item(index: number): Range;
+    [index: number]: Range;
+}
+
+declare var MSRangeCollection: {
+    prototype: MSRangeCollection;
+    new(): MSRangeCollection;
+}
+
+interface MSSiteModeEvent extends Event {
+    readonly actionURL: string;
+    readonly buttonID: number;
+}
+
+declare var MSSiteModeEvent: {
+    prototype: MSSiteModeEvent;
+    new(): MSSiteModeEvent;
+}
+
+interface MSStream {
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+}
+
+declare var MSStream: {
+    prototype: MSStream;
+    new(): MSStream;
+}
+
+interface MSStreamReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(stream: MSStream, size?: number): void;
+    readAsBinaryString(stream: MSStream, size?: number): void;
+    readAsBlob(stream: MSStream, size?: number): void;
+    readAsDataURL(stream: MSStream, size?: number): void;
+    readAsText(stream: MSStream, encoding?: string, size?: number): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSStreamReader: {
+    prototype: MSStreamReader;
+    new(): MSStreamReader;
+}
+
+interface MSWebViewAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSWebViewAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
+    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    readonly target: MSHTMLWebViewElement;
+    readonly type: number;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSWebViewAsyncOperation: {
+    prototype: MSWebViewAsyncOperation;
+    new(): MSWebViewAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+}
+
+interface MSWebViewSettings {
+    isIndexedDBEnabled: boolean;
+    isJavaScriptEnabled: boolean;
+}
+
+declare var MSWebViewSettings: {
+    prototype: MSWebViewSettings;
+    new(): MSWebViewSettings;
+}
+
+interface MediaDeviceInfo {
+    readonly deviceId: string;
+    readonly groupId: string;
+    readonly kind: string;
+    readonly label: string;
+}
+
+declare var MediaDeviceInfo: {
+    prototype: MediaDeviceInfo;
+    new(): MediaDeviceInfo;
+}
+
+interface MediaDevicesEventMap {
+    "devicechange": Event;
+}
+
+interface MediaDevices extends EventTarget {
+    ondevicechange: (this: MediaDevices, ev: Event) => any;
+    enumerateDevices(): any;
+    getSupportedConstraints(): MediaTrackSupportedConstraints;
+    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
+    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaDevices: {
+    prototype: MediaDevices;
+    new(): MediaDevices;
+}
+
+interface MediaElementAudioSourceNode extends AudioNode {
+}
+
+declare var MediaElementAudioSourceNode: {
+    prototype: MediaElementAudioSourceNode;
+    new(): MediaElementAudioSourceNode;
+}
+
+interface MediaEncryptedEvent extends Event {
+    readonly initData: ArrayBuffer | null;
+    readonly initDataType: string;
+}
+
+declare var MediaEncryptedEvent: {
+    prototype: MediaEncryptedEvent;
+    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
+}
+
+interface MediaError {
+    readonly code: number;
+    readonly msExtendedCode: number;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+declare var MediaError: {
+    prototype: MediaError;
+    new(): MediaError;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+interface MediaKeyMessageEvent extends Event {
+    readonly message: ArrayBuffer;
+    readonly messageType: string;
+}
+
+declare var MediaKeyMessageEvent: {
+    prototype: MediaKeyMessageEvent;
+    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
+}
+
+interface MediaKeySession extends EventTarget {
+    readonly closed: PromiseLike<void>;
+    readonly expiration: number;
+    readonly keyStatuses: MediaKeyStatusMap;
+    readonly sessionId: string;
+    close(): PromiseLike<void>;
+    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
+    load(sessionId: string): PromiseLike<boolean>;
+    remove(): PromiseLike<void>;
+    update(response: any): PromiseLike<void>;
+}
+
+declare var MediaKeySession: {
+    prototype: MediaKeySession;
+    new(): MediaKeySession;
+}
+
+interface MediaKeyStatusMap {
+    readonly size: number;
+    forEach(callback: ForEachCallback): void;
+    get(keyId: any): string;
+    has(keyId: any): boolean;
+}
+
+declare var MediaKeyStatusMap: {
+    prototype: MediaKeyStatusMap;
+    new(): MediaKeyStatusMap;
+}
+
+interface MediaKeySystemAccess {
+    readonly keySystem: string;
+    createMediaKeys(): PromiseLike<MediaKeys>;
+    getConfiguration(): MediaKeySystemConfiguration;
+}
+
+declare var MediaKeySystemAccess: {
+    prototype: MediaKeySystemAccess;
+    new(): MediaKeySystemAccess;
+}
+
+interface MediaKeys {
+    createSession(sessionType?: string): MediaKeySession;
+    setServerCertificate(serverCertificate: any): PromiseLike<void>;
+}
+
+declare var MediaKeys: {
+    prototype: MediaKeys;
+    new(): MediaKeys;
+}
+
+interface MediaList {
+    readonly length: number;
+    mediaText: string;
+    appendMedium(newMedium: string): void;
+    deleteMedium(oldMedium: string): void;
+    item(index: number): string;
+    toString(): string;
+    [index: number]: string;
+}
+
+declare var MediaList: {
+    prototype: MediaList;
+    new(): MediaList;
+}
+
+interface MediaQueryList {
+    readonly matches: boolean;
+    readonly media: string;
+    addListener(listener: MediaQueryListListener): void;
+    removeListener(listener: MediaQueryListListener): void;
+}
+
+declare var MediaQueryList: {
+    prototype: MediaQueryList;
+    new(): MediaQueryList;
+}
+
+interface MediaSource extends EventTarget {
+    readonly activeSourceBuffers: SourceBufferList;
+    duration: number;
+    readonly readyState: string;
+    readonly sourceBuffers: SourceBufferList;
+    addSourceBuffer(type: string): SourceBuffer;
+    endOfStream(error?: number): void;
+    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
+}
+
+declare var MediaSource: {
+    prototype: MediaSource;
+    new(): MediaSource;
+    isTypeSupported(type: string): boolean;
+}
+
+interface MediaStreamEventMap {
+    "active": Event;
+    "addtrack": TrackEvent;
+    "inactive": Event;
+    "removetrack": TrackEvent;
+}
+
+interface MediaStream extends EventTarget {
+    readonly active: boolean;
+    readonly id: string;
+    onactive: (this: MediaStream, ev: Event) => any;
+    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
+    oninactive: (this: MediaStream, ev: Event) => any;
+    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
+    addTrack(track: MediaStreamTrack): void;
+    clone(): MediaStream;
+    getAudioTracks(): MediaStreamTrack[];
+    getTrackById(trackId: string): MediaStreamTrack | null;
+    getTracks(): MediaStreamTrack[];
+    getVideoTracks(): MediaStreamTrack[];
+    removeTrack(track: MediaStreamTrack): void;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStream: {
+    prototype: MediaStream;
+    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
+}
+
+interface MediaStreamAudioSourceNode extends AudioNode {
+}
+
+declare var MediaStreamAudioSourceNode: {
+    prototype: MediaStreamAudioSourceNode;
+    new(): MediaStreamAudioSourceNode;
+}
+
+interface MediaStreamError {
+    readonly constraintName: string | null;
+    readonly message: string | null;
+    readonly name: string;
+}
+
+declare var MediaStreamError: {
+    prototype: MediaStreamError;
+    new(): MediaStreamError;
+}
+
+interface MediaStreamErrorEvent extends Event {
+    readonly error: MediaStreamError | null;
+}
+
+declare var MediaStreamErrorEvent: {
+    prototype: MediaStreamErrorEvent;
+    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
+}
+
+interface MediaStreamTrackEventMap {
+    "ended": MediaStreamErrorEvent;
+    "mute": Event;
+    "overconstrained": MediaStreamErrorEvent;
+    "unmute": Event;
+}
+
+interface MediaStreamTrack extends EventTarget {
+    enabled: boolean;
+    readonly id: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly muted: boolean;
+    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
+    onmute: (this: MediaStreamTrack, ev: Event) => any;
+    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
+    onunmute: (this: MediaStreamTrack, ev: Event) => any;
+    readonly readonly: boolean;
+    readonly readyState: string;
+    readonly remote: boolean;
+    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
+    clone(): MediaStreamTrack;
+    getCapabilities(): MediaTrackCapabilities;
+    getConstraints(): MediaTrackConstraints;
+    getSettings(): MediaTrackSettings;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStreamTrack: {
+    prototype: MediaStreamTrack;
+    new(): MediaStreamTrack;
+}
+
+interface MediaStreamTrackEvent extends Event {
+    readonly track: MediaStreamTrack;
+}
+
+declare var MediaStreamTrackEvent: {
+    prototype: MediaStreamTrackEvent;
+    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
+}
+
+interface MessageChannel {
+    readonly port1: MessagePort;
+    readonly port2: MessagePort;
+}
+
+declare var MessageChannel: {
+    prototype: MessageChannel;
+    new(): MessageChannel;
+}
+
+interface MessageEvent extends Event {
+    readonly data: any;
+    readonly origin: string;
+    readonly ports: any;
+    readonly source: Window;
+    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
+}
+
+declare var MessageEvent: {
+    prototype: MessageEvent;
+    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
+}
+
+interface MessagePortEventMap {
+    "message": MessageEvent;
+}
+
+interface MessagePort extends EventTarget {
+    onmessage: (this: MessagePort, ev: MessageEvent) => any;
+    close(): void;
+    postMessage(message?: any, ports?: any): void;
+    start(): void;
+    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MessagePort: {
+    prototype: MessagePort;
+    new(): MessagePort;
+}
+
+interface MimeType {
+    readonly description: string;
+    readonly enabledPlugin: Plugin;
+    readonly suffixes: string;
+    readonly type: string;
+}
+
+declare var MimeType: {
+    prototype: MimeType;
+    new(): MimeType;
+}
+
+interface MimeTypeArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(type: string): Plugin;
+    [index: number]: Plugin;
+}
+
+declare var MimeTypeArray: {
+    prototype: MimeTypeArray;
+    new(): MimeTypeArray;
+}
+
+interface MouseEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly button: number;
+    readonly buttons: number;
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly ctrlKey: boolean;
+    readonly fromElement: Element;
+    readonly layerX: number;
+    readonly layerY: number;
+    readonly metaKey: boolean;
+    readonly movementX: number;
+    readonly movementY: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly relatedTarget: EventTarget;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly shiftKey: boolean;
+    readonly toElement: Element;
+    readonly which: number;
+    readonly x: number;
+    readonly y: number;
+    getModifierState(keyArg: string): boolean;
+    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
+}
+
+interface MutationEvent extends Event {
+    readonly attrChange: number;
+    readonly attrName: string;
+    readonly newValue: string;
+    readonly prevValue: string;
+    readonly relatedNode: Node;
+    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+declare var MutationEvent: {
+    prototype: MutationEvent;
+    new(): MutationEvent;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+interface MutationObserver {
+    disconnect(): void;
+    observe(target: Node, options: MutationObserverInit): void;
+    takeRecords(): MutationRecord[];
+}
+
+declare var MutationObserver: {
+    prototype: MutationObserver;
+    new(callback: MutationCallback): MutationObserver;
+}
+
+interface MutationRecord {
+    readonly addedNodes: NodeList;
+    readonly attributeName: string | null;
+    readonly attributeNamespace: string | null;
+    readonly nextSibling: Node | null;
+    readonly oldValue: string | null;
+    readonly previousSibling: Node | null;
+    readonly removedNodes: NodeList;
+    readonly target: Node;
+    readonly type: string;
+}
+
+declare var MutationRecord: {
+    prototype: MutationRecord;
+    new(): MutationRecord;
+}
+
+interface NamedNodeMap {
+    readonly length: number;
+    getNamedItem(name: string): Attr;
+    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    item(index: number): Attr;
+    removeNamedItem(name: string): Attr;
+    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    setNamedItem(arg: Attr): Attr;
+    setNamedItemNS(arg: Attr): Attr;
+    [index: number]: Attr;
+}
+
+declare var NamedNodeMap: {
+    prototype: NamedNodeMap;
+    new(): NamedNodeMap;
+}
+
+interface NavigationCompletedEvent extends NavigationEvent {
+    readonly isSuccess: boolean;
+    readonly webErrorStatus: number;
+}
+
+declare var NavigationCompletedEvent: {
+    prototype: NavigationCompletedEvent;
+    new(): NavigationCompletedEvent;
+}
+
+interface NavigationEvent extends Event {
+    readonly uri: string;
+}
+
+declare var NavigationEvent: {
+    prototype: NavigationEvent;
+    new(): NavigationEvent;
+}
+
+interface NavigationEventWithReferrer extends NavigationEvent {
+    readonly referer: string;
+}
+
+declare var NavigationEventWithReferrer: {
+    prototype: NavigationEventWithReferrer;
+    new(): NavigationEventWithReferrer;
+}
+
+interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
+    readonly appCodeName: string;
+    readonly cookieEnabled: boolean;
+    readonly language: string;
+    readonly maxTouchPoints: number;
+    readonly mimeTypes: MimeTypeArray;
+    readonly msManipulationViewsEnabled: boolean;
+    readonly msMaxTouchPoints: number;
+    readonly msPointerEnabled: boolean;
+    readonly plugins: PluginArray;
+    readonly pointerEnabled: boolean;
+    readonly webdriver: boolean;
+    readonly hardwareConcurrency: number;
+    getGamepads(): Gamepad[];
+    javaEnabled(): boolean;
+    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
+    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
+    vibrate(pattern: number | number[]): boolean;
+}
+
+declare var Navigator: {
+    prototype: Navigator;
+    new(): Navigator;
+}
+
+interface Node extends EventTarget {
+    readonly attributes: NamedNodeMap;
+    readonly baseURI: string | null;
+    readonly childNodes: NodeList;
+    readonly firstChild: Node | null;
+    readonly lastChild: Node | null;
+    readonly localName: string | null;
+    readonly namespaceURI: string | null;
+    readonly nextSibling: Node | null;
+    readonly nodeName: string;
+    readonly nodeType: number;
+    nodeValue: string | null;
+    readonly ownerDocument: Document;
+    readonly parentElement: HTMLElement | null;
+    readonly parentNode: Node | null;
+    readonly previousSibling: Node | null;
+    textContent: string | null;
+    appendChild(newChild: Node): Node;
+    cloneNode(deep?: boolean): Node;
+    compareDocumentPosition(other: Node): number;
+    contains(child: Node): boolean;
+    hasAttributes(): boolean;
+    hasChildNodes(): boolean;
+    insertBefore(newChild: Node, refChild: Node | null): Node;
+    isDefaultNamespace(namespaceURI: string | null): boolean;
+    isEqualNode(arg: Node): boolean;
+    isSameNode(other: Node): boolean;
+    lookupNamespaceURI(prefix: string | null): string | null;
+    lookupPrefix(namespaceURI: string | null): string | null;
+    normalize(): void;
+    removeChild(oldChild: Node): Node;
+    replaceChild(newChild: Node, oldChild: Node): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+declare var Node: {
+    prototype: Node;
+    new(): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+interface NodeFilter {
+    acceptNode(n: Node): number;
+}
+
+declare var NodeFilter: {
+    readonly FILTER_ACCEPT: number;
+    readonly FILTER_REJECT: number;
+    readonly FILTER_SKIP: number;
+    readonly SHOW_ALL: number;
+    readonly SHOW_ATTRIBUTE: number;
+    readonly SHOW_CDATA_SECTION: number;
+    readonly SHOW_COMMENT: number;
+    readonly SHOW_DOCUMENT: number;
+    readonly SHOW_DOCUMENT_FRAGMENT: number;
+    readonly SHOW_DOCUMENT_TYPE: number;
+    readonly SHOW_ELEMENT: number;
+    readonly SHOW_ENTITY: number;
+    readonly SHOW_ENTITY_REFERENCE: number;
+    readonly SHOW_NOTATION: number;
+    readonly SHOW_PROCESSING_INSTRUCTION: number;
+    readonly SHOW_TEXT: number;
+}
+
+interface NodeIterator {
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    detach(): void;
+    nextNode(): Node;
+    previousNode(): Node;
+}
+
+declare var NodeIterator: {
+    prototype: NodeIterator;
+    new(): NodeIterator;
+}
+
+interface NodeList {
+    readonly length: number;
+    item(index: number): Node;
+    [index: number]: Node;
+}
+
+declare var NodeList: {
+    prototype: NodeList;
+    new(): NodeList;
+}
+
+interface OES_element_index_uint {
+}
+
+declare var OES_element_index_uint: {
+    prototype: OES_element_index_uint;
+    new(): OES_element_index_uint;
+}
+
+interface OES_standard_derivatives {
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+declare var OES_standard_derivatives: {
+    prototype: OES_standard_derivatives;
+    new(): OES_standard_derivatives;
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+interface OES_texture_float {
+}
+
+declare var OES_texture_float: {
+    prototype: OES_texture_float;
+    new(): OES_texture_float;
+}
+
+interface OES_texture_float_linear {
+}
+
+declare var OES_texture_float_linear: {
+    prototype: OES_texture_float_linear;
+    new(): OES_texture_float_linear;
+}
+
+interface OfflineAudioCompletionEvent extends Event {
+    readonly renderedBuffer: AudioBuffer;
+}
+
+declare var OfflineAudioCompletionEvent: {
+    prototype: OfflineAudioCompletionEvent;
+    new(): OfflineAudioCompletionEvent;
+}
+
+interface OfflineAudioContextEventMap {
+    "complete": Event;
+}
+
+interface OfflineAudioContext extends AudioContext {
+    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
+    startRendering(): PromiseLike<AudioBuffer>;
+    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OfflineAudioContext: {
+    prototype: OfflineAudioContext;
+    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
+}
+
+interface OscillatorNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface OscillatorNode extends AudioNode {
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
+    type: string;
+    setPeriodicWave(periodicWave: PeriodicWave): void;
+    start(when?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OscillatorNode: {
+    prototype: OscillatorNode;
+    new(): OscillatorNode;
+}
+
+interface OverflowEvent extends UIEvent {
+    readonly horizontalOverflow: boolean;
+    readonly orient: number;
+    readonly verticalOverflow: boolean;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+declare var OverflowEvent: {
+    prototype: OverflowEvent;
+    new(): OverflowEvent;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+interface PageTransitionEvent extends Event {
+    readonly persisted: boolean;
+}
+
+declare var PageTransitionEvent: {
+    prototype: PageTransitionEvent;
+    new(): PageTransitionEvent;
+}
+
+interface PannerNode extends AudioNode {
+    coneInnerAngle: number;
+    coneOuterAngle: number;
+    coneOuterGain: number;
+    distanceModel: string;
+    maxDistance: number;
+    panningModel: string;
+    refDistance: number;
+    rolloffFactor: number;
+    setOrientation(x: number, y: number, z: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var PannerNode: {
+    prototype: PannerNode;
+    new(): PannerNode;
+}
+
+interface PerfWidgetExternal {
+    readonly activeNetworkRequestCount: number;
+    readonly averageFrameTime: number;
+    readonly averagePaintTime: number;
+    readonly extraInformationEnabled: boolean;
+    readonly independentRenderingEnabled: boolean;
+    readonly irDisablingContentString: string;
+    readonly irStatusAvailable: boolean;
+    readonly maxCpuSpeed: number;
+    readonly paintRequestsPerSecond: number;
+    readonly performanceCounter: number;
+    readonly performanceCounterFrequency: number;
+    addEventListener(eventType: string, callback: Function): void;
+    getMemoryUsage(): number;
+    getProcessCpuUsage(): number;
+    getRecentCpuUsage(last: number | null): any;
+    getRecentFrames(last: number | null): any;
+    getRecentMemoryUsage(last: number | null): any;
+    getRecentPaintRequests(last: number | null): any;
+    removeEventListener(eventType: string, callback: Function): void;
+    repositionWindow(x: number, y: number): void;
+    resizeWindow(width: number, height: number): void;
+}
+
+declare var PerfWidgetExternal: {
+    prototype: PerfWidgetExternal;
+    new(): PerfWidgetExternal;
+}
+
+interface Performance {
+    readonly navigation: PerformanceNavigation;
+    readonly timing: PerformanceTiming;
+    clearMarks(markName?: string): void;
+    clearMeasures(measureName?: string): void;
+    clearResourceTimings(): void;
+    getEntries(): any;
+    getEntriesByName(name: string, entryType?: string): any;
+    getEntriesByType(entryType: string): any;
+    getMarks(markName?: string): any;
+    getMeasures(measureName?: string): any;
+    mark(markName: string): void;
+    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
+    now(): number;
+    setResourceTimingBufferSize(maxSize: number): void;
+    toJSON(): any;
+}
+
+declare var Performance: {
+    prototype: Performance;
+    new(): Performance;
+}
+
+interface PerformanceEntry {
+    readonly duration: number;
+    readonly entryType: string;
+    readonly name: string;
+    readonly startTime: number;
+}
+
+declare var PerformanceEntry: {
+    prototype: PerformanceEntry;
+    new(): PerformanceEntry;
+}
+
+interface PerformanceMark extends PerformanceEntry {
+}
+
+declare var PerformanceMark: {
+    prototype: PerformanceMark;
+    new(): PerformanceMark;
+}
+
+interface PerformanceMeasure extends PerformanceEntry {
+}
+
+declare var PerformanceMeasure: {
+    prototype: PerformanceMeasure;
+    new(): PerformanceMeasure;
+}
+
+interface PerformanceNavigation {
+    readonly redirectCount: number;
+    readonly type: number;
+    toJSON(): any;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+declare var PerformanceNavigation: {
+    prototype: PerformanceNavigation;
+    new(): PerformanceNavigation;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+interface PerformanceNavigationTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly navigationStart: number;
+    readonly redirectCount: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly type: string;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+}
+
+declare var PerformanceNavigationTiming: {
+    prototype: PerformanceNavigationTiming;
+    new(): PerformanceNavigationTiming;
+}
+
+interface PerformanceResourceTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly initiatorType: string;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+}
+
+declare var PerformanceResourceTiming: {
+    prototype: PerformanceResourceTiming;
+    new(): PerformanceResourceTiming;
+}
+
+interface PerformanceTiming {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly msFirstPaint: number;
+    readonly navigationStart: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+    readonly secureConnectionStart: number;
+    toJSON(): any;
+}
+
+declare var PerformanceTiming: {
+    prototype: PerformanceTiming;
+    new(): PerformanceTiming;
+}
+
+interface PeriodicWave {
+}
+
+declare var PeriodicWave: {
+    prototype: PeriodicWave;
+    new(): PeriodicWave;
+}
+
+interface PermissionRequest extends DeferredPermissionRequest {
+    readonly state: string;
+    defer(): void;
+}
+
+declare var PermissionRequest: {
+    prototype: PermissionRequest;
+    new(): PermissionRequest;
+}
+
+interface PermissionRequestedEvent extends Event {
+    readonly permissionRequest: PermissionRequest;
+}
+
+declare var PermissionRequestedEvent: {
+    prototype: PermissionRequestedEvent;
+    new(): PermissionRequestedEvent;
+}
+
+interface Plugin {
+    readonly description: string;
+    readonly filename: string;
+    readonly length: number;
+    readonly name: string;
+    readonly version: string;
+    item(index: number): MimeType;
+    namedItem(type: string): MimeType;
+    [index: number]: MimeType;
+}
+
+declare var Plugin: {
+    prototype: Plugin;
+    new(): Plugin;
+}
+
+interface PluginArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(name: string): Plugin;
+    refresh(reload?: boolean): void;
+    [index: number]: Plugin;
+}
+
+declare var PluginArray: {
+    prototype: PluginArray;
+    new(): PluginArray;
+}
+
+interface PointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var PointerEvent: {
+    prototype: PointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
+}
+
+interface PopStateEvent extends Event {
+    readonly state: any;
+    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
+}
+
+declare var PopStateEvent: {
+    prototype: PopStateEvent;
+    new(): PopStateEvent;
+}
+
+interface Position {
+    readonly coords: Coordinates;
+    readonly timestamp: number;
+}
+
+declare var Position: {
+    prototype: Position;
+    new(): Position;
+}
+
+interface PositionError {
+    readonly code: number;
+    readonly message: string;
+    toString(): string;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+declare var PositionError: {
+    prototype: PositionError;
+    new(): PositionError;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+interface ProcessingInstruction extends CharacterData {
+    readonly target: string;
+}
+
+declare var ProcessingInstruction: {
+    prototype: ProcessingInstruction;
+    new(): ProcessingInstruction;
+}
+
+interface ProgressEvent extends Event {
+    readonly lengthComputable: boolean;
+    readonly loaded: number;
+    readonly total: number;
+    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
+}
+
+declare var ProgressEvent: {
+    prototype: ProgressEvent;
+    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
+}
+
+interface RTCDTMFToneChangeEvent extends Event {
+    readonly tone: string;
+}
+
+declare var RTCDTMFToneChangeEvent: {
+    prototype: RTCDTMFToneChangeEvent;
+    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtlsTransportEventMap {
+    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
+    "error": ErrorEvent;
+}
+
+interface RTCDtlsTransport extends RTCStatsProvider {
+    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
+    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
+    readonly state: string;
+    readonly transport: RTCIceTransport;
+    getLocalParameters(): RTCDtlsParameters;
+    getRemoteCertificates(): ArrayBuffer[];
+    getRemoteParameters(): RTCDtlsParameters | null;
+    start(remoteParameters: RTCDtlsParameters): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtlsTransport: {
+    prototype: RTCDtlsTransport;
+    new(transport: RTCIceTransport): RTCDtlsTransport;
+}
+
+interface RTCDtlsTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCDtlsTransportStateChangedEvent: {
+    prototype: RTCDtlsTransportStateChangedEvent;
+    new(): RTCDtlsTransportStateChangedEvent;
+}
+
+interface RTCDtmfSenderEventMap {
+    "tonechange": RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtmfSender extends EventTarget {
+    readonly canInsertDTMF: boolean;
+    readonly duration: number;
+    readonly interToneGap: number;
+    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
+    readonly sender: RTCRtpSender;
+    readonly toneBuffer: string;
+    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
+    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtmfSender: {
+    prototype: RTCDtmfSender;
+    new(sender: RTCRtpSender): RTCDtmfSender;
+}
+
+interface RTCIceCandidatePairChangedEvent extends Event {
+    readonly pair: RTCIceCandidatePair;
+}
+
+declare var RTCIceCandidatePairChangedEvent: {
+    prototype: RTCIceCandidatePairChangedEvent;
+    new(): RTCIceCandidatePairChangedEvent;
+}
+
+interface RTCIceGathererEventMap {
+    "error": ErrorEvent;
+    "localcandidate": RTCIceGathererEvent;
+}
+
+interface RTCIceGatherer extends RTCStatsProvider {
+    readonly component: string;
+    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
+    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
+    createAssociatedGatherer(): RTCIceGatherer;
+    getLocalCandidates(): RTCIceCandidate[];
+    getLocalParameters(): RTCIceParameters;
+    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceGatherer: {
+    prototype: RTCIceGatherer;
+    new(options: RTCIceGatherOptions): RTCIceGatherer;
+}
+
+interface RTCIceGathererEvent extends Event {
+    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
+}
+
+declare var RTCIceGathererEvent: {
+    prototype: RTCIceGathererEvent;
+    new(): RTCIceGathererEvent;
+}
+
+interface RTCIceTransportEventMap {
+    "candidatepairchange": RTCIceCandidatePairChangedEvent;
+    "icestatechange": RTCIceTransportStateChangedEvent;
+}
+
+interface RTCIceTransport extends RTCStatsProvider {
+    readonly component: string;
+    readonly iceGatherer: RTCIceGatherer | null;
+    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
+    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
+    readonly role: string;
+    readonly state: string;
+    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
+    createAssociatedTransport(): RTCIceTransport;
+    getNominatedCandidatePair(): RTCIceCandidatePair | null;
+    getRemoteCandidates(): RTCIceCandidate[];
+    getRemoteParameters(): RTCIceParameters | null;
+    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
+    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceTransport: {
+    prototype: RTCIceTransport;
+    new(): RTCIceTransport;
+}
+
+interface RTCIceTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCIceTransportStateChangedEvent: {
+    prototype: RTCIceTransportStateChangedEvent;
+    new(): RTCIceTransportStateChangedEvent;
+}
+
+interface RTCRtpReceiverEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCRtpReceiver extends RTCStatsProvider {
+    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack | null;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    getContributingSources(): RTCRtpContributingSource[];
+    receive(parameters: RTCRtpParameters): void;
+    requestSendCSRC(csrc: number): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpReceiver: {
+    prototype: RTCRtpReceiver;
+    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCRtpSenderEventMap {
+    "error": ErrorEvent;
+    "ssrcconflict": RTCSsrcConflictEvent;
+}
+
+interface RTCRtpSender extends RTCStatsProvider {
+    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
+    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    send(parameters: RTCRtpParameters): void;
+    setTrack(track: MediaStreamTrack): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpSender: {
+    prototype: RTCRtpSender;
+    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCSrtpSdesTransportEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCSrtpSdesTransport extends EventTarget {
+    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
+    readonly transport: RTCIceTransport;
+    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCSrtpSdesTransport: {
+    prototype: RTCSrtpSdesTransport;
+    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
+    getLocalParameters(): RTCSrtpSdesParameters[];
+}
+
+interface RTCSsrcConflictEvent extends Event {
+    readonly ssrc: number;
+}
+
+declare var RTCSsrcConflictEvent: {
+    prototype: RTCSsrcConflictEvent;
+    new(): RTCSsrcConflictEvent;
+}
+
+interface RTCStatsProvider extends EventTarget {
+    getStats(): PromiseLike<RTCStatsReport>;
+    msGetStats(): PromiseLike<RTCStatsReport>;
+}
+
+declare var RTCStatsProvider: {
+    prototype: RTCStatsProvider;
+    new(): RTCStatsProvider;
+}
+
+interface Range {
+    readonly collapsed: boolean;
+    readonly commonAncestorContainer: Node;
+    readonly endContainer: Node;
+    readonly endOffset: number;
+    readonly startContainer: Node;
+    readonly startOffset: number;
+    cloneContents(): DocumentFragment;
+    cloneRange(): Range;
+    collapse(toStart: boolean): void;
+    compareBoundaryPoints(how: number, sourceRange: Range): number;
+    createContextualFragment(fragment: string): DocumentFragment;
+    deleteContents(): void;
+    detach(): void;
+    expand(Unit: string): boolean;
+    extractContents(): DocumentFragment;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    insertNode(newNode: Node): void;
+    selectNode(refNode: Node): void;
+    selectNodeContents(refNode: Node): void;
+    setEnd(refNode: Node, offset: number): void;
+    setEndAfter(refNode: Node): void;
+    setEndBefore(refNode: Node): void;
+    setStart(refNode: Node, offset: number): void;
+    setStartAfter(refNode: Node): void;
+    setStartBefore(refNode: Node): void;
+    surroundContents(newParent: Node): void;
+    toString(): string;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+declare var Range: {
+    prototype: Range;
+    new(): Range;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly target: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGAElement: {
+    prototype: SVGAElement;
+    new(): SVGAElement;
+}
+
+interface SVGAngle {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+declare var SVGAngle: {
+    prototype: SVGAngle;
+    new(): SVGAngle;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+interface SVGAnimatedAngle {
+    readonly animVal: SVGAngle;
+    readonly baseVal: SVGAngle;
+}
+
+declare var SVGAnimatedAngle: {
+    prototype: SVGAnimatedAngle;
+    new(): SVGAnimatedAngle;
+}
+
+interface SVGAnimatedBoolean {
+    readonly animVal: boolean;
+    baseVal: boolean;
+}
+
+declare var SVGAnimatedBoolean: {
+    prototype: SVGAnimatedBoolean;
+    new(): SVGAnimatedBoolean;
+}
+
+interface SVGAnimatedEnumeration {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedEnumeration: {
+    prototype: SVGAnimatedEnumeration;
+    new(): SVGAnimatedEnumeration;
+}
+
+interface SVGAnimatedInteger {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedInteger: {
+    prototype: SVGAnimatedInteger;
+    new(): SVGAnimatedInteger;
+}
+
+interface SVGAnimatedLength {
+    readonly animVal: SVGLength;
+    readonly baseVal: SVGLength;
+}
+
+declare var SVGAnimatedLength: {
+    prototype: SVGAnimatedLength;
+    new(): SVGAnimatedLength;
+}
+
+interface SVGAnimatedLengthList {
+    readonly animVal: SVGLengthList;
+    readonly baseVal: SVGLengthList;
+}
+
+declare var SVGAnimatedLengthList: {
+    prototype: SVGAnimatedLengthList;
+    new(): SVGAnimatedLengthList;
+}
+
+interface SVGAnimatedNumber {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedNumber: {
+    prototype: SVGAnimatedNumber;
+    new(): SVGAnimatedNumber;
+}
+
+interface SVGAnimatedNumberList {
+    readonly animVal: SVGNumberList;
+    readonly baseVal: SVGNumberList;
+}
+
+declare var SVGAnimatedNumberList: {
+    prototype: SVGAnimatedNumberList;
+    new(): SVGAnimatedNumberList;
+}
+
+interface SVGAnimatedPreserveAspectRatio {
+    readonly animVal: SVGPreserveAspectRatio;
+    readonly baseVal: SVGPreserveAspectRatio;
+}
+
+declare var SVGAnimatedPreserveAspectRatio: {
+    prototype: SVGAnimatedPreserveAspectRatio;
+    new(): SVGAnimatedPreserveAspectRatio;
+}
+
+interface SVGAnimatedRect {
+    readonly animVal: SVGRect;
+    readonly baseVal: SVGRect;
+}
+
+declare var SVGAnimatedRect: {
+    prototype: SVGAnimatedRect;
+    new(): SVGAnimatedRect;
+}
+
+interface SVGAnimatedString {
+    readonly animVal: string;
+    baseVal: string;
+}
+
+declare var SVGAnimatedString: {
+    prototype: SVGAnimatedString;
+    new(): SVGAnimatedString;
+}
+
+interface SVGAnimatedTransformList {
+    readonly animVal: SVGTransformList;
+    readonly baseVal: SVGTransformList;
+}
+
+declare var SVGAnimatedTransformList: {
+    prototype: SVGAnimatedTransformList;
+    new(): SVGAnimatedTransformList;
+}
+
+interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGCircleElement: {
+    prototype: SVGCircleElement;
+    new(): SVGCircleElement;
+}
+
+interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
+    readonly clipPathUnits: SVGAnimatedEnumeration;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGClipPathElement: {
+    prototype: SVGClipPathElement;
+    new(): SVGClipPathElement;
+}
+
+interface SVGComponentTransferFunctionElement extends SVGElement {
+    readonly amplitude: SVGAnimatedNumber;
+    readonly exponent: SVGAnimatedNumber;
+    readonly intercept: SVGAnimatedNumber;
+    readonly offset: SVGAnimatedNumber;
+    readonly slope: SVGAnimatedNumber;
+    readonly tableValues: SVGAnimatedNumberList;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGComponentTransferFunctionElement: {
+    prototype: SVGComponentTransferFunctionElement;
+    new(): SVGComponentTransferFunctionElement;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+}
+
+interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDefsElement: {
+    prototype: SVGDefsElement;
+    new(): SVGDefsElement;
+}
+
+interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDescElement: {
+    prototype: SVGDescElement;
+    new(): SVGDescElement;
+}
+
+interface SVGElementEventMap extends ElementEventMap {
+    "click": MouseEvent;
+    "dblclick": MouseEvent;
+    "focusin": FocusEvent;
+    "focusout": FocusEvent;
+    "load": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+}
+
+interface SVGElement extends Element {
+    onclick: (this: SVGElement, ev: MouseEvent) => any;
+    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
+    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
+    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
+    onload: (this: SVGElement, ev: Event) => any;
+    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
+    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
+    readonly ownerSVGElement: SVGSVGElement;
+    readonly viewportElement: SVGElement;
+    xmlbase: string;
+    className: any;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGElement: {
+    prototype: SVGElement;
+    new(): SVGElement;
+}
+
+interface SVGElementInstance extends EventTarget {
+    readonly childNodes: SVGElementInstanceList;
+    readonly correspondingElement: SVGElement;
+    readonly correspondingUseElement: SVGUseElement;
+    readonly firstChild: SVGElementInstance;
+    readonly lastChild: SVGElementInstance;
+    readonly nextSibling: SVGElementInstance;
+    readonly parentNode: SVGElementInstance;
+    readonly previousSibling: SVGElementInstance;
+}
+
+declare var SVGElementInstance: {
+    prototype: SVGElementInstance;
+    new(): SVGElementInstance;
+}
+
+interface SVGElementInstanceList {
+    readonly length: number;
+    item(index: number): SVGElementInstance;
+}
+
+declare var SVGElementInstanceList: {
+    prototype: SVGElementInstanceList;
+    new(): SVGElementInstanceList;
+}
+
+interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGEllipseElement: {
+    prototype: SVGEllipseElement;
+    new(): SVGEllipseElement;
+}
+
+interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly mode: SVGAnimatedEnumeration;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEBlendElement: {
+    prototype: SVGFEBlendElement;
+    new(): SVGFEBlendElement;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+}
+
+interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly type: SVGAnimatedEnumeration;
+    readonly values: SVGAnimatedNumberList;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEColorMatrixElement: {
+    prototype: SVGFEColorMatrixElement;
+    new(): SVGFEColorMatrixElement;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+}
+
+interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEComponentTransferElement: {
+    prototype: SVGFEComponentTransferElement;
+    new(): SVGFEComponentTransferElement;
+}
+
+interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly k1: SVGAnimatedNumber;
+    readonly k2: SVGAnimatedNumber;
+    readonly k3: SVGAnimatedNumber;
+    readonly k4: SVGAnimatedNumber;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFECompositeElement: {
+    prototype: SVGFECompositeElement;
+    new(): SVGFECompositeElement;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+}
+
+interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly bias: SVGAnimatedNumber;
+    readonly divisor: SVGAnimatedNumber;
+    readonly edgeMode: SVGAnimatedEnumeration;
+    readonly in1: SVGAnimatedString;
+    readonly kernelMatrix: SVGAnimatedNumberList;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly orderX: SVGAnimatedInteger;
+    readonly orderY: SVGAnimatedInteger;
+    readonly preserveAlpha: SVGAnimatedBoolean;
+    readonly targetX: SVGAnimatedInteger;
+    readonly targetY: SVGAnimatedInteger;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEConvolveMatrixElement: {
+    prototype: SVGFEConvolveMatrixElement;
+    new(): SVGFEConvolveMatrixElement;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+}
+
+interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly diffuseConstant: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDiffuseLightingElement: {
+    prototype: SVGFEDiffuseLightingElement;
+    new(): SVGFEDiffuseLightingElement;
+}
+
+interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly scale: SVGAnimatedNumber;
+    readonly xChannelSelector: SVGAnimatedEnumeration;
+    readonly yChannelSelector: SVGAnimatedEnumeration;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDisplacementMapElement: {
+    prototype: SVGFEDisplacementMapElement;
+    new(): SVGFEDisplacementMapElement;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+}
+
+interface SVGFEDistantLightElement extends SVGElement {
+    readonly azimuth: SVGAnimatedNumber;
+    readonly elevation: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDistantLightElement: {
+    prototype: SVGFEDistantLightElement;
+    new(): SVGFEDistantLightElement;
+}
+
+interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEFloodElement: {
+    prototype: SVGFEFloodElement;
+    new(): SVGFEFloodElement;
+}
+
+interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncAElement: {
+    prototype: SVGFEFuncAElement;
+    new(): SVGFEFuncAElement;
+}
+
+interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncBElement: {
+    prototype: SVGFEFuncBElement;
+    new(): SVGFEFuncBElement;
+}
+
+interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncGElement: {
+    prototype: SVGFEFuncGElement;
+    new(): SVGFEFuncGElement;
+}
+
+interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncRElement: {
+    prototype: SVGFEFuncRElement;
+    new(): SVGFEFuncRElement;
+}
+
+interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly stdDeviationX: SVGAnimatedNumber;
+    readonly stdDeviationY: SVGAnimatedNumber;
+    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEGaussianBlurElement: {
+    prototype: SVGFEGaussianBlurElement;
+    new(): SVGFEGaussianBlurElement;
+}
+
+interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEImageElement: {
+    prototype: SVGFEImageElement;
+    new(): SVGFEImageElement;
+}
+
+interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeElement: {
+    prototype: SVGFEMergeElement;
+    new(): SVGFEMergeElement;
+}
+
+interface SVGFEMergeNodeElement extends SVGElement {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeNodeElement: {
+    prototype: SVGFEMergeNodeElement;
+    new(): SVGFEMergeNodeElement;
+}
+
+interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly radiusX: SVGAnimatedNumber;
+    readonly radiusY: SVGAnimatedNumber;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMorphologyElement: {
+    prototype: SVGFEMorphologyElement;
+    new(): SVGFEMorphologyElement;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+}
+
+interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly dx: SVGAnimatedNumber;
+    readonly dy: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEOffsetElement: {
+    prototype: SVGFEOffsetElement;
+    new(): SVGFEOffsetElement;
+}
+
+interface SVGFEPointLightElement extends SVGElement {
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEPointLightElement: {
+    prototype: SVGFEPointLightElement;
+    new(): SVGFEPointLightElement;
+}
+
+interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly specularConstant: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpecularLightingElement: {
+    prototype: SVGFESpecularLightingElement;
+    new(): SVGFESpecularLightingElement;
+}
+
+interface SVGFESpotLightElement extends SVGElement {
+    readonly limitingConeAngle: SVGAnimatedNumber;
+    readonly pointsAtX: SVGAnimatedNumber;
+    readonly pointsAtY: SVGAnimatedNumber;
+    readonly pointsAtZ: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpotLightElement: {
+    prototype: SVGFESpotLightElement;
+    new(): SVGFESpotLightElement;
+}
+
+interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETileElement: {
+    prototype: SVGFETileElement;
+    new(): SVGFETileElement;
+}
+
+interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly baseFrequencyX: SVGAnimatedNumber;
+    readonly baseFrequencyY: SVGAnimatedNumber;
+    readonly numOctaves: SVGAnimatedInteger;
+    readonly seed: SVGAnimatedNumber;
+    readonly stitchTiles: SVGAnimatedEnumeration;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETurbulenceElement: {
+    prototype: SVGFETurbulenceElement;
+    new(): SVGFETurbulenceElement;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+}
+
+interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
+    readonly filterResX: SVGAnimatedInteger;
+    readonly filterResY: SVGAnimatedInteger;
+    readonly filterUnits: SVGAnimatedEnumeration;
+    readonly height: SVGAnimatedLength;
+    readonly primitiveUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    setFilterRes(filterResX: number, filterResY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFilterElement: {
+    prototype: SVGFilterElement;
+    new(): SVGFilterElement;
+}
+
+interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGForeignObjectElement: {
+    prototype: SVGForeignObjectElement;
+    new(): SVGForeignObjectElement;
+}
+
+interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGElement: {
+    prototype: SVGGElement;
+    new(): SVGGElement;
+}
+
+interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
+    readonly gradientTransform: SVGAnimatedTransformList;
+    readonly gradientUnits: SVGAnimatedEnumeration;
+    readonly spreadMethod: SVGAnimatedEnumeration;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGradientElement: {
+    prototype: SVGGradientElement;
+    new(): SVGGradientElement;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+}
+
+interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly height: SVGAnimatedLength;
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGImageElement: {
+    prototype: SVGImageElement;
+    new(): SVGImageElement;
+}
+
+interface SVGLength {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+declare var SVGLength: {
+    prototype: SVGLength;
+    new(): SVGLength;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+interface SVGLengthList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGLength): SVGLength;
+    clear(): void;
+    getItem(index: number): SVGLength;
+    initialize(newItem: SVGLength): SVGLength;
+    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
+    removeItem(index: number): SVGLength;
+    replaceItem(newItem: SVGLength, index: number): SVGLength;
+}
+
+declare var SVGLengthList: {
+    prototype: SVGLengthList;
+    new(): SVGLengthList;
+}
+
+interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGLineElement: {
+    prototype: SVGLineElement;
+    new(): SVGLineElement;
+}
+
+interface SVGLinearGradientElement extends SVGGradientElement {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+}
+
+declare var SVGLinearGradientElement: {
+    prototype: SVGLinearGradientElement;
+    new(): SVGLinearGradientElement;
+}
+
+interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    readonly markerHeight: SVGAnimatedLength;
+    readonly markerUnits: SVGAnimatedEnumeration;
+    readonly markerWidth: SVGAnimatedLength;
+    readonly orientAngle: SVGAnimatedAngle;
+    readonly orientType: SVGAnimatedEnumeration;
+    readonly refX: SVGAnimatedLength;
+    readonly refY: SVGAnimatedLength;
+    setOrientToAngle(angle: SVGAngle): void;
+    setOrientToAuto(): void;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMarkerElement: {
+    prototype: SVGMarkerElement;
+    new(): SVGMarkerElement;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+}
+
+interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly maskContentUnits: SVGAnimatedEnumeration;
+    readonly maskUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMaskElement: {
+    prototype: SVGMaskElement;
+    new(): SVGMaskElement;
+}
+
+interface SVGMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    flipX(): SVGMatrix;
+    flipY(): SVGMatrix;
+    inverse(): SVGMatrix;
+    multiply(secondMatrix: SVGMatrix): SVGMatrix;
+    rotate(angle: number): SVGMatrix;
+    rotateFromVector(x: number, y: number): SVGMatrix;
+    scale(scaleFactor: number): SVGMatrix;
+    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
+    skewX(angle: number): SVGMatrix;
+    skewY(angle: number): SVGMatrix;
+    translate(x: number, y: number): SVGMatrix;
+}
+
+declare var SVGMatrix: {
+    prototype: SVGMatrix;
+    new(): SVGMatrix;
+}
+
+interface SVGMetadataElement extends SVGElement {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMetadataElement: {
+    prototype: SVGMetadataElement;
+    new(): SVGMetadataElement;
+}
+
+interface SVGNumber {
+    value: number;
+}
+
+declare var SVGNumber: {
+    prototype: SVGNumber;
+    new(): SVGNumber;
+}
+
+interface SVGNumberList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGNumber): SVGNumber;
+    clear(): void;
+    getItem(index: number): SVGNumber;
+    initialize(newItem: SVGNumber): SVGNumber;
+    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
+    removeItem(index: number): SVGNumber;
+    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
+}
+
+declare var SVGNumberList: {
+    prototype: SVGNumberList;
+    new(): SVGNumberList;
+}
+
+interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
+    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
+    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
+    createSVGPathSegClosePath(): SVGPathSegClosePath;
+    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
+    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
+    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
+    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
+    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
+    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
+    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
+    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
+    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
+    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
+    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
+    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
+    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
+    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
+    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
+    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
+    getPathSegAtLength(distance: number): number;
+    getPointAtLength(distance: number): SVGPoint;
+    getTotalLength(): number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPathElement: {
+    prototype: SVGPathElement;
+    new(): SVGPathElement;
+}
+
+interface SVGPathSeg {
+    readonly pathSegType: number;
+    readonly pathSegTypeAsLetter: string;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+declare var SVGPathSeg: {
+    prototype: SVGPathSeg;
+    new(): SVGPathSeg;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+interface SVGPathSegArcAbs extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcAbs: {
+    prototype: SVGPathSegArcAbs;
+    new(): SVGPathSegArcAbs;
+}
+
+interface SVGPathSegArcRel extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcRel: {
+    prototype: SVGPathSegArcRel;
+    new(): SVGPathSegArcRel;
+}
+
+interface SVGPathSegClosePath extends SVGPathSeg {
+}
+
+declare var SVGPathSegClosePath: {
+    prototype: SVGPathSegClosePath;
+    new(): SVGPathSegClosePath;
+}
+
+interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicAbs: {
+    prototype: SVGPathSegCurvetoCubicAbs;
+    new(): SVGPathSegCurvetoCubicAbs;
+}
+
+interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicRel: {
+    prototype: SVGPathSegCurvetoCubicRel;
+    new(): SVGPathSegCurvetoCubicRel;
+}
+
+interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothAbs: {
+    prototype: SVGPathSegCurvetoCubicSmoothAbs;
+    new(): SVGPathSegCurvetoCubicSmoothAbs;
+}
+
+interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothRel: {
+    prototype: SVGPathSegCurvetoCubicSmoothRel;
+    new(): SVGPathSegCurvetoCubicSmoothRel;
+}
+
+interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticAbs: {
+    prototype: SVGPathSegCurvetoQuadraticAbs;
+    new(): SVGPathSegCurvetoQuadraticAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticRel: {
+    prototype: SVGPathSegCurvetoQuadraticRel;
+    new(): SVGPathSegCurvetoQuadraticRel;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
+    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothRel: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
+    new(): SVGPathSegCurvetoQuadraticSmoothRel;
+}
+
+interface SVGPathSegLinetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoAbs: {
+    prototype: SVGPathSegLinetoAbs;
+    new(): SVGPathSegLinetoAbs;
+}
+
+interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalAbs: {
+    prototype: SVGPathSegLinetoHorizontalAbs;
+    new(): SVGPathSegLinetoHorizontalAbs;
+}
+
+interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalRel: {
+    prototype: SVGPathSegLinetoHorizontalRel;
+    new(): SVGPathSegLinetoHorizontalRel;
+}
+
+interface SVGPathSegLinetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoRel: {
+    prototype: SVGPathSegLinetoRel;
+    new(): SVGPathSegLinetoRel;
+}
+
+interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalAbs: {
+    prototype: SVGPathSegLinetoVerticalAbs;
+    new(): SVGPathSegLinetoVerticalAbs;
+}
+
+interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalRel: {
+    prototype: SVGPathSegLinetoVerticalRel;
+    new(): SVGPathSegLinetoVerticalRel;
+}
+
+interface SVGPathSegList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPathSeg): SVGPathSeg;
+    clear(): void;
+    getItem(index: number): SVGPathSeg;
+    initialize(newItem: SVGPathSeg): SVGPathSeg;
+    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
+    removeItem(index: number): SVGPathSeg;
+    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
+}
+
+declare var SVGPathSegList: {
+    prototype: SVGPathSegList;
+    new(): SVGPathSegList;
+}
+
+interface SVGPathSegMovetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoAbs: {
+    prototype: SVGPathSegMovetoAbs;
+    new(): SVGPathSegMovetoAbs;
+}
+
+interface SVGPathSegMovetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoRel: {
+    prototype: SVGPathSegMovetoRel;
+    new(): SVGPathSegMovetoRel;
+}
+
+interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly patternContentUnits: SVGAnimatedEnumeration;
+    readonly patternTransform: SVGAnimatedTransformList;
+    readonly patternUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPatternElement: {
+    prototype: SVGPatternElement;
+    new(): SVGPatternElement;
+}
+
+interface SVGPoint {
+    x: number;
+    y: number;
+    matrixTransform(matrix: SVGMatrix): SVGPoint;
+}
+
+declare var SVGPoint: {
+    prototype: SVGPoint;
+    new(): SVGPoint;
+}
+
+interface SVGPointList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPoint): SVGPoint;
+    clear(): void;
+    getItem(index: number): SVGPoint;
+    initialize(newItem: SVGPoint): SVGPoint;
+    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
+    removeItem(index: number): SVGPoint;
+    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
+}
+
+declare var SVGPointList: {
+    prototype: SVGPointList;
+    new(): SVGPointList;
+}
+
+interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolygonElement: {
+    prototype: SVGPolygonElement;
+    new(): SVGPolygonElement;
+}
+
+interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolylineElement: {
+    prototype: SVGPolylineElement;
+    new(): SVGPolylineElement;
+}
+
+interface SVGPreserveAspectRatio {
+    align: number;
+    meetOrSlice: number;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+declare var SVGPreserveAspectRatio: {
+    prototype: SVGPreserveAspectRatio;
+    new(): SVGPreserveAspectRatio;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+interface SVGRadialGradientElement extends SVGGradientElement {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly fx: SVGAnimatedLength;
+    readonly fy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+}
+
+declare var SVGRadialGradientElement: {
+    prototype: SVGRadialGradientElement;
+    new(): SVGRadialGradientElement;
+}
+
+interface SVGRect {
+    height: number;
+    width: number;
+    x: number;
+    y: number;
+}
+
+declare var SVGRect: {
+    prototype: SVGRect;
+    new(): SVGRect;
+}
+
+interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGRectElement: {
+    prototype: SVGRectElement;
+    new(): SVGRectElement;
+}
+
+interface SVGSVGElementEventMap extends SVGElementEventMap {
+    "SVGAbort": Event;
+    "SVGError": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "SVGUnload": Event;
+    "SVGZoom": SVGZoomEvent;
+}
+
+interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    contentScriptType: string;
+    contentStyleType: string;
+    currentScale: number;
+    readonly currentTranslate: SVGPoint;
+    readonly height: SVGAnimatedLength;
+    onabort: (this: SVGSVGElement, ev: Event) => any;
+    onerror: (this: SVGSVGElement, ev: Event) => any;
+    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
+    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
+    onunload: (this: SVGSVGElement, ev: Event) => any;
+    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
+    readonly pixelUnitToMillimeterX: number;
+    readonly pixelUnitToMillimeterY: number;
+    readonly screenPixelToMillimeterX: number;
+    readonly screenPixelToMillimeterY: number;
+    readonly viewport: SVGRect;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
+    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
+    createSVGAngle(): SVGAngle;
+    createSVGLength(): SVGLength;
+    createSVGMatrix(): SVGMatrix;
+    createSVGNumber(): SVGNumber;
+    createSVGPoint(): SVGPoint;
+    createSVGRect(): SVGRect;
+    createSVGTransform(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    deselectAll(): void;
+    forceRedraw(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getCurrentTime(): number;
+    getElementById(elementId: string): Element;
+    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    pauseAnimations(): void;
+    setCurrentTime(seconds: number): void;
+    suspendRedraw(maxWaitMilliseconds: number): number;
+    unpauseAnimations(): void;
+    unsuspendRedraw(suspendHandleID: number): void;
+    unsuspendRedrawAll(): void;
+    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSVGElement: {
+    prototype: SVGSVGElement;
+    new(): SVGSVGElement;
+}
+
+interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGScriptElement: {
+    prototype: SVGScriptElement;
+    new(): SVGScriptElement;
+}
+
+interface SVGStopElement extends SVGElement, SVGStylable {
+    readonly offset: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStopElement: {
+    prototype: SVGStopElement;
+    new(): SVGStopElement;
+}
+
+interface SVGStringList {
+    readonly numberOfItems: number;
+    appendItem(newItem: string): string;
+    clear(): void;
+    getItem(index: number): string;
+    initialize(newItem: string): string;
+    insertItemBefore(newItem: string, index: number): string;
+    removeItem(index: number): string;
+    replaceItem(newItem: string, index: number): string;
+}
+
+declare var SVGStringList: {
+    prototype: SVGStringList;
+    new(): SVGStringList;
+}
+
+interface SVGStyleElement extends SVGElement, SVGLangSpace {
+    disabled: boolean;
+    media: string;
+    title: string;
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStyleElement: {
+    prototype: SVGStyleElement;
+    new(): SVGStyleElement;
+}
+
+interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSwitchElement: {
+    prototype: SVGSwitchElement;
+    new(): SVGSwitchElement;
+}
+
+interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSymbolElement: {
+    prototype: SVGSymbolElement;
+    new(): SVGSymbolElement;
+}
+
+interface SVGTSpanElement extends SVGTextPositioningElement {
+}
+
+declare var SVGTSpanElement: {
+    prototype: SVGTSpanElement;
+    new(): SVGTSpanElement;
+}
+
+interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
+    readonly lengthAdjust: SVGAnimatedEnumeration;
+    readonly textLength: SVGAnimatedLength;
+    getCharNumAtPosition(point: SVGPoint): number;
+    getComputedTextLength(): number;
+    getEndPositionOfChar(charnum: number): SVGPoint;
+    getExtentOfChar(charnum: number): SVGRect;
+    getNumberOfChars(): number;
+    getRotationOfChar(charnum: number): number;
+    getStartPositionOfChar(charnum: number): SVGPoint;
+    getSubStringLength(charnum: number, nchars: number): number;
+    selectSubString(charnum: number, nchars: number): void;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTextContentElement: {
+    prototype: SVGTextContentElement;
+    new(): SVGTextContentElement;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+}
+
+interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
+}
+
+declare var SVGTextElement: {
+    prototype: SVGTextElement;
+    new(): SVGTextElement;
+}
+
+interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
+    readonly method: SVGAnimatedEnumeration;
+    readonly spacing: SVGAnimatedEnumeration;
+    readonly startOffset: SVGAnimatedLength;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+declare var SVGTextPathElement: {
+    prototype: SVGTextPathElement;
+    new(): SVGTextPathElement;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+interface SVGTextPositioningElement extends SVGTextContentElement {
+    readonly dx: SVGAnimatedLengthList;
+    readonly dy: SVGAnimatedLengthList;
+    readonly rotate: SVGAnimatedNumberList;
+    readonly x: SVGAnimatedLengthList;
+    readonly y: SVGAnimatedLengthList;
+}
+
+declare var SVGTextPositioningElement: {
+    prototype: SVGTextPositioningElement;
+    new(): SVGTextPositioningElement;
+}
+
+interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTitleElement: {
+    prototype: SVGTitleElement;
+    new(): SVGTitleElement;
+}
+
+interface SVGTransform {
+    readonly angle: number;
+    readonly matrix: SVGMatrix;
+    readonly type: number;
+    setMatrix(matrix: SVGMatrix): void;
+    setRotate(angle: number, cx: number, cy: number): void;
+    setScale(sx: number, sy: number): void;
+    setSkewX(angle: number): void;
+    setSkewY(angle: number): void;
+    setTranslate(tx: number, ty: number): void;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+declare var SVGTransform: {
+    prototype: SVGTransform;
+    new(): SVGTransform;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+interface SVGTransformList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGTransform): SVGTransform;
+    clear(): void;
+    consolidate(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    getItem(index: number): SVGTransform;
+    initialize(newItem: SVGTransform): SVGTransform;
+    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
+    removeItem(index: number): SVGTransform;
+    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
+}
+
+declare var SVGTransformList: {
+    prototype: SVGTransformList;
+    new(): SVGTransformList;
+}
+
+interface SVGUnitTypes {
+    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
+    readonly SVG_UNIT_TYPE_UNKNOWN: number;
+    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
+}
+declare var SVGUnitTypes: SVGUnitTypes;
+
+interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly animatedInstanceRoot: SVGElementInstance;
+    readonly height: SVGAnimatedLength;
+    readonly instanceRoot: SVGElementInstance;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGUseElement: {
+    prototype: SVGUseElement;
+    new(): SVGUseElement;
+}
+
+interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    readonly viewTarget: SVGStringList;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGViewElement: {
+    prototype: SVGViewElement;
+    new(): SVGViewElement;
+}
+
+interface SVGZoomAndPan {
+    readonly zoomAndPan: number;
+}
+
+declare var SVGZoomAndPan: {
+    readonly SVG_ZOOMANDPAN_DISABLE: number;
+    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
+    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
+}
+
+interface SVGZoomEvent extends UIEvent {
+    readonly newScale: number;
+    readonly newTranslate: SVGPoint;
+    readonly previousScale: number;
+    readonly previousTranslate: SVGPoint;
+    readonly zoomRectScreen: SVGRect;
+}
+
+declare var SVGZoomEvent: {
+    prototype: SVGZoomEvent;
+    new(): SVGZoomEvent;
+}
+
+interface ScreenEventMap {
+    "MSOrientationChange": Event;
+}
+
+interface Screen extends EventTarget {
+    readonly availHeight: number;
+    readonly availWidth: number;
+    bufferDepth: number;
+    readonly colorDepth: number;
+    readonly deviceXDPI: number;
+    readonly deviceYDPI: number;
+    readonly fontSmoothingEnabled: boolean;
+    readonly height: number;
+    readonly logicalXDPI: number;
+    readonly logicalYDPI: number;
+    readonly msOrientation: string;
+    onmsorientationchange: (this: Screen, ev: Event) => any;
+    readonly pixelDepth: number;
+    readonly systemXDPI: number;
+    readonly systemYDPI: number;
+    readonly width: number;
+    msLockOrientation(orientations: string | string[]): boolean;
+    msUnlockOrientation(): void;
+    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Screen: {
+    prototype: Screen;
+    new(): Screen;
+}
+
+interface ScriptNotifyEvent extends Event {
+    readonly callingUri: string;
+    readonly value: string;
+}
+
+declare var ScriptNotifyEvent: {
+    prototype: ScriptNotifyEvent;
+    new(): ScriptNotifyEvent;
+}
+
+interface ScriptProcessorNodeEventMap {
+    "audioprocess": AudioProcessingEvent;
+}
+
+interface ScriptProcessorNode extends AudioNode {
+    readonly bufferSize: number;
+    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
+    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ScriptProcessorNode: {
+    prototype: ScriptProcessorNode;
+    new(): ScriptProcessorNode;
+}
+
+interface Selection {
+    readonly anchorNode: Node;
+    readonly anchorOffset: number;
+    readonly focusNode: Node;
+    readonly focusOffset: number;
+    readonly isCollapsed: boolean;
+    readonly rangeCount: number;
+    readonly type: string;
+    addRange(range: Range): void;
+    collapse(parentNode: Node, offset: number): void;
+    collapseToEnd(): void;
+    collapseToStart(): void;
+    containsNode(node: Node, partlyContained: boolean): boolean;
+    deleteFromDocument(): void;
+    empty(): void;
+    extend(newNode: Node, offset: number): void;
+    getRangeAt(index: number): Range;
+    removeAllRanges(): void;
+    removeRange(range: Range): void;
+    selectAllChildren(parentNode: Node): void;
+    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
+    toString(): string;
+}
+
+declare var Selection: {
+    prototype: Selection;
+    new(): Selection;
+}
+
+interface SourceBuffer extends EventTarget {
+    appendWindowEnd: number;
+    appendWindowStart: number;
+    readonly audioTracks: AudioTrackList;
+    readonly buffered: TimeRanges;
+    mode: string;
+    timestampOffset: number;
+    readonly updating: boolean;
+    readonly videoTracks: VideoTrackList;
+    abort(): void;
+    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
+    appendStream(stream: MSStream, maxSize?: number): void;
+    remove(start: number, end: number): void;
+}
+
+declare var SourceBuffer: {
+    prototype: SourceBuffer;
+    new(): SourceBuffer;
+}
+
+interface SourceBufferList extends EventTarget {
+    readonly length: number;
+    item(index: number): SourceBuffer;
+    [index: number]: SourceBuffer;
+}
+
+declare var SourceBufferList: {
+    prototype: SourceBufferList;
+    new(): SourceBufferList;
+}
+
+interface StereoPannerNode extends AudioNode {
+    readonly pan: AudioParam;
+}
+
+declare var StereoPannerNode: {
+    prototype: StereoPannerNode;
+    new(): StereoPannerNode;
+}
+
+interface Storage {
+    readonly length: number;
+    clear(): void;
+    getItem(key: string): string | null;
+    key(index: number): string | null;
+    removeItem(key: string): void;
+    setItem(key: string, data: string): void;
+    [key: string]: any;
+    [index: number]: string;
+}
+
+declare var Storage: {
+    prototype: Storage;
+    new(): Storage;
+}
+
+interface StorageEvent extends Event {
+    readonly url: string;
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    storageArea?: Storage;
+}
+
+declare var StorageEvent: {
+    prototype: StorageEvent;
+    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
+}
+
+interface StyleMedia {
+    readonly type: string;
+    matchMedium(mediaquery: string): boolean;
+}
+
+declare var StyleMedia: {
+    prototype: StyleMedia;
+    new(): StyleMedia;
+}
+
+interface StyleSheet {
+    disabled: boolean;
+    readonly href: string;
+    readonly media: MediaList;
+    readonly ownerNode: Node;
+    readonly parentStyleSheet: StyleSheet;
+    readonly title: string;
+    readonly type: string;
+}
+
+declare var StyleSheet: {
+    prototype: StyleSheet;
+    new(): StyleSheet;
+}
+
+interface StyleSheetList {
+    readonly length: number;
+    item(index?: number): StyleSheet;
+    [index: number]: StyleSheet;
+}
+
+declare var StyleSheetList: {
+    prototype: StyleSheetList;
+    new(): StyleSheetList;
+}
+
+interface StyleSheetPageList {
+    readonly length: number;
+    item(index: number): CSSPageRule;
+    [index: number]: CSSPageRule;
+}
+
+declare var StyleSheetPageList: {
+    prototype: StyleSheetPageList;
+    new(): StyleSheetPageList;
+}
+
+interface SubtleCrypto {
+    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
+    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
+    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
+    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
+    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
+    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
+    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
+    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
+    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
+    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
+    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
+    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
+}
+
+declare var SubtleCrypto: {
+    prototype: SubtleCrypto;
+    new(): SubtleCrypto;
+}
+
+interface Text extends CharacterData {
+    readonly wholeText: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    splitText(offset: number): Text;
+}
+
+declare var Text: {
+    prototype: Text;
+    new(): Text;
+}
+
+interface TextEvent extends UIEvent {
+    readonly data: string;
+    readonly inputMethod: number;
+    readonly locale: string;
+    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+declare var TextEvent: {
+    prototype: TextEvent;
+    new(): TextEvent;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+interface TextMetrics {
+    readonly width: number;
+}
+
+declare var TextMetrics: {
+    prototype: TextMetrics;
+    new(): TextMetrics;
+}
+
+interface TextTrackEventMap {
+    "cuechange": Event;
+    "error": ErrorEvent;
+    "load": Event;
+}
+
+interface TextTrack extends EventTarget {
+    readonly activeCues: TextTrackCueList;
+    readonly cues: TextTrackCueList;
+    readonly inBandMetadataTrackDispatchType: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly language: string;
+    mode: any;
+    oncuechange: (this: TextTrack, ev: Event) => any;
+    onerror: (this: TextTrack, ev: ErrorEvent) => any;
+    onload: (this: TextTrack, ev: Event) => any;
+    readonly readyState: number;
+    addCue(cue: TextTrackCue): void;
+    removeCue(cue: TextTrackCue): void;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrack: {
+    prototype: TextTrack;
+    new(): TextTrack;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+}
+
+interface TextTrackCueEventMap {
+    "enter": Event;
+    "exit": Event;
+}
+
+interface TextTrackCue extends EventTarget {
+    endTime: number;
+    id: string;
+    onenter: (this: TextTrackCue, ev: Event) => any;
+    onexit: (this: TextTrackCue, ev: Event) => any;
+    pauseOnExit: boolean;
+    startTime: number;
+    text: string;
+    readonly track: TextTrack;
+    getCueAsHTML(): DocumentFragment;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrackCue: {
+    prototype: TextTrackCue;
+    new(startTime: number, endTime: number, text: string): TextTrackCue;
+}
+
+interface TextTrackCueList {
+    readonly length: number;
+    getCueById(id: string): TextTrackCue;
+    item(index: number): TextTrackCue;
+    [index: number]: TextTrackCue;
+}
+
+declare var TextTrackCueList: {
+    prototype: TextTrackCueList;
+    new(): TextTrackCueList;
+}
+
+interface TextTrackListEventMap {
+    "addtrack": TrackEvent;
+}
+
+interface TextTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
+    item(index: number): TextTrack;
+    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: TextTrack;
+}
+
+declare var TextTrackList: {
+    prototype: TextTrackList;
+    new(): TextTrackList;
+}
+
+interface TimeRanges {
+    readonly length: number;
+    end(index: number): number;
+    start(index: number): number;
+}
+
+declare var TimeRanges: {
+    prototype: TimeRanges;
+    new(): TimeRanges;
+}
+
+interface Touch {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly identifier: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly target: EventTarget;
+}
+
+declare var Touch: {
+    prototype: Touch;
+    new(): Touch;
+}
+
+interface TouchEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly changedTouches: TouchList;
+    readonly ctrlKey: boolean;
+    readonly metaKey: boolean;
+    readonly shiftKey: boolean;
+    readonly targetTouches: TouchList;
+    readonly touches: TouchList;
+}
+
+declare var TouchEvent: {
+    prototype: TouchEvent;
+    new(): TouchEvent;
+}
+
+interface TouchList {
+    readonly length: number;
+    item(index: number): Touch | null;
+    [index: number]: Touch;
+}
+
+declare var TouchList: {
+    prototype: TouchList;
+    new(): TouchList;
+}
+
+interface TrackEvent extends Event {
+    readonly track: any;
+}
+
+declare var TrackEvent: {
+    prototype: TrackEvent;
+    new(): TrackEvent;
+}
+
+interface TransitionEvent extends Event {
+    readonly elapsedTime: number;
+    readonly propertyName: string;
+    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var TransitionEvent: {
+    prototype: TransitionEvent;
+    new(): TransitionEvent;
+}
+
+interface TreeWalker {
+    currentNode: Node;
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    firstChild(): Node;
+    lastChild(): Node;
+    nextNode(): Node;
+    nextSibling(): Node;
+    parentNode(): Node;
+    previousNode(): Node;
+    previousSibling(): Node;
+}
+
+declare var TreeWalker: {
+    prototype: TreeWalker;
+    new(): TreeWalker;
+}
+
+interface UIEvent extends Event {
+    readonly detail: number;
+    readonly view: Window;
+    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
+}
+
+declare var UIEvent: {
+    prototype: UIEvent;
+    new(type: string, eventInitDict?: UIEventInit): UIEvent;
+}
+
+interface URL {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    password: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    username: string;
+    toString(): string;
+}
+
+declare var URL: {
+    prototype: URL;
+    new(url: string, base?: string): URL;
+    createObjectURL(object: any, options?: ObjectURLOptions): string;
+    revokeObjectURL(url: string): void;
+}
+
+interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
+    readonly mediaType: string;
+}
+
+declare var UnviewableContentIdentifiedEvent: {
+    prototype: UnviewableContentIdentifiedEvent;
+    new(): UnviewableContentIdentifiedEvent;
+}
+
+interface ValidityState {
+    readonly badInput: boolean;
+    readonly customError: boolean;
+    readonly patternMismatch: boolean;
+    readonly rangeOverflow: boolean;
+    readonly rangeUnderflow: boolean;
+    readonly stepMismatch: boolean;
+    readonly tooLong: boolean;
+    readonly typeMismatch: boolean;
+    readonly valid: boolean;
+    readonly valueMissing: boolean;
+}
+
+declare var ValidityState: {
+    prototype: ValidityState;
+    new(): ValidityState;
+}
+
+interface VideoPlaybackQuality {
+    readonly corruptedVideoFrames: number;
+    readonly creationTime: number;
+    readonly droppedVideoFrames: number;
+    readonly totalFrameDelay: number;
+    readonly totalVideoFrames: number;
+}
+
+declare var VideoPlaybackQuality: {
+    prototype: VideoPlaybackQuality;
+    new(): VideoPlaybackQuality;
+}
+
+interface VideoTrack {
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    selected: boolean;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var VideoTrack: {
+    prototype: VideoTrack;
+    new(): VideoTrack;
+}
+
+interface VideoTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface VideoTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    onchange: (this: VideoTrackList, ev: Event) => any;
+    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    readonly selectedIndex: number;
+    getTrackById(id: string): VideoTrack | null;
+    item(index: number): VideoTrack;
+    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: VideoTrack;
+}
+
+declare var VideoTrackList: {
+    prototype: VideoTrackList;
+    new(): VideoTrackList;
+}
+
+interface WEBGL_compressed_texture_s3tc {
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+declare var WEBGL_compressed_texture_s3tc: {
+    prototype: WEBGL_compressed_texture_s3tc;
+    new(): WEBGL_compressed_texture_s3tc;
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+interface WEBGL_debug_renderer_info {
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+declare var WEBGL_debug_renderer_info: {
+    prototype: WEBGL_debug_renderer_info;
+    new(): WEBGL_debug_renderer_info;
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+interface WEBGL_depth_texture {
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+declare var WEBGL_depth_texture: {
+    prototype: WEBGL_depth_texture;
+    new(): WEBGL_depth_texture;
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+interface WaveShaperNode extends AudioNode {
+    curve: Float32Array | null;
+    oversample: string;
+}
+
+declare var WaveShaperNode: {
+    prototype: WaveShaperNode;
+    new(): WaveShaperNode;
+}
+
+interface WebGLActiveInfo {
+    readonly name: string;
+    readonly size: number;
+    readonly type: number;
+}
+
+declare var WebGLActiveInfo: {
+    prototype: WebGLActiveInfo;
+    new(): WebGLActiveInfo;
+}
+
+interface WebGLBuffer extends WebGLObject {
+}
+
+declare var WebGLBuffer: {
+    prototype: WebGLBuffer;
+    new(): WebGLBuffer;
+}
+
+interface WebGLContextEvent extends Event {
+    readonly statusMessage: string;
+}
+
+declare var WebGLContextEvent: {
+    prototype: WebGLContextEvent;
+    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
+}
+
+interface WebGLFramebuffer extends WebGLObject {
+}
+
+declare var WebGLFramebuffer: {
+    prototype: WebGLFramebuffer;
+    new(): WebGLFramebuffer;
+}
+
+interface WebGLObject {
+}
+
+declare var WebGLObject: {
+    prototype: WebGLObject;
+    new(): WebGLObject;
+}
+
+interface WebGLProgram extends WebGLObject {
+}
+
+declare var WebGLProgram: {
+    prototype: WebGLProgram;
+    new(): WebGLProgram;
+}
+
+interface WebGLRenderbuffer extends WebGLObject {
+}
+
+declare var WebGLRenderbuffer: {
+    prototype: WebGLRenderbuffer;
+    new(): WebGLRenderbuffer;
+}
+
+interface WebGLRenderingContext {
+    readonly canvas: HTMLCanvasElement;
+    readonly drawingBufferHeight: number;
+    readonly drawingBufferWidth: number;
+    activeTexture(texture: number): void;
+    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
+    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
+    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
+    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
+    bindTexture(target: number, texture: WebGLTexture | null): void;
+    blendColor(red: number, green: number, blue: number, alpha: number): void;
+    blendEquation(mode: number): void;
+    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
+    blendFunc(sfactor: number, dfactor: number): void;
+    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
+    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
+    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
+    checkFramebufferStatus(target: number): number;
+    clear(mask: number): void;
+    clearColor(red: number, green: number, blue: number, alpha: number): void;
+    clearDepth(depth: number): void;
+    clearStencil(s: number): void;
+    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
+    compileShader(shader: WebGLShader | null): void;
+    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
+    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
+    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
+    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
+    createBuffer(): WebGLBuffer | null;
+    createFramebuffer(): WebGLFramebuffer | null;
+    createProgram(): WebGLProgram | null;
+    createRenderbuffer(): WebGLRenderbuffer | null;
+    createShader(type: number): WebGLShader | null;
+    createTexture(): WebGLTexture | null;
+    cullFace(mode: number): void;
+    deleteBuffer(buffer: WebGLBuffer | null): void;
+    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
+    deleteProgram(program: WebGLProgram | null): void;
+    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
+    deleteShader(shader: WebGLShader | null): void;
+    deleteTexture(texture: WebGLTexture | null): void;
+    depthFunc(func: number): void;
+    depthMask(flag: boolean): void;
+    depthRange(zNear: number, zFar: number): void;
+    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    disable(cap: number): void;
+    disableVertexAttribArray(index: number): void;
+    drawArrays(mode: number, first: number, count: number): void;
+    drawElements(mode: number, count: number, type: number, offset: number): 
void;
+    enable(cap: number): void;
+    enableVertexAttribArray(index: number): void;
+    finish(): void;
+    flush(): void;
+    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
+    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
+    frontFace(mode: number): void;
+    generateMipmap(target: number): void;
+    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
+    getAttribLocation(program: WebGLProgram | null, name: string): number;
+    getBufferParameter(target: number, pname: number): any;
+    getContextAttributes(): WebGLContextAttributes;
+    getError(): number;
+    getExtension(name: string): any;
+    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
+    getParameter(pname: number): any;
+    getProgramInfoLog(program: WebGLProgram | null): string | null;
+    getProgramParameter(program: WebGLProgram | null, pname: number): any;
+    getRenderbufferParameter(target: number, pname: number): any;
+    getShaderInfoLog(shader: WebGLShader | null): string | null;
+    getShaderParameter(shader: WebGLShader | null, pname: number): any;
+    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
+    getShaderSource(shader: WebGLShader | null): string | null;
+    getSupportedExtensions(): string[] | null;
+    getTexParameter(target: number, pname: number): any;
+    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
+    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
+    getVertexAttrib(index: number, pname: number): any;
+    getVertexAttribOffset(index: number, pname: number): number;
+    hint(target: number, mode: number): void;
+    isBuffer(buffer: WebGLBuffer | null): boolean;
+    isContextLost(): boolean;
+    isEnabled(cap: number): boolean;
+    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
+    isProgram(program: WebGLProgram | null): boolean;
+    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
+    isShader(shader: WebGLShader | null): boolean;
+    isTexture(texture: WebGLTexture | null): boolean;
+    lineWidth(width: number): void;
+    linkProgram(program: WebGLProgram | null): void;
+    pixelStorei(pname: number, param: number): void;
+    polygonOffset(factor: number, units: number): void;
+    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
+    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
+    sampleCoverage(value: number, invert: boolean): void;
+    scissor(x: number, y: number, width: number, height: number): void;
+    shaderSource(shader: WebGLShader | null, source: string): void;
+    stencilFunc(func: number, ref: number, mask: number): void;
+    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
+    stencilMask(mask: number): void;
+    stencilMaskSeparate(face: number, mask: number): void;
+    stencilOp(fail: number, zfail: number, zpass: number): void;
+    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
+    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
+    texParameterf(target: number, pname: number, param: number): void;
+    texParameteri(target: number, pname: number, param: number): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
+    uniform1f(location: WebGLUniformLocation | null, x: number): void;
+    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform1i(location: WebGLUniformLocation | null, x: number): void;
+    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    useProgram(program: WebGLProgram | null): void;
+    validateProgram(program: WebGLProgram | null): void;
+    vertexAttrib1f(indx: number, x: number): void;
+    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib2f(indx: number, x: number, y: number): void;
+    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
+    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
+    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
+    viewport(x: number, y: number, width: number, height: number): void;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+declare var WebGLRenderingContext: {
+    prototype: WebGLRenderingContext;
+    new(): WebGLRenderingContext;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+interface WebGLShader extends WebGLObject {
+}
+
+declare var WebGLShader: {
+    prototype: WebGLShader;
+    new(): WebGLShader;
+}
+
+interface WebGLShaderPrecisionFormat {
+    readonly precision: number;
+    readonly rangeMax: number;
+    readonly rangeMin: number;
+}
+
+declare var WebGLShaderPrecisionFormat: {
+    prototype: WebGLShaderPrecisionFormat;
+    new(): WebGLShaderPrecisionFormat;
+}
+
+interface WebGLTexture extends WebGLObject {
+}
+
+declare var WebGLTexture: {
+    prototype: WebGLTexture;
+    new(): WebGLTexture;
+}
+
+interface WebGLUniformLocation {
+}
+
+declare var WebGLUniformLocation: {
+    prototype: WebGLUniformLocation;
+    new(): WebGLUniformLocation;
+}
+
+interface WebKitCSSMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    m11: number;
+    m12: number;
+    m13: number;
+    m14: number;
+    m21: number;
+    m22: number;
+    m23: number;
+    m24: number;
+    m31: number;
+    m32: number;
+    m33: number;
+    m34: number;
+    m41: number;
+    m42: number;
+    m43: number;
+    m44: number;
+    inverse(): WebKitCSSMatrix;
+    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
+    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
+    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
+    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
+    setMatrixValue(value: string): void;
+    skewX(angle: number): WebKitCSSMatrix;
+    skewY(angle: number): WebKitCSSMatrix;
+    toString(): string;
+    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
+}
+
+declare var WebKitCSSMatrix: {
+    prototype: WebKitCSSMatrix;
+    new(text?: string): WebKitCSSMatrix;
+}
+
+interface WebKitPoint {
+    x: number;
+    y: number;
+}
+
+declare var WebKitPoint: {
+    prototype: WebKitPoint;
+    new(x?: number, y?: number): WebKitPoint;
+}
+
+interface WebSocketEventMap {
+    "close": CloseEvent;
+    "error": ErrorEvent;
+    "message": MessageEvent;
+    "open": Event;
+}
+
+interface WebSocket extends EventTarget {
+    binaryType: string;
+    readonly bufferedAmount: number;
+    readonly extensions: string;
+    onclose: (this: WebSocket, ev: CloseEvent) => any;
+    onerror: (this: WebSocket, ev: ErrorEvent) => any;
+    onmessage: (this: WebSocket, ev: MessageEvent) => any;
+    onopen: (this: WebSocket, ev: Event) => any;
+    readonly protocol: string;
+    readonly readyState: number;
+    readonly url: string;
+    close(code?: number, reason?: string): void;
+    send(data: any): void;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var WebSocket: {
+    prototype: WebSocket;
+    new(url: string, protocols?: string | string[]): WebSocket;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+}
+
+interface WheelEvent extends MouseEvent {
+    readonly deltaMode: number;
+    readonly deltaX: number;
+    readonly deltaY: number;
+    readonly deltaZ: number;
+    readonly wheelDelta: number;
+    readonly wheelDeltaX: number;
+    readonly wheelDeltaY: number;
+    getCurrentPoint(element: Element): void;
+    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+declare var WheelEvent: {
+    prototype: WheelEvent;
+    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+interface WindowEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "compassneedscalibration": Event;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "devicelight": DeviceLightEvent;
+    "devicemotion": DeviceMotionEvent;
+    "deviceorientation": DeviceOrientationEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "message": MessageEvent;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "popstate": PopStateEvent;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "stalled": Event;
+    "storage": StorageEvent;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "unload": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
+    readonly applicationCache: ApplicationCache;
+    readonly clientInformation: Navigator;
+    readonly closed: boolean;
+    readonly crypto: Crypto;
+    defaultStatus: string;
+    readonly devicePixelRatio: number;
+    readonly doNotTrack: string;
+    readonly document: Document;
+    event: Event | undefined;
+    readonly external: External;
+    readonly frameElement: Element;
+    readonly frames: Window;
+    readonly history: History;
+    readonly innerHeight: number;
+    readonly innerWidth: number;
+    readonly length: number;
+    readonly location: Location;
+    readonly locationbar: BarProp;
+    readonly menubar: BarProp;
+    readonly msCredentials: MSCredentials;
+    name: string;
+    readonly navigator: Navigator;
+    offscreenBuffering: string | boolean;
+    onabort: (this: Window, ev: UIEvent) => any;
+    onafterprint: (this: Window, ev: Event) => any;
+    onbeforeprint: (this: Window, ev: Event) => any;
+    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+    onblur: (this: Window, ev: FocusEvent) => any;
+    oncanplay: (this: Window, ev: Event) => any;
+    oncanplaythrough: (this: Window, ev: Event) => any;
+    onchange: (this: Window, ev: Event) => any;
+    onclick: (this: Window, ev: MouseEvent) => any;
+    oncompassneedscalibration: (this: Window, ev: Event) => any;
+    oncontextmenu: (this: Window, ev: PointerEvent) => any;
+    ondblclick: (this: Window, ev: MouseEvent) => any;
+    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
+    ondrag: (this: Window, ev: DragEvent) => any;
+    ondragend: (this: Window, ev: DragEvent) => any;
+    ondragenter: (this: Window, ev: DragEvent) => any;
+    ondragleave: (this: Window, ev: DragEvent) => any;
+    ondragover: (this: Window, ev: DragEvent) => any;
+    ondragstart: (this: Window, ev: DragEvent) => any;
+    ondrop: (this: Window, ev: DragEvent) => any;
+    ondurationchange: (this: Window, ev: Event) => any;
+    onemptied: (this: Window, ev: Event) => any;
+    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+    onerror: ErrorEventHandler;
+    onfocus: (this: Window, ev: FocusEvent) => any;
+    onhashchange: (this: Window, ev: HashChangeEvent) => any;
+    oninput: (this: Window, ev: Event) => any;
+    oninvalid: (this: Window, ev: Event) => any;
+    onkeydown: (this: Window, ev: KeyboardEvent) => any;
+    onkeypress: (this: Window, ev: KeyboardEvent) => any;
+    onkeyup: (this: Window, ev: KeyboardEvent) => any;
+    onload: (this: Window, ev: Event) => any;
+    onloadeddata: (this: Window, ev: Event) => any;
+    onloadedmetadata: (this: Window, ev: Event) => any;
+    onloadstart: (this: Window, ev: Event) => any;
+    onmessage: (this: Window, ev: MessageEvent) => any;
+    onmousedown: (this: Window, ev: MouseEvent) => any;
+    onmouseenter: (this: Window, ev: MouseEvent) => any;
+    onmouseleave: (this: Window, ev: MouseEvent) => any;
+    onmousemove: (this: Window, ev: MouseEvent) => any;
+    onmouseout: (this: Window, ev: MouseEvent) => any;
+    onmouseover: (this: Window, ev: MouseEvent) => any;
+    onmouseup: (this: Window, ev: MouseEvent) => any;
+    onmousewheel: (this: Window, ev: WheelEvent) => any;
+    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+    onoffline: (this: Window, ev: Event) => any;
+    ononline: (this: Window, ev: Event) => any;
+    onorientationchange: (this: Window, ev: Event) => any;
+    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+    onpause: (this: Window, ev: Event) => any;
+    onplay: (this: Window, ev: Event) => any;
+    onplaying: (this: Window, ev: Event) => any;
+    onpopstate: (this: Window, ev: PopStateEvent) => any;
+    onprogress: (this: Window, ev: ProgressEvent) => any;
+    onratechange: (this: Window, ev: Event) => any;
+    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+    onreset: (this: Window, ev: Event) => any;
+    onresize: (this: Window, ev: UIEvent) => any;
+    onscroll: (this: Window, ev: UIEvent) => any;
+    onseeked: (this: Window, ev: Event) => any;
+    onseeking: (this: Window, ev: Event) => any;
+    onselect: (this: Window, ev: UIEvent) => any;
+    onstalled: (this: Window, ev: Event) => any;
+    onstorage: (this: Window, ev: StorageEvent) => any;
+    onsubmit: (this: Window, ev: Event) => any;
+    onsuspend: (this: Window, ev: Event) => any;
+    ontimeupdate: (this: Window, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onunload: (this: Window, ev: Event) => any;
+    onvolumechange: (this: Window, ev: Event) => any;
+    onwaiting: (this: Window, ev: Event) => any;
+    opener: any;
+    orientation: string | number;
+    readonly outerHeight: number;
+    readonly outerWidth: number;
+    readonly pageXOffset: number;
+    readonly pageYOffset: number;
+    readonly parent: Window;
+    readonly performance: Performance;
+    readonly personalbar: BarProp;
+    readonly screen: Screen;
+    readonly screenLeft: number;
+    readonly screenTop: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly scrollX: number;
+    readonly scrollY: number;
+    readonly scrollbars: BarProp;
+    readonly self: Window;
+    status: string;
+    readonly statusbar: BarProp;
+    readonly styleMedia: StyleMedia;
+    readonly toolbar: BarProp;
+    readonly top: Window;
+    readonly window: Window;
+    URL: typeof URL;
+    Blob: typeof Blob;
+    alert(message?: any): void;
+    blur(): void;
+    cancelAnimationFrame(handle: number): void;
+    captureEvents(): void;
+    close(): void;
+    confirm(message?: string): boolean;
+    focus(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
+    getSelection(): Selection;
+    matchMedia(mediaQuery: string): MediaQueryList;
+    moveBy(x?: number, y?: number): void;
+    moveTo(x?: number, y?: number): void;
+    msWriteProfilerMark(profilerMarkName: string): void;
+    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
+    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
+    print(): void;
+    prompt(message?: string, _default?: string): string | null;
+    releaseEvents(): void;
+    requestAnimationFrame(callback: FrameRequestCallback): number;
+    resizeBy(x?: number, y?: number): void;
+    resizeTo(x?: number, y?: number): void;
+    scroll(x?: number, y?: number): void;
+    scrollBy(x?: number, y?: number): void;
+    scrollTo(x?: number, y?: number): void;
+    webkitCancelAnimationFrame(handle: number): void;
+    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
+    scroll(options?: ScrollToOptions): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollBy(options?: ScrollToOptions): void;
+    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Window: {
+    prototype: Window;
+    new(): Window;
+}
+
+interface WorkerEventMap extends AbstractWorkerEventMap {
+    "message": MessageEvent;
+}
+
+interface Worker extends EventTarget, AbstractWorker {
+    onmessage: (this: Worker, ev: MessageEvent) => any;
+    postMessage(message: any, ports?: any): void;
+    terminate(): void;
+    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Worker: {
+    prototype: Worker;
+    new(stringUrl: string): Worker;
+}
+
+interface XMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLDocument: {
+    prototype: XMLDocument;
+    new(): XMLDocument;
+}
+
+interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
+    "readystatechange": Event;
+}
+
+interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
+    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
+    readonly readyState: number;
+    readonly response: any;
+    readonly responseText: string;
+    responseType: string;
+    readonly responseXML: any;
+    readonly status: number;
+    readonly statusText: string;
+    timeout: number;
+    readonly upload: XMLHttpRequestUpload;
+    withCredentials: boolean;
+    msCaching?: string;
+    readonly responseURL: string;
+    abort(): void;
+    getAllResponseHeaders(): string;
+    getResponseHeader(header: string): string | null;
+    msCachingEnabled(): boolean;
+    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
+    overrideMimeType(mime: string): void;
+    send(data?: Document): void;
+    send(data?: string): void;
+    send(data?: any): void;
+    setRequestHeader(header: string, value: string): void;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequest: {
+    prototype: XMLHttpRequest;
+    new(): XMLHttpRequest;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    create(): XMLHttpRequest;
+}
+
+interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequestUpload: {
+    prototype: XMLHttpRequestUpload;
+    new(): XMLHttpRequestUpload;
+}
+
+interface XMLSerializer {
+    serializeToString(target: Node): string;
+}
+
+declare var XMLSerializer: {
+    prototype: XMLSerializer;
+    new(): XMLSerializer;
+}
+
+interface XPathEvaluator {
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver?: Node): XPathNSResolver;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+}
+
+declare var XPathEvaluator: {
+    prototype: XPathEvaluator;
+    new(): XPathEvaluator;
+}
+
+interface XPathExpression {
+    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
+}
+
+declare var XPathExpression: {
+    prototype: XPathExpression;
+    new(): XPathExpression;
+}
+
+interface XPathNSResolver {
+    lookupNamespaceURI(prefix: string): string;
+}
+
+declare var XPathNSResolver: {
+    prototype: XPathNSResolver;
+    new(): XPathNSResolver;
+}
+
+interface XPathResult {
+    readonly booleanValue: boolean;
+    readonly invalidIteratorState: boolean;
+    readonly numberValue: number;
+    readonly resultType: number;
+    readonly singleNodeValue: Node;
+    readonly snapshotLength: number;
+    readonly stringValue: string;
+    iterateNext(): Node;
+    snapshotItem(index: number): Node;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+declare var XPathResult: {
+    prototype: XPathResult;
+    new(): XPathResult;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+interface XSLTProcessor {
+    clearParameters(): void;
+    getParameter(namespaceURI: string, localName: string): any;
+    importStylesheet(style: Node): void;
+    removeParameter(namespaceURI: string, localName: string): void;
+    reset(): void;
+    setParameter(namespaceURI: string, localName: string, value: any): void;
+    transformToDocument(source: Node): Document;
+    transformToFragment(source: Node, document: Document): DocumentFragment;
+}
+
+declare var XSLTProcessor: {
+    prototype: XSLTProcessor;
+    new(): XSLTProcessor;
+}
+
+interface AbstractWorkerEventMap {
+    "error": ErrorEvent;
+}
+
+interface AbstractWorker {
+    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
+    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface CanvasPathMethods {
+    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
+    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
+    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
+    closePath(): void;
+    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+    lineTo(x: number, y: number): void;
+    moveTo(x: number, y: number): void;
+    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+    rect(x: number, y: number, w: number, h: number): void;
+}
+
+interface ChildNode {
+    remove(): void;
+}
+
+interface DOML2DeprecatedColorProperty {
+    color: string;
+}
+
+interface DOML2DeprecatedSizeProperty {
+    size: number;
+}
+
+interface DocumentEvent {
+    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
+    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
+    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
+    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
+    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
+    createEvent(eventInterface:"CloseEvent"): CloseEvent;
+    createEvent(eventInterface:"CommandEvent"): CommandEvent;
+    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
+    createEvent(eventInterface:"CustomEvent"): CustomEvent;
+    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
+    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:"GamepadEvent"): GamepadEvent;
+    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
+    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
+    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
+    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
+    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
+    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
+    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
+    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
+    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
+    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
+    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
+    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
+    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
+    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
+    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
+    createEvent(eventInterface:"MessageEvent"): MessageEvent;
+    createEvent(eventInterface:"MouseEvent"): MouseEvent;
+    createEvent(eventInterface:"MouseEvents"): MouseEvent;
+    createEvent(eventInterface:"MutationEvent"): MutationEvent;
+    createEvent(eventInterface:"MutationEvents"): MutationEvent;
+    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
+    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
+    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
+    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
+    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
+    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
+    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
+    createEvent(eventInterface:"PointerEvent"): PointerEvent;
+    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
+    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
+    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
+    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
+    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
+    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
+    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
+    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
+    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
+    createEvent(eventInterface:"StorageEvent"): StorageEvent;
+    createEvent(eventInterface:"TextEvent"): TextEvent;
+    createEvent(eventInterface:"TouchEvent"): TouchEvent;
+    createEvent(eventInterface:"TrackEvent"): TrackEvent;
+    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
+    createEvent(eventInterface:"UIEvent"): UIEvent;
+    createEvent(eventInterface:"UIEvents"): UIEvent;
+    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
+    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
+    createEvent(eventInterface:"WheelEvent"): WheelEvent;
+    createEvent(eventInterface: string): Event;
+}
+
+interface ElementTraversal {
+    readonly childElementCount: number;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly nextElementSibling: Element;
+    readonly previousElementSibling: Element;
+}
+
+interface GetSVGDocument {
+    getSVGDocument(): Document;
+}
+
+interface GlobalEventHandlersEventMap {
+    "pointercancel": PointerEvent;
+    "pointerdown": PointerEvent;
+    "pointerenter": PointerEvent;
+    "pointerleave": PointerEvent;
+    "pointermove": PointerEvent;
+    "pointerout": PointerEvent;
+    "pointerover": PointerEvent;
+    "pointerup": PointerEvent;
+    "wheel": WheelEvent;
+}
+
+interface GlobalEventHandlers {
+    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
+    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
+      */
+    ch: string;
+    /**
+      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
+      */
+    chOff: string;
+    /**
+      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
+      */
+    vAlign: string;
+}
+
+interface IDBEnvironment {
+    readonly indexedDB: IDBFactory;
+}
+
+interface LinkStyle {
+    readonly sheet: StyleSheet;
+}
+
+interface MSBaseReaderEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+}
+
+interface MSBaseReader {
+    onabort: (this: MSBaseReader, ev: Event) => any;
+    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
+    onload: (this: MSBaseReader, ev: Event) => any;
+    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
+    onloadstart: (this: MSBaseReader, ev: Event) => any;
+    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    abort(): void;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface MSFileSaver {
+    msSaveBlob(blob: any, defaultName?: string): boolean;
+    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
+}
+
+interface MSNavigatorDoNotTrack {
+    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
+    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
+    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
+    removeWebWideTrackingException(args: ExceptionInformation): void;
+    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
+    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
+}
+
+interface NavigatorContentUtils {
+}
+
+interface NavigatorGeolocation {
+    readonly geolocation: Geolocation;
+}
+
+interface NavigatorID {
+    readonly appName: string;
+    readonly appVersion: string;
+    readonly platform: string;
+    readonly product: string;
+    readonly productSub: string;
+    readonly userAgent: string;
+    readonly vendor: string;
+    readonly vendorSub: string;
+}
+
+interface NavigatorOnLine {
+    readonly onLine: boolean;
+}
+
+interface NavigatorStorageUtils {
+}
+
+interface NavigatorUserMedia {
+    readonly mediaDevices: MediaDevices;
+    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
+}
+
+interface NodeSelector {
+    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
+    querySelector(selectors: string): Element | null;
+    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
+    querySelectorAll(selectors: string): NodeListOf<Element>;
+}
+
+interface RandomSource {
+    getRandomValues(array: ArrayBufferView): ArrayBufferView;
+}
+
+interface SVGAnimatedPathData {
+    readonly pathSegList: SVGPathSegList;
+}
+
+interface SVGAnimatedPoints {
+    readonly animatedPoints: SVGPointList;
+    readonly points: SVGPointList;
+}
+
+interface SVGExternalResourcesRequired {
+    readonly externalResourcesRequired: SVGAnimatedBoolean;
+}
+
+interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
+    readonly height: SVGAnimatedLength;
+    readonly result: SVGAnimatedString;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+}
+
+interface SVGFitToViewBox {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly viewBox: SVGAnimatedRect;
+}
+
+interface SVGLangSpace {
+    xmllang: string;
+    xmlspace: string;
+}
+
+interface SVGLocatable {
+    readonly farthestViewportElement: SVGElement;
+    readonly nearestViewportElement: SVGElement;
+    getBBox(): SVGRect;
+    getCTM(): SVGMatrix;
+    getScreenCTM(): SVGMatrix;
+    getTransformToElement(element: SVGElement): SVGMatrix;
+}
+
+interface SVGStylable {
+    className: any;
+    readonly style: CSSStyleDeclaration;
+}
+
+interface SVGTests {
+    readonly requiredExtensions: SVGStringList;
+    readonly requiredFeatures: SVGStringList;
+    readonly systemLanguage: SVGStringList;
+    hasExtension(extension: string): boolean;
+}
+
+interface SVGTransformable extends SVGLocatable {
+    readonly transform: SVGAnimatedTransformList;
+}
+
+interface SVGURIReference {
+    readonly href: SVGAnimatedString;
+}
+
+interface WindowBase64 {
+    atob(encodedString: string): string;
+    btoa(rawString: string): string;
+}
+
+interface WindowConsole {
+    readonly console: Console;
+}
+
+interface WindowLocalStorage {
+    readonly localStorage: Storage;
+}
+
+interface WindowSessionStorage {
+    readonly sessionStorage: Storage;
+}
+
+interface WindowTimers extends Object, WindowTimersExtension {
+    clearInterval(handle: number): void;
+    clearTimeout(handle: number): void;
+    setInterval(handler: (...args: any[]) => void, timeout: number): number;
+    setInterval(handler: any, timeout?: any, ...args: any[]): number;
+    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
+    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
+}
+
+interface WindowTimersExtension {
+    clearImmediate(handle: number): void;
+    setImmediate(handler: (...args: any[]) => void): number;
+    setImmediate(handler: any, ...args: any[]): number;
+}
+
+interface XMLHttpRequestEventTargetEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+    "timeout": ProgressEvent;
+}
+
+interface XMLHttpRequestEventTarget {
+    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
+    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface StorageEventInit extends EventInit {
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    url: string;
+    storageArea?: Storage;
+}
+
+interface Canvas2DContextAttributes {
+    alpha?: boolean;
+    willReadFrequently?: boolean;
+    storage?: boolean;
+    [attribute: string]: boolean | string | undefined;
+}
+
+interface NodeListOf<TNode extends Node> extends NodeList {
+    length: number;
+    item(index: number): TNode;
+    [index: number]: TNode;
+}
+
+interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
+    item(index: number): T;
+    namedItem(name: string): T;
+    [index: number]: T;
+}
+
+interface BlobPropertyBag {
+    type?: string;
+    endings?: string;
+}
+
+interface FilePropertyBag {
+    type?: string;
+    lastModified?: number;
+}
+
+interface EventListenerObject {
+    handleEvent(evt: Event): void;
+}
+
+interface MessageEventInit extends EventInit {
+    data?: any;
+    origin?: string;
+    lastEventId?: string;
+    channel?: string;
+    source?: any;
+    ports?: MessagePort[];
+}
+
+interface ProgressEventInit extends EventInit {
+    lengthComputable?: boolean;
+    loaded?: number;
+    total?: number;
+}
+
+interface ScrollOptions {
+    behavior?: ScrollBehavior;
+}
+
+interface ScrollToOptions extends ScrollOptions {
+    left?: number;
+    top?: number;
+}
+
+interface ScrollIntoViewOptions extends ScrollOptions {
+    block?: ScrollLogicalPosition;
+    inline?: ScrollLogicalPosition;
+}
+
+interface ClipboardEventInit extends EventInit {
+    data?: string;
+    dataType?: string;
+}
+
+interface IDBArrayKey extends Array<IDBValidKey> {
+}
+
+interface RsaKeyGenParams extends Algorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyGenParams extends RsaKeyGenParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaKeyAlgorithm extends KeyAlgorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaHashedImportParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaPssParams {
+    saltLength: number;
+}
+
+interface RsaOaepParams extends Algorithm {
+    label?: BufferSource;
+}
+
+interface EcdsaParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface EcKeyGenParams extends Algorithm {
+    namedCurve: string;
+}
+
+interface EcKeyAlgorithm extends KeyAlgorithm {
+    typedCurve: string;
+}
+
+interface EcKeyImportParams {
+    namedCurve: string;
+}
+
+interface EcdhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface AesCtrParams extends Algorithm {
+    counter: BufferSource;
+    length: number;
+}
+
+interface AesKeyAlgorithm extends KeyAlgorithm {
+    length: number;
+}
+
+interface AesKeyGenParams extends Algorithm {
+    length: number;
+}
+
+interface AesDerivedKeyParams extends Algorithm {
+    length: number;
+}
+
+interface AesCbcParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface AesCmacParams extends Algorithm {
+    length: number;
+}
+
+interface AesGcmParams extends Algorithm {
+    iv: BufferSource;
+    additionalData?: BufferSource;
+    tagLength?: number;
+}
+
+interface AesCfbParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface HmacImportParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface HmacKeyAlgorithm extends KeyAlgorithm {
+    hash: AlgorithmIdentifier;
+    length: number;
+}
+
+interface HmacKeyGenParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface DhKeyGenParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyAlgorithm extends KeyAlgorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface DhImportKeyParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface ConcatParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    algorithmId: Uint8Array;
+    partyUInfo: Uint8Array;
+    partyVInfo: Uint8Array;
+    publicInfo?: Uint8Array;
+    privateInfo?: Uint8Array;
+}
+
+interface HkdfCtrParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    label: BufferSource;
+    context: BufferSource;
+}
+
+interface Pbkdf2Params extends Algorithm {
+    salt: BufferSource;
+    iterations: number;
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaOtherPrimesInfo {
+    r: string;
+    d: string;
+    t: string;
+}
+
+interface JsonWebKey {
+    kty: string;
+    use?: string;
+    key_ops?: string[];
+    alg?: string;
+    kid?: string;
+    x5u?: string;
+    x5c?: string;
+    x5t?: string;
+    ext?: boolean;
+    crv?: string;
+    x?: string;
+    y?: string;
+    d?: string;
+    n?: string;
+    e?: string;
+    p?: string;
+    q?: string;
+    dp?: string;
+    dq?: string;
+    qi?: string;
+    oth?: RsaOtherPrimesInfo[];
+    k?: string;
+}
+
+interface ParentNode {
+    readonly children: HTMLCollection;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly childElementCount: number;
+}
+
+interface DocumentOrShadowRoot {
+    readonly activeElement: Element | null;
+    readonly stylesheets: StyleSheetList;
+    getSelection(): Selection | null;
+    elementFromPoint(x: number, y: number): Element | null;
+    elementsFromPoint(x: number, y: number): Element[];
+}
+
+interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
+    readonly host: Element;
+    innerHTML: string;
+}
+
+interface ShadowRootInit {
+    mode: 'open'|'closed';
+    delegatesFocus?: boolean;
+}
+
+interface HTMLSlotElement extends HTMLElement {
+    name: string;
+    assignedNodes(options?: AssignedNodesOptions): Node[];
+}
+
+interface AssignedNodesOptions {
+    flatten?: boolean;
+}
+
+declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
+
+interface ErrorEventHandler {
+    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
+}
+interface PositionCallback {
+    (position: Position): void;
+}
+interface PositionErrorCallback {
+    (error: PositionError): void;
+}
+interface MediaQueryListListener {
+    (mql: MediaQueryList): void;
+}
+interface MSLaunchUriCallback {
+    (): void;
+}
+interface FrameRequestCallback {
+    (time: number): void;
+}
+interface MSUnsafeFunctionCallback {
+    (): any;
+}
+interface MSExecAtPriorityFunctionCallback {
+    (...args: any[]): any;
+}
+interface MutationCallback {
+    (mutations: MutationRecord[], observer: MutationObserver): void;
+}
+interface DecodeSuccessCallback {
+    (decodedData: AudioBuffer): void;
+}
+interface DecodeErrorCallback {
+    (error: DOMException): void;
+}
+interface FunctionStringCallback {
+    (data: string): void;
+}
+interface NavigatorUserMediaSuccessCallback {
+    (stream: MediaStream): void;
+}
+interface NavigatorUserMediaErrorCallback {
+    (error: MediaStreamError): void;
+}
+interface ForEachCallback {
+    (keyId: any, status: string): void;
+}
+interface HTMLElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "audio": HTMLAudioElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "del": HTMLModElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "embed": HTMLEmbedElement;
+    "fieldset": HTMLFieldSetElement;
+    "font": HTMLFontElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "h1": HTMLHeadingElement;
+    "h2": HTMLHeadingElement;
+    "h3": HTMLHeadingElement;
+    "h4": HTMLHeadingElement;
+    "h5": HTMLHeadingElement;
+    "h6": HTMLHeadingElement;
+    "head": HTMLHeadElement;
+    "hr": HTMLHRElement;
+    "html": HTMLHtmlElement;
+    "iframe": HTMLIFrameElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "marquee": HTMLMarqueeElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "meter": HTMLMeterElement;
+    "nextid": HTMLUnknownElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "picture": HTMLPictureElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "script": HTMLScriptElement;
+    "select": HTMLSelectElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "style": HTMLStyleElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "ul": HTMLUListElement;
+    "video": HTMLVideoElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "abbr": HTMLElement;
+    "acronym": HTMLElement;
+    "address": HTMLElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "article": HTMLElement;
+    "aside": HTMLElement;
+    "audio": HTMLAudioElement;
+    "b": HTMLElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "bdo": HTMLElement;
+    "big": HTMLElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "center": HTMLElement;
+    "circle": SVGCircleElement;
+    "cite": HTMLElement;
+    "clippath": SVGClipPathElement;
+    "code": HTMLElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "dd": HTMLElement;
+    "defs": SVGDefsElement;
+    "del": HTMLModElement;
+    "desc": SVGDescElement;
+    "dfn": HTMLElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "dt": HTMLElement;
+    "ellipse": SVGEllipseElement;
+    "em": HTMLElement;
+    "embed": HTMLEmbedElement;
+    "feblend": SVGFEBlendElement;
+    "fecolormatrix": SVGFEColorMatrixElement;
+    "fecomponenttransfer": SVGFEComponentTransferElement;
+    "fecomposite": SVGFECompositeElement;
+    "feconvolvematrix": SVGFEConvolveMatrixElement;
+    "fediffuselighting": SVGFEDiffuseLightingElement;
+    "fedisplacementmap": SVGFEDisplacementMapElement;
+    "fedistantlight": SVGFEDistantLightElement;
+    "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;
+    "fieldset": HTMLFieldSetElement;
+    "figcaption": HTMLElement;
+    "figure": HTMLElement;
+    "filter": SVGFilterElement;
+    "font": HTMLFontElement;
+    "footer": HTMLElement;
+    "foreignobject": SVGForeignObjectElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "g": SVGGElement;
+    "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;
+    "image": SVGImageElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "kbd": HTMLElement;
+    "keygen": HTMLElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "line": SVGLineElement;
+    "lineargradient": SVGLinearGradientElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "mark": HTMLElement;
+    "marker": SVGMarkerElement;
+    "marquee": HTMLMarqueeElement;
+    "mask": SVGMaskElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "metadata": SVGMetadataElement;
+    "meter": HTMLMeterElement;
+    "nav": HTMLElement;
+    "nextid": HTMLUnknownElement;
+    "nobr": HTMLElement;
+    "noframes": HTMLElement;
+    "noscript": HTMLElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "path": SVGPathElement;
+    "pattern": SVGPatternElement;
+    "picture": HTMLPictureElement;
+    "plaintext": HTMLElement;
+    "polygon": SVGPolygonElement;
+    "polyline": SVGPolylineElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "radialgradient": SVGRadialGradientElement;
+    "rect": SVGRectElement;
+    "rt": HTMLElement;
+    "ruby": HTMLElement;
+    "s": HTMLElement;
+    "samp": HTMLElement;
+    "script": HTMLScriptElement;
+    "section": HTMLElement;
+    "select": HTMLSelectElement;
+    "small": HTMLElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "stop": SVGStopElement;
+    "strike": HTMLElement;
+    "strong": HTMLElement;
+    "style": HTMLStyleElement;
+    "sub": HTMLElement;
+    "sup": HTMLElement;
+    "svg": SVGSVGElement;
+    "switch": SVGSwitchElement;
+    "symbol": SVGSymbolElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "text": SVGTextElement;
+    "textpath": SVGTextPathElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "tspan": SVGTSpanElement;
+    "tt": HTMLElement;
+    "u": HTMLElement;
+    "ul": HTMLUListElement;
+    "use": SVGUseElement;
+    "var": HTMLElement;
+    "video": HTMLVideoElement;
+    "view": SVGViewElement;
+    "wbr": HTMLElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementListTagNameMap {
+    "a": NodeListOf<HTMLAnchorElement>;
+    "abbr": NodeListOf<HTMLElement>;
+    "acronym": NodeListOf<HTMLElement>;
+    "address": NodeListOf<HTMLElement>;
+    "applet": NodeListOf<HTMLAppletElement>;
+    "area": NodeListOf<HTMLAreaElement>;
+    "article": NodeListOf<HTMLElement>;
+    "aside": NodeListOf<HTMLElement>;
+    "audio": NodeListOf<HTMLAudioElement>;
+    "b": NodeListOf<HTMLElement>;
+    "base": NodeListOf<HTMLBaseElement>;
+    "basefont": NodeListOf<HTMLBaseFontElement>;
+    "bdo": NodeListOf<HTMLElement>;
+    "big": NodeListOf<HTMLElement>;
+    "blockquote": NodeListOf<HTMLQuoteElement>;
+    "body": NodeListOf<HTMLBodyElement>;
+    "br": NodeListOf<HTMLBRElement>;
+    "button": NodeListOf<HTMLButtonElement>;
+    "canvas": NodeListOf<HTMLCanvasElement>;
+    "caption": NodeListOf<HTMLTableCaptionElement>;
+    "center": NodeListOf<HTMLElement>;
+    "circle": NodeListOf<SVGCircleElement>;
+    "cite": NodeListOf<HTMLElement>;
+    "clippath": NodeListOf<SVGClipPathElement>;
+    "code": NodeListOf<HTMLElement>;
+    "col": NodeListOf<HTMLTableColElement>;
+    "colgroup": NodeListOf<HTMLTableColElement>;
+    "datalist": NodeListOf<HTMLDataListElement>;
+    "dd": NodeListOf<HTMLElement>;
+    "defs": NodeListOf<SVGDefsElement>;
+    "del": NodeListOf<HTMLModElement>;
+    "desc": NodeListOf<SVGDescElement>;
+    "dfn": NodeListOf<HTMLElement>;
+    "dir": NodeListOf<HTMLDirectoryElement>;
+    "div": NodeListOf<HTMLDivElement>;
+    "dl": NodeListOf<HTMLDListElement>;
+    "dt": NodeListOf<HTMLElement>;
+    "ellipse": NodeListOf<SVGEllipseElement>;
+    "em": NodeListOf<HTMLElement>;
+    "embed": NodeListOf<HTMLEmbedElement>;
+    "feblend": NodeListOf<SVGFEBlendElement>;
+    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
+    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
+    "fecomposite": NodeListOf<SVGFECompositeElement>;
+    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
+    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
+    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
+    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
+    "feflood": NodeListOf<SVGFEFloodElement>;
+    "fefunca": NodeListOf<SVGFEFuncAElement>;
+    "fefuncb": NodeListOf<SVGFEFuncBElement>;
+    "fefuncg": NodeListOf<SVGFEFuncGElement>;
+    "fefuncr": NodeListOf<SVGFEFuncRElement>;
+    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
+    "feimage": NodeListOf<SVGFEImageElement>;
+    "femerge": NodeListOf<SVGFEMergeElement>;
+    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
+    "femorphology": NodeListOf<SVGFEMorphologyElement>;
+    "feoffset": NodeListOf<SVGFEOffsetElement>;
+    "fepointlight": NodeListOf<SVGFEPointLightElement>;
+    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
+    "fespotlight": NodeListOf<SVGFESpotLightElement>;
+    "fetile": NodeListOf<SVGFETileElement>;
+    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
+    "fieldset": NodeListOf<HTMLFieldSetElement>;
+    "figcaption": NodeListOf<HTMLElement>;
+    "figure": NodeListOf<HTMLElement>;
+    "filter": NodeListOf<SVGFilterElement>;
+    "font": NodeListOf<HTMLFontElement>;
+    "footer": NodeListOf<HTMLElement>;
+    "foreignobject": NodeListOf<SVGForeignObjectElement>;
+    "form": NodeListOf<HTMLFormElement>;
+    "frame": NodeListOf<HTMLFrameElement>;
+    "frameset": NodeListOf<HTMLFrameSetElement>;
+    "g": NodeListOf<SVGGElement>;
+    "h1": NodeListOf<HTMLHeadingElement>;
+    "h2": NodeListOf<HTMLHeadingElement>;
+    "h3": NodeListOf<HTMLHeadingElement>;
+    "h4": NodeListOf<HTMLHeadingElement>;
+    "h5": NodeListOf<HTMLHeadingElement>;
+    "h6": NodeListOf<HTMLHeadingElement>;
+    "head": NodeListOf<HTMLHeadElement>;
+    "header": NodeListOf<HTMLElement>;
+    "hgroup": NodeListOf<HTMLElement>;
+    "hr": NodeListOf<HTMLHRElement>;
+    "html": NodeListOf<HTMLHtmlElement>;
+    "i": NodeListOf<HTMLElement>;
+    "iframe": NodeListOf<HTMLIFrameElement>;
+    "image": NodeListOf<SVGImageElement>;
+    "img": NodeListOf<HTMLImageElement>;
+    "input": NodeListOf<HTMLInputElement>;
+    "ins": NodeListOf<HTMLModElement>;
+    "isindex": NodeListOf<HTMLUnknownElement>;
+    "kbd": NodeListOf<HTMLElement>;
+    "keygen": NodeListOf<HTMLElement>;
+    "label": NodeListOf<HTMLLabelElement>;
+    "legend": NodeListOf<HTMLLegendElement>;
+    "li": NodeListOf<HTMLLIElement>;
+    "line": NodeListOf<SVGLineElement>;
+    "lineargradient": NodeListOf<SVGLinearGradientElement>;
+    "link": NodeListOf<HTMLLinkElement>;
+    "listing": NodeListOf<HTMLPreElement>;
+    "map": NodeListOf<HTMLMapElement>;
+    "mark": NodeListOf<HTMLElement>;
+    "marker": NodeListOf<SVGMarkerElement>;
+    "marquee": NodeListOf<HTMLMarqueeElement>;
+    "mask": NodeListOf<SVGMaskElement>;
+    "menu": NodeListOf<HTMLMenuElement>;
+    "meta": NodeListOf<HTMLMetaElement>;
+    "metadata": NodeListOf<SVGMetadataElement>;
+    "meter": NodeListOf<HTMLMeterElement>;
+    "nav": NodeListOf<HTMLElement>;
+    "nextid": NodeListOf<HTMLUnknownElement>;
+    "nobr": NodeListOf<HTMLElement>;
+    "noframes": NodeListOf<HTMLElement>;
+    "noscript": NodeListOf<HTMLElement>;
+    "object": NodeListOf<HTMLObjectElement>;
+    "ol": NodeListOf<HTMLOListElement>;
+    "optgroup": NodeListOf<HTMLOptGroupElement>;
+    "option": NodeListOf<HTMLOptionElement>;
+    "p": NodeListOf<HTMLParagraphElement>;
+    "param": NodeListOf<HTMLParamElement>;
+    "path": NodeListOf<SVGPathElement>;
+    "pattern": NodeListOf<SVGPatternElement>;
+    "picture": NodeListOf<HTMLPictureElement>;
+    "plaintext": NodeListOf<HTMLElement>;
+    "polygon": NodeListOf<SVGPolygonElement>;
+    "polyline": NodeListOf<SVGPolylineElement>;
+    "pre": NodeListOf<HTMLPreElement>;
+    "progress": NodeListOf<HTMLProgressElement>;
+    "q": NodeListOf<HTMLQuoteElement>;
+    "radialgradient": NodeListOf<SVGRadialGradientElement>;
+    "rect": NodeListOf<SVGRectElement>;
+    "rt": NodeListOf<HTMLElement>;
+    "ruby": NodeListOf<HTMLElement>;
+    "s": NodeListOf<HTMLElement>;
+    "samp": NodeListOf<HTMLElement>;
+    "script": NodeListOf<HTMLScriptElement>;
+    "section": NodeListOf<HTMLElement>;
+    "select": NodeListOf<HTMLSelectElement>;
+    "small": NodeListOf<HTMLElement>;
+    "source": NodeListOf<HTMLSourceElement>;
+    "span": NodeListOf<HTMLSpanElement>;
+    "stop": NodeListOf<SVGStopElement>;
+    "strike": NodeListOf<HTMLElement>;
+    "strong": NodeListOf<HTMLElement>;
+    "style": NodeListOf<HTMLStyleElement>;
+    "sub": NodeListOf<HTMLElement>;
+    "sup": NodeListOf<HTMLElement>;
+    "svg": NodeListOf<SVGSVGElement>;
+    "switch": NodeListOf<SVGSwitchElement>;
+    "symbol": NodeListOf<SVGSymbolElement>;
+    "table": NodeListOf<HTMLTableElement>;
+    "tbody": NodeListOf<HTMLTableSectionElement>;
+    "td": NodeListOf<HTMLTableDataCellElement>;
+    "template": NodeListOf<HTMLTemplateElement>;
+    "text": NodeListOf<SVGTextElement>;
+    "textpath": NodeListOf<SVGTextPathElement>;
+    "textarea": NodeListOf<HTMLTextAreaElement>;
+    "tfoot": NodeListOf<HTMLTableSectionElement>;
+    "th": NodeListOf<HTMLTableHeaderCellElement>;
+    "thead": NodeListOf<HTMLTableSectionElement>;
+    "title": NodeListOf<HTMLTitleElement>;
+    "tr": NodeListOf<HTMLTableRowElement>;
+    "track": NodeListOf<HTMLTrackElement>;
+    "tspan": NodeListOf<SVGTSpanElement>;
+    "tt": NodeListOf<HTMLElement>;
+    "u": NodeListOf<HTMLElement>;
+    "ul": NodeListOf<HTMLUListElement>;
+    "use": NodeListOf<SVGUseElement>;
+    "var": NodeListOf<HTMLElement>;
+    "video": NodeListOf<HTMLVideoElement>;
+    "view": NodeListOf<SVGViewElement>;
+    "wbr": NodeListOf<HTMLElement>;
+    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
+    "xmp": NodeListOf<HTMLPreElement>;
+}
+
+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; };
+declare var applicationCache: ApplicationCache;
+declare var clientInformation: Navigator;
+declare var closed: boolean;
+declare var crypto: Crypto;
+declare var defaultStatus: string;
+declare var devicePixelRatio: number;
+declare var doNotTrack: string;
+declare var document: Document;
+declare var event: Event | undefined;
+declare var external: External;
+declare var frameElement: Element;
+declare var frames: Window;
+declare var history: History;
+declare var innerHeight: number;
+declare var innerWidth: number;
+declare var length: number;
+declare var location: Location;
+declare var locationbar: BarProp;
+declare var menubar: BarProp;
+declare var msCredentials: MSCredentials;
+declare const name: never;
+declare var navigator: Navigator;
+declare var offscreenBuffering: string | boolean;
+declare var onabort: (this: Window, ev: UIEvent) => any;
+declare var onafterprint: (this: Window, ev: Event) => any;
+declare var onbeforeprint: (this: Window, ev: Event) => any;
+declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+declare var onblur: (this: Window, ev: FocusEvent) => any;
+declare var oncanplay: (this: Window, ev: Event) => any;
+declare var oncanplaythrough: (this: Window, ev: Event) => any;
+declare var onchange: (this: Window, ev: Event) => any;
+declare var onclick: (this: Window, ev: MouseEvent) => any;
+declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
+declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
+declare var ondblclick: (this: Window, ev: MouseEvent) => any;
+declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
+declare var ondrag: (this: Window, ev: DragEvent) => any;
+declare var ondragend: (this: Window, ev: DragEvent) => any;
+declare var ondragenter: (this: Window, ev: DragEvent) => any;
+declare var ondragleave: (this: Window, ev: DragEvent) => any;
+declare var ondragover: (this: Window, ev: DragEvent) => any;
+declare var ondragstart: (this: Window, ev: DragEvent) => any;
+declare var ondrop: (this: Window, ev: DragEvent) => any;
+declare var ondurationchange: (this: Window, ev: Event) => any;
+declare var onemptied: (this: Window, ev: Event) => any;
+declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+declare var onerror: ErrorEventHandler;
+declare var onfocus: (this: Window, ev: FocusEvent) => any;
+declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
+declare var oninput: (this: Window, ev: Event) => any;
+declare var oninvalid: (this: Window, ev: Event) => any;
+declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
+declare var onload: (this: Window, ev: Event) => any;
+declare var onloadeddata: (this: Window, ev: Event) => any;
+declare var onloadedmetadata: (this: Window, ev: Event) => any;
+declare var onloadstart: (this: Window, ev: Event) => any;
+declare var onmessage: (this: Window, ev: MessageEvent) => any;
+declare var onmousedown: (this: Window, ev: MouseEvent) => any;
+declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
+declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
+declare var onmousemove: (this: Window, ev: MouseEvent) => any;
+declare var onmouseout: (this: Window, ev: MouseEvent) => any;
+declare var onmouseover: (this: Window, ev: MouseEvent) => any;
+declare var onmouseup: (this: Window, ev: MouseEvent) => any;
+declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
+declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+declare var onoffline: (this: Window, ev: Event) => any;
+declare var ononline: (this: Window, ev: Event) => any;
+declare var onorientationchange: (this: Window, ev: Event) => any;
+declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpause: (this: Window, ev: Event) => any;
+declare var onplay: (this: Window, ev: Event) => any;
+declare var onplaying: (this: Window, ev: Event) => any;
+declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
+declare var onprogress: (this: Window, ev: ProgressEvent) => any;
+declare var onratechange: (this: Window, ev: Event) => any;
+declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+declare var onreset: (this: Window, ev: Event) => any;
+declare var onresize: (this: Window, ev: UIEvent) => any;
+declare var onscroll: (this: Window, ev: UIEvent) => any;
+declare var onseeked: (this: Window, ev: Event) => any;
+declare var onseeking: (this: Window, ev: Event) => any;
+declare var onselect: (this: Window, ev: UIEvent) => any;
+declare var onstalled: (this: Window, ev: Event) => any;
+declare var onstorage: (this: Window, ev: StorageEvent) => any;
+declare var onsubmit: (this: Window, ev: Event) => any;
+declare var onsuspend: (this: Window, ev: Event) => any;
+declare var ontimeupdate: (this: Window, ev: Event) => any;
+declare var ontouchcancel: (ev: TouchEvent) => any;
+declare var ontouchend: (ev: TouchEvent) => any;
+declare var ontouchmove: (ev: TouchEvent) => any;
+declare var ontouchstart: (ev: TouchEvent) => any;
+declare var onunload: (this: Window, ev: Event) => any;
+declare var onvolumechange: (this: Window, ev: Event) => any;
+declare var onwaiting: (this: Window, ev: Event) => any;
+declare var opener: any;
+declare var orientation: string | number;
+declare var outerHeight: number;
+declare var outerWidth: number;
+declare var pageXOffset: number;
+declare var pageYOffset: number;
+declare var parent: Window;
+declare var performance: Performance;
+declare var personalbar: BarProp;
+declare var screen: Screen;
+declare var screenLeft: number;
+declare var screenTop: number;
+declare var screenX: number;
+declare var screenY: number;
+declare var scrollX: number;
+declare var scrollY: number;
+declare var scrollbars: BarProp;
+declare var self: Window;
+declare var status: string;
+declare var statusbar: BarProp;
+declare var styleMedia: StyleMedia;
+declare var toolbar: BarProp;
+declare var top: Window;
+declare var window: Window;
+declare function alert(message?: any): void;
+declare function blur(): void;
+declare function cancelAnimationFrame(handle: number): void;
+declare function captureEvents(): void;
+declare function close(): void;
+declare function confirm(message?: string): boolean;
+declare function focus(): void;
+declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
+declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
+declare function getSelection(): Selection;
+declare function matchMedia(mediaQuery: string): MediaQueryList;
+declare function moveBy(x?: number, y?: number): void;
+declare function moveTo(x?: number, y?: number): void;
+declare function msWriteProfilerMark(profilerMarkName: string): void;
+declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
+declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
+declare function print(): void;
+declare function prompt(message?: string, _default?: string): string | null;
+declare function releaseEvents(): void;
+declare function requestAnimationFrame(callback: FrameRequestCallback): number;
+declare function resizeBy(x?: number, y?: number): void;
+declare function resizeTo(x?: number, y?: number): void;
+declare function scroll(x?: number, y?: number): void;
+declare function scrollBy(x?: number, y?: number): void;
+declare function scrollTo(x?: number, y?: number): void;
+declare function webkitCancelAnimationFrame(handle: number): void;
+declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
+declare function scroll(options?: ScrollToOptions): void;
+declare function scrollTo(options?: ScrollToOptions): void;
+declare function scrollBy(options?: ScrollToOptions): void;
+declare function toString(): string;
+declare function dispatchEvent(evt: Event): boolean;
+declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+declare function clearInterval(handle: number): void;
+declare function clearTimeout(handle: number): void;
+declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function clearImmediate(handle: number): void;
+declare function setImmediate(handler: (...args: any[]) => void): number;
+declare function setImmediate(handler: any, ...args: any[]): number;
+declare var sessionStorage: Storage;
+declare var localStorage: Storage;
+declare var console: Console;
+declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
+declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
+declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
+declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
+declare var onpointermove: (this: Window, ev: PointerEvent) => any;
+declare var onpointerout: (this: Window, ev: PointerEvent) => any;
+declare var onpointerover: (this: Window, ev: PointerEvent) => any;
+declare var onpointerup: (this: Window, ev: PointerEvent) => any;
+declare var onwheel: (this: Window, ev: WheelEvent) => any;
+declare var indexedDB: IDBFactory;
+declare function atob(encodedString: string): string;
+declare function btoa(rawString: string): string;
+declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
+declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+type AAGUID = string;
+type AlgorithmIdentifier = string | Algorithm;
+type ConstrainBoolean = boolean | ConstrainBooleanParameters;
+type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
+type ConstrainDouble = number | ConstrainDoubleRange;
+type ConstrainLong = number | ConstrainLongRange;
+type CryptoOperationData = ArrayBufferView;
+type GLbitfield = number;
+type GLboolean = boolean;
+type GLbyte = number;
+type GLclampf = number;
+type GLenum = number;
+type GLfloat = number;
+type GLint = number;
+type GLintptr = number;
+type GLshort = number;
+type GLsizei = number;
+type GLsizeiptr = number;
+type GLubyte = number;
+type GLuint = number;
+type GLushort = number;
+type IDBKeyPath = string;
+type KeyFormat = string;
+type KeyType = string;
+type KeyUsage = string;
+type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
+type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
+type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
+type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
+type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
+type payloadtype = number;
+type ScrollBehavior = "auto" | "instant" | "smooth";
+type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
+type IDBValidKey = number | string | Date | IDBArrayKey;
+type BufferSource = ArrayBuffer | ArrayBufferView;
+type MouseWheelEvent = WheelEvent;
 type ScrollRestoration = "auto" | "manual";
 
-
-/////////////////////////////
-/// WorkerGlobalScope APIs 
-/////////////////////////////
-// These are only available in a Web Worker 
-declare function importScripts(...urls: string[]): void;
-
-
-
-
-/////////////////////////////
-/// 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;
-};
-
-/**
- * Allows enumerating over a COM collection, which may not have indexed item 
access.
- */
-interface Enumerator<T> {
-    /**
-     * 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>(collection: any): Enumerator<T>;
-    new (collection: any): Enumerator<any>;
-}
-
-declare var Enumerator: EnumeratorConstructor;
-
-/**
- * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
- */
-interface VBArray<T> {
-    /**
-     * 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>(safeArray: any): VBArray<T>;
-    new (safeArray: any): VBArray<any>;
-}
-
-declare var VBArray: VBArrayConstructor;
-
-/**
- * Automation date (VT_DATE)
- */
-interface VarDate { }
-
-interface DateConstructor {
-    new (vd: VarDate): Date;
-}
-
-interface Date {
-    getVarDate: () => VarDate;
-}
+
+/////////////////////////////
+/// WorkerGlobalScope APIs 
+/////////////////////////////
+// These are only available in a Web Worker 
+declare function importScripts(...urls: string[]): void;
+
+
+
+
+/////////////////////////////
+/// 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;
+};
+
+/**
+ * Allows enumerating over a COM collection, which may not have indexed item 
access.
+ */
+interface Enumerator<T> {
+    /**
+     * 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>(collection: any): Enumerator<T>;
+    new (collection: any): Enumerator<any>;
+}
+
+declare var Enumerator: EnumeratorConstructor;
+
+/**
+ * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
+ */
+interface VBArray<T> {
+    /**
+     * 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>(safeArray: any): VBArray<T>;
+    new (safeArray: any): VBArray<any>;
+}
+
+declare var VBArray: VBArrayConstructor;
+
+/**
+ * Automation date (VT_DATE)
+ */
+interface VarDate { }
+
+interface DateConstructor {
+    new (vd: VarDate): Date;
+}
+
+interface Date {
+    getVarDate: () => VarDate;
+}
diff --git a/node_modules/typescript/lib/lib.dom.d.ts 
b/node_modules/typescript/lib/lib.dom.d.ts
index 8fb1b0b..6ee35cd 100644
--- a/node_modules/typescript/lib/lib.dom.d.ts
+++ b/node_modules/typescript/lib/lib.dom.d.ts
@@ -1,13738 +1,13738 @@
-/*! 
*****************************************************************************
-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"/>
-
-
-
-/////////////////////////////
-/// IE DOM APIs
-/////////////////////////////
-
-interface Algorithm {
-    name: string;
-}
-
-interface AriaRequestEventInit extends EventInit {
-    attributeName?: string;
-    attributeValue?: string;
-}
-
-interface CommandEventInit extends EventInit {
-    commandName?: string;
-    detail?: string;
-}
-
-interface CompositionEventInit extends UIEventInit {
-    data?: string;
-}
-
-interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface ConstrainBooleanParameters {
-    exact?: boolean;
-    ideal?: boolean;
-}
-
-interface ConstrainDOMStringParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface ConstrainDoubleRange extends DoubleRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainLongRange extends LongRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainVideoFacingModeParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface CustomEventInit extends EventInit {
-    detail?: any;
-}
-
-interface DeviceAccelerationDict {
-    x?: number;
-    y?: number;
-    z?: number;
-}
-
-interface DeviceLightEventInit extends EventInit {
-    value?: number;
-}
-
-interface DeviceRotationRateDict {
-    alpha?: number;
-    beta?: number;
-    gamma?: number;
-}
-
-interface DoubleRange {
-    max?: number;
-    min?: number;
-}
-
-interface EventInit {
-    scoped?: boolean;
-    bubbles?: boolean;
-    cancelable?: boolean;
-}
-
-interface EventModifierInit extends UIEventInit {
-    ctrlKey?: boolean;
-    shiftKey?: boolean;
-    altKey?: boolean;
-    metaKey?: boolean;
-    modifierAltGraph?: boolean;
-    modifierCapsLock?: boolean;
-    modifierFn?: boolean;
-    modifierFnLock?: boolean;
-    modifierHyper?: boolean;
-    modifierNumLock?: boolean;
-    modifierOS?: boolean;
-    modifierScrollLock?: boolean;
-    modifierSuper?: boolean;
-    modifierSymbol?: boolean;
-    modifierSymbolLock?: boolean;
-}
-
-interface ExceptionInformation {
-    domain?: string;
-}
-
-interface FocusEventInit extends UIEventInit {
-    relatedTarget?: EventTarget;
-}
-
-interface HashChangeEventInit extends EventInit {
-    newURL?: string;
-    oldURL?: string;
-}
-
-interface IDBIndexParameters {
-    multiEntry?: boolean;
-    unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
-    autoIncrement?: boolean;
-    keyPath?: IDBKeyPath;
-}
-
-interface KeyAlgorithm {
-    name?: string;
-}
-
-interface KeyboardEventInit extends EventModifierInit {
-    code?: string;
-    key?: string;
-    location?: number;
-    repeat?: boolean;
-}
-
-interface LongRange {
-    max?: number;
-    min?: number;
-}
-
-interface MSAccountInfo {
-    rpDisplayName?: string;
-    userDisplayName?: string;
-    accountName?: string;
-    userId?: string;
-    accountImageUri?: string;
-}
-
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
-    networkSendQualityEventRatio?: number;
-    networkDelayEventRatio?: number;
-    cpuInsufficientEventRatio?: number;
-    deviceHalfDuplexAECEventRatio?: number;
-    deviceRenderNotFunctioningEventRatio?: number;
-    deviceCaptureNotFunctioningEventRatio?: number;
-    deviceGlitchesEventRatio?: number;
-    deviceLowSNREventRatio?: number;
-    deviceLowSpeechLevelEventRatio?: number;
-    deviceClippingEventRatio?: number;
-    deviceEchoEventRatio?: number;
-    deviceNearEndToEchoRatioEventRatio?: number;
-    deviceRenderZeroVolumeEventRatio?: number;
-    deviceRenderMuteEventRatio?: number;
-    deviceMultipleEndpointsEventCount?: number;
-    deviceHowlingEventCount?: number;
-}
-
-interface MSAudioRecvPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioRecvSignal;
-    packetReorderRatio?: number;
-    packetReorderDepthAvg?: number;
-    packetReorderDepthMax?: number;
-    burstLossLength1?: number;
-    burstLossLength2?: number;
-    burstLossLength3?: number;
-    burstLossLength4?: number;
-    burstLossLength5?: number;
-    burstLossLength6?: number;
-    burstLossLength7?: number;
-    burstLossLength8OrHigher?: number;
-    fecRecvDistance1?: number;
-    fecRecvDistance2?: number;
-    fecRecvDistance3?: number;
-    ratioConcealedSamplesAvg?: number;
-    ratioStretchedSamplesAvg?: number;
-    ratioCompressedSamplesAvg?: number;
-}
-
-interface MSAudioRecvSignal {
-    initialSignalLevelRMS?: number;
-    recvSignalLevelCh1?: number;
-    recvNoiseLevelCh1?: number;
-    renderSignalLevel?: number;
-    renderNoiseLevel?: number;
-    renderLoopbackSignalLevel?: number;
-}
-
-interface MSAudioSendPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioSendSignal;
-    audioFECUsed?: boolean;
-    sendMutePercent?: number;
-}
-
-interface MSAudioSendSignal {
-    noiseLevel?: number;
-    sendSignalLevelCh1?: number;
-    sendNoiseLevelCh1?: number;
-}
-
-interface MSConnectivity {
-    iceType?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    relayAddress?: MSRelayAddress;
-}
-
-interface MSCredentialFilter {
-    accept?: MSCredentialSpec[];
-}
-
-interface MSCredentialParameters {
-    type?: string;
-}
-
-interface MSCredentialSpec {
-    type?: string;
-    id?: string;
-}
-
-interface MSDelay {
-    roundTrip?: number;
-    roundTripMax?: number;
-}
-
-interface MSDescription extends RTCStats {
-    connectivity?: MSConnectivity;
-    transport?: string;
-    networkconnectivity?: MSNetworkConnectivityInfo;
-    localAddr?: MSIPAddressInfo;
-    remoteAddr?: MSIPAddressInfo;
-    deviceDevName?: string;
-    reflexiveLocalIPAddr?: MSIPAddressInfo;
-}
-
-interface MSFIDOCredentialParameters extends MSCredentialParameters {
-    algorithm?: string | Algorithm;
-    authenticators?: AAGUID[];
-}
-
-interface MSIPAddressInfo {
-    ipAddr?: string;
-    port?: number;
-    manufacturerMacAddrMask?: string;
-}
-
-interface MSIceWarningFlags {
-    turnTcpTimedOut?: boolean;
-    turnUdpAllocateFailed?: boolean;
-    turnUdpSendFailed?: boolean;
-    turnTcpAllocateFailed?: boolean;
-    turnTcpSendFailed?: boolean;
-    udpLocalConnectivityFailed?: boolean;
-    udpNatConnectivityFailed?: boolean;
-    udpRelayConnectivityFailed?: boolean;
-    tcpNatConnectivityFailed?: boolean;
-    tcpRelayConnectivityFailed?: boolean;
-    connCheckMessageIntegrityFailed?: boolean;
-    allocationMessageIntegrityFailed?: boolean;
-    connCheckOtherError?: boolean;
-    turnAuthUnknownUsernameError?: boolean;
-    noRelayServersConfigured?: boolean;
-    multipleRelayServersAttempted?: boolean;
-    portRangeExhausted?: boolean;
-    alternateServerReceived?: boolean;
-    pseudoTLSFailure?: boolean;
-    turnTurnTcpConnectivityFailed?: boolean;
-    useCandidateChecksFailed?: boolean;
-    fipsAllocationFailure?: boolean;
-}
-
-interface MSJitter {
-    interArrival?: number;
-    interArrivalMax?: number;
-    interArrivalSD?: number;
-}
-
-interface MSLocalClientEventBase extends RTCStats {
-    networkReceiveQualityEventRatio?: number;
-    networkBandwidthLowEventRatio?: number;
-}
-
-interface MSNetwork extends RTCStats {
-    jitter?: MSJitter;
-    delay?: MSDelay;
-    packetLoss?: MSPacketLoss;
-    utilization?: MSUtilization;
-}
-
-interface MSNetworkConnectivityInfo {
-    vpn?: boolean;
-    linkspeed?: number;
-    networkConnectionDetails?: string;
-}
-
-interface MSNetworkInterfaceType {
-    interfaceTypeEthernet?: boolean;
-    interfaceTypeWireless?: boolean;
-    interfaceTypePPP?: boolean;
-    interfaceTypeTunnel?: boolean;
-    interfaceTypeWWAN?: boolean;
-}
-
-interface MSOutboundNetwork extends MSNetwork {
-    appliedBandwidthLimit?: number;
-}
-
-interface MSPacketLoss {
-    lossRate?: number;
-    lossRateMax?: number;
-}
-
-interface MSPayloadBase extends RTCStats {
-    payloadDescription?: string;
-}
-
-interface MSRelayAddress {
-    relayAddress?: string;
-    port?: number;
-}
-
-interface MSSignatureParameters {
-    userPrompt?: string;
-}
-
-interface MSTransportDiagnosticsStats extends RTCStats {
-    baseAddress?: string;
-    localAddress?: string;
-    localSite?: string;
-    networkName?: string;
-    remoteAddress?: string;
-    remoteSite?: string;
-    localMR?: string;
-    remoteMR?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    portRangeMin?: number;
-    portRangeMax?: number;
-    localMRTCPPort?: number;
-    remoteMRTCPPort?: number;
-    stunVer?: number;
-    numConsentReqSent?: number;
-    numConsentReqReceived?: number;
-    numConsentRespSent?: number;
-    numConsentRespReceived?: number;
-    interfaces?: MSNetworkInterfaceType;
-    baseInterface?: MSNetworkInterfaceType;
-    protocol?: string;
-    localInterface?: MSNetworkInterfaceType;
-    localAddrType?: string;
-    remoteAddrType?: string;
-    iceRole?: string;
-    rtpRtcpMux?: boolean;
-    allocationTimeInMs?: number;
-    msRtcEngineVersion?: string;
-}
-
-interface MSUtilization {
-    packets?: number;
-    bandwidthEstimation?: number;
-    bandwidthEstimationMin?: number;
-    bandwidthEstimationMax?: number;
-    bandwidthEstimationStdDev?: number;
-    bandwidthEstimationAvg?: number;
-}
-
-interface MSVideoPayload extends MSPayloadBase {
-    resoluton?: string;
-    videoBitRateAvg?: number;
-    videoBitRateMax?: number;
-    videoFrameRateAvg?: number;
-    videoPacketLossRate?: number;
-    durationSeconds?: number;
-}
-
-interface MSVideoRecvPayload extends MSVideoPayload {
-    videoFrameLossRate?: number;
-    recvCodecType?: string;
-    recvResolutionWidth?: number;
-    recvResolutionHeight?: number;
-    videoResolutions?: MSVideoResolutionDistribution;
-    recvFrameRateAverage?: number;
-    recvBitRateMaximum?: number;
-    recvBitRateAverage?: number;
-    recvVideoStreamsMax?: number;
-    recvVideoStreamsMin?: number;
-    recvVideoStreamsMode?: number;
-    videoPostFECPLR?: number;
-    lowBitRateCallPercent?: number;
-    lowFrameRateCallPercent?: number;
-    reorderBufferTotalPackets?: number;
-    recvReorderBufferReorderedPackets?: number;
-    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
-    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
-    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
-    recvReorderBufferPacketsDroppedDueToTimeout?: number;
-    recvFpsHarmonicAverage?: number;
-    recvNumResSwitches?: number;
-}
-
-interface MSVideoResolutionDistribution {
-    cifQuality?: number;
-    vgaQuality?: number;
-    h720Quality?: number;
-    h1080Quality?: number;
-    h1440Quality?: number;
-    h2160Quality?: number;
-}
-
-interface MSVideoSendPayload extends MSVideoPayload {
-    sendFrameRateAverage?: number;
-    sendBitRateMaximum?: number;
-    sendBitRateAverage?: number;
-    sendVideoStreamsMax?: number;
-    sendResolutionWidth?: number;
-    sendResolutionHeight?: number;
-}
-
-interface MediaEncryptedEventInit extends EventInit {
-    initDataType?: string;
-    initData?: ArrayBuffer;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
-    messageType?: string;
-    message?: ArrayBuffer;
-}
-
-interface MediaKeySystemConfiguration {
-    initDataTypes?: string[];
-    audioCapabilities?: MediaKeySystemMediaCapability[];
-    videoCapabilities?: MediaKeySystemMediaCapability[];
-    distinctiveIdentifier?: string;
-    persistentState?: string;
-}
-
-interface MediaKeySystemMediaCapability {
-    contentType?: string;
-    robustness?: string;
-}
-
-interface MediaStreamConstraints {
-    video?: boolean | MediaTrackConstraints;
-    audio?: boolean | MediaTrackConstraints;
-}
-
-interface MediaStreamErrorEventInit extends EventInit {
-    error?: MediaStreamError;
-}
-
-interface MediaStreamTrackEventInit extends EventInit {
-    track?: MediaStreamTrack;
-}
-
-interface MediaTrackCapabilities {
-    width?: number | LongRange;
-    height?: number | LongRange;
-    aspectRatio?: number | DoubleRange;
-    frameRate?: number | DoubleRange;
-    facingMode?: string;
-    volume?: number | DoubleRange;
-    sampleRate?: number | LongRange;
-    sampleSize?: number | LongRange;
-    echoCancellation?: boolean[];
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackConstraintSet {
-    width?: number | ConstrainLongRange;
-    height?: number | ConstrainLongRange;
-    aspectRatio?: number | ConstrainDoubleRange;
-    frameRate?: number | ConstrainDoubleRange;
-    facingMode?: string | string[] | ConstrainDOMStringParameters;
-    volume?: number | ConstrainDoubleRange;
-    sampleRate?: number | ConstrainLongRange;
-    sampleSize?: number | ConstrainLongRange;
-    echoCancelation?: boolean | ConstrainBooleanParameters;
-    deviceId?: string | string[] | ConstrainDOMStringParameters;
-    groupId?: string | string[] | ConstrainDOMStringParameters;
-}
-
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
-    advanced?: MediaTrackConstraintSet[];
-}
-
-interface MediaTrackSettings {
-    width?: number;
-    height?: number;
-    aspectRatio?: number;
-    frameRate?: number;
-    facingMode?: string;
-    volume?: number;
-    sampleRate?: number;
-    sampleSize?: number;
-    echoCancellation?: boolean;
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackSupportedConstraints {
-    width?: boolean;
-    height?: boolean;
-    aspectRatio?: boolean;
-    frameRate?: boolean;
-    facingMode?: boolean;
-    volume?: boolean;
-    sampleRate?: boolean;
-    sampleSize?: boolean;
-    echoCancellation?: boolean;
-    deviceId?: boolean;
-    groupId?: boolean;
-}
-
-interface MouseEventInit extends EventModifierInit {
-    screenX?: number;
-    screenY?: number;
-    clientX?: number;
-    clientY?: number;
-    button?: number;
-    buttons?: number;
-    relatedTarget?: EventTarget;
-}
-
-interface MsZoomToOptions {
-    contentX?: number;
-    contentY?: number;
-    viewportX?: string;
-    viewportY?: string;
-    scaleFactor?: number;
-    animate?: string;
-}
-
-interface MutationObserverInit {
-    childList?: boolean;
-    attributes?: boolean;
-    characterData?: boolean;
-    subtree?: boolean;
-    attributeOldValue?: boolean;
-    characterDataOldValue?: boolean;
-    attributeFilter?: string[];
-}
-
-interface ObjectURLOptions {
-    oneTimeOnly?: boolean;
-}
-
-interface PeriodicWaveConstraints {
-    disableNormalization?: boolean;
-}
-
-interface PointerEventInit extends MouseEventInit {
-    pointerId?: number;
-    width?: number;
-    height?: number;
-    pressure?: number;
-    tiltX?: number;
-    tiltY?: number;
-    pointerType?: string;
-    isPrimary?: boolean;
-}
-
-interface PositionOptions {
-    enableHighAccuracy?: boolean;
-    timeout?: number;
-    maximumAge?: number;
-}
-
-interface RTCDTMFToneChangeEventInit extends EventInit {
-    tone?: string;
-}
-
-interface RTCDtlsFingerprint {
-    algorithm?: string;
-    value?: string;
-}
-
-interface RTCDtlsParameters {
-    role?: string;
-    fingerprints?: RTCDtlsFingerprint[];
-}
-
-interface RTCIceCandidate {
-    foundation?: string;
-    priority?: number;
-    ip?: string;
-    protocol?: string;
-    port?: number;
-    type?: string;
-    tcpType?: string;
-    relatedAddress?: string;
-    relatedPort?: number;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
-    ipAddress?: string;
-    portNumber?: number;
-    transport?: string;
-    candidateType?: string;
-    priority?: number;
-    addressSourceUrl?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidatePair {
-    local?: RTCIceCandidate;
-    remote?: RTCIceCandidate;
-}
-
-interface RTCIceCandidatePairStats extends RTCStats {
-    transportId?: string;
-    localCandidateId?: string;
-    remoteCandidateId?: string;
-    state?: string;
-    priority?: number;
-    nominated?: boolean;
-    writable?: boolean;
-    readable?: boolean;
-    bytesSent?: number;
-    bytesReceived?: number;
-    roundTripTime?: number;
-    availableOutgoingBitrate?: number;
-    availableIncomingBitrate?: number;
-}
-
-interface RTCIceGatherOptions {
-    gatherPolicy?: string;
-    iceservers?: RTCIceServer[];
-}
-
-interface RTCIceParameters {
-    usernameFragment?: string;
-    password?: string;
-}
-
-interface RTCIceServer {
-    urls?: any;
-    username?: string;
-    credential?: string;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsReceived?: number;
-    bytesReceived?: number;
-    packetsLost?: number;
-    jitter?: number;
-    fractionLost?: number;
-}
-
-interface RTCMediaStreamTrackStats extends RTCStats {
-    trackIdentifier?: string;
-    remoteSource?: boolean;
-    ssrcIds?: string[];
-    frameWidth?: number;
-    frameHeight?: number;
-    framesPerSecond?: number;
-    framesSent?: number;
-    framesReceived?: number;
-    framesDecoded?: number;
-    framesDropped?: number;
-    framesCorrupted?: number;
-    audioLevel?: number;
-    echoReturnLoss?: number;
-    echoReturnLossEnhancement?: number;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsSent?: number;
-    bytesSent?: number;
-    targetBitrate?: number;
-    roundTripTime?: number;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
-    ssrc?: string;
-    associateStatsId?: string;
-    isRemote?: boolean;
-    mediaTrackId?: string;
-    transportId?: string;
-    codecId?: string;
-    firCount?: number;
-    pliCount?: number;
-    nackCount?: number;
-    sliCount?: number;
-}
-
-interface RTCRtcpFeedback {
-    type?: string;
-    parameter?: string;
-}
-
-interface RTCRtcpParameters {
-    ssrc?: number;
-    cname?: string;
-    reducedSize?: boolean;
-    mux?: boolean;
-}
-
-interface RTCRtpCapabilities {
-    codecs?: RTCRtpCodecCapability[];
-    headerExtensions?: RTCRtpHeaderExtension[];
-    fecMechanisms?: string[];
-}
-
-interface RTCRtpCodecCapability {
-    name?: string;
-    kind?: string;
-    clockRate?: number;
-    preferredPayloadType?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-    options?: any;
-    maxTemporalLayers?: number;
-    maxSpatialLayers?: number;
-    svcMultiStreamSupport?: boolean;
-}
-
-interface RTCRtpCodecParameters {
-    name?: string;
-    payloadType?: any;
-    clockRate?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-}
-
-interface RTCRtpContributingSource {
-    timestamp?: number;
-    csrc?: number;
-    audioLevel?: number;
-}
-
-interface RTCRtpEncodingParameters {
-    ssrc?: number;
-    codecPayloadType?: number;
-    fec?: RTCRtpFecParameters;
-    rtx?: RTCRtpRtxParameters;
-    priority?: number;
-    maxBitrate?: number;
-    minQuality?: number;
-    framerateBias?: number;
-    resolutionScale?: number;
-    framerateScale?: number;
-    active?: boolean;
-    encodingId?: string;
-    dependencyEncodingIds?: string[];
-    ssrcRange?: RTCSsrcRange;
-}
-
-interface RTCRtpFecParameters {
-    ssrc?: number;
-    mechanism?: string;
-}
-
-interface RTCRtpHeaderExtension {
-    kind?: string;
-    uri?: string;
-    preferredId?: number;
-    preferredEncrypt?: boolean;
-}
-
-interface RTCRtpHeaderExtensionParameters {
-    uri?: string;
-    id?: number;
-    encrypt?: boolean;
-}
-
-interface RTCRtpParameters {
-    muxId?: string;
-    codecs?: RTCRtpCodecParameters[];
-    headerExtensions?: RTCRtpHeaderExtensionParameters[];
-    encodings?: RTCRtpEncodingParameters[];
-    rtcp?: RTCRtcpParameters;
-}
-
-interface RTCRtpRtxParameters {
-    ssrc?: number;
-}
-
-interface RTCRtpUnhandled {
-    ssrc?: number;
-    payloadType?: number;
-    muxId?: string;
-}
-
-interface RTCSrtpKeyParam {
-    keyMethod?: string;
-    keySalt?: string;
-    lifetime?: string;
-    mkiValue?: number;
-    mkiLength?: number;
-}
-
-interface RTCSrtpSdesParameters {
-    tag?: number;
-    cryptoSuite?: string;
-    keyParams?: RTCSrtpKeyParam[];
-    sessionParams?: string[];
-}
-
-interface RTCSsrcRange {
-    min?: number;
-    max?: number;
-}
-
-interface RTCStats {
-    timestamp?: number;
-    type?: string;
-    id?: string;
-    msType?: string;
-}
-
-interface RTCStatsReport {
-}
-
-interface RTCTransportStats extends RTCStats {
-    bytesSent?: number;
-    bytesReceived?: number;
-    rtcpTransportStatsId?: string;
-    activeConnection?: boolean;
-    selectedCandidatePairId?: string;
-    localCertificateId?: string;
-    remoteCertificateId?: string;
-}
-
-interface StoreExceptionsInformation extends ExceptionInformation {
-    siteName?: string;
-    explanationString?: string;
-    detailURI?: string;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface UIEventInit extends EventInit {
-    view?: Window;
-    detail?: number;
-}
-
-interface WebGLContextAttributes {
-    failIfMajorPerformanceCaveat?: boolean;
-    alpha?: boolean;
-    depth?: boolean;
-    stencil?: boolean;
-    antialias?: boolean;
-    premultipliedAlpha?: boolean;
-    preserveDrawingBuffer?: boolean;
-}
-
-interface WebGLContextEventInit extends EventInit {
-    statusMessage?: string;
-}
-
-interface WheelEventInit extends MouseEventInit {
-    deltaX?: number;
-    deltaY?: number;
-    deltaZ?: number;
-    deltaMode?: number;
-}
-
-interface EventListener {
-    (evt: Event): void;
-}
-
-interface ANGLE_instanced_arrays {
-    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
-    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
-    vertexAttribDivisorANGLE(index: number, divisor: number): void;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-declare var ANGLE_instanced_arrays: {
-    prototype: ANGLE_instanced_arrays;
-    new(): ANGLE_instanced_arrays;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-interface AnalyserNode extends AudioNode {
-    fftSize: number;
-    readonly frequencyBinCount: number;
-    maxDecibels: number;
-    minDecibels: number;
-    smoothingTimeConstant: number;
-    getByteFrequencyData(array: Uint8Array): void;
-    getByteTimeDomainData(array: Uint8Array): void;
-    getFloatFrequencyData(array: Float32Array): void;
-    getFloatTimeDomainData(array: Float32Array): void;
-}
-
-declare var AnalyserNode: {
-    prototype: AnalyserNode;
-    new(): AnalyserNode;
-}
-
-interface AnimationEvent extends Event {
-    readonly animationName: string;
-    readonly elapsedTime: number;
-    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var AnimationEvent: {
-    prototype: AnimationEvent;
-    new(): AnimationEvent;
-}
-
-interface ApplicationCacheEventMap {
-    "cached": Event;
-    "checking": Event;
-    "downloading": Event;
-    "error": ErrorEvent;
-    "noupdate": Event;
-    "obsolete": Event;
-    "progress": ProgressEvent;
-    "updateready": Event;
-}
-
-interface ApplicationCache extends EventTarget {
-    oncached: (this: ApplicationCache, ev: Event) => any;
-    onchecking: (this: ApplicationCache, ev: Event) => any;
-    ondownloading: (this: ApplicationCache, ev: Event) => any;
-    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
-    onnoupdate: (this: ApplicationCache, ev: Event) => any;
-    onobsolete: (this: ApplicationCache, ev: Event) => any;
-    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
-    onupdateready: (this: ApplicationCache, ev: Event) => any;
-    readonly status: number;
-    abort(): void;
-    swapCache(): void;
-    update(): void;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ApplicationCache: {
-    prototype: ApplicationCache;
-    new(): ApplicationCache;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-}
-
-interface AriaRequestEvent extends Event {
-    readonly attributeName: string;
-    attributeValue: string | null;
-}
-
-declare var AriaRequestEvent: {
-    prototype: AriaRequestEvent;
-    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
-}
-
-interface Attr extends Node {
-    readonly name: string;
-    readonly ownerElement: Element;
-    readonly prefix: string | null;
-    readonly specified: boolean;
-    value: string;
-}
-
-declare var Attr: {
-    prototype: Attr;
-    new(): Attr;
-}
-
-interface AudioBuffer {
-    readonly duration: number;
-    readonly length: number;
-    readonly numberOfChannels: number;
-    readonly sampleRate: number;
-    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
-    prototype: AudioBuffer;
-    new(): AudioBuffer;
-}
-
-interface AudioBufferSourceNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface AudioBufferSourceNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    readonly detune: AudioParam;
-    loop: boolean;
-    loopEnd: number;
-    loopStart: number;
-    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
-    readonly playbackRate: AudioParam;
-    start(when?: number, offset?: number, duration?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var AudioBufferSourceNode: {
-    prototype: AudioBufferSourceNode;
-    new(): AudioBufferSourceNode;
-}
-
-interface AudioContext extends EventTarget {
-    readonly currentTime: number;
-    readonly destination: AudioDestinationNode;
-    readonly listener: AudioListener;
-    readonly sampleRate: number;
-    state: string;
-    createAnalyser(): AnalyserNode;
-    createBiquadFilter(): BiquadFilterNode;
-    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
-    createBufferSource(): AudioBufferSourceNode;
-    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
-    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
-    createConvolver(): ConvolverNode;
-    createDelay(maxDelayTime?: number): DelayNode;
-    createDynamicsCompressor(): DynamicsCompressorNode;
-    createGain(): GainNode;
-    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
-    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
-    createOscillator(): OscillatorNode;
-    createPanner(): PannerNode;
-    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
-    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
-    createStereoPanner(): StereoPannerNode;
-    createWaveShaper(): WaveShaperNode;
-    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
-}
-
-declare var AudioContext: {
-    prototype: AudioContext;
-    new(): AudioContext;
-}
-
-interface AudioDestinationNode extends AudioNode {
-    readonly maxChannelCount: number;
-}
-
-declare var AudioDestinationNode: {
-    prototype: AudioDestinationNode;
-    new(): AudioDestinationNode;
-}
-
-interface AudioListener {
-    dopplerFactor: number;
-    speedOfSound: number;
-    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var AudioListener: {
-    prototype: AudioListener;
-    new(): AudioListener;
-}
-
-interface AudioNode extends EventTarget {
-    channelCount: number;
-    channelCountMode: string;
-    channelInterpretation: string;
-    readonly context: AudioContext;
-    readonly numberOfInputs: number;
-    readonly numberOfOutputs: number;
-    connect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(output?: number): void;
-    disconnect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(destination: AudioParam, output?: number): void;
-}
-
-declare var AudioNode: {
-    prototype: AudioNode;
-    new(): AudioNode;
-}
-
-interface AudioParam {
-    readonly defaultValue: number;
-    value: number;
-    cancelScheduledValues(startTime: number): void;
-    exponentialRampToValueAtTime(value: number, endTime: number): void;
-    linearRampToValueAtTime(value: number, endTime: number): void;
-    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
-    setValueAtTime(value: number, startTime: number): void;
-    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
-}
-
-declare var AudioParam: {
-    prototype: AudioParam;
-    new(): AudioParam;
-}
-
-interface AudioProcessingEvent extends Event {
-    readonly inputBuffer: AudioBuffer;
-    readonly outputBuffer: AudioBuffer;
-    readonly playbackTime: number;
-}
-
-declare var AudioProcessingEvent: {
-    prototype: AudioProcessingEvent;
-    new(): AudioProcessingEvent;
-}
-
-interface AudioTrack {
-    enabled: boolean;
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var AudioTrack: {
-    prototype: AudioTrack;
-    new(): AudioTrack;
-}
-
-interface AudioTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface AudioTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    onchange: (this: AudioTrackList, ev: Event) => any;
-    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    getTrackById(id: string): AudioTrack | null;
-    item(index: number): AudioTrack;
-    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: AudioTrack;
-}
-
-declare var AudioTrackList: {
-    prototype: AudioTrackList;
-    new(): AudioTrackList;
-}
-
-interface BarProp {
-    readonly visible: boolean;
-}
-
-declare var BarProp: {
-    prototype: BarProp;
-    new(): BarProp;
-}
-
-interface BeforeUnloadEvent extends Event {
-    returnValue: any;
-}
-
-declare var BeforeUnloadEvent: {
-    prototype: BeforeUnloadEvent;
-    new(): BeforeUnloadEvent;
-}
-
-interface BiquadFilterNode extends AudioNode {
-    readonly Q: AudioParam;
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    readonly gain: AudioParam;
-    type: string;
-    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
-}
-
-declare var BiquadFilterNode: {
-    prototype: BiquadFilterNode;
-    new(): BiquadFilterNode;
-}
-
-interface Blob {
-    readonly size: number;
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-    slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
-    prototype: Blob;
-    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
-
-interface CDATASection extends Text {
-}
-
-declare var CDATASection: {
-    prototype: CDATASection;
-    new(): CDATASection;
-}
-
-interface CSS {
-    supports(property: string, value?: string): boolean;
-}
-declare var CSS: CSS;
-
-interface CSSConditionRule extends CSSGroupingRule {
-    conditionText: string;
-}
-
-declare var CSSConditionRule: {
-    prototype: CSSConditionRule;
-    new(): CSSConditionRule;
-}
-
-interface CSSFontFaceRule extends CSSRule {
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSFontFaceRule: {
-    prototype: CSSFontFaceRule;
-    new(): CSSFontFaceRule;
-}
-
-interface CSSGroupingRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    deleteRule(index: number): void;
-    insertRule(rule: string, index: number): number;
-}
-
-declare var CSSGroupingRule: {
-    prototype: CSSGroupingRule;
-    new(): CSSGroupingRule;
-}
-
-interface CSSImportRule extends CSSRule {
-    readonly href: string;
-    readonly media: MediaList;
-    readonly styleSheet: CSSStyleSheet;
-}
-
-declare var CSSImportRule: {
-    prototype: CSSImportRule;
-    new(): CSSImportRule;
-}
-
-interface CSSKeyframeRule extends CSSRule {
-    keyText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSKeyframeRule: {
-    prototype: CSSKeyframeRule;
-    new(): CSSKeyframeRule;
-}
-
-interface CSSKeyframesRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    name: string;
-    appendRule(rule: string): void;
-    deleteRule(rule: string): void;
-    findRule(rule: string): CSSKeyframeRule;
-}
-
-declare var CSSKeyframesRule: {
-    prototype: CSSKeyframesRule;
-    new(): CSSKeyframesRule;
-}
-
-interface CSSMediaRule extends CSSConditionRule {
-    readonly media: MediaList;
-}
-
-declare var CSSMediaRule: {
-    prototype: CSSMediaRule;
-    new(): CSSMediaRule;
-}
-
-interface CSSNamespaceRule extends CSSRule {
-    readonly namespaceURI: string;
-    readonly prefix: string;
-}
-
-declare var CSSNamespaceRule: {
-    prototype: CSSNamespaceRule;
-    new(): CSSNamespaceRule;
-}
-
-interface CSSPageRule extends CSSRule {
-    readonly pseudoClass: string;
-    readonly selector: string;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSPageRule: {
-    prototype: CSSPageRule;
-    new(): CSSPageRule;
-}
-
-interface CSSRule {
-    cssText: string;
-    readonly parentRule: CSSRule;
-    readonly parentStyleSheet: CSSStyleSheet;
-    readonly type: number;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-declare var CSSRule: {
-    prototype: CSSRule;
-    new(): CSSRule;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-interface CSSRuleList {
-    readonly length: number;
-    item(index: number): CSSRule;
-    [index: number]: CSSRule;
-}
-
-declare var CSSRuleList: {
-    prototype: CSSRuleList;
-    new(): CSSRuleList;
-}
-
-interface CSSStyleDeclaration {
-    alignContent: string | null;
-    alignItems: string | null;
-    alignSelf: string | null;
-    alignmentBaseline: string | null;
-    animation: string | null;
-    animationDelay: string | null;
-    animationDirection: string | null;
-    animationDuration: string | null;
-    animationFillMode: string | null;
-    animationIterationCount: string | null;
-    animationName: string | null;
-    animationPlayState: string | null;
-    animationTimingFunction: string | null;
-    backfaceVisibility: string | null;
-    background: string | null;
-    backgroundAttachment: string | null;
-    backgroundClip: string | null;
-    backgroundColor: string | null;
-    backgroundImage: string | null;
-    backgroundOrigin: string | null;
-    backgroundPosition: string | null;
-    backgroundPositionX: string | null;
-    backgroundPositionY: string | null;
-    backgroundRepeat: string | null;
-    backgroundSize: string | null;
-    baselineShift: string | null;
-    border: string | null;
-    borderBottom: string | null;
-    borderBottomColor: string | null;
-    borderBottomLeftRadius: string | null;
-    borderBottomRightRadius: string | null;
-    borderBottomStyle: string | null;
-    borderBottomWidth: string | null;
-    borderCollapse: string | null;
-    borderColor: string | null;
-    borderImage: string | null;
-    borderImageOutset: string | null;
-    borderImageRepeat: string | null;
-    borderImageSlice: string | null;
-    borderImageSource: string | null;
-    borderImageWidth: string | null;
-    borderLeft: string | null;
-    borderLeftColor: string | null;
-    borderLeftStyle: string | null;
-    borderLeftWidth: string | null;
-    borderRadius: string | null;
-    borderRight: string | null;
-    borderRightColor: string | null;
-    borderRightStyle: string | null;
-    borderRightWidth: string | null;
-    borderSpacing: string | null;
-    borderStyle: string | null;
-    borderTop: string | null;
-    borderTopColor: string | null;
-    borderTopLeftRadius: string | null;
-    borderTopRightRadius: string | null;
-    borderTopStyle: string | null;
-    borderTopWidth: string | null;
-    borderWidth: string | null;
-    bottom: string | null;
-    boxShadow: string | null;
-    boxSizing: string | null;
-    breakAfter: string | null;
-    breakBefore: string | null;
-    breakInside: string | null;
-    captionSide: string | null;
-    clear: string | null;
-    clip: string | null;
-    clipPath: string | null;
-    clipRule: string | null;
-    color: string | null;
-    colorInterpolationFilters: string | null;
-    columnCount: any;
-    columnFill: string | null;
-    columnGap: any;
-    columnRule: string | null;
-    columnRuleColor: any;
-    columnRuleStyle: string | null;
-    columnRuleWidth: any;
-    columnSpan: string | null;
-    columnWidth: any;
-    columns: string | null;
-    content: string | null;
-    counterIncrement: string | null;
-    counterReset: string | null;
-    cssFloat: string | null;
-    cssText: string;
-    cursor: string | null;
-    direction: string | null;
-    display: string | null;
-    dominantBaseline: string | null;
-    emptyCells: string | null;
-    enableBackground: string | null;
-    fill: string | null;
-    fillOpacity: string | null;
-    fillRule: string | null;
-    filter: string | null;
-    flex: string | null;
-    flexBasis: string | null;
-    flexDirection: string | null;
-    flexFlow: string | null;
-    flexGrow: string | null;
-    flexShrink: string | null;
-    flexWrap: string | null;
-    floodColor: string | null;
-    floodOpacity: string | null;
-    font: string | null;
-    fontFamily: string | null;
-    fontFeatureSettings: string | null;
-    fontSize: string | null;
-    fontSizeAdjust: string | null;
-    fontStretch: string | null;
-    fontStyle: string | null;
-    fontVariant: string | null;
-    fontWeight: string | null;
-    glyphOrientationHorizontal: string | null;
-    glyphOrientationVertical: string | null;
-    height: string | null;
-    imeMode: string | null;
-    justifyContent: string | null;
-    kerning: string | null;
-    left: string | null;
-    readonly length: number;
-    letterSpacing: string | null;
-    lightingColor: string | null;
-    lineHeight: string | null;
-    listStyle: string | null;
-    listStyleImage: string | null;
-    listStylePosition: string | null;
-    listStyleType: string | null;
-    margin: string | null;
-    marginBottom: string | null;
-    marginLeft: string | null;
-    marginRight: string | null;
-    marginTop: string | null;
-    marker: string | null;
-    markerEnd: string | null;
-    markerMid: string | null;
-    markerStart: string | null;
-    mask: string | null;
-    maxHeight: string | null;
-    maxWidth: string | null;
-    minHeight: string | null;
-    minWidth: string | null;
-    msContentZoomChaining: string | null;
-    msContentZoomLimit: string | null;
-    msContentZoomLimitMax: any;
-    msContentZoomLimitMin: any;
-    msContentZoomSnap: string | null;
-    msContentZoomSnapPoints: string | null;
-    msContentZoomSnapType: string | null;
-    msContentZooming: string | null;
-    msFlowFrom: string | null;
-    msFlowInto: string | null;
-    msFontFeatureSettings: string | null;
-    msGridColumn: any;
-    msGridColumnAlign: string | null;
-    msGridColumnSpan: any;
-    msGridColumns: string | null;
-    msGridRow: any;
-    msGridRowAlign: string | null;
-    msGridRowSpan: any;
-    msGridRows: string | null;
-    msHighContrastAdjust: string | null;
-    msHyphenateLimitChars: string | null;
-    msHyphenateLimitLines: any;
-    msHyphenateLimitZone: any;
-    msHyphens: string | null;
-    msImeAlign: string | null;
-    msOverflowStyle: string | null;
-    msScrollChaining: string | null;
-    msScrollLimit: string | null;
-    msScrollLimitXMax: any;
-    msScrollLimitXMin: any;
-    msScrollLimitYMax: any;
-    msScrollLimitYMin: any;
-    msScrollRails: string | null;
-    msScrollSnapPointsX: string | null;
-    msScrollSnapPointsY: string | null;
-    msScrollSnapType: string | null;
-    msScrollSnapX: string | null;
-    msScrollSnapY: string | null;
-    msScrollTranslation: string | null;
-    msTextCombineHorizontal: string | null;
-    msTextSizeAdjust: any;
-    msTouchAction: string | null;
-    msTouchSelect: string | null;
-    msUserSelect: string | null;
-    msWrapFlow: string;
-    msWrapMargin: any;
-    msWrapThrough: string;
-    opacity: string | null;
-    order: string | null;
-    orphans: string | null;
-    outline: string | null;
-    outlineColor: string | null;
-    outlineStyle: string | null;
-    outlineWidth: string | null;
-    overflow: string | null;
-    overflowX: string | null;
-    overflowY: string | null;
-    padding: string | null;
-    paddingBottom: string | null;
-    paddingLeft: string | null;
-    paddingRight: string | null;
-    paddingTop: string | null;
-    pageBreakAfter: string | null;
-    pageBreakBefore: string | null;
-    pageBreakInside: string | null;
-    readonly parentRule: CSSRule;
-    perspective: string | null;
-    perspectiveOrigin: string | null;
-    pointerEvents: string | null;
-    position: string | null;
-    quotes: string | null;
-    right: string | null;
-    rubyAlign: string | null;
-    rubyOverhang: string | null;
-    rubyPosition: string | null;
-    stopColor: string | null;
-    stopOpacity: string | null;
-    stroke: string | null;
-    strokeDasharray: string | null;
-    strokeDashoffset: string | null;
-    strokeLinecap: string | null;
-    strokeLinejoin: string | null;
-    strokeMiterlimit: string | null;
-    strokeOpacity: string | null;
-    strokeWidth: string | null;
-    tableLayout: string | null;
-    textAlign: string | null;
-    textAlignLast: string | null;
-    textAnchor: string | null;
-    textDecoration: string | null;
-    textIndent: string | null;
-    textJustify: string | null;
-    textKashida: string | null;
-    textKashidaSpace: string | null;
-    textOverflow: string | null;
-    textShadow: string | null;
-    textTransform: string | null;
-    textUnderlinePosition: string | null;
-    top: string | null;
-    touchAction: string | null;
-    transform: string | null;
-    transformOrigin: string | null;
-    transformStyle: string | null;
-    transition: string | null;
-    transitionDelay: string | null;
-    transitionDuration: string | null;
-    transitionProperty: string | null;
-    transitionTimingFunction: string | null;
-    unicodeBidi: string | null;
-    verticalAlign: string | null;
-    visibility: string | null;
-    webkitAlignContent: string | null;
-    webkitAlignItems: string | null;
-    webkitAlignSelf: string | null;
-    webkitAnimation: string | null;
-    webkitAnimationDelay: string | null;
-    webkitAnimationDirection: string | null;
-    webkitAnimationDuration: string | null;
-    webkitAnimationFillMode: string | null;
-    webkitAnimationIterationCount: string | null;
-    webkitAnimationName: string | null;
-    webkitAnimationPlayState: string | null;
-    webkitAnimationTimingFunction: string | null;
-    webkitAppearance: string | null;
-    webkitBackfaceVisibility: string | null;
-    webkitBackgroundClip: string | null;
-    webkitBackgroundOrigin: string | null;
-    webkitBackgroundSize: string | null;
-    webkitBorderBottomLeftRadius: string | null;
-    webkitBorderBottomRightRadius: string | null;
-    webkitBorderImage: string | null;
-    webkitBorderRadius: string | null;
-    webkitBorderTopLeftRadius: string | null;
-    webkitBorderTopRightRadius: string | null;
-    webkitBoxAlign: string | null;
-    webkitBoxDirection: string | null;
-    webkitBoxFlex: string | null;
-    webkitBoxOrdinalGroup: string | null;
-    webkitBoxOrient: string | null;
-    webkitBoxPack: string | null;
-    webkitBoxSizing: string | null;
-    webkitColumnBreakAfter: string | null;
-    webkitColumnBreakBefore: string | null;
-    webkitColumnBreakInside: string | null;
-    webkitColumnCount: any;
-    webkitColumnGap: any;
-    webkitColumnRule: string | null;
-    webkitColumnRuleColor: any;
-    webkitColumnRuleStyle: string | null;
-    webkitColumnRuleWidth: any;
-    webkitColumnSpan: string | null;
-    webkitColumnWidth: any;
-    webkitColumns: string | null;
-    webkitFilter: string | null;
-    webkitFlex: string | null;
-    webkitFlexBasis: string | null;
-    webkitFlexDirection: string | null;
-    webkitFlexFlow: string | null;
-    webkitFlexGrow: string | null;
-    webkitFlexShrink: string | null;
-    webkitFlexWrap: string | null;
-    webkitJustifyContent: string | null;
-    webkitOrder: string | null;
-    webkitPerspective: string | null;
-    webkitPerspectiveOrigin: string | null;
-    webkitTapHighlightColor: string | null;
-    webkitTextFillColor: string | null;
-    webkitTextSizeAdjust: any;
-    webkitTransform: string | null;
-    webkitTransformOrigin: string | null;
-    webkitTransformStyle: string | null;
-    webkitTransition: string | null;
-    webkitTransitionDelay: string | null;
-    webkitTransitionDuration: string | null;
-    webkitTransitionProperty: string | null;
-    webkitTransitionTimingFunction: string | null;
-    webkitUserModify: string | null;
-    webkitUserSelect: string | null;
-    webkitWritingMode: string | null;
-    whiteSpace: string | null;
-    widows: string | null;
-    width: string | null;
-    wordBreak: string | null;
-    wordSpacing: string | null;
-    wordWrap: string | null;
-    writingMode: string | null;
-    zIndex: string | null;
-    zoom: string | null;
-    resize: string | null;
-    getPropertyPriority(propertyName: string): string;
-    getPropertyValue(propertyName: string): string;
-    item(index: number): string;
-    removeProperty(propertyName: string): string;
-    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
-    [index: number]: string;
-}
-
-declare var CSSStyleDeclaration: {
-    prototype: CSSStyleDeclaration;
-    new(): CSSStyleDeclaration;
-}
-
-interface CSSStyleRule extends CSSRule {
-    readonly readOnly: boolean;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSStyleRule: {
-    prototype: CSSStyleRule;
-    new(): CSSStyleRule;
-}
-
-interface CSSStyleSheet extends StyleSheet {
-    readonly cssRules: CSSRuleList;
-    cssText: string;
-    readonly href: string;
-    readonly id: string;
-    readonly imports: StyleSheetList;
-    readonly isAlternate: boolean;
-    readonly isPrefAlternate: boolean;
-    readonly ownerRule: CSSRule;
-    readonly owningElement: Element;
-    readonly pages: StyleSheetPageList;
-    readonly readOnly: boolean;
-    readonly rules: CSSRuleList;
-    addImport(bstrURL: string, lIndex?: number): number;
-    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
-    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
-    deleteRule(index?: number): void;
-    insertRule(rule: string, index?: number): number;
-    removeImport(lIndex: number): void;
-    removeRule(lIndex: number): void;
-}
-
-declare var CSSStyleSheet: {
-    prototype: CSSStyleSheet;
-    new(): CSSStyleSheet;
-}
-
-interface CSSSupportsRule extends CSSConditionRule {
-}
-
-declare var CSSSupportsRule: {
-    prototype: CSSSupportsRule;
-    new(): CSSSupportsRule;
-}
-
-interface CanvasGradient {
-    addColorStop(offset: number, color: string): void;
-}
-
-declare var CanvasGradient: {
-    prototype: CanvasGradient;
-    new(): CanvasGradient;
-}
-
-interface CanvasPattern {
-    setTransform(matrix: SVGMatrix): void;
-}
-
-declare var CanvasPattern: {
-    prototype: CanvasPattern;
-    new(): CanvasPattern;
-}
-
-interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
-    readonly canvas: HTMLCanvasElement;
-    fillStyle: string | CanvasGradient | CanvasPattern;
-    font: string;
-    globalAlpha: number;
-    globalCompositeOperation: string;
-    lineCap: string;
-    lineDashOffset: number;
-    lineJoin: string;
-    lineWidth: number;
-    miterLimit: number;
-    msFillRule: string;
-    msImageSmoothingEnabled: boolean;
-    shadowBlur: number;
-    shadowColor: string;
-    shadowOffsetX: number;
-    shadowOffsetY: number;
-    strokeStyle: string | CanvasGradient | CanvasPattern;
-    textAlign: string;
-    textBaseline: string;
-    mozImageSmoothingEnabled: boolean;
-    webkitImageSmoothingEnabled: boolean;
-    oImageSmoothingEnabled: boolean;
-    beginPath(): void;
-    clearRect(x: number, y: number, w: number, h: number): void;
-    clip(fillRule?: string): void;
-    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
-    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
-    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
-    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
-    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
-    fill(fillRule?: string): void;
-    fillRect(x: number, y: number, w: number, h: number): void;
-    fillText(text: string, x: number, y: number, maxWidth?: number): void;
-    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
-    getLineDash(): number[];
-    isPointInPath(x: number, y: number, fillRule?: string): boolean;
-    measureText(text: string): TextMetrics;
-    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
-    restore(): void;
-    rotate(angle: number): void;
-    save(): void;
-    scale(x: number, y: number): void;
-    setLineDash(segments: number[]): void;
-    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
-    stroke(): void;
-    strokeRect(x: number, y: number, w: number, h: number): void;
-    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
-    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
-    translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
-    prototype: CanvasRenderingContext2D;
-    new(): CanvasRenderingContext2D;
-}
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
-    prototype: ChannelMergerNode;
-    new(): ChannelMergerNode;
-}
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
-    prototype: ChannelSplitterNode;
-    new(): ChannelSplitterNode;
-}
-
-interface CharacterData extends Node, ChildNode {
-    data: string;
-    readonly length: number;
-    appendData(arg: string): void;
-    deleteData(offset: number, count: number): void;
-    insertData(offset: number, arg: string): void;
-    replaceData(offset: number, count: number, arg: string): void;
-    substringData(offset: number, count: number): string;
-}
-
-declare var CharacterData: {
-    prototype: CharacterData;
-    new(): CharacterData;
-}
-
-interface ClientRect {
-    bottom: number;
-    readonly height: number;
-    left: number;
-    right: number;
-    top: number;
-    readonly width: number;
-}
-
-declare var ClientRect: {
-    prototype: ClientRect;
-    new(): ClientRect;
-}
-
-interface ClientRectList {
-    readonly length: number;
-    item(index: number): ClientRect;
-    [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
-    prototype: ClientRectList;
-    new(): ClientRectList;
-}
-
-interface ClipboardEvent extends Event {
-    readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
-    prototype: ClipboardEvent;
-    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
-}
-
-interface CloseEvent extends Event {
-    readonly code: number;
-    readonly reason: string;
-    readonly wasClean: boolean;
-    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
-    prototype: CloseEvent;
-    new(): CloseEvent;
-}
-
-interface CommandEvent extends Event {
-    readonly commandName: string;
-    readonly detail: string | null;
-}
-
-declare var CommandEvent: {
-    prototype: CommandEvent;
-    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
-}
-
-interface Comment extends CharacterData {
-    text: string;
-}
-
-declare var Comment: {
-    prototype: Comment;
-    new(): Comment;
-}
-
-interface CompositionEvent extends UIEvent {
-    readonly data: string;
-    readonly locale: string;
-    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
-
-declare var CompositionEvent: {
-    prototype: CompositionEvent;
-    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
-}
-
-interface Console {
-    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
-    clear(): void;
-    count(countTitle?: string): void;
-    debug(message?: string, ...optionalParams: any[]): void;
-    dir(value?: any, ...optionalParams: any[]): void;
-    dirxml(value: any): void;
-    error(message?: any, ...optionalParams: any[]): void;
-    exception(message?: string, ...optionalParams: any[]): void;
-    group(groupTitle?: string): void;
-    groupCollapsed(groupTitle?: string): void;
-    groupEnd(): void;
-    info(message?: any, ...optionalParams: any[]): void;
-    log(message?: any, ...optionalParams: any[]): void;
-    msIsIndependentlyComposed(element: Element): boolean;
-    profile(reportName?: string): void;
-    profileEnd(): void;
-    select(element: Element): void;
-    table(...data: any[]): void;
-    time(timerName?: string): void;
-    timeEnd(timerName?: string): void;
-    trace(message?: any, ...optionalParams: any[]): void;
-    warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
-    prototype: Console;
-    new(): Console;
-}
-
-interface ConvolverNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    normalize: boolean;
-}
-
-declare var ConvolverNode: {
-    prototype: ConvolverNode;
-    new(): ConvolverNode;
-}
-
-interface Coordinates {
-    readonly accuracy: number;
-    readonly altitude: number | null;
-    readonly altitudeAccuracy: number | null;
-    readonly heading: number | null;
-    readonly latitude: number;
-    readonly longitude: number;
-    readonly speed: number | null;
-}
-
-declare var Coordinates: {
-    prototype: Coordinates;
-    new(): Coordinates;
-}
-
-interface Crypto extends Object, RandomSource {
-    readonly subtle: SubtleCrypto;
-}
-
-declare var Crypto: {
-    prototype: Crypto;
-    new(): Crypto;
-}
-
-interface CryptoKey {
-    readonly algorithm: KeyAlgorithm;
-    readonly extractable: boolean;
-    readonly type: string;
-    readonly usages: string[];
-}
-
-declare var CryptoKey: {
-    prototype: CryptoKey;
-    new(): CryptoKey;
-}
-
-interface CryptoKeyPair {
-    privateKey: CryptoKey;
-    publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
-    prototype: CryptoKeyPair;
-    new(): CryptoKeyPair;
-}
-
-interface CustomEvent extends Event {
-    readonly detail: any;
-    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
-}
-
-declare var CustomEvent: {
-    prototype: CustomEvent;
-    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-}
-
-interface DOMError {
-    readonly name: string;
-    toString(): string;
-}
-
-declare var DOMError: {
-    prototype: DOMError;
-    new(): DOMError;
-}
-
-interface DOMException {
-    readonly code: number;
-    readonly message: string;
-    readonly name: string;
-    toString(): string;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
-    prototype: DOMException;
-    new(): DOMException;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMImplementation {
-    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
-    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
-    createHTMLDocument(title: string): Document;
-    hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
-    prototype: DOMImplementation;
-    new(): DOMImplementation;
-}
-
-interface DOMParser {
-    parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
-    prototype: DOMParser;
-    new(): DOMParser;
-}
-
-interface DOMSettableTokenList extends DOMTokenList {
-    value: string;
-}
-
-declare var DOMSettableTokenList: {
-    prototype: DOMSettableTokenList;
-    new(): DOMSettableTokenList;
-}
-
-interface DOMStringList {
-    readonly length: number;
-    contains(str: string): boolean;
-    item(index: number): string | null;
-    [index: number]: string;
-}
-
-declare var DOMStringList: {
-    prototype: DOMStringList;
-    new(): DOMStringList;
-}
-
-interface DOMStringMap {
-    [name: string]: string;
-}
-
-declare var DOMStringMap: {
-    prototype: DOMStringMap;
-    new(): DOMStringMap;
-}
-
-interface DOMTokenList {
-    readonly length: number;
-    add(...token: string[]): void;
-    contains(token: string): boolean;
-    item(index: number): string;
-    remove(...token: string[]): void;
-    toString(): string;
-    toggle(token: string, force?: boolean): boolean;
-    [index: number]: string;
-}
-
-declare var DOMTokenList: {
-    prototype: DOMTokenList;
-    new(): DOMTokenList;
-}
-
-interface DataCue extends TextTrackCue {
-    data: ArrayBuffer;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DataCue: {
-    prototype: DataCue;
-    new(): DataCue;
-}
-
-interface DataTransfer {
-    dropEffect: string;
-    effectAllowed: string;
-    readonly files: FileList;
-    readonly items: DataTransferItemList;
-    readonly types: string[];
-    clearData(format?: string): boolean;
-    getData(format: string): string;
-    setData(format: string, data: string): boolean;
-}
-
-declare var DataTransfer: {
-    prototype: DataTransfer;
-    new(): DataTransfer;
-}
-
-interface DataTransferItem {
-    readonly kind: string;
-    readonly type: string;
-    getAsFile(): File | null;
-    getAsString(_callback: FunctionStringCallback | null): void;
-}
-
-declare var DataTransferItem: {
-    prototype: DataTransferItem;
-    new(): DataTransferItem;
-}
-
-interface DataTransferItemList {
-    readonly length: number;
-    add(data: File): DataTransferItem | null;
-    clear(): void;
-    item(index: number): DataTransferItem;
-    remove(index: number): void;
-    [index: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
-    prototype: DataTransferItemList;
-    new(): DataTransferItemList;
-}
-
-interface DeferredPermissionRequest {
-    readonly id: number;
-    readonly type: string;
-    readonly uri: string;
-    allow(): void;
-    deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
-    prototype: DeferredPermissionRequest;
-    new(): DeferredPermissionRequest;
-}
-
-interface DelayNode extends AudioNode {
-    readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
-    prototype: DelayNode;
-    new(): DelayNode;
-}
-
-interface DeviceAcceleration {
-    readonly x: number | null;
-    readonly y: number | null;
-    readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
-    prototype: DeviceAcceleration;
-    new(): DeviceAcceleration;
-}
-
-interface DeviceLightEvent extends Event {
-    readonly value: number;
-}
-
-declare var DeviceLightEvent: {
-    prototype: DeviceLightEvent;
-    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-}
-
-interface DeviceMotionEvent extends Event {
-    readonly acceleration: DeviceAcceleration | null;
-    readonly accelerationIncludingGravity: DeviceAcceleration | null;
-    readonly interval: number | null;
-    readonly rotationRate: DeviceRotationRate | null;
-    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
-    prototype: DeviceMotionEvent;
-    new(): DeviceMotionEvent;
-}
-
-interface DeviceOrientationEvent extends Event {
-    readonly absolute: boolean;
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
-    prototype: DeviceOrientationEvent;
-    new(): DeviceOrientationEvent;
-}
-
-interface DeviceRotationRate {
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
-    prototype: DeviceRotationRate;
-    new(): DeviceRotationRate;
-}
-
-interface DocumentEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforedeactivate": UIEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "fullscreenchange": Event;
-    "fullscreenerror": Event;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "mssitemodejumplistitemremoved": MSSiteModeEvent;
-    "msthumbnailclick": MSSiteModeEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "pointerlockchange": Event;
-    "pointerlockerror": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectionchange": Event;
-    "selectstart": Event;
-    "stalled": Event;
-    "stop": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "volumechange": Event;
-    "waiting": Event;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
-    /**
-      * Sets or gets the URL for the current document. 
-      */
-    readonly URL: string;
-    /**
-      * Gets the URL for the document, stripped of any character encoding.
-      */
-    readonly URLUnencoded: string;
-    /**
-      * Gets the object that has the focus when the parent document has focus.
-      */
-    readonly activeElement: Element;
-    /**
-      * Sets or gets the color of all active links in the document.
-      */
-    alinkColor: string;
-    /**
-      * Returns a reference to the collection of elements contained by the 
object.
-      */
-    readonly all: HTMLAllCollection;
-    /**
-      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
-      */
-    anchors: HTMLCollectionOf<HTMLAnchorElement>;
-    /**
-      * Retrieves a collection of all applet objects in the document.
-      */
-    applets: HTMLCollectionOf<HTMLAppletElement>;
-    /**
-      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
-      */
-    bgColor: string;
-    /**
-      * Specifies the beginning and end of the document body.
-      */
-    body: HTMLElement;
-    readonly characterSet: string;
-    /**
-      * Gets or sets the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
-      */
-    readonly compatMode: string;
-    cookie: string;
-    readonly currentScript: HTMLScriptElement | SVGScriptElement;
-    /**
-      * Gets the default character set from the current regional language 
settings.
-      */
-    readonly defaultCharset: string;
-    readonly defaultView: Window;
-    /**
-      * Sets or gets a value that indicates whether the document can be edited.
-      */
-    designMode: string;
-    /**
-      * Sets or retrieves a value that indicates the reading order of the 
object. 
-      */
-    dir: string;
-    /**
-      * Gets an object representing the document type declaration associated 
with the current document. 
-      */
-    readonly doctype: DocumentType;
-    /**
-      * Gets a reference to the root node of the document. 
-      */
-    documentElement: HTMLElement;
-    /**
-      * Sets or gets the security domain of the document. 
-      */
-    domain: string;
-    /**
-      * Retrieves a collection of all embed objects in the document.
-      */
-    embeds: HTMLCollectionOf<HTMLEmbedElement>;
-    /**
-      * Sets or gets the foreground (text) color of the document.
-      */
-    fgColor: string;
-    /**
-      * Retrieves a collection, in source order, of all form objects in the 
document.
-      */
-    forms: HTMLCollectionOf<HTMLFormElement>;
-    readonly fullscreenElement: Element | null;
-    readonly fullscreenEnabled: boolean;
-    readonly head: HTMLHeadElement;
-    readonly hidden: boolean;
-    /**
-      * Retrieves a collection, in source order, of img objects in the 
document.
-      */
-    images: HTMLCollectionOf<HTMLImageElement>;
-    /**
-      * Gets the implementation object of the current document. 
-      */
-    readonly implementation: DOMImplementation;
-    /**
-      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
-      */
-    readonly inputEncoding: string | null;
-    /**
-      * Gets the date that the page was last modified, if the page supplies 
one. 
-      */
-    readonly lastModified: string;
-    /**
-      * Sets or gets the color of the document links. 
-      */
-    linkColor: string;
-    /**
-      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
-      */
-    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
-    /**
-      * Contains information about the current URL. 
-      */
-    readonly location: Location;
-    msCSSOMElementFloatMetrics: boolean;
-    msCapsLockWarningOff: boolean;
-    /**
-      * Fires when the user aborts the download.
-      * @param ev The event.
-      */
-    onabort: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the object is set as the active element.
-      * @param ev The event.
-      */
-    onactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the object is set as the active element.
-      * @param ev The event.
-      */
-    onbeforeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
-      * @param ev The event.
-      */
-    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
-    /** 
-      * Fires when the object loses the input focus. 
-      * @param ev The focus event.
-      */
-    onblur: (this: Document, ev: FocusEvent) => any;
-    /**
-      * Occurs when playback is possible, but would require further buffering. 
-      * @param ev The event.
-      */
-    oncanplay: (this: Document, ev: Event) => any;
-    oncanplaythrough: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the contents of the object or selection have changed. 
-      * @param ev The event.
-      */
-    onchange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the left mouse button on the object
-      * @param ev The mouse event.
-      */
-    onclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
-      * @param ev The mouse event.
-      */
-    oncontextmenu: (this: Document, ev: PointerEvent) => any;
-    /**
-      * Fires when the user double-clicks the object.
-      * @param ev The mouse event.
-      */
-    ondblclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
-      * @param ev The UI Event
-      */
-    ondeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires on the source object continuously during a drag operation.
-      * @param ev The event.
-      */
-    ondrag: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
-      * @param ev The event.
-      */
-    ondragend: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target element when the user drags the object to a valid 
drop target.
-      * @param ev The drag event.
-      */
-    ondragenter: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
-      * @param ev The drag event.
-      */
-    ondragleave: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
-      * @param ev The event.
-      */
-    ondragover: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
-      * @param ev The event.
-      */
-    ondragstart: (this: Document, ev: DragEvent) => any;
-    ondrop: (this: Document, ev: DragEvent) => any;
-    /**
-      * Occurs when the duration attribute is updated. 
-      * @param ev The event.
-      */
-    ondurationchange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the media element is reset to its initial state. 
-      * @param ev The event.
-      */
-    onemptied: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the end of playback is reached. 
-      * @param ev The event
-      */
-    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
-    /**
-      * Fires when an error occurs during object loading.
-      * @param ev The event.
-      */
-    onerror: (this: Document, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus. 
-      * @param ev The event.
-      */
-    onfocus: (this: Document, ev: FocusEvent) => any;
-    onfullscreenchange: (this: Document, ev: Event) => any;
-    onfullscreenerror: (this: Document, ev: Event) => any;
-    oninput: (this: Document, ev: Event) => any;
-    oninvalid: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user presses a key.
-      * @param ev The keyboard event
-      */
-    onkeydown: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user presses an alphanumeric key.
-      * @param ev The event.
-      */
-    onkeypress: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user releases a key.
-      * @param ev The keyboard event
-      */
-    onkeyup: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires immediately after the browser loads the object. 
-      * @param ev The event.
-      */
-    onload: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when media data is loaded at the current playback position. 
-      * @param ev The event.
-      */
-    onloadeddata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the duration and dimensions of the media have been 
determined.
-      * @param ev The event.
-      */
-    onloadedmetadata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when Internet Explorer begins looking for media data. 
-      * @param ev The event.
-      */
-    onloadstart: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the object with either mouse button. 
-      * @param ev The mouse event.
-      */
-    onmousedown: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse over the object. 
-      * @param ev The mouse event.
-      */
-    onmousemove: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseout: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer into the object.
-      * @param ev The mouse event.
-      */
-    onmouseover: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user releases a mouse button while the mouse is over 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseup: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the wheel button is rotated. 
-      * @param ev The mouse event
-      */
-    onmousewheel: (this: Document, ev: WheelEvent) => any;
-    onmscontentzoom: (this: Document, ev: UIEvent) => any;
-    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
-    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
-    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
-    /**
-      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
-      * @param ev The event.
-      */
-    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
-    /**
-      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
-      * @param ev The event.
-      */
-    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
-    /**
-      * Occurs when playback is paused.
-      * @param ev The event.
-      */
-    onpause: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the play method is requested. 
-      * @param ev The event.
-      */
-    onplay: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the audio or video has started playing. 
-      * @param ev The event.
-      */
-    onplaying: (this: Document, ev: Event) => any;
-    onpointerlockchange: (this: Document, ev: Event) => any;
-    onpointerlockerror: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate progress while downloading media data. 
-      * @param ev The event.
-      */
-    onprogress: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Occurs when the playback rate is increased or decreased. 
-      * @param ev The event.
-      */
-    onratechange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the state of the object has changed.
-      * @param ev The event
-      */
-    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Fires when the user resets a form. 
-      * @param ev The event.
-      */
-    onreset: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
-      * @param ev The event.
-      */
-    onscroll: (this: Document, ev: UIEvent) => any;
-    /**
-      * Occurs when the seek operation ends. 
-      * @param ev The event.
-      */
-    onseeked: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the current playback position is moved. 
-      * @param ev The event.
-      */
-    onseeking: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the current selection changes.
-      * @param ev The event.
-      */
-    onselect: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the selection state of a document changes.
-      * @param ev The event.
-      */
-    onselectionchange: (this: Document, ev: Event) => any;
-    onselectstart: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the download has stopped. 
-      * @param ev The event.
-      */
-    onstalled: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the Stop button or leaves the Web page.
-      * @param ev The event.
-      */
-    onstop: (this: Document, ev: Event) => any;
-    onsubmit: (this: Document, ev: Event) => any;
-    /**
-      * Occurs if the load operation has been intentionally halted. 
-      * @param ev The event.
-      */
-    onsuspend: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate the current playback position.
-      * @param ev The event.
-      */
-    ontimeupdate: (this: Document, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    /**
-      * Occurs when the volume is changed, or playback is muted or unmuted.
-      * @param ev The event.
-      */
-    onvolumechange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when playback stops because the next frame of a video resource 
is not available. 
-      * @param ev The event.
-      */
-    onwaiting: (this: Document, ev: Event) => any;
-    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
-    plugins: HTMLCollectionOf<HTMLEmbedElement>;
-    readonly pointerLockElement: Element;
-    /**
-      * Retrieves a value that indicates the current state of the object.
-      */
-    readonly readyState: string;
-    /**
-      * Gets the URL of the location that referred the user to the current 
page.
-      */
-    readonly referrer: string;
-    /**
-      * Gets the root svg element in the document hierarchy.
-      */
-    readonly rootElement: SVGSVGElement;
-    /**
-      * Retrieves a collection of all script objects in the document.
-      */
-    scripts: HTMLCollectionOf<HTMLScriptElement>;
-    readonly scrollingElement: Element | null;
-    /**
-      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
-      */
-    readonly styleSheets: StyleSheetList;
-    /**
-      * Contains the title of the document.
-      */
-    title: string;
-    readonly visibilityState: string;
-    /** 
-      * Sets or gets the color of the links that the user has visited.
-      */
-    vlinkColor: string;
-    readonly webkitCurrentFullScreenElement: Element | null;
-    readonly webkitFullscreenElement: Element | null;
-    readonly webkitFullscreenEnabled: boolean;
-    readonly webkitIsFullScreen: boolean;
-    readonly xmlEncoding: string | null;
-    xmlStandalone: boolean;
-    /**
-      * Gets or sets the version attribute specified in the declaration of an 
XML document.
-      */
-    xmlVersion: string | null;
-    adoptNode(source: Node): Node;
-    captureEvents(): void;
-    caretRangeFromPoint(x: number, y: number): Range;
-    clear(): void;
-    /**
-      * Closes an output stream and forces the sent data to display.
-      */
-    close(): void;
-    /**
-      * Creates an attribute object with a specified name.
-      * @param name String that sets the attribute object's name.
-      */
-    createAttribute(name: string): Attr;
-    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
-    createCDATASection(data: string): CDATASection;
-    /**
-      * Creates a comment object with the specified data.
-      * @param data Sets the comment object's data.
-      */
-    createComment(data: string): Comment;
-    /**
-      * Creates a new document.
-      */
-    createDocumentFragment(): DocumentFragment;
-    /**
-      * Creates an instance of the element for the specified tag.
-      * @param tagName The name of an element.
-      */
-    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
-    createElement(tagName: string): HTMLElement;
-    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
-    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver: Node): XPathNSResolver;
-    /**
-      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list
-      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
-    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
-    /**
-      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
-      */
-    createRange(): Range;
-    /**
-      * Creates a text string from the specified value. 
-      * @param data String that specifies the nodeValue property of the text 
node.
-      */
-    createTextNode(data: string): Text;
-    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
-    createTouchList(...touches: Touch[]): TouchList;
-    /**
-      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
-      * @param filter A custom NodeFilter function to use.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
-    /**
-      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
-      * @param x The x-offset
-      * @param y The y-offset
-      */
-    elementFromPoint(x: number, y: number): Element;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-    /**
-      * Executes a command on the current document, current selection, or the 
given range.
-      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
-      * @param showUI Display the user interface, defaults to false.
-      * @param value Value to assign.
-      */
-    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
-    /**
-      * Displays help information for the given command identifier.
-      * @param commandId Displays help information for the given command 
identifier.
-      */
-    execCommandShowHelp(commandId: string): boolean;
-    exitFullscreen(): void;
-    exitPointerLock(): void;
-    /**
-      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
-      */
-    focus(): void;
-    /**
-      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
-      * @param elementId String that specifies the ID value. Case-insensitive.
-      */
-    getElementById(elementId: string): HTMLElement | null;
-    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
-    /**
-      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
-      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
-      */
-    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
-    /**
-      * Retrieves a collection of objects based on the specified element name.
-      * @param name Specifies the name of an element.
-      */
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(tagname: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    /**
-      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
-      */
-    getSelection(): Selection;
-    /**
-      * Gets a value indicating whether the object currently has focus.
-      */
-    hasFocus(): boolean;
-    importNode(importedNode: Node, deep: boolean): Node;
-    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
-    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
-    /**
-      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
-      * @param url Specifies a MIME type for the document.
-      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
-      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
-      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
-      */
-    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
-    /** 
-      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandEnabled(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandIndeterm(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates the current state of the 
command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandState(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandSupported(commandId: string): boolean;
-    /**
-      * Retrieves the string associated with a command.
-      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
-      */
-    queryCommandText(commandId: string): string;
-    /**
-      * Returns the current value of the document, range, or current selection 
for the given command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandValue(commandId: string): string;
-    releaseEvents(): void;
-    /**
-      * Allows updating the print settings for the page.
-      */
-    updateSettings(): void;
-    webkitCancelFullScreen(): void;
-    webkitExitFullscreen(): void;
-    /**
-      * Writes one or more HTML expressions to a document in the specified 
window. 
-      * @param content Specifies the text and HTML tags to write.
-      */
-    write(...content: string[]): void;
-    /**
-      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
-      * @param content The text and HTML tags to write.
-      */
-    writeln(...content: string[]): void;
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Document: {
-    prototype: Document;
-    new(): Document;
-}
-
-interface DocumentFragment extends Node, NodeSelector, ParentNode {
-}
-
-declare var DocumentFragment: {
-    prototype: DocumentFragment;
-    new(): DocumentFragment;
-}
-
-interface DocumentType extends Node, ChildNode {
-    readonly entities: NamedNodeMap;
-    readonly internalSubset: string | null;
-    readonly name: string;
-    readonly notations: NamedNodeMap;
-    readonly publicId: string | null;
-    readonly systemId: string | null;
-}
-
-declare var DocumentType: {
-    prototype: DocumentType;
-    new(): DocumentType;
-}
-
-interface DragEvent extends MouseEvent {
-    readonly dataTransfer: DataTransfer;
-    initDragEvent(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, dataTransferArg: DataTransfer): void;
-    msConvertURL(file: File, targetType: string, targetURL?: string): void;
-}
-
-declare var DragEvent: {
-    prototype: DragEvent;
-    new(): DragEvent;
-}
-
-interface DynamicsCompressorNode extends AudioNode {
-    readonly attack: AudioParam;
-    readonly knee: AudioParam;
-    readonly ratio: AudioParam;
-    readonly reduction: AudioParam;
-    readonly release: AudioParam;
-    readonly threshold: AudioParam;
-}
-
-declare var DynamicsCompressorNode: {
-    prototype: DynamicsCompressorNode;
-    new(): DynamicsCompressorNode;
-}
-
-interface EXT_frag_depth {
-}
-
-declare var EXT_frag_depth: {
-    prototype: EXT_frag_depth;
-    new(): EXT_frag_depth;
-}
-
-interface EXT_texture_filter_anisotropic {
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
-    prototype: EXT_texture_filter_anisotropic;
-    new(): EXT_texture_filter_anisotropic;
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-interface ElementEventMap extends GlobalEventHandlersEventMap {
-    "ariarequest": AriaRequestEvent;
-    "command": CommandEvent;
-    "gotpointercapture": PointerEvent;
-    "lostpointercapture": PointerEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSGotPointerCapture": MSPointerEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSLostPointerCapture": MSPointerEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
-    readonly classList: DOMTokenList;
-    className: string;
-    readonly clientHeight: number;
-    readonly clientLeft: number;
-    readonly clientTop: number;
-    readonly clientWidth: number;
-    id: string;
-    msContentZoomFactor: number;
-    readonly msRegionOverflow: string;
-    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
-    oncommand: (this: Element, ev: CommandEvent) => any;
-    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
-    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
-    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
-    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
-    readonly prefix: string | null;
-    readonly scrollHeight: number;
-    scrollLeft: number;
-    scrollTop: number;
-    readonly scrollWidth: number;
-    readonly tagName: string;
-    innerHTML: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    slot: string;
-    readonly shadowRoot: ShadowRoot | null;
-    getAttribute(name: string): string | null;
-    getAttributeNS(namespaceURI: string, localName: string): string;
-    getAttributeNode(name: string): Attr;
-    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(name: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    hasAttribute(name: string): boolean;
-    hasAttributeNS(namespaceURI: string, localName: string): boolean;
-    msGetRegionContent(): MSRangeCollection;
-    msGetUntransformedBounds(): ClientRect;
-    msMatchesSelector(selectors: string): boolean;
-    msReleasePointerCapture(pointerId: number): void;
-    msSetPointerCapture(pointerId: number): void;
-    msZoomTo(args: MsZoomToOptions): void;
-    releasePointerCapture(pointerId: number): void;
-    removeAttribute(name?: string): void;
-    removeAttributeNS(namespaceURI: string, localName: string): void;
-    removeAttributeNode(oldAttr: Attr): Attr;
-    requestFullscreen(): void;
-    requestPointerLock(): void;
-    setAttribute(name: string, value: string): void;
-    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
-    setAttributeNode(newAttr: Attr): Attr;
-    setAttributeNodeNS(newAttr: Attr): Attr;
-    setPointerCapture(pointerId: number): void;
-    webkitMatchesSelector(selectors: string): boolean;
-    webkitRequestFullScreen(): void;
-    webkitRequestFullscreen(): void;
-    getElementsByClassName(classNames: string): NodeListOf<Element>;
-    matches(selector: string): boolean;
-    closest(selector: string): Element | null;
-    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
-    scroll(options?: ScrollToOptions): void;
-    scroll(x: number, y: number): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollTo(x: number, y: number): void;
-    scrollBy(options?: ScrollToOptions): void;
-    scrollBy(x: number, y: number): void;
-    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
-    insertAdjacentHTML(where: string, html: string): void;
-    insertAdjacentText(where: string, text: string): void;
-    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
-    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Element: {
-    prototype: Element;
-    new(): Element;
-}
-
-interface ErrorEvent extends Event {
-    readonly colno: number;
-    readonly error: any;
-    readonly filename: string;
-    readonly lineno: number;
-    readonly message: string;
-    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
-    prototype: ErrorEvent;
-    new(): ErrorEvent;
-}
-
-interface Event {
-    readonly bubbles: boolean;
-    cancelBubble: boolean;
-    readonly cancelable: boolean;
-    readonly currentTarget: EventTarget;
-    readonly defaultPrevented: boolean;
-    readonly eventPhase: number;
-    readonly isTrusted: boolean;
-    returnValue: boolean;
-    readonly srcElement: Element | null;
-    readonly target: EventTarget;
-    readonly timeStamp: number;
-    readonly type: string;
-    readonly scoped: boolean;
-    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
-    preventDefault(): void;
-    stopImmediatePropagation(): void;
-    stopPropagation(): void;
-    deepPath(): EventTarget[];
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-declare var Event: {
-    prototype: Event;
-    new(type: string, eventInitDict?: EventInit): Event;
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-interface EventTarget {
-    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    dispatchEvent(evt: Event): boolean;
-    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var EventTarget: {
-    prototype: EventTarget;
-    new(): EventTarget;
-}
-
-interface External {
-}
-
-declare var External: {
-    prototype: External;
-    new(): External;
-}
-
-interface File extends Blob {
-    readonly lastModifiedDate: any;
-    readonly name: string;
-    readonly webkitRelativePath: string;
-}
-
-declare var File: {
-    prototype: File;
-    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
-}
-
-interface FileList {
-    readonly length: number;
-    item(index: number): File;
-    [index: number]: File;
-}
-
-declare var FileList: {
-    prototype: FileList;
-    new(): FileList;
-}
-
-interface FileReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(blob: Blob): void;
-    readAsBinaryString(blob: Blob): void;
-    readAsDataURL(blob: Blob): void;
-    readAsText(blob: Blob, encoding?: string): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var FileReader: {
-    prototype: FileReader;
-    new(): FileReader;
-}
-
-interface FocusEvent extends UIEvent {
-    readonly relatedTarget: EventTarget;
-    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
-}
-
-declare var FocusEvent: {
-    prototype: FocusEvent;
-    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
-}
-
-interface FormData {
-    append(name: any, value: any, blobName?: string): void;
-}
-
-declare var FormData: {
-    prototype: FormData;
-    new (form?: HTMLFormElement): FormData;
-}
-
-interface GainNode extends AudioNode {
-    readonly gain: AudioParam;
-}
-
-declare var GainNode: {
-    prototype: GainNode;
-    new(): GainNode;
-}
-
-interface Gamepad {
-    readonly axes: number[];
-    readonly buttons: GamepadButton[];
-    readonly connected: boolean;
-    readonly id: string;
-    readonly index: number;
-    readonly mapping: string;
-    readonly timestamp: number;
-}
-
-declare var Gamepad: {
-    prototype: Gamepad;
-    new(): Gamepad;
-}
-
-interface GamepadButton {
-    readonly pressed: boolean;
-    readonly value: number;
-}
-
-declare var GamepadButton: {
-    prototype: GamepadButton;
-    new(): GamepadButton;
-}
-
-interface GamepadEvent extends Event {
-    readonly gamepad: Gamepad;
-}
-
-declare var GamepadEvent: {
-    prototype: GamepadEvent;
-    new(): GamepadEvent;
-}
-
-interface Geolocation {
-    clearWatch(watchId: number): void;
-    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
-    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
-}
-
-declare var Geolocation: {
-    prototype: Geolocation;
-    new(): Geolocation;
-}
-
-interface HTMLAllCollection extends HTMLCollection {
-    namedItem(name: string): Element;
-}
-
-declare var HTMLAllCollection: {
-    prototype: HTMLAllCollection;
-    new(): HTMLAllCollection;
-}
-
-interface HTMLAnchorElement extends HTMLElement {
-    Methods: string;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Contains the anchor portion of the URL including the hash sign (#).
-      */
-    hash: string;
-    /**
-      * Contains the hostname and port values of the URL.
-      */
-    host: string;
-    /**
-      * Contains the hostname of a URL.
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    readonly mimeType: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    readonly nameProp: string;
-    /**
-      * Contains the pathname of the URL.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Contains the protocol of the URL.
-      */
-    protocol: string;
-    readonly protocolLong: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    type: string;
-    urn: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAnchorElement: {
-    prototype: HTMLAnchorElement;
-    new(): HTMLAnchorElement;
-}
-
-interface HTMLAppletElement extends HTMLElement {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
-      */
-    declare: boolean;
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    object: string | null;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    vspace: number;
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAppletElement: {
-    prototype: HTMLAppletElement;
-    new(): HTMLAppletElement;
-}
-
-interface HTMLAreaElement extends HTMLElement {
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
-      */
-    hash: string;
-    /**
-      * Sets or retrieves the hostname and port number of the location or URL.
-      */
-    host: string;
-    /**
-      * Sets or retrieves the host name part of the location or URL. 
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or gets whether clicks in this region cause action.
-      */
-    noHref: boolean;
-    /**
-      * Sets or retrieves the file name or path specified by the object.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Sets or retrieves the protocol portion of a URL.
-      */
-    protocol: string;
-    rel: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAreaElement: {
-    prototype: HTMLAreaElement;
-    new(): HTMLAreaElement;
-}
-
-interface HTMLAreasCollection extends HTMLCollection {
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Removes an element from the collection.
-      */
-    remove(index?: number): void;
-}
-
-declare var HTMLAreasCollection: {
-    prototype: HTMLAreasCollection;
-    new(): HTMLAreasCollection;
-}
-
-interface HTMLAudioElement extends HTMLMediaElement {
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAudioElement: {
-    prototype: HTMLAudioElement;
-    new(): HTMLAudioElement;
-}
-
-interface HTMLBRElement extends HTMLElement {
-    /**
-      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
-      */
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBRElement: {
-    prototype: HTMLBRElement;
-    new(): HTMLBRElement;
-}
-
-interface HTMLBaseElement extends HTMLElement {
-    /**
-      * Gets or sets the baseline URL on which relative links are based.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseElement: {
-    prototype: HTMLBaseElement;
-    new(): HTMLBaseElement;
-}
-
-interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    /**
-      * Sets or retrieves the font size of the object.
-      */
-    size: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseFontElement: {
-    prototype: HTMLBaseFontElement;
-    new(): HTMLBaseFontElement;
-}
-
-interface HTMLBodyElementEventMap extends HTMLElementEventMap {
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "popstate": PopStateEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLBodyElement extends HTMLElement {
-    aLink: any;
-    background: string;
-    bgColor: any;
-    bgProperties: string;
-    link: any;
-    noWrap: boolean;
-    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
-    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLBodyElement, ev: Event) => any;
-    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLBodyElement, ev: Event) => any;
-    ononline: (this: HTMLBodyElement, ev: Event) => any;
-    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
-    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
-    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLBodyElement, ev: Event) => any;
-    text: any;
-    vLink: any;
-    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBodyElement: {
-    prototype: HTMLBodyElement;
-    new(): HTMLBodyElement;
-}
-
-interface HTMLButtonElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /** 
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    status: any;
-    /**
-      * Gets the classification and default behavior of the button.
-      */
-    type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /** 
-      * Sets or retrieves the default or selected value of the control.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLButtonElement: {
-    prototype: HTMLButtonElement;
-    new(): HTMLButtonElement;
-}
-
-interface HTMLCanvasElement extends HTMLElement {
-    /**
-      * Gets or sets the height of a canvas element on a document.
-      */
-    height: number;
-    /**
-      * Gets or sets the width of a canvas element on a document.
-      */
-    width: number;
-    /**
-      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
-      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
-      */
-    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
-    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
-    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
-    /**
-      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
-      */
-    msToBlob(): Blob;
-    /**
-      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
-      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
-      */
-    toDataURL(type?: string, ...args: any[]): string;
-    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLCanvasElement: {
-    prototype: HTMLCanvasElement;
-    new(): HTMLCanvasElement;
-}
-
-interface HTMLCollection {
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Retrieves an object from various collections.
-      */
-    item(index: number): Element;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      */
-    namedItem(name: string): Element;
-    [index: number]: Element;
-}
-
-declare var HTMLCollection: {
-    prototype: HTMLCollection;
-    new(): HTMLCollection;
-}
-
-interface HTMLDListElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDListElement: {
-    prototype: HTMLDListElement;
-    new(): HTMLDListElement;
-}
-
-interface HTMLDataListElement extends HTMLElement {
-    options: HTMLCollectionOf<HTMLOptionElement>;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDataListElement: {
-    prototype: HTMLDataListElement;
-    new(): HTMLDataListElement;
-}
-
-interface HTMLDirectoryElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDirectoryElement: {
-    prototype: HTMLDirectoryElement;
-    new(): HTMLDirectoryElement;
-}
-
-interface HTMLDivElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDivElement: {
-    prototype: HTMLDivElement;
-    new(): HTMLDivElement;
-}
-
-interface HTMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDocument: {
-    prototype: HTMLDocument;
-    new(): HTMLDocument;
-}
-
-interface HTMLElementEventMap extends ElementEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforecopy": ClipboardEvent;
-    "beforecut": ClipboardEvent;
-    "beforedeactivate": UIEvent;
-    "beforepaste": ClipboardEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "copy": ClipboardEvent;
-    "cuechange": Event;
-    "cut": ClipboardEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "paste": ClipboardEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectstart": Event;
-    "stalled": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface HTMLElement extends Element {
-    accessKey: string;
-    readonly children: HTMLCollection;
-    contentEditable: string;
-    readonly dataset: DOMStringMap;
-    dir: string;
-    draggable: boolean;
-    hidden: boolean;
-    hideFocus: boolean;
-    innerHTML: string;
-    innerText: string;
-    readonly isContentEditable: boolean;
-    lang: string;
-    readonly offsetHeight: number;
-    readonly offsetLeft: number;
-    readonly offsetParent: Element;
-    readonly offsetTop: number;
-    readonly offsetWidth: number;
-    onabort: (this: HTMLElement, ev: UIEvent) => any;
-    onactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onblur: (this: HTMLElement, ev: FocusEvent) => any;
-    oncanplay: (this: HTMLElement, ev: Event) => any;
-    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
-    onchange: (this: HTMLElement, ev: Event) => any;
-    onclick: (this: HTMLElement, ev: MouseEvent) => any;
-    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
-    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    oncuechange: (this: HTMLElement, ev: Event) => any;
-    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
-    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    ondrag: (this: HTMLElement, ev: DragEvent) => any;
-    ondragend: (this: HTMLElement, ev: DragEvent) => any;
-    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
-    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
-    ondragover: (this: HTMLElement, ev: DragEvent) => any;
-    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
-    ondrop: (this: HTMLElement, ev: DragEvent) => any;
-    ondurationchange: (this: HTMLElement, ev: Event) => any;
-    onemptied: (this: HTMLElement, ev: Event) => any;
-    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
-    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
-    oninput: (this: HTMLElement, ev: Event) => any;
-    oninvalid: (this: HTMLElement, ev: Event) => any;
-    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onload: (this: HTMLElement, ev: Event) => any;
-    onloadeddata: (this: HTMLElement, ev: Event) => any;
-    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
-    onloadstart: (this: HTMLElement, ev: Event) => any;
-    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
-    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
-    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
-    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onpause: (this: HTMLElement, ev: Event) => any;
-    onplay: (this: HTMLElement, ev: Event) => any;
-    onplaying: (this: HTMLElement, ev: Event) => any;
-    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
-    onratechange: (this: HTMLElement, ev: Event) => any;
-    onreset: (this: HTMLElement, ev: Event) => any;
-    onscroll: (this: HTMLElement, ev: UIEvent) => any;
-    onseeked: (this: HTMLElement, ev: Event) => any;
-    onseeking: (this: HTMLElement, ev: Event) => any;
-    onselect: (this: HTMLElement, ev: UIEvent) => any;
-    onselectstart: (this: HTMLElement, ev: Event) => any;
-    onstalled: (this: HTMLElement, ev: Event) => any;
-    onsubmit: (this: HTMLElement, ev: Event) => any;
-    onsuspend: (this: HTMLElement, ev: Event) => any;
-    ontimeupdate: (this: HTMLElement, ev: Event) => any;
-    onvolumechange: (this: HTMLElement, ev: Event) => any;
-    onwaiting: (this: HTMLElement, ev: Event) => any;
-    outerHTML: string;
-    outerText: string;
-    spellcheck: boolean;
-    readonly style: CSSStyleDeclaration;
-    tabIndex: number;
-    title: string;
-    blur(): void;
-    click(): void;
-    dragDrop(): boolean;
-    focus(): void;
-    msGetInputContext(): MSInputMethodContext;
-    setActive(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLElement: {
-    prototype: HTMLElement;
-    new(): HTMLElement;
-}
-
-interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hidden: any;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the palette used for the embedded document.
-      */
-    readonly palette: string;
-    /**
-      * Retrieves the URL of the plug-in used to view an embedded document.
-      */
-    readonly pluginspage: string;
-    readonly readyState: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the height and width units of the embed object.
-      */
-    units: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLEmbedElement: {
-    prototype: HTMLEmbedElement;
-    new(): HTMLEmbedElement;
-}
-
-interface HTMLFieldSetElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFieldSetElement: {
-    prototype: HTMLFieldSetElement;
-    new(): HTMLFieldSetElement;
-}
-
-interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFontElement: {
-    prototype: HTMLFontElement;
-    new(): HTMLFontElement;
-}
-
-interface HTMLFormElement extends HTMLElement {
-    /**
-      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
-      */
-    acceptCharset: string;
-    /**
-      * Sets or retrieves the URL to which the form content is sent for 
processing.
-      */
-    action: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Retrieves a collection, in source order, of all controls in a given 
form.
-      */
-    readonly elements: HTMLCollection;
-    /**
-      * Sets or retrieves the MIME encoding for the form.
-      */
-    encoding: string;
-    /**
-      * Sets or retrieves the encoding type for the form.
-      */
-    enctype: string;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Sets or retrieves how to send the form data to the server.
-      */
-    method: string;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Designates a form that is not validated when submitted.
-      */
-    noValidate: boolean;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      */
-    namedItem(name: string): any;
-    /**
-      * Fires when the user resets a form.
-      */
-    reset(): void;
-    /**
-      * Fires when a FORM is about to be submitted.
-      */
-    submit(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLFormElement: {
-    prototype: HTMLFormElement;
-    new(): HTMLFormElement;
-}
-
-interface HTMLFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string | number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLFrameElement, ev: Event) => any;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string | number;
-    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameElement: {
-    prototype: HTMLFrameElement;
-    new(): HTMLFrameElement;
-}
-
-interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLFrameSetElement extends HTMLElement {
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Sets or retrieves the frame widths of the object.
-      */
-    cols: string;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    name: string;
-    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
-    /**
-      * Fires when the object loses the input focus.
-      */
-    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus.
-      */
-    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLFrameSetElement, ev: Event) => any;
-    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
-    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
-    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
-    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
-    /**
-      * Sets or retrieves the frame heights of the object.
-      */
-    rows: string;
-    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameSetElement: {
-    prototype: HTMLFrameSetElement;
-    new(): HTMLFrameSetElement;
-}
-
-interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
-      */
-    noShade: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHRElement: {
-    prototype: HTMLHRElement;
-    new(): HTMLHRElement;
-}
-
-interface HTMLHeadElement extends HTMLElement {
-    profile: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadElement: {
-    prototype: HTMLHeadElement;
-    new(): HTMLHeadElement;
-}
-
-interface HTMLHeadingElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadingElement: {
-    prototype: HTMLHeadingElement;
-    new(): HTMLHeadingElement;
-}
-
-interface HTMLHtmlElement extends HTMLElement {
-    /**
-      * Sets or retrieves the DTD version that governs the current document.
-      */
-    version: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHtmlElement: {
-    prototype: HTMLHtmlElement;
-    new(): HTMLHtmlElement;
-}
-
-interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    allowFullscreen: boolean;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the horizontal margin for the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLIFrameElement, ev: Event) => any;
-    readonly sandbox: DOMSettableTokenList;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLIFrameElement: {
-    prototype: HTMLIFrameElement;
-    new(): HTMLIFrameElement;
-}
-
-interface HTMLImageElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    crossOrigin: string;
-    readonly currentSrc: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: number;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves whether the image is a server-side image map.
-      */
-    isMap: boolean;
-    /**
-      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
-      */
-    longDesc: string;
-    lowsrc: string;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * The original height of the image resource before sizing.
-      */
-    readonly naturalHeight: number;
-    /**
-      * The original width of the image resource before sizing.
-      */
-    readonly naturalWidth: number;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    readonly x: number;
-    readonly y: number;
-    msGetAsCastingSource(): any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLImageElement: {
-    prototype: HTMLImageElement;
-    new(): HTMLImageElement;
-    create(): HTMLImageElement;
-}
-
-interface HTMLInputElement extends HTMLElement {
-    /**
-      * Sets or retrieves a comma-separated list of content types.
-      */
-    accept: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    checked: boolean;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    defaultChecked: boolean;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Returns a FileList object on a file type input object.
-      */
-    readonly files: FileList | null;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    indeterminate: boolean;
-    /**
-      * Specifies the ID of a pre-defined datalist of options for an input 
element.
-      */
-    readonly list: HTMLElement;
-    /**
-      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
-      */
-    max: string;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
-      */
-    min: string;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a string containing a regular expression that the user's 
input must match.
-      */
-    pattern: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    selectionDirection: string;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    size: number;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    status: boolean;
-    /**
-      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
-      */
-    step: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns the value of the data at the cursor's current position.
-      */
-    value: string;
-    valueAsDate: Date;
-    /**
-      * Returns the input field value as a number.
-      */
-    valueAsNumber: number;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    webkitdirectory: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Makes the selection equal to the current object.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start?: number, end?: number, direction?: string): void;
-    /**
-      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
-      * @param n Value to decrement the value by.
-      */
-    stepDown(n?: number): void;
-    /**
-      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
-      * @param n Value to increment the value by.
-      */
-    stepUp(n?: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLInputElement: {
-    prototype: HTMLInputElement;
-    new(): HTMLInputElement;
-}
-
-interface HTMLLIElement extends HTMLElement {
-    type: string;
-    /**
-      * Sets or retrieves the value of a list item.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLIElement: {
-    prototype: HTMLLIElement;
-    new(): HTMLLIElement;
-}
-
-interface HTMLLabelElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the object to which the given label object is 
assigned.
-      */
-    htmlFor: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLabelElement: {
-    prototype: HTMLLabelElement;
-    new(): HTMLLabelElement;
-}
-
-interface HTMLLegendElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    align: string;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLegendElement: {
-    prototype: HTMLLegendElement;
-    new(): HTMLLegendElement;
-}
-
-interface HTMLLinkElement extends HTMLElement, LinkStyle {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    disabled: boolean;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    import?: Document;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLinkElement: {
-    prototype: HTMLLinkElement;
-    new(): HTMLLinkElement;
-}
-
-interface HTMLMapElement extends HTMLElement {
-    /**
-      * Retrieves a collection of the area objects defined for the given map 
object.
-      */
-    readonly areas: HTMLAreasCollection;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMapElement: {
-    prototype: HTMLMapElement;
-    new(): HTMLMapElement;
-}
-
-interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
-    "bounce": Event;
-    "finish": Event;
-    "start": Event;
-}
-
-interface HTMLMarqueeElement extends HTMLElement {
-    behavior: string;
-    bgColor: any;
-    direction: string;
-    height: string;
-    hspace: number;
-    loop: number;
-    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
-    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
-    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
-    scrollAmount: number;
-    scrollDelay: number;
-    trueSpeed: boolean;
-    vspace: number;
-    width: string;
-    start(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMarqueeElement: {
-    prototype: HTMLMarqueeElement;
-    new(): HTMLMarqueeElement;
-}
-
-interface HTMLMediaElementEventMap extends HTMLElementEventMap {
-    "encrypted": MediaEncryptedEvent;
-    "msneedkey": MSMediaKeyNeededEvent;
-}
-
-interface HTMLMediaElement extends HTMLElement {
-    /**
-      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
-      */
-    readonly audioTracks: AudioTrackList;
-    /**
-      * Gets or sets a value that indicates whether to start playing the media 
automatically.
-      */
-    autoplay: boolean;
-    /**
-      * Gets a collection of buffered time ranges.
-      */
-    readonly buffered: TimeRanges;
-    /**
-      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
-      */
-    controls: boolean;
-    crossOrigin: string;
-    /**
-      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
-      */
-    readonly currentSrc: string;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    currentTime: number;
-    defaultMuted: boolean;
-    /**
-      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
-      */
-    defaultPlaybackRate: number;
-    /**
-      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
-      */
-    readonly duration: number;
-    /**
-      * Gets information about whether the playback has ended or not.
-      */
-    readonly ended: boolean;
-    /**
-      * Returns an object representing the current error state of the audio or 
video element.
-      */
-    readonly error: MediaError;
-    /**
-      * Gets or sets a flag to specify whether playback should restart after 
it completes.
-      */
-    loop: boolean;
-    readonly mediaKeys: MediaKeys | null;
-    /**
-      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
-      */
-    msAudioCategory: string;
-    /**
-      * Specifies the output device id that the audio will be sent to.
-      */
-    msAudioDeviceType: string;
-    readonly msGraphicsTrustStatus: MSGraphicsTrust;
-    /**
-      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
-      */
-    readonly msKeys: MSMediaKeys;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Specifies whether or not to enable low-latency playback on the media 
element.
-      */
-    msRealTime: boolean;
-    /**
-      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
-      */
-    muted: boolean;
-    /**
-      * Gets the current network activity for the element.
-      */
-    readonly networkState: number;
-    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
-    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
-    /**
-      * Gets a flag that specifies whether playback is paused.
-      */
-    readonly paused: boolean;
-    /**
-      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
-      */
-    playbackRate: number;
-    /**
-      * Gets TimeRanges for the current media resource that has been played.
-      */
-    readonly played: TimeRanges;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    preload: string;
-    readyState: number;
-    /**
-      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
-      */
-    readonly seekable: TimeRanges;
-    /**
-      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
-      */
-    readonly seeking: boolean;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcObject: MediaStream | null;
-    readonly textTracks: TextTrackList;
-    readonly videoTracks: VideoTrackList;
-    /**
-      * Gets or sets the volume level for audio portions of the media element.
-      */
-    volume: number;
-    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
-    /**
-      * Returns a string that specifies whether the client can play a given 
media resource type.
-      */
-    canPlayType(type: string): string;
-    /**
-      * Resets the audio or video object and loads a new media resource.
-      */
-    load(): void;
-    /**
-      * Clears all effects from the media pipeline.
-      */
-    msClearEffects(): void;
-    msGetAsCastingSource(): any;
-    /**
-      * Inserts the specified audio effect into media pipeline.
-      */
-    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
-    /**
-      * Specifies the media protection manager for a given media pipeline.
-      */
-    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
-    /**
-      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
-      */
-    pause(): void;
-    /**
-      * Loads and starts playback of a media resource.
-      */
-    play(): void;
-    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMediaElement: {
-    prototype: HTMLMediaElement;
-    new(): HTMLMediaElement;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-}
-
-interface HTMLMenuElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMenuElement: {
-    prototype: HTMLMenuElement;
-    new(): HTMLMenuElement;
-}
-
-interface HTMLMetaElement extends HTMLElement {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets or sets meta-information to associate with httpEquiv or name.
-      */
-    content: string;
-    /**
-      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
-      */
-    httpEquiv: string;
-    /**
-      * Sets or retrieves the value specified in the content attribute of the 
meta object.
-      */
-    name: string;
-    /**
-      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
-      */
-    scheme: string;
-    /**
-      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
-      */
-    url: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMetaElement: {
-    prototype: HTMLMetaElement;
-    new(): HTMLMetaElement;
-}
-
-interface HTMLMeterElement extends HTMLElement {
-    high: number;
-    low: number;
-    max: number;
-    min: number;
-    optimum: number;
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMeterElement: {
-    prototype: HTMLMeterElement;
-    new(): HTMLMeterElement;
-}
-
-interface HTMLModElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    /**
-      * Sets or retrieves the date and time of a modification to the object.
-      */
-    dateTime: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLModElement: {
-    prototype: HTMLModElement;
-    new(): HTMLModElement;
-}
-
-interface HTMLOListElement extends HTMLElement {
-    compact: boolean;
-    /**
-      * The starting number.
-      */
-    start: number;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOListElement: {
-    prototype: HTMLOListElement;
-    new(): HTMLOListElement;
-}
-
-interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    /**
-      * Sets or retrieves the URL of the file containing the compiled Java 
class.
-      */
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    declare: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the contained object.
-      */
-    readonly object: any;
-    readonly readyState: number;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLObjectElement: {
-    prototype: HTMLObjectElement;
-    new(): HTMLObjectElement;
-}
-
-interface HTMLOptGroupElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    readonly text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptGroupElement: {
-    prototype: HTMLOptGroupElement;
-    new(): HTMLOptGroupElement;
-}
-
-interface HTMLOptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptionElement: {
-    prototype: HTMLOptionElement;
-    new(): HTMLOptionElement;
-    create(): HTMLOptionElement;
-}
-
-interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
-    length: number;
-    selectedIndex: number;
-    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
-    remove(index: number): void;
-}
-
-declare var HTMLOptionsCollection: {
-    prototype: HTMLOptionsCollection;
-    new(): HTMLOptionsCollection;
-}
-
-interface HTMLParagraphElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParagraphElement: {
-    prototype: HTMLParagraphElement;
-    new(): HTMLParagraphElement;
-}
-
-interface HTMLParamElement extends HTMLElement {
-    /**
-      * Sets or retrieves the name of an input parameter for an element.
-      */
-    name: string;
-    /**
-      * Sets or retrieves the content type of the resource designated by the 
value attribute.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the value of an input parameter for an element.
-      */
-    value: string;
-    /**
-      * Sets or retrieves the data type of the value attribute.
-      */
-    valueType: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParamElement: {
-    prototype: HTMLParamElement;
-    new(): HTMLParamElement;
-}
-
-interface HTMLPictureElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPictureElement: {
-    prototype: HTMLPictureElement;
-    new(): HTMLPictureElement;
-}
-
-interface HTMLPreElement extends HTMLElement {
-    /**
-      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPreElement: {
-    prototype: HTMLPreElement;
-    new(): HTMLPreElement;
-}
-
-interface HTMLProgressElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Defines the maximum, or "done" value for a progress element.
-      */
-    max: number;
-    /**
-      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
-      */
-    readonly position: number;
-    /**
-      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLProgressElement: {
-    prototype: HTMLProgressElement;
-    new(): HTMLProgressElement;
-}
-
-interface HTMLQuoteElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLQuoteElement: {
-    prototype: HTMLQuoteElement;
-    new(): HTMLQuoteElement;
-}
-
-interface HTMLScriptElement extends HTMLElement {
-    async: boolean;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the status of the script.
-      */
-    defer: boolean;
-    /**
-      * Sets or retrieves the event for which the script is written. 
-      */
-    event: string;
-    /** 
-      * Sets or retrieves the object that is bound to the event script.
-      */
-    htmlFor: string;
-    /**
-      * Retrieves the URL to an external file that contains the source code or 
data.
-      */
-    src: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    /**
-      * Sets or retrieves the MIME type for the associated scripting engine.
-      */
-    type: string;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLScriptElement: {
-    prototype: HTMLScriptElement;
-    new(): HTMLScriptElement;
-}
-
-interface HTMLSelectElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    length: number;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    readonly options: HTMLOptionsCollection;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the index of the selected option in a select object.
-      */
-    selectedIndex: number;
-    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
-    /**
-      * Sets or retrieves the number of rows in the list box. 
-      */
-    size: number;
-    /**
-      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
-      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
-      */
-    namedItem(name: string): any;
-    /**
-      * Removes an element from the collection.
-      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
-      */
-    remove(index?: number): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLSelectElement: {
-    prototype: HTMLSelectElement;
-    new(): HTMLSelectElement;
-}
-
-interface HTMLSourceElement extends HTMLElement {
-    /**
-      * Gets or sets the intended media type of the media source.
-     */
-    media: string;
-    msKeySystem: string;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-     * Gets or sets the MIME type of a media resource.
-     */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSourceElement: {
-    prototype: HTMLSourceElement;
-    new(): HTMLSourceElement;
-}
-
-interface HTMLSpanElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSpanElement: {
-    prototype: HTMLSpanElement;
-    new(): HTMLSpanElement;
-}
-
-interface HTMLStyleElement extends HTMLElement, LinkStyle {
-    disabled: boolean;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Retrieves the CSS language in which the style sheet is written.
-      */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLStyleElement: {
-    prototype: HTMLStyleElement;
-    new(): HTMLStyleElement;
-}
-
-interface HTMLTableCaptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the alignment of the caption or legend.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
-      */
-    vAlign: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCaptionElement: {
-    prototype: HTMLTableCaptionElement;
-    new(): HTMLTableCaptionElement;
-}
-
-interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves abbreviated text for the object.
-      */
-    abbr: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
-      */
-    axis: string;
-    bgColor: any;
-    /**
-      * Retrieves the position of the object in the cells collection of a row.
-      */
-    readonly cellIndex: number;
-    /**
-      * Sets or retrieves the number columns in the table that the object 
should span.
-      */
-    colSpan: number;
-    /**
-      * Sets or retrieves a list of header cells that provide information for 
the object.
-      */
-    headers: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    /**
-      * Sets or retrieves how many rows in a table the cell should span.
-      */
-    rowSpan: number;
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCellElement: {
-    prototype: HTMLTableCellElement;
-    new(): HTMLTableCellElement;
-}
-
-interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves the alignment of the object relative to the display 
or table.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of columns in the group.
-      */
-    span: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableColElement: {
-    prototype: HTMLTableColElement;
-    new(): HTMLTableColElement;
-}
-
-interface HTMLTableDataCellElement extends HTMLTableCellElement {
-}
-
-declare var HTMLTableDataCellElement: {
-    prototype: HTMLTableDataCellElement;
-    new(): HTMLTableDataCellElement;
-}
-
-interface HTMLTableElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object. 
-      */
-    borderColor: any;
-    /**
-      * Retrieves the caption object of a table.
-      */
-    caption: HTMLTableCaptionElement;
-    /**
-      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
-      */
-    cellPadding: string;
-    /**
-      * Sets or retrieves the amount of space between cells in a table.
-      */
-    cellSpacing: string;
-    /**
-      * Sets or retrieves the number of columns in the table.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the way the border frame around the table is 
displayed.
-      */
-    frame: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Sets or retrieves which dividing lines (inner borders) are displayed.
-      */
-    rules: string;
-    /**
-      * Sets or retrieves a description and/or structure of the object.
-      */
-    summary: string;
-    /**
-      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
-      */
-    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
-    /**
-      * Retrieves the tFoot object of the table.
-      */
-    tFoot: HTMLTableSectionElement;
-    /**
-      * Retrieves the tHead object of the table.
-      */
-    tHead: HTMLTableSectionElement;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Creates an empty caption element in the table.
-      */
-    createCaption(): HTMLTableCaptionElement;
-    /**
-      * Creates an empty tBody element in the table.
-      */
-    createTBody(): HTMLTableSectionElement;
-    /**
-      * Creates an empty tFoot element in the table.
-      */
-    createTFoot(): HTMLTableSectionElement;
-    /**
-      * Returns the tHead element object if successful, or null otherwise.
-      */
-    createTHead(): HTMLTableSectionElement;
-    /**
-      * Deletes the caption element and its contents from the table.
-      */
-    deleteCaption(): void;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Deletes the tFoot element and its contents from the table.
-      */
-    deleteTFoot(): void;
-    /**
-      * Deletes the tHead element and its contents from the table.
-      */
-    deleteTHead(): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableElement: {
-    prototype: HTMLTableElement;
-    new(): HTMLTableElement;
-}
-
-interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-}
-
-declare var HTMLTableHeaderCellElement: {
-    prototype: HTMLTableHeaderCellElement;
-    new(): HTMLTableHeaderCellElement;
-}
-
-interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Retrieves a collection of all cells in the table row.
-      */
-    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Retrieves the position of the object in the rows collection for the 
table.
-      */
-    readonly rowIndex: number;
-    /**
-      * Retrieves the position of the object in the collection.
-      */
-    readonly sectionRowIndex: number;
-    /**
-      * Removes the specified cell from the table row, as well as from the 
cells collection.
-      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
-      */
-    deleteCell(index?: number): void;
-    /**
-      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
-      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
-      */
-    insertCell(index?: number): HTMLTableDataCellElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableRowElement: {
-    prototype: HTMLTableRowElement;
-    new(): HTMLTableRowElement;
-}
-
-interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableSectionElement: {
-    prototype: HTMLTableSectionElement;
-    new(): HTMLTableSectionElement;
-}
-
-interface HTMLTemplateElement extends HTMLElement {
-    readonly content: DocumentFragment;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTemplateElement: {
-    prototype: HTMLTemplateElement;
-    new(): HTMLTemplateElement;
-}
-
-interface HTMLTextAreaElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    /**
-      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
-      */
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: number;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    /**
-      * Sets or retrieves the value indicating whether the control is selected.
-      */
-    status: any;
-    /**
-      * Retrieves the type of control.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Retrieves or sets the text in the entry field of the textArea element.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Sets or retrieves how to handle wordwrapping in the object.
-      */
-    wrap: string;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Highlights the input area of a form element.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start: number, end: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTextAreaElement: {
-    prototype: HTMLTextAreaElement;
-    new(): HTMLTextAreaElement;
-}
-
-interface HTMLTitleElement extends HTMLElement {
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTitleElement: {
-    prototype: HTMLTitleElement;
-    new(): HTMLTitleElement;
-}
-
-interface HTMLTrackElement extends HTMLElement {
-    default: boolean;
-    kind: string;
-    label: string;
-    readonly readyState: number;
-    src: string;
-    srclang: string;
-    readonly track: TextTrack;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTrackElement: {
-    prototype: HTMLTrackElement;
-    new(): HTMLTrackElement;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-}
-
-interface HTMLUListElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUListElement: {
-    prototype: HTMLUListElement;
-    new(): HTMLUListElement;
-}
-
-interface HTMLUnknownElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUnknownElement: {
-    prototype: HTMLUnknownElement;
-    new(): HTMLUnknownElement;
-}
-
-interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
-    "MSVideoFormatChanged": Event;
-    "MSVideoFrameStepCompleted": Event;
-    "MSVideoOptimalLayoutChanged": Event;
-}
-
-interface HTMLVideoElement extends HTMLMediaElement {
-    /**
-      * Gets or sets the height of the video element.
-      */
-    height: number;
-    msHorizontalMirror: boolean;
-    readonly msIsLayoutOptimalForPlayback: boolean;
-    readonly msIsStereo3D: boolean;
-    msStereo3DPackingMode: string;
-    msStereo3DRenderMode: string;
-    msZoom: boolean;
-    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
-    /**
-      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
-      */
-    poster: string;
-    /**
-      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoHeight: number;
-    /**
-      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoWidth: number;
-    readonly webkitDisplayingFullscreen: boolean;
-    readonly webkitSupportsFullscreen: boolean;
-    /**
-      * Gets or sets the width of the video element.
-      */
-    width: number;
-    getVideoPlaybackQuality(): VideoPlaybackQuality;
-    msFrameStep(forward: boolean): void;
-    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
-    webkitEnterFullScreen(): void;
-    webkitEnterFullscreen(): void;
-    webkitExitFullScreen(): void;
-    webkitExitFullscreen(): void;
-    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLVideoElement: {
-    prototype: HTMLVideoElement;
-    new(): HTMLVideoElement;
-}
-
-interface HashChangeEvent extends Event {
-    readonly newURL: string | null;
-    readonly oldURL: string | null;
-}
-
-declare var HashChangeEvent: {
-    prototype: HashChangeEvent;
-    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
-}
-
-interface History {
-    readonly length: number;
-    readonly state: any;
-    scrollRestoration: ScrollRestoration;
-    back(): void;
-    forward(): void;
-    go(delta?: number): void;
-    pushState(data: any, title: string, url?: string | null): void;
-    replaceState(data: any, title: string, url?: string | null): void;
-}
-
-declare var History: {
-    prototype: History;
-    new(): History;
-}
-
-interface IDBCursor {
-    readonly direction: string;
-    key: IDBKeyRange | IDBValidKey;
-    readonly primaryKey: any;
-    source: IDBObjectStore | IDBIndex;
-    advance(count: number): void;
-    continue(key?: IDBKeyRange | IDBValidKey): void;
-    delete(): IDBRequest;
-    update(value: any): IDBRequest;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-declare var IDBCursor: {
-    prototype: IDBCursor;
-    new(): IDBCursor;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-interface IDBCursorWithValue extends IDBCursor {
-    readonly value: any;
-}
-
-declare var IDBCursorWithValue: {
-    prototype: IDBCursorWithValue;
-    new(): IDBCursorWithValue;
-}
-
-interface IDBDatabaseEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBDatabase extends EventTarget {
-    readonly name: string;
-    readonly objectStoreNames: DOMStringList;
-    onabort: (this: IDBDatabase, ev: Event) => any;
-    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
-    version: number;
-    onversionchange: (ev: IDBVersionChangeEvent) => any;
-    close(): void;
-    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
-    deleteObjectStore(name: string): void;
-    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
-    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
-    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBDatabase: {
-    prototype: IDBDatabase;
-    new(): IDBDatabase;
-}
-
-interface IDBFactory {
-    cmp(first: any, second: any): number;
-    deleteDatabase(name: string): IDBOpenDBRequest;
-    open(name: string, version?: number): IDBOpenDBRequest;
-}
-
-declare var IDBFactory: {
-    prototype: IDBFactory;
-    new(): IDBFactory;
-}
-
-interface IDBIndex {
-    keyPath: string | string[];
-    readonly name: string;
-    readonly objectStore: IDBObjectStore;
-    readonly unique: boolean;
-    multiEntry: boolean;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-}
-
-declare var IDBIndex: {
-    prototype: IDBIndex;
-    new(): IDBIndex;
-}
-
-interface IDBKeyRange {
-    readonly lower: any;
-    readonly lowerOpen: boolean;
-    readonly upper: any;
-    readonly upperOpen: boolean;
-}
-
-declare var IDBKeyRange: {
-    prototype: IDBKeyRange;
-    new(): IDBKeyRange;
-    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
-    lowerBound(lower: any, open?: boolean): IDBKeyRange;
-    only(value: any): IDBKeyRange;
-    upperBound(upper: any, open?: boolean): IDBKeyRange;
-}
-
-interface IDBObjectStore {
-    readonly indexNames: DOMStringList;
-    keyPath: string | string[];
-    readonly name: string;
-    readonly transaction: IDBTransaction;
-    autoIncrement: boolean;
-    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    clear(): IDBRequest;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
-    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    deleteIndex(indexName: string): void;
-    get(key: any): IDBRequest;
-    index(name: string): IDBIndex;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-}
-
-declare var IDBObjectStore: {
-    prototype: IDBObjectStore;
-    new(): IDBObjectStore;
-}
-
-interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
-    "blocked": Event;
-    "upgradeneeded": IDBVersionChangeEvent;
-}
-
-interface IDBOpenDBRequest extends IDBRequest {
-    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
-    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
-    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBOpenDBRequest: {
-    prototype: IDBOpenDBRequest;
-    new(): IDBOpenDBRequest;
-}
-
-interface IDBRequestEventMap {
-    "error": ErrorEvent;
-    "success": Event;
-}
-
-interface IDBRequest extends EventTarget {
-    readonly error: DOMError;
-    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
-    onsuccess: (this: IDBRequest, ev: Event) => any;
-    readonly readyState: string;
-    readonly result: any;
-    source: IDBObjectStore | IDBIndex | IDBCursor;
-    readonly transaction: IDBTransaction;
-    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBRequest: {
-    prototype: IDBRequest;
-    new(): IDBRequest;
-}
-
-interface IDBTransactionEventMap {
-    "abort": Event;
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBTransaction extends EventTarget {
-    readonly db: IDBDatabase;
-    readonly error: DOMError;
-    readonly mode: string;
-    onabort: (this: IDBTransaction, ev: Event) => any;
-    oncomplete: (this: IDBTransaction, ev: Event) => any;
-    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
-    abort(): void;
-    objectStore(name: string): IDBObjectStore;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBTransaction: {
-    prototype: IDBTransaction;
-    new(): IDBTransaction;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-}
-
-interface IDBVersionChangeEvent extends Event {
-    readonly newVersion: number | null;
-    readonly oldVersion: number;
-}
-
-declare var IDBVersionChangeEvent: {
-    prototype: IDBVersionChangeEvent;
-    new(): IDBVersionChangeEvent;
-}
-
-interface ImageData {
-    data: Uint8ClampedArray;
-    readonly height: number;
-    readonly width: number;
-}
-
-declare var ImageData: {
-    prototype: ImageData;
-    new(width: number, height: number): ImageData;
-    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
-}
-
-interface KeyboardEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly char: string | null;
-    readonly charCode: number;
-    readonly ctrlKey: boolean;
-    readonly key: string;
-    readonly keyCode: number;
-    readonly locale: string;
-    readonly location: number;
-    readonly metaKey: boolean;
-    readonly repeat: boolean;
-    readonly shiftKey: boolean;
-    readonly which: number;
-    readonly code: string;
-    getModifierState(keyArg: string): boolean;
-    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-declare var KeyboardEvent: {
-    prototype: KeyboardEvent;
-    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-interface ListeningStateChangedEvent extends Event {
-    readonly label: string;
-    readonly state: string;
-}
-
-declare var ListeningStateChangedEvent: {
-    prototype: ListeningStateChangedEvent;
-    new(): ListeningStateChangedEvent;
-}
-
-interface Location {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    assign(url: string): void;
-    reload(forcedReload?: boolean): void;
-    replace(url: string): void;
-    toString(): string;
-}
-
-declare var Location: {
-    prototype: Location;
-    new(): Location;
-}
-
-interface LongRunningScriptDetectedEvent extends Event {
-    readonly executionTime: number;
-    stopPageScriptExecution: boolean;
-}
-
-declare var LongRunningScriptDetectedEvent: {
-    prototype: LongRunningScriptDetectedEvent;
-    new(): LongRunningScriptDetectedEvent;
-}
-
-interface MSApp {
-    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
-    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
-    createDataPackage(object: any): any;
-    createDataPackageFromSelection(): any;
-    createFileFromStorageFile(storageFile: any): File;
-    createStreamFromInputStream(type: string, inputStream: any): MSStream;
-    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
-    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
-    getCurrentPriority(): string;
-    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
-    getViewId(view: any): any;
-    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
-    pageHandlesAllApplicationActivations(enabled: boolean): void;
-    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
-    terminateApp(exceptionObject: any): void;
-    readonly CURRENT: string;
-    readonly HIGH: string;
-    readonly IDLE: string;
-    readonly NORMAL: string;
-}
-declare var MSApp: MSApp;
-
-interface MSAppAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSAppAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
-    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSAppAsyncOperation: {
-    prototype: MSAppAsyncOperation;
-    new(): MSAppAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-}
-
-interface MSAssertion {
-    readonly id: string;
-    readonly type: string;
-}
-
-declare var MSAssertion: {
-    prototype: MSAssertion;
-    new(): MSAssertion;
-}
-
-interface MSBlobBuilder {
-    append(data: any, endings?: string): void;
-    getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
-    prototype: MSBlobBuilder;
-    new(): MSBlobBuilder;
-}
-
-interface MSCredentials {
-    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
-    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
-}
-
-declare var MSCredentials: {
-    prototype: MSCredentials;
-    new(): MSCredentials;
-}
-
-interface MSFIDOCredentialAssertion extends MSAssertion {
-    readonly algorithm: string | Algorithm;
-    readonly attestation: any;
-    readonly publicKey: string;
-    readonly transportHints: string[];
-}
-
-declare var MSFIDOCredentialAssertion: {
-    prototype: MSFIDOCredentialAssertion;
-    new(): MSFIDOCredentialAssertion;
-}
-
-interface MSFIDOSignature {
-    readonly authnrData: string;
-    readonly clientData: string;
-    readonly signature: string;
-}
-
-declare var MSFIDOSignature: {
-    prototype: MSFIDOSignature;
-    new(): MSFIDOSignature;
-}
-
-interface MSFIDOSignatureAssertion extends MSAssertion {
-    readonly signature: MSFIDOSignature;
-}
-
-declare var MSFIDOSignatureAssertion: {
-    prototype: MSFIDOSignatureAssertion;
-    new(): MSFIDOSignatureAssertion;
-}
-
-interface MSGesture {
-    target: Element;
-    addPointer(pointerId: number): void;
-    stop(): void;
-}
-
-declare var MSGesture: {
-    prototype: MSGesture;
-    new(): MSGesture;
-}
-
-interface MSGestureEvent extends UIEvent {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly expansion: number;
-    readonly gestureObject: any;
-    readonly hwTimestamp: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly rotation: number;
-    readonly scale: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly translationX: number;
-    readonly translationY: number;
-    readonly velocityAngular: number;
-    readonly velocityExpansion: number;
-    readonly velocityX: number;
-    readonly velocityY: number;
-    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
-    prototype: MSGestureEvent;
-    new(): MSGestureEvent;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-interface MSGraphicsTrust {
-    readonly constrictionActive: boolean;
-    readonly status: string;
-}
-
-declare var MSGraphicsTrust: {
-    prototype: MSGraphicsTrust;
-    new(): MSGraphicsTrust;
-}
-
-interface MSHTMLWebViewElement extends HTMLElement {
-    readonly canGoBack: boolean;
-    readonly canGoForward: boolean;
-    readonly containsFullScreenElement: boolean;
-    readonly documentTitle: string;
-    height: number;
-    readonly settings: MSWebViewSettings;
-    src: string;
-    width: number;
-    addWebAllowedObject(name: string, applicationObject: any): void;
-    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
-    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
-    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
-    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
-    getDeferredPermissionRequests(): DeferredPermissionRequest[];
-    goBack(): void;
-    goForward(): void;
-    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
-    navigate(uri: string): void;
-    navigateToLocalStreamUri(source: string, streamResolver: any): void;
-    navigateToString(contents: string): void;
-    navigateWithHttpRequestMessage(requestMessage: any): void;
-    refresh(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSHTMLWebViewElement: {
-    prototype: MSHTMLWebViewElement;
-    new(): MSHTMLWebViewElement;
-}
-
-interface MSInputMethodContextEventMap {
-    "MSCandidateWindowHide": Event;
-    "MSCandidateWindowShow": Event;
-    "MSCandidateWindowUpdate": Event;
-}
-
-interface MSInputMethodContext extends EventTarget {
-    readonly compositionEndOffset: number;
-    readonly compositionStartOffset: number;
-    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
-    readonly target: HTMLElement;
-    getCandidateWindowClientRect(): ClientRect;
-    getCompositionAlternatives(): string[];
-    hasComposition(): boolean;
-    isCandidateWindowVisible(): boolean;
-    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSInputMethodContext: {
-    prototype: MSInputMethodContext;
-    new(): MSInputMethodContext;
-}
-
-interface MSManipulationEvent extends UIEvent {
-    readonly currentState: number;
-    readonly inertiaDestinationX: number;
-    readonly inertiaDestinationY: number;
-    readonly lastState: number;
-    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-declare var MSManipulationEvent: {
-    prototype: MSManipulationEvent;
-    new(): MSManipulationEvent;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-interface MSMediaKeyError {
-    readonly code: number;
-    readonly systemCode: number;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-declare var MSMediaKeyError: {
-    prototype: MSMediaKeyError;
-    new(): MSMediaKeyError;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-interface MSMediaKeyMessageEvent extends Event {
-    readonly destinationURL: string | null;
-    readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
-    prototype: MSMediaKeyMessageEvent;
-    new(): MSMediaKeyMessageEvent;
-}
-
-interface MSMediaKeyNeededEvent extends Event {
-    readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
-    prototype: MSMediaKeyNeededEvent;
-    new(): MSMediaKeyNeededEvent;
-}
-
-interface MSMediaKeySession extends EventTarget {
-    readonly error: MSMediaKeyError | null;
-    readonly keySystem: string;
-    readonly sessionId: string;
-    close(): void;
-    update(key: Uint8Array): void;
-}
-
-declare var MSMediaKeySession: {
-    prototype: MSMediaKeySession;
-    new(): MSMediaKeySession;
-}
-
-interface MSMediaKeys {
-    readonly keySystem: string;
-    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
-}
-
-declare var MSMediaKeys: {
-    prototype: MSMediaKeys;
-    new(keySystem: string): MSMediaKeys;
-    isTypeSupported(keySystem: string, type?: string): boolean;
-    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
-}
-
-interface MSPointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var MSPointerEvent: {
-    prototype: MSPointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-}
-
-interface MSRangeCollection {
-    readonly length: number;
-    item(index: number): Range;
-    [index: number]: Range;
-}
-
-declare var MSRangeCollection: {
-    prototype: MSRangeCollection;
-    new(): MSRangeCollection;
-}
-
-interface MSSiteModeEvent extends Event {
-    readonly actionURL: string;
-    readonly buttonID: number;
-}
-
-declare var MSSiteModeEvent: {
-    prototype: MSSiteModeEvent;
-    new(): MSSiteModeEvent;
-}
-
-interface MSStream {
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-}
-
-declare var MSStream: {
-    prototype: MSStream;
-    new(): MSStream;
-}
-
-interface MSStreamReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(stream: MSStream, size?: number): void;
-    readAsBinaryString(stream: MSStream, size?: number): void;
-    readAsBlob(stream: MSStream, size?: number): void;
-    readAsDataURL(stream: MSStream, size?: number): void;
-    readAsText(stream: MSStream, encoding?: string, size?: number): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSStreamReader: {
-    prototype: MSStreamReader;
-    new(): MSStreamReader;
-}
-
-interface MSWebViewAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSWebViewAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
-    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    readonly target: MSHTMLWebViewElement;
-    readonly type: number;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSWebViewAsyncOperation: {
-    prototype: MSWebViewAsyncOperation;
-    new(): MSWebViewAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-}
-
-interface MSWebViewSettings {
-    isIndexedDBEnabled: boolean;
-    isJavaScriptEnabled: boolean;
-}
-
-declare var MSWebViewSettings: {
-    prototype: MSWebViewSettings;
-    new(): MSWebViewSettings;
-}
-
-interface MediaDeviceInfo {
-    readonly deviceId: string;
-    readonly groupId: string;
-    readonly kind: string;
-    readonly label: string;
-}
-
-declare var MediaDeviceInfo: {
-    prototype: MediaDeviceInfo;
-    new(): MediaDeviceInfo;
-}
-
-interface MediaDevicesEventMap {
-    "devicechange": Event;
-}
-
-interface MediaDevices extends EventTarget {
-    ondevicechange: (this: MediaDevices, ev: Event) => any;
-    enumerateDevices(): any;
-    getSupportedConstraints(): MediaTrackSupportedConstraints;
-    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
-    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaDevices: {
-    prototype: MediaDevices;
-    new(): MediaDevices;
-}
-
-interface MediaElementAudioSourceNode extends AudioNode {
-}
-
-declare var MediaElementAudioSourceNode: {
-    prototype: MediaElementAudioSourceNode;
-    new(): MediaElementAudioSourceNode;
-}
-
-interface MediaEncryptedEvent extends Event {
-    readonly initData: ArrayBuffer | null;
-    readonly initDataType: string;
-}
-
-declare var MediaEncryptedEvent: {
-    prototype: MediaEncryptedEvent;
-    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
-}
-
-interface MediaError {
-    readonly code: number;
-    readonly msExtendedCode: number;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-declare var MediaError: {
-    prototype: MediaError;
-    new(): MediaError;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-interface MediaKeyMessageEvent extends Event {
-    readonly message: ArrayBuffer;
-    readonly messageType: string;
-}
-
-declare var MediaKeyMessageEvent: {
-    prototype: MediaKeyMessageEvent;
-    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
-}
-
-interface MediaKeySession extends EventTarget {
-    readonly closed: PromiseLike<void>;
-    readonly expiration: number;
-    readonly keyStatuses: MediaKeyStatusMap;
-    readonly sessionId: string;
-    close(): PromiseLike<void>;
-    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
-    load(sessionId: string): PromiseLike<boolean>;
-    remove(): PromiseLike<void>;
-    update(response: any): PromiseLike<void>;
-}
-
-declare var MediaKeySession: {
-    prototype: MediaKeySession;
-    new(): MediaKeySession;
-}
-
-interface MediaKeyStatusMap {
-    readonly size: number;
-    forEach(callback: ForEachCallback): void;
-    get(keyId: any): string;
-    has(keyId: any): boolean;
-}
-
-declare var MediaKeyStatusMap: {
-    prototype: MediaKeyStatusMap;
-    new(): MediaKeyStatusMap;
-}
-
-interface MediaKeySystemAccess {
-    readonly keySystem: string;
-    createMediaKeys(): PromiseLike<MediaKeys>;
-    getConfiguration(): MediaKeySystemConfiguration;
-}
-
-declare var MediaKeySystemAccess: {
-    prototype: MediaKeySystemAccess;
-    new(): MediaKeySystemAccess;
-}
-
-interface MediaKeys {
-    createSession(sessionType?: string): MediaKeySession;
-    setServerCertificate(serverCertificate: any): PromiseLike<void>;
-}
-
-declare var MediaKeys: {
-    prototype: MediaKeys;
-    new(): MediaKeys;
-}
-
-interface MediaList {
-    readonly length: number;
-    mediaText: string;
-    appendMedium(newMedium: string): void;
-    deleteMedium(oldMedium: string): void;
-    item(index: number): string;
-    toString(): string;
-    [index: number]: string;
-}
-
-declare var MediaList: {
-    prototype: MediaList;
-    new(): MediaList;
-}
-
-interface MediaQueryList {
-    readonly matches: boolean;
-    readonly media: string;
-    addListener(listener: MediaQueryListListener): void;
-    removeListener(listener: MediaQueryListListener): void;
-}
-
-declare var MediaQueryList: {
-    prototype: MediaQueryList;
-    new(): MediaQueryList;
-}
-
-interface MediaSource extends EventTarget {
-    readonly activeSourceBuffers: SourceBufferList;
-    duration: number;
-    readonly readyState: string;
-    readonly sourceBuffers: SourceBufferList;
-    addSourceBuffer(type: string): SourceBuffer;
-    endOfStream(error?: number): void;
-    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
-}
-
-declare var MediaSource: {
-    prototype: MediaSource;
-    new(): MediaSource;
-    isTypeSupported(type: string): boolean;
-}
-
-interface MediaStreamEventMap {
-    "active": Event;
-    "addtrack": TrackEvent;
-    "inactive": Event;
-    "removetrack": TrackEvent;
-}
-
-interface MediaStream extends EventTarget {
-    readonly active: boolean;
-    readonly id: string;
-    onactive: (this: MediaStream, ev: Event) => any;
-    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
-    oninactive: (this: MediaStream, ev: Event) => any;
-    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
-    addTrack(track: MediaStreamTrack): void;
-    clone(): MediaStream;
-    getAudioTracks(): MediaStreamTrack[];
-    getTrackById(trackId: string): MediaStreamTrack | null;
-    getTracks(): MediaStreamTrack[];
-    getVideoTracks(): MediaStreamTrack[];
-    removeTrack(track: MediaStreamTrack): void;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStream: {
-    prototype: MediaStream;
-    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
-}
-
-interface MediaStreamAudioSourceNode extends AudioNode {
-}
-
-declare var MediaStreamAudioSourceNode: {
-    prototype: MediaStreamAudioSourceNode;
-    new(): MediaStreamAudioSourceNode;
-}
-
-interface MediaStreamError {
-    readonly constraintName: string | null;
-    readonly message: string | null;
-    readonly name: string;
-}
-
-declare var MediaStreamError: {
-    prototype: MediaStreamError;
-    new(): MediaStreamError;
-}
-
-interface MediaStreamErrorEvent extends Event {
-    readonly error: MediaStreamError | null;
-}
-
-declare var MediaStreamErrorEvent: {
-    prototype: MediaStreamErrorEvent;
-    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
-}
-
-interface MediaStreamTrackEventMap {
-    "ended": MediaStreamErrorEvent;
-    "mute": Event;
-    "overconstrained": MediaStreamErrorEvent;
-    "unmute": Event;
-}
-
-interface MediaStreamTrack extends EventTarget {
-    enabled: boolean;
-    readonly id: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly muted: boolean;
-    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
-    onmute: (this: MediaStreamTrack, ev: Event) => any;
-    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
-    onunmute: (this: MediaStreamTrack, ev: Event) => any;
-    readonly readonly: boolean;
-    readonly readyState: string;
-    readonly remote: boolean;
-    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
-    clone(): MediaStreamTrack;
-    getCapabilities(): MediaTrackCapabilities;
-    getConstraints(): MediaTrackConstraints;
-    getSettings(): MediaTrackSettings;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStreamTrack: {
-    prototype: MediaStreamTrack;
-    new(): MediaStreamTrack;
-}
-
-interface MediaStreamTrackEvent extends Event {
-    readonly track: MediaStreamTrack;
-}
-
-declare var MediaStreamTrackEvent: {
-    prototype: MediaStreamTrackEvent;
-    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
-}
-
-interface MessageChannel {
-    readonly port1: MessagePort;
-    readonly port2: MessagePort;
-}
-
-declare var MessageChannel: {
-    prototype: MessageChannel;
-    new(): MessageChannel;
-}
-
-interface MessageEvent extends Event {
-    readonly data: any;
-    readonly origin: string;
-    readonly ports: any;
-    readonly source: Window;
-    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
-}
-
-declare var MessageEvent: {
-    prototype: MessageEvent;
-    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
-}
-
-interface MessagePortEventMap {
-    "message": MessageEvent;
-}
-
-interface MessagePort extends EventTarget {
-    onmessage: (this: MessagePort, ev: MessageEvent) => any;
-    close(): void;
-    postMessage(message?: any, ports?: any): void;
-    start(): void;
-    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MessagePort: {
-    prototype: MessagePort;
-    new(): MessagePort;
-}
-
-interface MimeType {
-    readonly description: string;
-    readonly enabledPlugin: Plugin;
-    readonly suffixes: string;
-    readonly type: string;
-}
-
-declare var MimeType: {
-    prototype: MimeType;
-    new(): MimeType;
-}
-
-interface MimeTypeArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(type: string): Plugin;
-    [index: number]: Plugin;
-}
-
-declare var MimeTypeArray: {
-    prototype: MimeTypeArray;
-    new(): MimeTypeArray;
-}
-
-interface MouseEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly button: number;
-    readonly buttons: number;
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly ctrlKey: boolean;
-    readonly fromElement: Element;
-    readonly layerX: number;
-    readonly layerY: number;
-    readonly metaKey: boolean;
-    readonly movementX: number;
-    readonly movementY: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly relatedTarget: EventTarget;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly shiftKey: boolean;
-    readonly toElement: Element;
-    readonly which: number;
-    readonly x: number;
-    readonly y: number;
-    getModifierState(keyArg: string): boolean;
-    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
-}
-
-interface MutationEvent extends Event {
-    readonly attrChange: number;
-    readonly attrName: string;
-    readonly newValue: string;
-    readonly prevValue: string;
-    readonly relatedNode: Node;
-    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-declare var MutationEvent: {
-    prototype: MutationEvent;
-    new(): MutationEvent;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-interface MutationObserver {
-    disconnect(): void;
-    observe(target: Node, options: MutationObserverInit): void;
-    takeRecords(): MutationRecord[];
-}
-
-declare var MutationObserver: {
-    prototype: MutationObserver;
-    new(callback: MutationCallback): MutationObserver;
-}
-
-interface MutationRecord {
-    readonly addedNodes: NodeList;
-    readonly attributeName: string | null;
-    readonly attributeNamespace: string | null;
-    readonly nextSibling: Node | null;
-    readonly oldValue: string | null;
-    readonly previousSibling: Node | null;
-    readonly removedNodes: NodeList;
-    readonly target: Node;
-    readonly type: string;
-}
-
-declare var MutationRecord: {
-    prototype: MutationRecord;
-    new(): MutationRecord;
-}
-
-interface NamedNodeMap {
-    readonly length: number;
-    getNamedItem(name: string): Attr;
-    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    item(index: number): Attr;
-    removeNamedItem(name: string): Attr;
-    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    setNamedItem(arg: Attr): Attr;
-    setNamedItemNS(arg: Attr): Attr;
-    [index: number]: Attr;
-}
-
-declare var NamedNodeMap: {
-    prototype: NamedNodeMap;
-    new(): NamedNodeMap;
-}
-
-interface NavigationCompletedEvent extends NavigationEvent {
-    readonly isSuccess: boolean;
-    readonly webErrorStatus: number;
-}
-
-declare var NavigationCompletedEvent: {
-    prototype: NavigationCompletedEvent;
-    new(): NavigationCompletedEvent;
-}
-
-interface NavigationEvent extends Event {
-    readonly uri: string;
-}
-
-declare var NavigationEvent: {
-    prototype: NavigationEvent;
-    new(): NavigationEvent;
-}
-
-interface NavigationEventWithReferrer extends NavigationEvent {
-    readonly referer: string;
-}
-
-declare var NavigationEventWithReferrer: {
-    prototype: NavigationEventWithReferrer;
-    new(): NavigationEventWithReferrer;
-}
-
-interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
-    readonly appCodeName: string;
-    readonly cookieEnabled: boolean;
-    readonly language: string;
-    readonly maxTouchPoints: number;
-    readonly mimeTypes: MimeTypeArray;
-    readonly msManipulationViewsEnabled: boolean;
-    readonly msMaxTouchPoints: number;
-    readonly msPointerEnabled: boolean;
-    readonly plugins: PluginArray;
-    readonly pointerEnabled: boolean;
-    readonly webdriver: boolean;
-    readonly hardwareConcurrency: number;
-    getGamepads(): Gamepad[];
-    javaEnabled(): boolean;
-    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
-    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
-    vibrate(pattern: number | number[]): boolean;
-}
-
-declare var Navigator: {
-    prototype: Navigator;
-    new(): Navigator;
-}
-
-interface Node extends EventTarget {
-    readonly attributes: NamedNodeMap;
-    readonly baseURI: string | null;
-    readonly childNodes: NodeList;
-    readonly firstChild: Node | null;
-    readonly lastChild: Node | null;
-    readonly localName: string | null;
-    readonly namespaceURI: string | null;
-    readonly nextSibling: Node | null;
-    readonly nodeName: string;
-    readonly nodeType: number;
-    nodeValue: string | null;
-    readonly ownerDocument: Document;
-    readonly parentElement: HTMLElement | null;
-    readonly parentNode: Node | null;
-    readonly previousSibling: Node | null;
-    textContent: string | null;
-    appendChild(newChild: Node): Node;
-    cloneNode(deep?: boolean): Node;
-    compareDocumentPosition(other: Node): number;
-    contains(child: Node): boolean;
-    hasAttributes(): boolean;
-    hasChildNodes(): boolean;
-    insertBefore(newChild: Node, refChild: Node | null): Node;
-    isDefaultNamespace(namespaceURI: string | null): boolean;
-    isEqualNode(arg: Node): boolean;
-    isSameNode(other: Node): boolean;
-    lookupNamespaceURI(prefix: string | null): string | null;
-    lookupPrefix(namespaceURI: string | null): string | null;
-    normalize(): void;
-    removeChild(oldChild: Node): Node;
-    replaceChild(newChild: Node, oldChild: Node): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-declare var Node: {
-    prototype: Node;
-    new(): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-interface NodeFilter {
-    acceptNode(n: Node): number;
-}
-
-declare var NodeFilter: {
-    readonly FILTER_ACCEPT: number;
-    readonly FILTER_REJECT: number;
-    readonly FILTER_SKIP: number;
-    readonly SHOW_ALL: number;
-    readonly SHOW_ATTRIBUTE: number;
-    readonly SHOW_CDATA_SECTION: number;
-    readonly SHOW_COMMENT: number;
-    readonly SHOW_DOCUMENT: number;
-    readonly SHOW_DOCUMENT_FRAGMENT: number;
-    readonly SHOW_DOCUMENT_TYPE: number;
-    readonly SHOW_ELEMENT: number;
-    readonly SHOW_ENTITY: number;
-    readonly SHOW_ENTITY_REFERENCE: number;
-    readonly SHOW_NOTATION: number;
-    readonly SHOW_PROCESSING_INSTRUCTION: number;
-    readonly SHOW_TEXT: number;
-}
-
-interface NodeIterator {
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    detach(): void;
-    nextNode(): Node;
-    previousNode(): Node;
-}
-
-declare var NodeIterator: {
-    prototype: NodeIterator;
-    new(): NodeIterator;
-}
-
-interface NodeList {
-    readonly length: number;
-    item(index: number): Node;
-    [index: number]: Node;
-}
-
-declare var NodeList: {
-    prototype: NodeList;
-    new(): NodeList;
-}
-
-interface OES_element_index_uint {
-}
-
-declare var OES_element_index_uint: {
-    prototype: OES_element_index_uint;
-    new(): OES_element_index_uint;
-}
-
-interface OES_standard_derivatives {
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-declare var OES_standard_derivatives: {
-    prototype: OES_standard_derivatives;
-    new(): OES_standard_derivatives;
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-interface OES_texture_float {
-}
-
-declare var OES_texture_float: {
-    prototype: OES_texture_float;
-    new(): OES_texture_float;
-}
-
-interface OES_texture_float_linear {
-}
-
-declare var OES_texture_float_linear: {
-    prototype: OES_texture_float_linear;
-    new(): OES_texture_float_linear;
-}
-
-interface OfflineAudioCompletionEvent extends Event {
-    readonly renderedBuffer: AudioBuffer;
-}
-
-declare var OfflineAudioCompletionEvent: {
-    prototype: OfflineAudioCompletionEvent;
-    new(): OfflineAudioCompletionEvent;
-}
-
-interface OfflineAudioContextEventMap {
-    "complete": Event;
-}
-
-interface OfflineAudioContext extends AudioContext {
-    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
-    startRendering(): PromiseLike<AudioBuffer>;
-    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OfflineAudioContext: {
-    prototype: OfflineAudioContext;
-    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
-}
-
-interface OscillatorNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface OscillatorNode extends AudioNode {
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
-    type: string;
-    setPeriodicWave(periodicWave: PeriodicWave): void;
-    start(when?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OscillatorNode: {
-    prototype: OscillatorNode;
-    new(): OscillatorNode;
-}
-
-interface OverflowEvent extends UIEvent {
-    readonly horizontalOverflow: boolean;
-    readonly orient: number;
-    readonly verticalOverflow: boolean;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-declare var OverflowEvent: {
-    prototype: OverflowEvent;
-    new(): OverflowEvent;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-interface PageTransitionEvent extends Event {
-    readonly persisted: boolean;
-}
-
-declare var PageTransitionEvent: {
-    prototype: PageTransitionEvent;
-    new(): PageTransitionEvent;
-}
-
-interface PannerNode extends AudioNode {
-    coneInnerAngle: number;
-    coneOuterAngle: number;
-    coneOuterGain: number;
-    distanceModel: string;
-    maxDistance: number;
-    panningModel: string;
-    refDistance: number;
-    rolloffFactor: number;
-    setOrientation(x: number, y: number, z: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var PannerNode: {
-    prototype: PannerNode;
-    new(): PannerNode;
-}
-
-interface PerfWidgetExternal {
-    readonly activeNetworkRequestCount: number;
-    readonly averageFrameTime: number;
-    readonly averagePaintTime: number;
-    readonly extraInformationEnabled: boolean;
-    readonly independentRenderingEnabled: boolean;
-    readonly irDisablingContentString: string;
-    readonly irStatusAvailable: boolean;
-    readonly maxCpuSpeed: number;
-    readonly paintRequestsPerSecond: number;
-    readonly performanceCounter: number;
-    readonly performanceCounterFrequency: number;
-    addEventListener(eventType: string, callback: Function): void;
-    getMemoryUsage(): number;
-    getProcessCpuUsage(): number;
-    getRecentCpuUsage(last: number | null): any;
-    getRecentFrames(last: number | null): any;
-    getRecentMemoryUsage(last: number | null): any;
-    getRecentPaintRequests(last: number | null): any;
-    removeEventListener(eventType: string, callback: Function): void;
-    repositionWindow(x: number, y: number): void;
-    resizeWindow(width: number, height: number): void;
-}
-
-declare var PerfWidgetExternal: {
-    prototype: PerfWidgetExternal;
-    new(): PerfWidgetExternal;
-}
-
-interface Performance {
-    readonly navigation: PerformanceNavigation;
-    readonly timing: PerformanceTiming;
-    clearMarks(markName?: string): void;
-    clearMeasures(measureName?: string): void;
-    clearResourceTimings(): void;
-    getEntries(): any;
-    getEntriesByName(name: string, entryType?: string): any;
-    getEntriesByType(entryType: string): any;
-    getMarks(markName?: string): any;
-    getMeasures(measureName?: string): any;
-    mark(markName: string): void;
-    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
-    now(): number;
-    setResourceTimingBufferSize(maxSize: number): void;
-    toJSON(): any;
-}
-
-declare var Performance: {
-    prototype: Performance;
-    new(): Performance;
-}
-
-interface PerformanceEntry {
-    readonly duration: number;
-    readonly entryType: string;
-    readonly name: string;
-    readonly startTime: number;
-}
-
-declare var PerformanceEntry: {
-    prototype: PerformanceEntry;
-    new(): PerformanceEntry;
-}
-
-interface PerformanceMark extends PerformanceEntry {
-}
-
-declare var PerformanceMark: {
-    prototype: PerformanceMark;
-    new(): PerformanceMark;
-}
-
-interface PerformanceMeasure extends PerformanceEntry {
-}
-
-declare var PerformanceMeasure: {
-    prototype: PerformanceMeasure;
-    new(): PerformanceMeasure;
-}
-
-interface PerformanceNavigation {
-    readonly redirectCount: number;
-    readonly type: number;
-    toJSON(): any;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-declare var PerformanceNavigation: {
-    prototype: PerformanceNavigation;
-    new(): PerformanceNavigation;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-interface PerformanceNavigationTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly navigationStart: number;
-    readonly redirectCount: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly type: string;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-}
-
-declare var PerformanceNavigationTiming: {
-    prototype: PerformanceNavigationTiming;
-    new(): PerformanceNavigationTiming;
-}
-
-interface PerformanceResourceTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly initiatorType: string;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-}
-
-declare var PerformanceResourceTiming: {
-    prototype: PerformanceResourceTiming;
-    new(): PerformanceResourceTiming;
-}
-
-interface PerformanceTiming {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly msFirstPaint: number;
-    readonly navigationStart: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-    readonly secureConnectionStart: number;
-    toJSON(): any;
-}
-
-declare var PerformanceTiming: {
-    prototype: PerformanceTiming;
-    new(): PerformanceTiming;
-}
-
-interface PeriodicWave {
-}
-
-declare var PeriodicWave: {
-    prototype: PeriodicWave;
-    new(): PeriodicWave;
-}
-
-interface PermissionRequest extends DeferredPermissionRequest {
-    readonly state: string;
-    defer(): void;
-}
-
-declare var PermissionRequest: {
-    prototype: PermissionRequest;
-    new(): PermissionRequest;
-}
-
-interface PermissionRequestedEvent extends Event {
-    readonly permissionRequest: PermissionRequest;
-}
-
-declare var PermissionRequestedEvent: {
-    prototype: PermissionRequestedEvent;
-    new(): PermissionRequestedEvent;
-}
-
-interface Plugin {
-    readonly description: string;
-    readonly filename: string;
-    readonly length: number;
-    readonly name: string;
-    readonly version: string;
-    item(index: number): MimeType;
-    namedItem(type: string): MimeType;
-    [index: number]: MimeType;
-}
-
-declare var Plugin: {
-    prototype: Plugin;
-    new(): Plugin;
-}
-
-interface PluginArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(name: string): Plugin;
-    refresh(reload?: boolean): void;
-    [index: number]: Plugin;
-}
-
-declare var PluginArray: {
-    prototype: PluginArray;
-    new(): PluginArray;
-}
-
-interface PointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var PointerEvent: {
-    prototype: PointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
-}
-
-interface PopStateEvent extends Event {
-    readonly state: any;
-    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
-}
-
-declare var PopStateEvent: {
-    prototype: PopStateEvent;
-    new(): PopStateEvent;
-}
-
-interface Position {
-    readonly coords: Coordinates;
-    readonly timestamp: number;
-}
-
-declare var Position: {
-    prototype: Position;
-    new(): Position;
-}
-
-interface PositionError {
-    readonly code: number;
-    readonly message: string;
-    toString(): string;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-declare var PositionError: {
-    prototype: PositionError;
-    new(): PositionError;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-interface ProcessingInstruction extends CharacterData {
-    readonly target: string;
-}
-
-declare var ProcessingInstruction: {
-    prototype: ProcessingInstruction;
-    new(): ProcessingInstruction;
-}
-
-interface ProgressEvent extends Event {
-    readonly lengthComputable: boolean;
-    readonly loaded: number;
-    readonly total: number;
-    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
-}
-
-declare var ProgressEvent: {
-    prototype: ProgressEvent;
-    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
-}
-
-interface RTCDTMFToneChangeEvent extends Event {
-    readonly tone: string;
-}
-
-declare var RTCDTMFToneChangeEvent: {
-    prototype: RTCDTMFToneChangeEvent;
-    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtlsTransportEventMap {
-    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
-    "error": ErrorEvent;
-}
-
-interface RTCDtlsTransport extends RTCStatsProvider {
-    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
-    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
-    readonly state: string;
-    readonly transport: RTCIceTransport;
-    getLocalParameters(): RTCDtlsParameters;
-    getRemoteCertificates(): ArrayBuffer[];
-    getRemoteParameters(): RTCDtlsParameters | null;
-    start(remoteParameters: RTCDtlsParameters): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtlsTransport: {
-    prototype: RTCDtlsTransport;
-    new(transport: RTCIceTransport): RTCDtlsTransport;
-}
-
-interface RTCDtlsTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCDtlsTransportStateChangedEvent: {
-    prototype: RTCDtlsTransportStateChangedEvent;
-    new(): RTCDtlsTransportStateChangedEvent;
-}
-
-interface RTCDtmfSenderEventMap {
-    "tonechange": RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtmfSender extends EventTarget {
-    readonly canInsertDTMF: boolean;
-    readonly duration: number;
-    readonly interToneGap: number;
-    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
-    readonly sender: RTCRtpSender;
-    readonly toneBuffer: string;
-    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
-    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtmfSender: {
-    prototype: RTCDtmfSender;
-    new(sender: RTCRtpSender): RTCDtmfSender;
-}
-
-interface RTCIceCandidatePairChangedEvent extends Event {
-    readonly pair: RTCIceCandidatePair;
-}
-
-declare var RTCIceCandidatePairChangedEvent: {
-    prototype: RTCIceCandidatePairChangedEvent;
-    new(): RTCIceCandidatePairChangedEvent;
-}
-
-interface RTCIceGathererEventMap {
-    "error": ErrorEvent;
-    "localcandidate": RTCIceGathererEvent;
-}
-
-interface RTCIceGatherer extends RTCStatsProvider {
-    readonly component: string;
-    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
-    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
-    createAssociatedGatherer(): RTCIceGatherer;
-    getLocalCandidates(): RTCIceCandidate[];
-    getLocalParameters(): RTCIceParameters;
-    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceGatherer: {
-    prototype: RTCIceGatherer;
-    new(options: RTCIceGatherOptions): RTCIceGatherer;
-}
-
-interface RTCIceGathererEvent extends Event {
-    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
-}
-
-declare var RTCIceGathererEvent: {
-    prototype: RTCIceGathererEvent;
-    new(): RTCIceGathererEvent;
-}
-
-interface RTCIceTransportEventMap {
-    "candidatepairchange": RTCIceCandidatePairChangedEvent;
-    "icestatechange": RTCIceTransportStateChangedEvent;
-}
-
-interface RTCIceTransport extends RTCStatsProvider {
-    readonly component: string;
-    readonly iceGatherer: RTCIceGatherer | null;
-    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
-    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
-    readonly role: string;
-    readonly state: string;
-    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
-    createAssociatedTransport(): RTCIceTransport;
-    getNominatedCandidatePair(): RTCIceCandidatePair | null;
-    getRemoteCandidates(): RTCIceCandidate[];
-    getRemoteParameters(): RTCIceParameters | null;
-    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
-    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceTransport: {
-    prototype: RTCIceTransport;
-    new(): RTCIceTransport;
-}
-
-interface RTCIceTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCIceTransportStateChangedEvent: {
-    prototype: RTCIceTransportStateChangedEvent;
-    new(): RTCIceTransportStateChangedEvent;
-}
-
-interface RTCRtpReceiverEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCRtpReceiver extends RTCStatsProvider {
-    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack | null;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    getContributingSources(): RTCRtpContributingSource[];
-    receive(parameters: RTCRtpParameters): void;
-    requestSendCSRC(csrc: number): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpReceiver: {
-    prototype: RTCRtpReceiver;
-    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCRtpSenderEventMap {
-    "error": ErrorEvent;
-    "ssrcconflict": RTCSsrcConflictEvent;
-}
-
-interface RTCRtpSender extends RTCStatsProvider {
-    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
-    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    send(parameters: RTCRtpParameters): void;
-    setTrack(track: MediaStreamTrack): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpSender: {
-    prototype: RTCRtpSender;
-    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCSrtpSdesTransportEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCSrtpSdesTransport extends EventTarget {
-    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
-    readonly transport: RTCIceTransport;
-    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCSrtpSdesTransport: {
-    prototype: RTCSrtpSdesTransport;
-    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
-    getLocalParameters(): RTCSrtpSdesParameters[];
-}
-
-interface RTCSsrcConflictEvent extends Event {
-    readonly ssrc: number;
-}
-
-declare var RTCSsrcConflictEvent: {
-    prototype: RTCSsrcConflictEvent;
-    new(): RTCSsrcConflictEvent;
-}
-
-interface RTCStatsProvider extends EventTarget {
-    getStats(): PromiseLike<RTCStatsReport>;
-    msGetStats(): PromiseLike<RTCStatsReport>;
-}
-
-declare var RTCStatsProvider: {
-    prototype: RTCStatsProvider;
-    new(): RTCStatsProvider;
-}
-
-interface Range {
-    readonly collapsed: boolean;
-    readonly commonAncestorContainer: Node;
-    readonly endContainer: Node;
-    readonly endOffset: number;
-    readonly startContainer: Node;
-    readonly startOffset: number;
-    cloneContents(): DocumentFragment;
-    cloneRange(): Range;
-    collapse(toStart: boolean): void;
-    compareBoundaryPoints(how: number, sourceRange: Range): number;
-    createContextualFragment(fragment: string): DocumentFragment;
-    deleteContents(): void;
-    detach(): void;
-    expand(Unit: string): boolean;
-    extractContents(): DocumentFragment;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    insertNode(newNode: Node): void;
-    selectNode(refNode: Node): void;
-    selectNodeContents(refNode: Node): void;
-    setEnd(refNode: Node, offset: number): void;
-    setEndAfter(refNode: Node): void;
-    setEndBefore(refNode: Node): void;
-    setStart(refNode: Node, offset: number): void;
-    setStartAfter(refNode: Node): void;
-    setStartBefore(refNode: Node): void;
-    surroundContents(newParent: Node): void;
-    toString(): string;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-declare var Range: {
-    prototype: Range;
-    new(): Range;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly target: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGAElement: {
-    prototype: SVGAElement;
-    new(): SVGAElement;
-}
-
-interface SVGAngle {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-declare var SVGAngle: {
-    prototype: SVGAngle;
-    new(): SVGAngle;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-interface SVGAnimatedAngle {
-    readonly animVal: SVGAngle;
-    readonly baseVal: SVGAngle;
-}
-
-declare var SVGAnimatedAngle: {
-    prototype: SVGAnimatedAngle;
-    new(): SVGAnimatedAngle;
-}
-
-interface SVGAnimatedBoolean {
-    readonly animVal: boolean;
-    baseVal: boolean;
-}
-
-declare var SVGAnimatedBoolean: {
-    prototype: SVGAnimatedBoolean;
-    new(): SVGAnimatedBoolean;
-}
-
-interface SVGAnimatedEnumeration {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedEnumeration: {
-    prototype: SVGAnimatedEnumeration;
-    new(): SVGAnimatedEnumeration;
-}
-
-interface SVGAnimatedInteger {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedInteger: {
-    prototype: SVGAnimatedInteger;
-    new(): SVGAnimatedInteger;
-}
-
-interface SVGAnimatedLength {
-    readonly animVal: SVGLength;
-    readonly baseVal: SVGLength;
-}
-
-declare var SVGAnimatedLength: {
-    prototype: SVGAnimatedLength;
-    new(): SVGAnimatedLength;
-}
-
-interface SVGAnimatedLengthList {
-    readonly animVal: SVGLengthList;
-    readonly baseVal: SVGLengthList;
-}
-
-declare var SVGAnimatedLengthList: {
-    prototype: SVGAnimatedLengthList;
-    new(): SVGAnimatedLengthList;
-}
-
-interface SVGAnimatedNumber {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedNumber: {
-    prototype: SVGAnimatedNumber;
-    new(): SVGAnimatedNumber;
-}
-
-interface SVGAnimatedNumberList {
-    readonly animVal: SVGNumberList;
-    readonly baseVal: SVGNumberList;
-}
-
-declare var SVGAnimatedNumberList: {
-    prototype: SVGAnimatedNumberList;
-    new(): SVGAnimatedNumberList;
-}
-
-interface SVGAnimatedPreserveAspectRatio {
-    readonly animVal: SVGPreserveAspectRatio;
-    readonly baseVal: SVGPreserveAspectRatio;
-}
-
-declare var SVGAnimatedPreserveAspectRatio: {
-    prototype: SVGAnimatedPreserveAspectRatio;
-    new(): SVGAnimatedPreserveAspectRatio;
-}
-
-interface SVGAnimatedRect {
-    readonly animVal: SVGRect;
-    readonly baseVal: SVGRect;
-}
-
-declare var SVGAnimatedRect: {
-    prototype: SVGAnimatedRect;
-    new(): SVGAnimatedRect;
-}
-
-interface SVGAnimatedString {
-    readonly animVal: string;
-    baseVal: string;
-}
-
-declare var SVGAnimatedString: {
-    prototype: SVGAnimatedString;
-    new(): SVGAnimatedString;
-}
-
-interface SVGAnimatedTransformList {
-    readonly animVal: SVGTransformList;
-    readonly baseVal: SVGTransformList;
-}
-
-declare var SVGAnimatedTransformList: {
-    prototype: SVGAnimatedTransformList;
-    new(): SVGAnimatedTransformList;
-}
-
-interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGCircleElement: {
-    prototype: SVGCircleElement;
-    new(): SVGCircleElement;
-}
-
-interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
-    readonly clipPathUnits: SVGAnimatedEnumeration;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGClipPathElement: {
-    prototype: SVGClipPathElement;
-    new(): SVGClipPathElement;
-}
-
-interface SVGComponentTransferFunctionElement extends SVGElement {
-    readonly amplitude: SVGAnimatedNumber;
-    readonly exponent: SVGAnimatedNumber;
-    readonly intercept: SVGAnimatedNumber;
-    readonly offset: SVGAnimatedNumber;
-    readonly slope: SVGAnimatedNumber;
-    readonly tableValues: SVGAnimatedNumberList;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGComponentTransferFunctionElement: {
-    prototype: SVGComponentTransferFunctionElement;
-    new(): SVGComponentTransferFunctionElement;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-}
-
-interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDefsElement: {
-    prototype: SVGDefsElement;
-    new(): SVGDefsElement;
-}
-
-interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDescElement: {
-    prototype: SVGDescElement;
-    new(): SVGDescElement;
-}
-
-interface SVGElementEventMap extends ElementEventMap {
-    "click": MouseEvent;
-    "dblclick": MouseEvent;
-    "focusin": FocusEvent;
-    "focusout": FocusEvent;
-    "load": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-}
-
-interface SVGElement extends Element {
-    onclick: (this: SVGElement, ev: MouseEvent) => any;
-    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
-    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
-    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
-    onload: (this: SVGElement, ev: Event) => any;
-    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
-    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
-    readonly ownerSVGElement: SVGSVGElement;
-    readonly viewportElement: SVGElement;
-    xmlbase: string;
-    className: any;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGElement: {
-    prototype: SVGElement;
-    new(): SVGElement;
-}
-
-interface SVGElementInstance extends EventTarget {
-    readonly childNodes: SVGElementInstanceList;
-    readonly correspondingElement: SVGElement;
-    readonly correspondingUseElement: SVGUseElement;
-    readonly firstChild: SVGElementInstance;
-    readonly lastChild: SVGElementInstance;
-    readonly nextSibling: SVGElementInstance;
-    readonly parentNode: SVGElementInstance;
-    readonly previousSibling: SVGElementInstance;
-}
-
-declare var SVGElementInstance: {
-    prototype: SVGElementInstance;
-    new(): SVGElementInstance;
-}
-
-interface SVGElementInstanceList {
-    readonly length: number;
-    item(index: number): SVGElementInstance;
-}
-
-declare var SVGElementInstanceList: {
-    prototype: SVGElementInstanceList;
-    new(): SVGElementInstanceList;
-}
-
-interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGEllipseElement: {
-    prototype: SVGEllipseElement;
-    new(): SVGEllipseElement;
-}
-
-interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly mode: SVGAnimatedEnumeration;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEBlendElement: {
-    prototype: SVGFEBlendElement;
-    new(): SVGFEBlendElement;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-}
-
-interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly type: SVGAnimatedEnumeration;
-    readonly values: SVGAnimatedNumberList;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEColorMatrixElement: {
-    prototype: SVGFEColorMatrixElement;
-    new(): SVGFEColorMatrixElement;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-}
-
-interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEComponentTransferElement: {
-    prototype: SVGFEComponentTransferElement;
-    new(): SVGFEComponentTransferElement;
-}
-
-interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly k1: SVGAnimatedNumber;
-    readonly k2: SVGAnimatedNumber;
-    readonly k3: SVGAnimatedNumber;
-    readonly k4: SVGAnimatedNumber;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFECompositeElement: {
-    prototype: SVGFECompositeElement;
-    new(): SVGFECompositeElement;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-}
-
-interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly bias: SVGAnimatedNumber;
-    readonly divisor: SVGAnimatedNumber;
-    readonly edgeMode: SVGAnimatedEnumeration;
-    readonly in1: SVGAnimatedString;
-    readonly kernelMatrix: SVGAnimatedNumberList;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly orderX: SVGAnimatedInteger;
-    readonly orderY: SVGAnimatedInteger;
-    readonly preserveAlpha: SVGAnimatedBoolean;
-    readonly targetX: SVGAnimatedInteger;
-    readonly targetY: SVGAnimatedInteger;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEConvolveMatrixElement: {
-    prototype: SVGFEConvolveMatrixElement;
-    new(): SVGFEConvolveMatrixElement;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-}
-
-interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly diffuseConstant: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDiffuseLightingElement: {
-    prototype: SVGFEDiffuseLightingElement;
-    new(): SVGFEDiffuseLightingElement;
-}
-
-interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly scale: SVGAnimatedNumber;
-    readonly xChannelSelector: SVGAnimatedEnumeration;
-    readonly yChannelSelector: SVGAnimatedEnumeration;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDisplacementMapElement: {
-    prototype: SVGFEDisplacementMapElement;
-    new(): SVGFEDisplacementMapElement;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-}
-
-interface SVGFEDistantLightElement extends SVGElement {
-    readonly azimuth: SVGAnimatedNumber;
-    readonly elevation: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDistantLightElement: {
-    prototype: SVGFEDistantLightElement;
-    new(): SVGFEDistantLightElement;
-}
-
-interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEFloodElement: {
-    prototype: SVGFEFloodElement;
-    new(): SVGFEFloodElement;
-}
-
-interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncAElement: {
-    prototype: SVGFEFuncAElement;
-    new(): SVGFEFuncAElement;
-}
-
-interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncBElement: {
-    prototype: SVGFEFuncBElement;
-    new(): SVGFEFuncBElement;
-}
-
-interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncGElement: {
-    prototype: SVGFEFuncGElement;
-    new(): SVGFEFuncGElement;
-}
-
-interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncRElement: {
-    prototype: SVGFEFuncRElement;
-    new(): SVGFEFuncRElement;
-}
-
-interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly stdDeviationX: SVGAnimatedNumber;
-    readonly stdDeviationY: SVGAnimatedNumber;
-    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEGaussianBlurElement: {
-    prototype: SVGFEGaussianBlurElement;
-    new(): SVGFEGaussianBlurElement;
-}
-
-interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEImageElement: {
-    prototype: SVGFEImageElement;
-    new(): SVGFEImageElement;
-}
-
-interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeElement: {
-    prototype: SVGFEMergeElement;
-    new(): SVGFEMergeElement;
-}
-
-interface SVGFEMergeNodeElement extends SVGElement {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeNodeElement: {
-    prototype: SVGFEMergeNodeElement;
-    new(): SVGFEMergeNodeElement;
-}
-
-interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly radiusX: SVGAnimatedNumber;
-    readonly radiusY: SVGAnimatedNumber;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMorphologyElement: {
-    prototype: SVGFEMorphologyElement;
-    new(): SVGFEMorphologyElement;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-}
-
-interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly dx: SVGAnimatedNumber;
-    readonly dy: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEOffsetElement: {
-    prototype: SVGFEOffsetElement;
-    new(): SVGFEOffsetElement;
-}
-
-interface SVGFEPointLightElement extends SVGElement {
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEPointLightElement: {
-    prototype: SVGFEPointLightElement;
-    new(): SVGFEPointLightElement;
-}
-
-interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly specularConstant: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpecularLightingElement: {
-    prototype: SVGFESpecularLightingElement;
-    new(): SVGFESpecularLightingElement;
-}
-
-interface SVGFESpotLightElement extends SVGElement {
-    readonly limitingConeAngle: SVGAnimatedNumber;
-    readonly pointsAtX: SVGAnimatedNumber;
-    readonly pointsAtY: SVGAnimatedNumber;
-    readonly pointsAtZ: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpotLightElement: {
-    prototype: SVGFESpotLightElement;
-    new(): SVGFESpotLightElement;
-}
-
-interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETileElement: {
-    prototype: SVGFETileElement;
-    new(): SVGFETileElement;
-}
-
-interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly baseFrequencyX: SVGAnimatedNumber;
-    readonly baseFrequencyY: SVGAnimatedNumber;
-    readonly numOctaves: SVGAnimatedInteger;
-    readonly seed: SVGAnimatedNumber;
-    readonly stitchTiles: SVGAnimatedEnumeration;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETurbulenceElement: {
-    prototype: SVGFETurbulenceElement;
-    new(): SVGFETurbulenceElement;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-}
-
-interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
-    readonly filterResX: SVGAnimatedInteger;
-    readonly filterResY: SVGAnimatedInteger;
-    readonly filterUnits: SVGAnimatedEnumeration;
-    readonly height: SVGAnimatedLength;
-    readonly primitiveUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    setFilterRes(filterResX: number, filterResY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFilterElement: {
-    prototype: SVGFilterElement;
-    new(): SVGFilterElement;
-}
-
-interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGForeignObjectElement: {
-    prototype: SVGForeignObjectElement;
-    new(): SVGForeignObjectElement;
-}
-
-interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGElement: {
-    prototype: SVGGElement;
-    new(): SVGGElement;
-}
-
-interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
-    readonly gradientTransform: SVGAnimatedTransformList;
-    readonly gradientUnits: SVGAnimatedEnumeration;
-    readonly spreadMethod: SVGAnimatedEnumeration;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGradientElement: {
-    prototype: SVGGradientElement;
-    new(): SVGGradientElement;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-}
-
-interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly height: SVGAnimatedLength;
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGImageElement: {
-    prototype: SVGImageElement;
-    new(): SVGImageElement;
-}
-
-interface SVGLength {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-declare var SVGLength: {
-    prototype: SVGLength;
-    new(): SVGLength;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-interface SVGLengthList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGLength): SVGLength;
-    clear(): void;
-    getItem(index: number): SVGLength;
-    initialize(newItem: SVGLength): SVGLength;
-    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
-    removeItem(index: number): SVGLength;
-    replaceItem(newItem: SVGLength, index: number): SVGLength;
-}
-
-declare var SVGLengthList: {
-    prototype: SVGLengthList;
-    new(): SVGLengthList;
-}
-
-interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGLineElement: {
-    prototype: SVGLineElement;
-    new(): SVGLineElement;
-}
-
-interface SVGLinearGradientElement extends SVGGradientElement {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-}
-
-declare var SVGLinearGradientElement: {
-    prototype: SVGLinearGradientElement;
-    new(): SVGLinearGradientElement;
-}
-
-interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    readonly markerHeight: SVGAnimatedLength;
-    readonly markerUnits: SVGAnimatedEnumeration;
-    readonly markerWidth: SVGAnimatedLength;
-    readonly orientAngle: SVGAnimatedAngle;
-    readonly orientType: SVGAnimatedEnumeration;
-    readonly refX: SVGAnimatedLength;
-    readonly refY: SVGAnimatedLength;
-    setOrientToAngle(angle: SVGAngle): void;
-    setOrientToAuto(): void;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMarkerElement: {
-    prototype: SVGMarkerElement;
-    new(): SVGMarkerElement;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-}
-
-interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly maskContentUnits: SVGAnimatedEnumeration;
-    readonly maskUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMaskElement: {
-    prototype: SVGMaskElement;
-    new(): SVGMaskElement;
-}
-
-interface SVGMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    flipX(): SVGMatrix;
-    flipY(): SVGMatrix;
-    inverse(): SVGMatrix;
-    multiply(secondMatrix: SVGMatrix): SVGMatrix;
-    rotate(angle: number): SVGMatrix;
-    rotateFromVector(x: number, y: number): SVGMatrix;
-    scale(scaleFactor: number): SVGMatrix;
-    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
-    skewX(angle: number): SVGMatrix;
-    skewY(angle: number): SVGMatrix;
-    translate(x: number, y: number): SVGMatrix;
-}
-
-declare var SVGMatrix: {
-    prototype: SVGMatrix;
-    new(): SVGMatrix;
-}
-
-interface SVGMetadataElement extends SVGElement {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMetadataElement: {
-    prototype: SVGMetadataElement;
-    new(): SVGMetadataElement;
-}
-
-interface SVGNumber {
-    value: number;
-}
-
-declare var SVGNumber: {
-    prototype: SVGNumber;
-    new(): SVGNumber;
-}
-
-interface SVGNumberList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGNumber): SVGNumber;
-    clear(): void;
-    getItem(index: number): SVGNumber;
-    initialize(newItem: SVGNumber): SVGNumber;
-    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
-    removeItem(index: number): SVGNumber;
-    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
-}
-
-declare var SVGNumberList: {
-    prototype: SVGNumberList;
-    new(): SVGNumberList;
-}
-
-interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
-    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
-    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
-    createSVGPathSegClosePath(): SVGPathSegClosePath;
-    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
-    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
-    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
-    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
-    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
-    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
-    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
-    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
-    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
-    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
-    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
-    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
-    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
-    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
-    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
-    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
-    getPathSegAtLength(distance: number): number;
-    getPointAtLength(distance: number): SVGPoint;
-    getTotalLength(): number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPathElement: {
-    prototype: SVGPathElement;
-    new(): SVGPathElement;
-}
-
-interface SVGPathSeg {
-    readonly pathSegType: number;
-    readonly pathSegTypeAsLetter: string;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-declare var SVGPathSeg: {
-    prototype: SVGPathSeg;
-    new(): SVGPathSeg;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-interface SVGPathSegArcAbs extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcAbs: {
-    prototype: SVGPathSegArcAbs;
-    new(): SVGPathSegArcAbs;
-}
-
-interface SVGPathSegArcRel extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcRel: {
-    prototype: SVGPathSegArcRel;
-    new(): SVGPathSegArcRel;
-}
-
-interface SVGPathSegClosePath extends SVGPathSeg {
-}
-
-declare var SVGPathSegClosePath: {
-    prototype: SVGPathSegClosePath;
-    new(): SVGPathSegClosePath;
-}
-
-interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicAbs: {
-    prototype: SVGPathSegCurvetoCubicAbs;
-    new(): SVGPathSegCurvetoCubicAbs;
-}
-
-interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicRel: {
-    prototype: SVGPathSegCurvetoCubicRel;
-    new(): SVGPathSegCurvetoCubicRel;
-}
-
-interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothAbs: {
-    prototype: SVGPathSegCurvetoCubicSmoothAbs;
-    new(): SVGPathSegCurvetoCubicSmoothAbs;
-}
-
-interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothRel: {
-    prototype: SVGPathSegCurvetoCubicSmoothRel;
-    new(): SVGPathSegCurvetoCubicSmoothRel;
-}
-
-interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticAbs: {
-    prototype: SVGPathSegCurvetoQuadraticAbs;
-    new(): SVGPathSegCurvetoQuadraticAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticRel: {
-    prototype: SVGPathSegCurvetoQuadraticRel;
-    new(): SVGPathSegCurvetoQuadraticRel;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
-    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothRel: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
-    new(): SVGPathSegCurvetoQuadraticSmoothRel;
-}
-
-interface SVGPathSegLinetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoAbs: {
-    prototype: SVGPathSegLinetoAbs;
-    new(): SVGPathSegLinetoAbs;
-}
-
-interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalAbs: {
-    prototype: SVGPathSegLinetoHorizontalAbs;
-    new(): SVGPathSegLinetoHorizontalAbs;
-}
-
-interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalRel: {
-    prototype: SVGPathSegLinetoHorizontalRel;
-    new(): SVGPathSegLinetoHorizontalRel;
-}
-
-interface SVGPathSegLinetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoRel: {
-    prototype: SVGPathSegLinetoRel;
-    new(): SVGPathSegLinetoRel;
-}
-
-interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalAbs: {
-    prototype: SVGPathSegLinetoVerticalAbs;
-    new(): SVGPathSegLinetoVerticalAbs;
-}
-
-interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalRel: {
-    prototype: SVGPathSegLinetoVerticalRel;
-    new(): SVGPathSegLinetoVerticalRel;
-}
-
-interface SVGPathSegList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPathSeg): SVGPathSeg;
-    clear(): void;
-    getItem(index: number): SVGPathSeg;
-    initialize(newItem: SVGPathSeg): SVGPathSeg;
-    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
-    removeItem(index: number): SVGPathSeg;
-    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
-}
-
-declare var SVGPathSegList: {
-    prototype: SVGPathSegList;
-    new(): SVGPathSegList;
-}
-
-interface SVGPathSegMovetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoAbs: {
-    prototype: SVGPathSegMovetoAbs;
-    new(): SVGPathSegMovetoAbs;
-}
-
-interface SVGPathSegMovetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoRel: {
-    prototype: SVGPathSegMovetoRel;
-    new(): SVGPathSegMovetoRel;
-}
-
-interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly patternContentUnits: SVGAnimatedEnumeration;
-    readonly patternTransform: SVGAnimatedTransformList;
-    readonly patternUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPatternElement: {
-    prototype: SVGPatternElement;
-    new(): SVGPatternElement;
-}
-
-interface SVGPoint {
-    x: number;
-    y: number;
-    matrixTransform(matrix: SVGMatrix): SVGPoint;
-}
-
-declare var SVGPoint: {
-    prototype: SVGPoint;
-    new(): SVGPoint;
-}
-
-interface SVGPointList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPoint): SVGPoint;
-    clear(): void;
-    getItem(index: number): SVGPoint;
-    initialize(newItem: SVGPoint): SVGPoint;
-    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
-    removeItem(index: number): SVGPoint;
-    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
-}
-
-declare var SVGPointList: {
-    prototype: SVGPointList;
-    new(): SVGPointList;
-}
-
-interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolygonElement: {
-    prototype: SVGPolygonElement;
-    new(): SVGPolygonElement;
-}
-
-interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolylineElement: {
-    prototype: SVGPolylineElement;
-    new(): SVGPolylineElement;
-}
-
-interface SVGPreserveAspectRatio {
-    align: number;
-    meetOrSlice: number;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-declare var SVGPreserveAspectRatio: {
-    prototype: SVGPreserveAspectRatio;
-    new(): SVGPreserveAspectRatio;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-interface SVGRadialGradientElement extends SVGGradientElement {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly fx: SVGAnimatedLength;
-    readonly fy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-}
-
-declare var SVGRadialGradientElement: {
-    prototype: SVGRadialGradientElement;
-    new(): SVGRadialGradientElement;
-}
-
-interface SVGRect {
-    height: number;
-    width: number;
-    x: number;
-    y: number;
-}
-
-declare var SVGRect: {
-    prototype: SVGRect;
-    new(): SVGRect;
-}
-
-interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGRectElement: {
-    prototype: SVGRectElement;
-    new(): SVGRectElement;
-}
-
-interface SVGSVGElementEventMap extends SVGElementEventMap {
-    "SVGAbort": Event;
-    "SVGError": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "SVGUnload": Event;
-    "SVGZoom": SVGZoomEvent;
-}
-
-interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    contentScriptType: string;
-    contentStyleType: string;
-    currentScale: number;
-    readonly currentTranslate: SVGPoint;
-    readonly height: SVGAnimatedLength;
-    onabort: (this: SVGSVGElement, ev: Event) => any;
-    onerror: (this: SVGSVGElement, ev: Event) => any;
-    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
-    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
-    onunload: (this: SVGSVGElement, ev: Event) => any;
-    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
-    readonly pixelUnitToMillimeterX: number;
-    readonly pixelUnitToMillimeterY: number;
-    readonly screenPixelToMillimeterX: number;
-    readonly screenPixelToMillimeterY: number;
-    readonly viewport: SVGRect;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
-    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
-    createSVGAngle(): SVGAngle;
-    createSVGLength(): SVGLength;
-    createSVGMatrix(): SVGMatrix;
-    createSVGNumber(): SVGNumber;
-    createSVGPoint(): SVGPoint;
-    createSVGRect(): SVGRect;
-    createSVGTransform(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    deselectAll(): void;
-    forceRedraw(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getCurrentTime(): number;
-    getElementById(elementId: string): Element;
-    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    pauseAnimations(): void;
-    setCurrentTime(seconds: number): void;
-    suspendRedraw(maxWaitMilliseconds: number): number;
-    unpauseAnimations(): void;
-    unsuspendRedraw(suspendHandleID: number): void;
-    unsuspendRedrawAll(): void;
-    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSVGElement: {
-    prototype: SVGSVGElement;
-    new(): SVGSVGElement;
-}
-
-interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGScriptElement: {
-    prototype: SVGScriptElement;
-    new(): SVGScriptElement;
-}
-
-interface SVGStopElement extends SVGElement, SVGStylable {
-    readonly offset: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStopElement: {
-    prototype: SVGStopElement;
-    new(): SVGStopElement;
-}
-
-interface SVGStringList {
-    readonly numberOfItems: number;
-    appendItem(newItem: string): string;
-    clear(): void;
-    getItem(index: number): string;
-    initialize(newItem: string): string;
-    insertItemBefore(newItem: string, index: number): string;
-    removeItem(index: number): string;
-    replaceItem(newItem: string, index: number): string;
-}
-
-declare var SVGStringList: {
-    prototype: SVGStringList;
-    new(): SVGStringList;
-}
-
-interface SVGStyleElement extends SVGElement, SVGLangSpace {
-    disabled: boolean;
-    media: string;
-    title: string;
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStyleElement: {
-    prototype: SVGStyleElement;
-    new(): SVGStyleElement;
-}
-
-interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSwitchElement: {
-    prototype: SVGSwitchElement;
-    new(): SVGSwitchElement;
-}
-
-interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSymbolElement: {
-    prototype: SVGSymbolElement;
-    new(): SVGSymbolElement;
-}
-
-interface SVGTSpanElement extends SVGTextPositioningElement {
-}
-
-declare var SVGTSpanElement: {
-    prototype: SVGTSpanElement;
-    new(): SVGTSpanElement;
-}
-
-interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
-    readonly lengthAdjust: SVGAnimatedEnumeration;
-    readonly textLength: SVGAnimatedLength;
-    getCharNumAtPosition(point: SVGPoint): number;
-    getComputedTextLength(): number;
-    getEndPositionOfChar(charnum: number): SVGPoint;
-    getExtentOfChar(charnum: number): SVGRect;
-    getNumberOfChars(): number;
-    getRotationOfChar(charnum: number): number;
-    getStartPositionOfChar(charnum: number): SVGPoint;
-    getSubStringLength(charnum: number, nchars: number): number;
-    selectSubString(charnum: number, nchars: number): void;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextContentElement: {
-    prototype: SVGTextContentElement;
-    new(): SVGTextContentElement;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-}
-
-interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
-}
-
-declare var SVGTextElement: {
-    prototype: SVGTextElement;
-    new(): SVGTextElement;
-}
-
-interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
-    readonly method: SVGAnimatedEnumeration;
-    readonly spacing: SVGAnimatedEnumeration;
-    readonly startOffset: SVGAnimatedLength;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-declare var SVGTextPathElement: {
-    prototype: SVGTextPathElement;
-    new(): SVGTextPathElement;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-interface SVGTextPositioningElement extends SVGTextContentElement {
-    readonly dx: SVGAnimatedLengthList;
-    readonly dy: SVGAnimatedLengthList;
-    readonly rotate: SVGAnimatedNumberList;
-    readonly x: SVGAnimatedLengthList;
-    readonly y: SVGAnimatedLengthList;
-}
-
-declare var SVGTextPositioningElement: {
-    prototype: SVGTextPositioningElement;
-    new(): SVGTextPositioningElement;
-}
-
-interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTitleElement: {
-    prototype: SVGTitleElement;
-    new(): SVGTitleElement;
-}
-
-interface SVGTransform {
-    readonly angle: number;
-    readonly matrix: SVGMatrix;
-    readonly type: number;
-    setMatrix(matrix: SVGMatrix): void;
-    setRotate(angle: number, cx: number, cy: number): void;
-    setScale(sx: number, sy: number): void;
-    setSkewX(angle: number): void;
-    setSkewY(angle: number): void;
-    setTranslate(tx: number, ty: number): void;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-declare var SVGTransform: {
-    prototype: SVGTransform;
-    new(): SVGTransform;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-interface SVGTransformList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGTransform): SVGTransform;
-    clear(): void;
-    consolidate(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    getItem(index: number): SVGTransform;
-    initialize(newItem: SVGTransform): SVGTransform;
-    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
-    removeItem(index: number): SVGTransform;
-    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
-}
-
-declare var SVGTransformList: {
-    prototype: SVGTransformList;
-    new(): SVGTransformList;
-}
-
-interface SVGUnitTypes {
-    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
-    readonly SVG_UNIT_TYPE_UNKNOWN: number;
-    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
-}
-declare var SVGUnitTypes: SVGUnitTypes;
-
-interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly animatedInstanceRoot: SVGElementInstance;
-    readonly height: SVGAnimatedLength;
-    readonly instanceRoot: SVGElementInstance;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGUseElement: {
-    prototype: SVGUseElement;
-    new(): SVGUseElement;
-}
-
-interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    readonly viewTarget: SVGStringList;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGViewElement: {
-    prototype: SVGViewElement;
-    new(): SVGViewElement;
-}
-
-interface SVGZoomAndPan {
-    readonly zoomAndPan: number;
-}
-
-declare var SVGZoomAndPan: {
-    readonly SVG_ZOOMANDPAN_DISABLE: number;
-    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
-    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-}
-
-interface SVGZoomEvent extends UIEvent {
-    readonly newScale: number;
-    readonly newTranslate: SVGPoint;
-    readonly previousScale: number;
-    readonly previousTranslate: SVGPoint;
-    readonly zoomRectScreen: SVGRect;
-}
-
-declare var SVGZoomEvent: {
-    prototype: SVGZoomEvent;
-    new(): SVGZoomEvent;
-}
-
-interface ScreenEventMap {
-    "MSOrientationChange": Event;
-}
-
-interface Screen extends EventTarget {
-    readonly availHeight: number;
-    readonly availWidth: number;
-    bufferDepth: number;
-    readonly colorDepth: number;
-    readonly deviceXDPI: number;
-    readonly deviceYDPI: number;
-    readonly fontSmoothingEnabled: boolean;
-    readonly height: number;
-    readonly logicalXDPI: number;
-    readonly logicalYDPI: number;
-    readonly msOrientation: string;
-    onmsorientationchange: (this: Screen, ev: Event) => any;
-    readonly pixelDepth: number;
-    readonly systemXDPI: number;
-    readonly systemYDPI: number;
-    readonly width: number;
-    msLockOrientation(orientations: string | string[]): boolean;
-    msUnlockOrientation(): void;
-    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Screen: {
-    prototype: Screen;
-    new(): Screen;
-}
-
-interface ScriptNotifyEvent extends Event {
-    readonly callingUri: string;
-    readonly value: string;
-}
-
-declare var ScriptNotifyEvent: {
-    prototype: ScriptNotifyEvent;
-    new(): ScriptNotifyEvent;
-}
-
-interface ScriptProcessorNodeEventMap {
-    "audioprocess": AudioProcessingEvent;
-}
-
-interface ScriptProcessorNode extends AudioNode {
-    readonly bufferSize: number;
-    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
-    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ScriptProcessorNode: {
-    prototype: ScriptProcessorNode;
-    new(): ScriptProcessorNode;
-}
-
-interface Selection {
-    readonly anchorNode: Node;
-    readonly anchorOffset: number;
-    readonly focusNode: Node;
-    readonly focusOffset: number;
-    readonly isCollapsed: boolean;
-    readonly rangeCount: number;
-    readonly type: string;
-    addRange(range: Range): void;
-    collapse(parentNode: Node, offset: number): void;
-    collapseToEnd(): void;
-    collapseToStart(): void;
-    containsNode(node: Node, partlyContained: boolean): boolean;
-    deleteFromDocument(): void;
-    empty(): void;
-    extend(newNode: Node, offset: number): void;
-    getRangeAt(index: number): Range;
-    removeAllRanges(): void;
-    removeRange(range: Range): void;
-    selectAllChildren(parentNode: Node): void;
-    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
-    toString(): string;
-}
-
-declare var Selection: {
-    prototype: Selection;
-    new(): Selection;
-}
-
-interface SourceBuffer extends EventTarget {
-    appendWindowEnd: number;
-    appendWindowStart: number;
-    readonly audioTracks: AudioTrackList;
-    readonly buffered: TimeRanges;
-    mode: string;
-    timestampOffset: number;
-    readonly updating: boolean;
-    readonly videoTracks: VideoTrackList;
-    abort(): void;
-    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
-    appendStream(stream: MSStream, maxSize?: number): void;
-    remove(start: number, end: number): void;
-}
-
-declare var SourceBuffer: {
-    prototype: SourceBuffer;
-    new(): SourceBuffer;
-}
-
-interface SourceBufferList extends EventTarget {
-    readonly length: number;
-    item(index: number): SourceBuffer;
-    [index: number]: SourceBuffer;
-}
-
-declare var SourceBufferList: {
-    prototype: SourceBufferList;
-    new(): SourceBufferList;
-}
-
-interface StereoPannerNode extends AudioNode {
-    readonly pan: AudioParam;
-}
-
-declare var StereoPannerNode: {
-    prototype: StereoPannerNode;
-    new(): StereoPannerNode;
-}
-
-interface Storage {
-    readonly length: number;
-    clear(): void;
-    getItem(key: string): string | null;
-    key(index: number): string | null;
-    removeItem(key: string): void;
-    setItem(key: string, data: string): void;
-    [key: string]: any;
-    [index: number]: string;
-}
-
-declare var Storage: {
-    prototype: Storage;
-    new(): Storage;
-}
-
-interface StorageEvent extends Event {
-    readonly url: string;
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    storageArea?: Storage;
-}
-
-declare var StorageEvent: {
-    prototype: StorageEvent;
-    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
-}
-
-interface StyleMedia {
-    readonly type: string;
-    matchMedium(mediaquery: string): boolean;
-}
-
-declare var StyleMedia: {
-    prototype: StyleMedia;
-    new(): StyleMedia;
-}
-
-interface StyleSheet {
-    disabled: boolean;
-    readonly href: string;
-    readonly media: MediaList;
-    readonly ownerNode: Node;
-    readonly parentStyleSheet: StyleSheet;
-    readonly title: string;
-    readonly type: string;
-}
-
-declare var StyleSheet: {
-    prototype: StyleSheet;
-    new(): StyleSheet;
-}
-
-interface StyleSheetList {
-    readonly length: number;
-    item(index?: number): StyleSheet;
-    [index: number]: StyleSheet;
-}
-
-declare var StyleSheetList: {
-    prototype: StyleSheetList;
-    new(): StyleSheetList;
-}
-
-interface StyleSheetPageList {
-    readonly length: number;
-    item(index: number): CSSPageRule;
-    [index: number]: CSSPageRule;
-}
-
-declare var StyleSheetPageList: {
-    prototype: StyleSheetPageList;
-    new(): StyleSheetPageList;
-}
-
-interface SubtleCrypto {
-    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
-    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
-    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
-    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
-    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
-    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
-    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
-    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
-    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
-    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
-    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
-    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
-}
-
-declare var SubtleCrypto: {
-    prototype: SubtleCrypto;
-    new(): SubtleCrypto;
-}
-
-interface Text extends CharacterData {
-    readonly wholeText: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    splitText(offset: number): Text;
-}
-
-declare var Text: {
-    prototype: Text;
-    new(): Text;
-}
-
-interface TextEvent extends UIEvent {
-    readonly data: string;
-    readonly inputMethod: number;
-    readonly locale: string;
-    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-declare var TextEvent: {
-    prototype: TextEvent;
-    new(): TextEvent;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-interface TextMetrics {
-    readonly width: number;
-}
-
-declare var TextMetrics: {
-    prototype: TextMetrics;
-    new(): TextMetrics;
-}
-
-interface TextTrackEventMap {
-    "cuechange": Event;
-    "error": ErrorEvent;
-    "load": Event;
-}
-
-interface TextTrack extends EventTarget {
-    readonly activeCues: TextTrackCueList;
-    readonly cues: TextTrackCueList;
-    readonly inBandMetadataTrackDispatchType: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly language: string;
-    mode: any;
-    oncuechange: (this: TextTrack, ev: Event) => any;
-    onerror: (this: TextTrack, ev: ErrorEvent) => any;
-    onload: (this: TextTrack, ev: Event) => any;
-    readonly readyState: number;
-    addCue(cue: TextTrackCue): void;
-    removeCue(cue: TextTrackCue): void;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrack: {
-    prototype: TextTrack;
-    new(): TextTrack;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-}
-
-interface TextTrackCueEventMap {
-    "enter": Event;
-    "exit": Event;
-}
-
-interface TextTrackCue extends EventTarget {
-    endTime: number;
-    id: string;
-    onenter: (this: TextTrackCue, ev: Event) => any;
-    onexit: (this: TextTrackCue, ev: Event) => any;
-    pauseOnExit: boolean;
-    startTime: number;
-    text: string;
-    readonly track: TextTrack;
-    getCueAsHTML(): DocumentFragment;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrackCue: {
-    prototype: TextTrackCue;
-    new(startTime: number, endTime: number, text: string): TextTrackCue;
-}
-
-interface TextTrackCueList {
-    readonly length: number;
-    getCueById(id: string): TextTrackCue;
-    item(index: number): TextTrackCue;
-    [index: number]: TextTrackCue;
-}
-
-declare var TextTrackCueList: {
-    prototype: TextTrackCueList;
-    new(): TextTrackCueList;
-}
-
-interface TextTrackListEventMap {
-    "addtrack": TrackEvent;
-}
-
-interface TextTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
-    item(index: number): TextTrack;
-    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: TextTrack;
-}
-
-declare var TextTrackList: {
-    prototype: TextTrackList;
-    new(): TextTrackList;
-}
-
-interface TimeRanges {
-    readonly length: number;
-    end(index: number): number;
-    start(index: number): number;
-}
-
-declare var TimeRanges: {
-    prototype: TimeRanges;
-    new(): TimeRanges;
-}
-
-interface Touch {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly identifier: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly target: EventTarget;
-}
-
-declare var Touch: {
-    prototype: Touch;
-    new(): Touch;
-}
-
-interface TouchEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly changedTouches: TouchList;
-    readonly ctrlKey: boolean;
-    readonly metaKey: boolean;
-    readonly shiftKey: boolean;
-    readonly targetTouches: TouchList;
-    readonly touches: TouchList;
-}
-
-declare var TouchEvent: {
-    prototype: TouchEvent;
-    new(): TouchEvent;
-}
-
-interface TouchList {
-    readonly length: number;
-    item(index: number): Touch | null;
-    [index: number]: Touch;
-}
-
-declare var TouchList: {
-    prototype: TouchList;
-    new(): TouchList;
-}
-
-interface TrackEvent extends Event {
-    readonly track: any;
-}
-
-declare var TrackEvent: {
-    prototype: TrackEvent;
-    new(): TrackEvent;
-}
-
-interface TransitionEvent extends Event {
-    readonly elapsedTime: number;
-    readonly propertyName: string;
-    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var TransitionEvent: {
-    prototype: TransitionEvent;
-    new(): TransitionEvent;
-}
-
-interface TreeWalker {
-    currentNode: Node;
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    firstChild(): Node;
-    lastChild(): Node;
-    nextNode(): Node;
-    nextSibling(): Node;
-    parentNode(): Node;
-    previousNode(): Node;
-    previousSibling(): Node;
-}
-
-declare var TreeWalker: {
-    prototype: TreeWalker;
-    new(): TreeWalker;
-}
-
-interface UIEvent extends Event {
-    readonly detail: number;
-    readonly view: Window;
-    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
-}
-
-declare var UIEvent: {
-    prototype: UIEvent;
-    new(type: string, eventInitDict?: UIEventInit): UIEvent;
-}
-
-interface URL {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    password: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    username: string;
-    toString(): string;
-}
-
-declare var URL: {
-    prototype: URL;
-    new(url: string, base?: string): URL;
-    createObjectURL(object: any, options?: ObjectURLOptions): string;
-    revokeObjectURL(url: string): void;
-}
-
-interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
-    readonly mediaType: string;
-}
-
-declare var UnviewableContentIdentifiedEvent: {
-    prototype: UnviewableContentIdentifiedEvent;
-    new(): UnviewableContentIdentifiedEvent;
-}
-
-interface ValidityState {
-    readonly badInput: boolean;
-    readonly customError: boolean;
-    readonly patternMismatch: boolean;
-    readonly rangeOverflow: boolean;
-    readonly rangeUnderflow: boolean;
-    readonly stepMismatch: boolean;
-    readonly tooLong: boolean;
-    readonly typeMismatch: boolean;
-    readonly valid: boolean;
-    readonly valueMissing: boolean;
-}
-
-declare var ValidityState: {
-    prototype: ValidityState;
-    new(): ValidityState;
-}
-
-interface VideoPlaybackQuality {
-    readonly corruptedVideoFrames: number;
-    readonly creationTime: number;
-    readonly droppedVideoFrames: number;
-    readonly totalFrameDelay: number;
-    readonly totalVideoFrames: number;
-}
-
-declare var VideoPlaybackQuality: {
-    prototype: VideoPlaybackQuality;
-    new(): VideoPlaybackQuality;
-}
-
-interface VideoTrack {
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    selected: boolean;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var VideoTrack: {
-    prototype: VideoTrack;
-    new(): VideoTrack;
-}
-
-interface VideoTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface VideoTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    onchange: (this: VideoTrackList, ev: Event) => any;
-    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    readonly selectedIndex: number;
-    getTrackById(id: string): VideoTrack | null;
-    item(index: number): VideoTrack;
-    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: VideoTrack;
-}
-
-declare var VideoTrackList: {
-    prototype: VideoTrackList;
-    new(): VideoTrackList;
-}
-
-interface WEBGL_compressed_texture_s3tc {
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-declare var WEBGL_compressed_texture_s3tc: {
-    prototype: WEBGL_compressed_texture_s3tc;
-    new(): WEBGL_compressed_texture_s3tc;
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-interface WEBGL_debug_renderer_info {
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-declare var WEBGL_debug_renderer_info: {
-    prototype: WEBGL_debug_renderer_info;
-    new(): WEBGL_debug_renderer_info;
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-interface WEBGL_depth_texture {
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-declare var WEBGL_depth_texture: {
-    prototype: WEBGL_depth_texture;
-    new(): WEBGL_depth_texture;
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-interface WaveShaperNode extends AudioNode {
-    curve: Float32Array | null;
-    oversample: string;
-}
-
-declare var WaveShaperNode: {
-    prototype: WaveShaperNode;
-    new(): WaveShaperNode;
-}
-
-interface WebGLActiveInfo {
-    readonly name: string;
-    readonly size: number;
-    readonly type: number;
-}
-
-declare var WebGLActiveInfo: {
-    prototype: WebGLActiveInfo;
-    new(): WebGLActiveInfo;
-}
-
-interface WebGLBuffer extends WebGLObject {
-}
-
-declare var WebGLBuffer: {
-    prototype: WebGLBuffer;
-    new(): WebGLBuffer;
-}
-
-interface WebGLContextEvent extends Event {
-    readonly statusMessage: string;
-}
-
-declare var WebGLContextEvent: {
-    prototype: WebGLContextEvent;
-    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
-}
-
-interface WebGLFramebuffer extends WebGLObject {
-}
-
-declare var WebGLFramebuffer: {
-    prototype: WebGLFramebuffer;
-    new(): WebGLFramebuffer;
-}
-
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
-    prototype: WebGLObject;
-    new(): WebGLObject;
-}
-
-interface WebGLProgram extends WebGLObject {
-}
-
-declare var WebGLProgram: {
-    prototype: WebGLProgram;
-    new(): WebGLProgram;
-}
-
-interface WebGLRenderbuffer extends WebGLObject {
-}
-
-declare var WebGLRenderbuffer: {
-    prototype: WebGLRenderbuffer;
-    new(): WebGLRenderbuffer;
-}
-
-interface WebGLRenderingContext {
-    readonly canvas: HTMLCanvasElement;
-    readonly drawingBufferHeight: number;
-    readonly drawingBufferWidth: number;
-    activeTexture(texture: number): void;
-    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
-    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
-    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
-    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
-    bindTexture(target: number, texture: WebGLTexture | null): void;
-    blendColor(red: number, green: number, blue: number, alpha: number): void;
-    blendEquation(mode: number): void;
-    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
-    blendFunc(sfactor: number, dfactor: number): void;
-    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
-    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
-    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
-    checkFramebufferStatus(target: number): number;
-    clear(mask: number): void;
-    clearColor(red: number, green: number, blue: number, alpha: number): void;
-    clearDepth(depth: number): void;
-    clearStencil(s: number): void;
-    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
-    compileShader(shader: WebGLShader | null): void;
-    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
-    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
-    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
-    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
-    createBuffer(): WebGLBuffer | null;
-    createFramebuffer(): WebGLFramebuffer | null;
-    createProgram(): WebGLProgram | null;
-    createRenderbuffer(): WebGLRenderbuffer | null;
-    createShader(type: number): WebGLShader | null;
-    createTexture(): WebGLTexture | null;
-    cullFace(mode: number): void;
-    deleteBuffer(buffer: WebGLBuffer | null): void;
-    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
-    deleteProgram(program: WebGLProgram | null): void;
-    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
-    deleteShader(shader: WebGLShader | null): void;
-    deleteTexture(texture: WebGLTexture | null): void;
-    depthFunc(func: number): void;
-    depthMask(flag: boolean): void;
-    depthRange(zNear: number, zFar: number): void;
-    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    disable(cap: number): void;
-    disableVertexAttribArray(index: number): void;
-    drawArrays(mode: number, first: number, count: number): void;
-    drawElements(mode: number, count: number, type: number, offset: number): 
void;
-    enable(cap: number): void;
-    enableVertexAttribArray(index: number): void;
-    finish(): void;
-    flush(): void;
-    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
-    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
-    frontFace(mode: number): void;
-    generateMipmap(target: number): void;
-    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
-    getAttribLocation(program: WebGLProgram | null, name: string): number;
-    getBufferParameter(target: number, pname: number): any;
-    getContextAttributes(): WebGLContextAttributes;
-    getError(): number;
-    getExtension(name: string): any;
-    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
-    getParameter(pname: number): any;
-    getProgramInfoLog(program: WebGLProgram | null): string | null;
-    getProgramParameter(program: WebGLProgram | null, pname: number): any;
-    getRenderbufferParameter(target: number, pname: number): any;
-    getShaderInfoLog(shader: WebGLShader | null): string | null;
-    getShaderParameter(shader: WebGLShader | null, pname: number): any;
-    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
-    getShaderSource(shader: WebGLShader | null): string | null;
-    getSupportedExtensions(): string[] | null;
-    getTexParameter(target: number, pname: number): any;
-    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
-    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
-    getVertexAttrib(index: number, pname: number): any;
-    getVertexAttribOffset(index: number, pname: number): number;
-    hint(target: number, mode: number): void;
-    isBuffer(buffer: WebGLBuffer | null): boolean;
-    isContextLost(): boolean;
-    isEnabled(cap: number): boolean;
-    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
-    isProgram(program: WebGLProgram | null): boolean;
-    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
-    isShader(shader: WebGLShader | null): boolean;
-    isTexture(texture: WebGLTexture | null): boolean;
-    lineWidth(width: number): void;
-    linkProgram(program: WebGLProgram | null): void;
-    pixelStorei(pname: number, param: number): void;
-    polygonOffset(factor: number, units: number): void;
-    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
-    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
-    sampleCoverage(value: number, invert: boolean): void;
-    scissor(x: number, y: number, width: number, height: number): void;
-    shaderSource(shader: WebGLShader | null, source: string): void;
-    stencilFunc(func: number, ref: number, mask: number): void;
-    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
-    stencilMask(mask: number): void;
-    stencilMaskSeparate(face: number, mask: number): void;
-    stencilOp(fail: number, zfail: number, zpass: number): void;
-    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
-    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
-    texParameterf(target: number, pname: number, param: number): void;
-    texParameteri(target: number, pname: number, param: number): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
-    uniform1f(location: WebGLUniformLocation | null, x: number): void;
-    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform1i(location: WebGLUniformLocation | null, x: number): void;
-    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    useProgram(program: WebGLProgram | null): void;
-    validateProgram(program: WebGLProgram | null): void;
-    vertexAttrib1f(indx: number, x: number): void;
-    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib2f(indx: number, x: number, y: number): void;
-    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
-    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
-    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
-    viewport(x: number, y: number, width: number, height: number): void;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-declare var WebGLRenderingContext: {
-    prototype: WebGLRenderingContext;
-    new(): WebGLRenderingContext;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-interface WebGLShader extends WebGLObject {
-}
-
-declare var WebGLShader: {
-    prototype: WebGLShader;
-    new(): WebGLShader;
-}
-
-interface WebGLShaderPrecisionFormat {
-    readonly precision: number;
-    readonly rangeMax: number;
-    readonly rangeMin: number;
-}
-
-declare var WebGLShaderPrecisionFormat: {
-    prototype: WebGLShaderPrecisionFormat;
-    new(): WebGLShaderPrecisionFormat;
-}
-
-interface WebGLTexture extends WebGLObject {
-}
-
-declare var WebGLTexture: {
-    prototype: WebGLTexture;
-    new(): WebGLTexture;
-}
-
-interface WebGLUniformLocation {
-}
-
-declare var WebGLUniformLocation: {
-    prototype: WebGLUniformLocation;
-    new(): WebGLUniformLocation;
-}
-
-interface WebKitCSSMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    m11: number;
-    m12: number;
-    m13: number;
-    m14: number;
-    m21: number;
-    m22: number;
-    m23: number;
-    m24: number;
-    m31: number;
-    m32: number;
-    m33: number;
-    m34: number;
-    m41: number;
-    m42: number;
-    m43: number;
-    m44: number;
-    inverse(): WebKitCSSMatrix;
-    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
-    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
-    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
-    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
-    setMatrixValue(value: string): void;
-    skewX(angle: number): WebKitCSSMatrix;
-    skewY(angle: number): WebKitCSSMatrix;
-    toString(): string;
-    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
-}
-
-declare var WebKitCSSMatrix: {
-    prototype: WebKitCSSMatrix;
-    new(text?: string): WebKitCSSMatrix;
-}
-
-interface WebKitPoint {
-    x: number;
-    y: number;
-}
-
-declare var WebKitPoint: {
-    prototype: WebKitPoint;
-    new(x?: number, y?: number): WebKitPoint;
-}
-
-interface WebSocketEventMap {
-    "close": CloseEvent;
-    "error": ErrorEvent;
-    "message": MessageEvent;
-    "open": Event;
-}
-
-interface WebSocket extends EventTarget {
-    binaryType: string;
-    readonly bufferedAmount: number;
-    readonly extensions: string;
-    onclose: (this: WebSocket, ev: CloseEvent) => any;
-    onerror: (this: WebSocket, ev: ErrorEvent) => any;
-    onmessage: (this: WebSocket, ev: MessageEvent) => any;
-    onopen: (this: WebSocket, ev: Event) => any;
-    readonly protocol: string;
-    readonly readyState: number;
-    readonly url: string;
-    close(code?: number, reason?: string): void;
-    send(data: any): void;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WebSocket: {
-    prototype: WebSocket;
-    new(url: string, protocols?: string | string[]): WebSocket;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-}
-
-interface WheelEvent extends MouseEvent {
-    readonly deltaMode: number;
-    readonly deltaX: number;
-    readonly deltaY: number;
-    readonly deltaZ: number;
-    readonly wheelDelta: number;
-    readonly wheelDeltaX: number;
-    readonly wheelDeltaY: number;
-    getCurrentPoint(element: Element): void;
-    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-declare var WheelEvent: {
-    prototype: WheelEvent;
-    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-interface WindowEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "compassneedscalibration": Event;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "devicelight": DeviceLightEvent;
-    "devicemotion": DeviceMotionEvent;
-    "deviceorientation": DeviceOrientationEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "message": MessageEvent;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "popstate": PopStateEvent;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "stalled": Event;
-    "storage": StorageEvent;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "unload": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
-    readonly applicationCache: ApplicationCache;
-    readonly clientInformation: Navigator;
-    readonly closed: boolean;
-    readonly crypto: Crypto;
-    defaultStatus: string;
-    readonly devicePixelRatio: number;
-    readonly doNotTrack: string;
-    readonly document: Document;
-    event: Event | undefined;
-    readonly external: External;
-    readonly frameElement: Element;
-    readonly frames: Window;
-    readonly history: History;
-    readonly innerHeight: number;
-    readonly innerWidth: number;
-    readonly length: number;
-    readonly location: Location;
-    readonly locationbar: BarProp;
-    readonly menubar: BarProp;
-    readonly msCredentials: MSCredentials;
-    name: string;
-    readonly navigator: Navigator;
-    offscreenBuffering: string | boolean;
-    onabort: (this: Window, ev: UIEvent) => any;
-    onafterprint: (this: Window, ev: Event) => any;
-    onbeforeprint: (this: Window, ev: Event) => any;
-    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-    onblur: (this: Window, ev: FocusEvent) => any;
-    oncanplay: (this: Window, ev: Event) => any;
-    oncanplaythrough: (this: Window, ev: Event) => any;
-    onchange: (this: Window, ev: Event) => any;
-    onclick: (this: Window, ev: MouseEvent) => any;
-    oncompassneedscalibration: (this: Window, ev: Event) => any;
-    oncontextmenu: (this: Window, ev: PointerEvent) => any;
-    ondblclick: (this: Window, ev: MouseEvent) => any;
-    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
-    ondrag: (this: Window, ev: DragEvent) => any;
-    ondragend: (this: Window, ev: DragEvent) => any;
-    ondragenter: (this: Window, ev: DragEvent) => any;
-    ondragleave: (this: Window, ev: DragEvent) => any;
-    ondragover: (this: Window, ev: DragEvent) => any;
-    ondragstart: (this: Window, ev: DragEvent) => any;
-    ondrop: (this: Window, ev: DragEvent) => any;
-    ondurationchange: (this: Window, ev: Event) => any;
-    onemptied: (this: Window, ev: Event) => any;
-    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-    onerror: ErrorEventHandler;
-    onfocus: (this: Window, ev: FocusEvent) => any;
-    onhashchange: (this: Window, ev: HashChangeEvent) => any;
-    oninput: (this: Window, ev: Event) => any;
-    oninvalid: (this: Window, ev: Event) => any;
-    onkeydown: (this: Window, ev: KeyboardEvent) => any;
-    onkeypress: (this: Window, ev: KeyboardEvent) => any;
-    onkeyup: (this: Window, ev: KeyboardEvent) => any;
-    onload: (this: Window, ev: Event) => any;
-    onloadeddata: (this: Window, ev: Event) => any;
-    onloadedmetadata: (this: Window, ev: Event) => any;
-    onloadstart: (this: Window, ev: Event) => any;
-    onmessage: (this: Window, ev: MessageEvent) => any;
-    onmousedown: (this: Window, ev: MouseEvent) => any;
-    onmouseenter: (this: Window, ev: MouseEvent) => any;
-    onmouseleave: (this: Window, ev: MouseEvent) => any;
-    onmousemove: (this: Window, ev: MouseEvent) => any;
-    onmouseout: (this: Window, ev: MouseEvent) => any;
-    onmouseover: (this: Window, ev: MouseEvent) => any;
-    onmouseup: (this: Window, ev: MouseEvent) => any;
-    onmousewheel: (this: Window, ev: WheelEvent) => any;
-    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-    onoffline: (this: Window, ev: Event) => any;
-    ononline: (this: Window, ev: Event) => any;
-    onorientationchange: (this: Window, ev: Event) => any;
-    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-    onpause: (this: Window, ev: Event) => any;
-    onplay: (this: Window, ev: Event) => any;
-    onplaying: (this: Window, ev: Event) => any;
-    onpopstate: (this: Window, ev: PopStateEvent) => any;
-    onprogress: (this: Window, ev: ProgressEvent) => any;
-    onratechange: (this: Window, ev: Event) => any;
-    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-    onreset: (this: Window, ev: Event) => any;
-    onresize: (this: Window, ev: UIEvent) => any;
-    onscroll: (this: Window, ev: UIEvent) => any;
-    onseeked: (this: Window, ev: Event) => any;
-    onseeking: (this: Window, ev: Event) => any;
-    onselect: (this: Window, ev: UIEvent) => any;
-    onstalled: (this: Window, ev: Event) => any;
-    onstorage: (this: Window, ev: StorageEvent) => any;
-    onsubmit: (this: Window, ev: Event) => any;
-    onsuspend: (this: Window, ev: Event) => any;
-    ontimeupdate: (this: Window, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onunload: (this: Window, ev: Event) => any;
-    onvolumechange: (this: Window, ev: Event) => any;
-    onwaiting: (this: Window, ev: Event) => any;
-    opener: any;
-    orientation: string | number;
-    readonly outerHeight: number;
-    readonly outerWidth: number;
-    readonly pageXOffset: number;
-    readonly pageYOffset: number;
-    readonly parent: Window;
-    readonly performance: Performance;
-    readonly personalbar: BarProp;
-    readonly screen: Screen;
-    readonly screenLeft: number;
-    readonly screenTop: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly scrollX: number;
-    readonly scrollY: number;
-    readonly scrollbars: BarProp;
-    readonly self: Window;
-    status: string;
-    readonly statusbar: BarProp;
-    readonly styleMedia: StyleMedia;
-    readonly toolbar: BarProp;
-    readonly top: Window;
-    readonly window: Window;
-    URL: typeof URL;
-    Blob: typeof Blob;
-    alert(message?: any): void;
-    blur(): void;
-    cancelAnimationFrame(handle: number): void;
-    captureEvents(): void;
-    close(): void;
-    confirm(message?: string): boolean;
-    focus(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
-    getSelection(): Selection;
-    matchMedia(mediaQuery: string): MediaQueryList;
-    moveBy(x?: number, y?: number): void;
-    moveTo(x?: number, y?: number): void;
-    msWriteProfilerMark(profilerMarkName: string): void;
-    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
-    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
-    print(): void;
-    prompt(message?: string, _default?: string): string | null;
-    releaseEvents(): void;
-    requestAnimationFrame(callback: FrameRequestCallback): number;
-    resizeBy(x?: number, y?: number): void;
-    resizeTo(x?: number, y?: number): void;
-    scroll(x?: number, y?: number): void;
-    scrollBy(x?: number, y?: number): void;
-    scrollTo(x?: number, y?: number): void;
-    webkitCancelAnimationFrame(handle: number): void;
-    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
-    scroll(options?: ScrollToOptions): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollBy(options?: ScrollToOptions): void;
-    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Window: {
-    prototype: Window;
-    new(): Window;
-}
-
-interface WorkerEventMap extends AbstractWorkerEventMap {
-    "message": MessageEvent;
-}
-
-interface Worker extends EventTarget, AbstractWorker {
-    onmessage: (this: Worker, ev: MessageEvent) => any;
-    postMessage(message: any, ports?: any): void;
-    terminate(): void;
-    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Worker: {
-    prototype: Worker;
-    new(stringUrl: string): Worker;
-}
-
-interface XMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLDocument: {
-    prototype: XMLDocument;
-    new(): XMLDocument;
-}
-
-interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
-    "readystatechange": Event;
-}
-
-interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
-    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
-    readonly readyState: number;
-    readonly response: any;
-    readonly responseText: string;
-    responseType: string;
-    readonly responseXML: any;
-    readonly status: number;
-    readonly statusText: string;
-    timeout: number;
-    readonly upload: XMLHttpRequestUpload;
-    withCredentials: boolean;
-    msCaching?: string;
-    readonly responseURL: string;
-    abort(): void;
-    getAllResponseHeaders(): string;
-    getResponseHeader(header: string): string | null;
-    msCachingEnabled(): boolean;
-    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
-    overrideMimeType(mime: string): void;
-    send(data?: Document): void;
-    send(data?: string): void;
-    send(data?: any): void;
-    setRequestHeader(header: string, value: string): void;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequest: {
-    prototype: XMLHttpRequest;
-    new(): XMLHttpRequest;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    create(): XMLHttpRequest;
-}
-
-interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequestUpload: {
-    prototype: XMLHttpRequestUpload;
-    new(): XMLHttpRequestUpload;
-}
-
-interface XMLSerializer {
-    serializeToString(target: Node): string;
-}
-
-declare var XMLSerializer: {
-    prototype: XMLSerializer;
-    new(): XMLSerializer;
-}
-
-interface XPathEvaluator {
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver?: Node): XPathNSResolver;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-}
-
-declare var XPathEvaluator: {
-    prototype: XPathEvaluator;
-    new(): XPathEvaluator;
-}
-
-interface XPathExpression {
-    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
-}
-
-declare var XPathExpression: {
-    prototype: XPathExpression;
-    new(): XPathExpression;
-}
-
-interface XPathNSResolver {
-    lookupNamespaceURI(prefix: string): string;
-}
-
-declare var XPathNSResolver: {
-    prototype: XPathNSResolver;
-    new(): XPathNSResolver;
-}
-
-interface XPathResult {
-    readonly booleanValue: boolean;
-    readonly invalidIteratorState: boolean;
-    readonly numberValue: number;
-    readonly resultType: number;
-    readonly singleNodeValue: Node;
-    readonly snapshotLength: number;
-    readonly stringValue: string;
-    iterateNext(): Node;
-    snapshotItem(index: number): Node;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-declare var XPathResult: {
-    prototype: XPathResult;
-    new(): XPathResult;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-interface XSLTProcessor {
-    clearParameters(): void;
-    getParameter(namespaceURI: string, localName: string): any;
-    importStylesheet(style: Node): void;
-    removeParameter(namespaceURI: string, localName: string): void;
-    reset(): void;
-    setParameter(namespaceURI: string, localName: string, value: any): void;
-    transformToDocument(source: Node): Document;
-    transformToFragment(source: Node, document: Document): DocumentFragment;
-}
-
-declare var XSLTProcessor: {
-    prototype: XSLTProcessor;
-    new(): XSLTProcessor;
-}
-
-interface AbstractWorkerEventMap {
-    "error": ErrorEvent;
-}
-
-interface AbstractWorker {
-    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
-    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface CanvasPathMethods {
-    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
-    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
-    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
-    closePath(): void;
-    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
-    lineTo(x: number, y: number): void;
-    moveTo(x: number, y: number): void;
-    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
-    rect(x: number, y: number, w: number, h: number): void;
-}
-
-interface ChildNode {
-    remove(): void;
-}
-
-interface DOML2DeprecatedColorProperty {
-    color: string;
-}
-
-interface DOML2DeprecatedSizeProperty {
-    size: number;
-}
-
-interface DocumentEvent {
-    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
-    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
-    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
-    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
-    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
-    createEvent(eventInterface:"CloseEvent"): CloseEvent;
-    createEvent(eventInterface:"CommandEvent"): CommandEvent;
-    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
-    createEvent(eventInterface:"CustomEvent"): CustomEvent;
-    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
-    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:"GamepadEvent"): GamepadEvent;
-    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
-    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
-    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
-    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
-    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
-    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
-    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
-    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
-    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
-    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
-    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
-    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
-    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
-    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
-    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
-    createEvent(eventInterface:"MessageEvent"): MessageEvent;
-    createEvent(eventInterface:"MouseEvent"): MouseEvent;
-    createEvent(eventInterface:"MouseEvents"): MouseEvent;
-    createEvent(eventInterface:"MutationEvent"): MutationEvent;
-    createEvent(eventInterface:"MutationEvents"): MutationEvent;
-    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
-    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
-    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
-    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
-    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
-    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
-    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
-    createEvent(eventInterface:"PointerEvent"): PointerEvent;
-    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
-    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
-    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
-    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
-    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
-    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
-    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
-    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
-    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
-    createEvent(eventInterface:"StorageEvent"): StorageEvent;
-    createEvent(eventInterface:"TextEvent"): TextEvent;
-    createEvent(eventInterface:"TouchEvent"): TouchEvent;
-    createEvent(eventInterface:"TrackEvent"): TrackEvent;
-    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
-    createEvent(eventInterface:"UIEvent"): UIEvent;
-    createEvent(eventInterface:"UIEvents"): UIEvent;
-    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
-    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
-    createEvent(eventInterface:"WheelEvent"): WheelEvent;
-    createEvent(eventInterface: string): Event;
-}
-
-interface ElementTraversal {
-    readonly childElementCount: number;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly nextElementSibling: Element;
-    readonly previousElementSibling: Element;
-}
-
-interface GetSVGDocument {
-    getSVGDocument(): Document;
-}
-
-interface GlobalEventHandlersEventMap {
-    "pointercancel": PointerEvent;
-    "pointerdown": PointerEvent;
-    "pointerenter": PointerEvent;
-    "pointerleave": PointerEvent;
-    "pointermove": PointerEvent;
-    "pointerout": PointerEvent;
-    "pointerover": PointerEvent;
-    "pointerup": PointerEvent;
-    "wheel": WheelEvent;
-}
-
-interface GlobalEventHandlers {
-    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
-    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
-      */
-    ch: string;
-    /**
-      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
-      */
-    chOff: string;
-    /**
-      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
-      */
-    vAlign: string;
-}
-
-interface IDBEnvironment {
-    readonly indexedDB: IDBFactory;
-}
-
-interface LinkStyle {
-    readonly sheet: StyleSheet;
-}
-
-interface MSBaseReaderEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-}
-
-interface MSBaseReader {
-    onabort: (this: MSBaseReader, ev: Event) => any;
-    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
-    onload: (this: MSBaseReader, ev: Event) => any;
-    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
-    onloadstart: (this: MSBaseReader, ev: Event) => any;
-    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    abort(): void;
-    readonly DONE: number;
-    readonly EMPTY: number;
-    readonly LOADING: number;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface MSFileSaver {
-    msSaveBlob(blob: any, defaultName?: string): boolean;
-    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
-}
-
-interface MSNavigatorDoNotTrack {
-    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
-    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
-    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
-    removeWebWideTrackingException(args: ExceptionInformation): void;
-    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
-    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
-}
-
-interface NavigatorContentUtils {
-}
-
-interface NavigatorGeolocation {
-    readonly geolocation: Geolocation;
-}
-
-interface NavigatorID {
-    readonly appName: string;
-    readonly appVersion: string;
-    readonly platform: string;
-    readonly product: string;
-    readonly productSub: string;
-    readonly userAgent: string;
-    readonly vendor: string;
-    readonly vendorSub: string;
-}
-
-interface NavigatorOnLine {
-    readonly onLine: boolean;
-}
-
-interface NavigatorStorageUtils {
-}
-
-interface NavigatorUserMedia {
-    readonly mediaDevices: MediaDevices;
-    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
-}
-
-interface NodeSelector {
-    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
-    querySelector(selectors: string): Element | null;
-    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
-    querySelectorAll(selectors: string): NodeListOf<Element>;
-}
-
-interface RandomSource {
-    getRandomValues(array: ArrayBufferView): ArrayBufferView;
-}
-
-interface SVGAnimatedPathData {
-    readonly pathSegList: SVGPathSegList;
-}
-
-interface SVGAnimatedPoints {
-    readonly animatedPoints: SVGPointList;
-    readonly points: SVGPointList;
-}
-
-interface SVGExternalResourcesRequired {
-    readonly externalResourcesRequired: SVGAnimatedBoolean;
-}
-
-interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
-    readonly height: SVGAnimatedLength;
-    readonly result: SVGAnimatedString;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-}
-
-interface SVGFitToViewBox {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly viewBox: SVGAnimatedRect;
-}
-
-interface SVGLangSpace {
-    xmllang: string;
-    xmlspace: string;
-}
-
-interface SVGLocatable {
-    readonly farthestViewportElement: SVGElement;
-    readonly nearestViewportElement: SVGElement;
-    getBBox(): SVGRect;
-    getCTM(): SVGMatrix;
-    getScreenCTM(): SVGMatrix;
-    getTransformToElement(element: SVGElement): SVGMatrix;
-}
-
-interface SVGStylable {
-    className: any;
-    readonly style: CSSStyleDeclaration;
-}
-
-interface SVGTests {
-    readonly requiredExtensions: SVGStringList;
-    readonly requiredFeatures: SVGStringList;
-    readonly systemLanguage: SVGStringList;
-    hasExtension(extension: string): boolean;
-}
-
-interface SVGTransformable extends SVGLocatable {
-    readonly transform: SVGAnimatedTransformList;
-}
-
-interface SVGURIReference {
-    readonly href: SVGAnimatedString;
-}
-
-interface WindowBase64 {
-    atob(encodedString: string): string;
-    btoa(rawString: string): string;
-}
-
-interface WindowConsole {
-    readonly console: Console;
-}
-
-interface WindowLocalStorage {
-    readonly localStorage: Storage;
-}
-
-interface WindowSessionStorage {
-    readonly sessionStorage: Storage;
-}
-
-interface WindowTimers extends Object, WindowTimersExtension {
-    clearInterval(handle: number): void;
-    clearTimeout(handle: number): void;
-    setInterval(handler: (...args: any[]) => void, timeout: number): number;
-    setInterval(handler: any, timeout?: any, ...args: any[]): number;
-    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
-    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-}
-
-interface WindowTimersExtension {
-    clearImmediate(handle: number): void;
-    setImmediate(handler: (...args: any[]) => void): number;
-    setImmediate(handler: any, ...args: any[]): number;
-}
-
-interface XMLHttpRequestEventTargetEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-    "timeout": ProgressEvent;
-}
-
-interface XMLHttpRequestEventTarget {
-    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
-    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface StorageEventInit extends EventInit {
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    url: string;
-    storageArea?: Storage;
-}
-
-interface Canvas2DContextAttributes {
-    alpha?: boolean;
-    willReadFrequently?: boolean;
-    storage?: boolean;
-    [attribute: string]: boolean | string | undefined;
-}
-
-interface NodeListOf<TNode extends Node> extends NodeList {
-    length: number;
-    item(index: number): TNode;
-    [index: number]: TNode;
-}
-
-interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
-    item(index: number): T;
-    namedItem(name: string): T;
-    [index: number]: T;
-}
-
-interface BlobPropertyBag {
-    type?: string;
-    endings?: string;
-}
-
-interface FilePropertyBag {
-    type?: string;
-    lastModified?: number;
-}
-
-interface EventListenerObject {
-    handleEvent(evt: Event): void;
-}
-
-interface MessageEventInit extends EventInit {
-    data?: any;
-    origin?: string;
-    lastEventId?: string;
-    channel?: string;
-    source?: any;
-    ports?: MessagePort[];
-}
-
-interface ProgressEventInit extends EventInit {
-    lengthComputable?: boolean;
-    loaded?: number;
-    total?: number;
-}
-
-interface ScrollOptions {
-    behavior?: ScrollBehavior;
-}
-
-interface ScrollToOptions extends ScrollOptions {
-    left?: number;
-    top?: number;
-}
-
-interface ScrollIntoViewOptions extends ScrollOptions {
-    block?: ScrollLogicalPosition;
-    inline?: ScrollLogicalPosition;
-}
-
-interface ClipboardEventInit extends EventInit {
-    data?: string;
-    dataType?: string;
-}
-
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
-interface RsaKeyGenParams extends Algorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaHashedImportParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaPssParams {
-    saltLength: number;
-}
-
-interface RsaOaepParams extends Algorithm {
-    label?: BufferSource;
-}
-
-interface EcdsaParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface EcKeyGenParams extends Algorithm {
-    namedCurve: string;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
-    typedCurve: string;
-}
-
-interface EcKeyImportParams {
-    namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface AesCtrParams extends Algorithm {
-    counter: BufferSource;
-    length: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
-    length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
-    length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
-    length: number;
-}
-
-interface AesCbcParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface AesCmacParams extends Algorithm {
-    length: number;
-}
-
-interface AesGcmParams extends Algorithm {
-    iv: BufferSource;
-    additionalData?: BufferSource;
-    tagLength?: number;
-}
-
-interface AesCfbParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface HmacImportParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
-    hash: AlgorithmIdentifier;
-    length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface DhKeyGenParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface DhImportKeyParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface ConcatParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    algorithmId: Uint8Array;
-    partyUInfo: Uint8Array;
-    partyVInfo: Uint8Array;
-    publicInfo?: Uint8Array;
-    privateInfo?: Uint8Array;
-}
-
-interface HkdfCtrParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    label: BufferSource;
-    context: BufferSource;
-}
-
-interface Pbkdf2Params extends Algorithm {
-    salt: BufferSource;
-    iterations: number;
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaOtherPrimesInfo {
-    r: string;
-    d: string;
-    t: string;
-}
-
-interface JsonWebKey {
-    kty: string;
-    use?: string;
-    key_ops?: string[];
-    alg?: string;
-    kid?: string;
-    x5u?: string;
-    x5c?: string;
-    x5t?: string;
-    ext?: boolean;
-    crv?: string;
-    x?: string;
-    y?: string;
-    d?: string;
-    n?: string;
-    e?: string;
-    p?: string;
-    q?: string;
-    dp?: string;
-    dq?: string;
-    qi?: string;
-    oth?: RsaOtherPrimesInfo[];
-    k?: string;
-}
-
-interface ParentNode {
-    readonly children: HTMLCollection;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly childElementCount: number;
-}
-
-interface DocumentOrShadowRoot {
-    readonly activeElement: Element | null;
-    readonly stylesheets: StyleSheetList;
-    getSelection(): Selection | null;
-    elementFromPoint(x: number, y: number): Element | null;
-    elementsFromPoint(x: number, y: number): Element[];
-}
-
-interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
-    readonly host: Element;
-    innerHTML: string;
-}
-
-interface ShadowRootInit {
-    mode: 'open'|'closed';
-    delegatesFocus?: boolean;
-}
-
-interface HTMLSlotElement extends HTMLElement {
-    name: string;
-    assignedNodes(options?: AssignedNodesOptions): Node[];
-}
-
-interface AssignedNodesOptions {
-    flatten?: boolean;
-}
-
-declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
-
-interface ErrorEventHandler {
-    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
-}
-interface PositionCallback {
-    (position: Position): void;
-}
-interface PositionErrorCallback {
-    (error: PositionError): void;
-}
-interface MediaQueryListListener {
-    (mql: MediaQueryList): void;
-}
-interface MSLaunchUriCallback {
-    (): void;
-}
-interface FrameRequestCallback {
-    (time: number): void;
-}
-interface MSUnsafeFunctionCallback {
-    (): any;
-}
-interface MSExecAtPriorityFunctionCallback {
-    (...args: any[]): any;
-}
-interface MutationCallback {
-    (mutations: MutationRecord[], observer: MutationObserver): void;
-}
-interface DecodeSuccessCallback {
-    (decodedData: AudioBuffer): void;
-}
-interface DecodeErrorCallback {
-    (error: DOMException): void;
-}
-interface FunctionStringCallback {
-    (data: string): void;
-}
-interface NavigatorUserMediaSuccessCallback {
-    (stream: MediaStream): void;
-}
-interface NavigatorUserMediaErrorCallback {
-    (error: MediaStreamError): void;
-}
-interface ForEachCallback {
-    (keyId: any, status: string): void;
-}
-interface HTMLElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "audio": HTMLAudioElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "del": HTMLModElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "embed": HTMLEmbedElement;
-    "fieldset": HTMLFieldSetElement;
-    "font": HTMLFontElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "h1": HTMLHeadingElement;
-    "h2": HTMLHeadingElement;
-    "h3": HTMLHeadingElement;
-    "h4": HTMLHeadingElement;
-    "h5": HTMLHeadingElement;
-    "h6": HTMLHeadingElement;
-    "head": HTMLHeadElement;
-    "hr": HTMLHRElement;
-    "html": HTMLHtmlElement;
-    "iframe": HTMLIFrameElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "marquee": HTMLMarqueeElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "meter": HTMLMeterElement;
-    "nextid": HTMLUnknownElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "picture": HTMLPictureElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "script": HTMLScriptElement;
-    "select": HTMLSelectElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "style": HTMLStyleElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "ul": HTMLUListElement;
-    "video": HTMLVideoElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "abbr": HTMLElement;
-    "acronym": HTMLElement;
-    "address": HTMLElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "article": HTMLElement;
-    "aside": HTMLElement;
-    "audio": HTMLAudioElement;
-    "b": HTMLElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "bdo": HTMLElement;
-    "big": HTMLElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "center": HTMLElement;
-    "circle": SVGCircleElement;
-    "cite": HTMLElement;
-    "clippath": SVGClipPathElement;
-    "code": HTMLElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "dd": HTMLElement;
-    "defs": SVGDefsElement;
-    "del": HTMLModElement;
-    "desc": SVGDescElement;
-    "dfn": HTMLElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "dt": HTMLElement;
-    "ellipse": SVGEllipseElement;
-    "em": HTMLElement;
-    "embed": HTMLEmbedElement;
-    "feblend": SVGFEBlendElement;
-    "fecolormatrix": SVGFEColorMatrixElement;
-    "fecomponenttransfer": SVGFEComponentTransferElement;
-    "fecomposite": SVGFECompositeElement;
-    "feconvolvematrix": SVGFEConvolveMatrixElement;
-    "fediffuselighting": SVGFEDiffuseLightingElement;
-    "fedisplacementmap": SVGFEDisplacementMapElement;
-    "fedistantlight": SVGFEDistantLightElement;
-    "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;
-    "fieldset": HTMLFieldSetElement;
-    "figcaption": HTMLElement;
-    "figure": HTMLElement;
-    "filter": SVGFilterElement;
-    "font": HTMLFontElement;
-    "footer": HTMLElement;
-    "foreignobject": SVGForeignObjectElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "g": SVGGElement;
-    "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;
-    "image": SVGImageElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "kbd": HTMLElement;
-    "keygen": HTMLElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "line": SVGLineElement;
-    "lineargradient": SVGLinearGradientElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "mark": HTMLElement;
-    "marker": SVGMarkerElement;
-    "marquee": HTMLMarqueeElement;
-    "mask": SVGMaskElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "metadata": SVGMetadataElement;
-    "meter": HTMLMeterElement;
-    "nav": HTMLElement;
-    "nextid": HTMLUnknownElement;
-    "nobr": HTMLElement;
-    "noframes": HTMLElement;
-    "noscript": HTMLElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "path": SVGPathElement;
-    "pattern": SVGPatternElement;
-    "picture": HTMLPictureElement;
-    "plaintext": HTMLElement;
-    "polygon": SVGPolygonElement;
-    "polyline": SVGPolylineElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "radialgradient": SVGRadialGradientElement;
-    "rect": SVGRectElement;
-    "rt": HTMLElement;
-    "ruby": HTMLElement;
-    "s": HTMLElement;
-    "samp": HTMLElement;
-    "script": HTMLScriptElement;
-    "section": HTMLElement;
-    "select": HTMLSelectElement;
-    "small": HTMLElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "stop": SVGStopElement;
-    "strike": HTMLElement;
-    "strong": HTMLElement;
-    "style": HTMLStyleElement;
-    "sub": HTMLElement;
-    "sup": HTMLElement;
-    "svg": SVGSVGElement;
-    "switch": SVGSwitchElement;
-    "symbol": SVGSymbolElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "text": SVGTextElement;
-    "textpath": SVGTextPathElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "tspan": SVGTSpanElement;
-    "tt": HTMLElement;
-    "u": HTMLElement;
-    "ul": HTMLUListElement;
-    "use": SVGUseElement;
-    "var": HTMLElement;
-    "video": HTMLVideoElement;
-    "view": SVGViewElement;
-    "wbr": HTMLElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementListTagNameMap {
-    "a": NodeListOf<HTMLAnchorElement>;
-    "abbr": NodeListOf<HTMLElement>;
-    "acronym": NodeListOf<HTMLElement>;
-    "address": NodeListOf<HTMLElement>;
-    "applet": NodeListOf<HTMLAppletElement>;
-    "area": NodeListOf<HTMLAreaElement>;
-    "article": NodeListOf<HTMLElement>;
-    "aside": NodeListOf<HTMLElement>;
-    "audio": NodeListOf<HTMLAudioElement>;
-    "b": NodeListOf<HTMLElement>;
-    "base": NodeListOf<HTMLBaseElement>;
-    "basefont": NodeListOf<HTMLBaseFontElement>;
-    "bdo": NodeListOf<HTMLElement>;
-    "big": NodeListOf<HTMLElement>;
-    "blockquote": NodeListOf<HTMLQuoteElement>;
-    "body": NodeListOf<HTMLBodyElement>;
-    "br": NodeListOf<HTMLBRElement>;
-    "button": NodeListOf<HTMLButtonElement>;
-    "canvas": NodeListOf<HTMLCanvasElement>;
-    "caption": NodeListOf<HTMLTableCaptionElement>;
-    "center": NodeListOf<HTMLElement>;
-    "circle": NodeListOf<SVGCircleElement>;
-    "cite": NodeListOf<HTMLElement>;
-    "clippath": NodeListOf<SVGClipPathElement>;
-    "code": NodeListOf<HTMLElement>;
-    "col": NodeListOf<HTMLTableColElement>;
-    "colgroup": NodeListOf<HTMLTableColElement>;
-    "datalist": NodeListOf<HTMLDataListElement>;
-    "dd": NodeListOf<HTMLElement>;
-    "defs": NodeListOf<SVGDefsElement>;
-    "del": NodeListOf<HTMLModElement>;
-    "desc": NodeListOf<SVGDescElement>;
-    "dfn": NodeListOf<HTMLElement>;
-    "dir": NodeListOf<HTMLDirectoryElement>;
-    "div": NodeListOf<HTMLDivElement>;
-    "dl": NodeListOf<HTMLDListElement>;
-    "dt": NodeListOf<HTMLElement>;
-    "ellipse": NodeListOf<SVGEllipseElement>;
-    "em": NodeListOf<HTMLElement>;
-    "embed": NodeListOf<HTMLEmbedElement>;
-    "feblend": NodeListOf<SVGFEBlendElement>;
-    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
-    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
-    "fecomposite": NodeListOf<SVGFECompositeElement>;
-    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
-    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
-    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
-    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
-    "feflood": NodeListOf<SVGFEFloodElement>;
-    "fefunca": NodeListOf<SVGFEFuncAElement>;
-    "fefuncb": NodeListOf<SVGFEFuncBElement>;
-    "fefuncg": NodeListOf<SVGFEFuncGElement>;
-    "fefuncr": NodeListOf<SVGFEFuncRElement>;
-    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
-    "feimage": NodeListOf<SVGFEImageElement>;
-    "femerge": NodeListOf<SVGFEMergeElement>;
-    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
-    "femorphology": NodeListOf<SVGFEMorphologyElement>;
-    "feoffset": NodeListOf<SVGFEOffsetElement>;
-    "fepointlight": NodeListOf<SVGFEPointLightElement>;
-    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
-    "fespotlight": NodeListOf<SVGFESpotLightElement>;
-    "fetile": NodeListOf<SVGFETileElement>;
-    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
-    "fieldset": NodeListOf<HTMLFieldSetElement>;
-    "figcaption": NodeListOf<HTMLElement>;
-    "figure": NodeListOf<HTMLElement>;
-    "filter": NodeListOf<SVGFilterElement>;
-    "font": NodeListOf<HTMLFontElement>;
-    "footer": NodeListOf<HTMLElement>;
-    "foreignobject": NodeListOf<SVGForeignObjectElement>;
-    "form": NodeListOf<HTMLFormElement>;
-    "frame": NodeListOf<HTMLFrameElement>;
-    "frameset": NodeListOf<HTMLFrameSetElement>;
-    "g": NodeListOf<SVGGElement>;
-    "h1": NodeListOf<HTMLHeadingElement>;
-    "h2": NodeListOf<HTMLHeadingElement>;
-    "h3": NodeListOf<HTMLHeadingElement>;
-    "h4": NodeListOf<HTMLHeadingElement>;
-    "h5": NodeListOf<HTMLHeadingElement>;
-    "h6": NodeListOf<HTMLHeadingElement>;
-    "head": NodeListOf<HTMLHeadElement>;
-    "header": NodeListOf<HTMLElement>;
-    "hgroup": NodeListOf<HTMLElement>;
-    "hr": NodeListOf<HTMLHRElement>;
-    "html": NodeListOf<HTMLHtmlElement>;
-    "i": NodeListOf<HTMLElement>;
-    "iframe": NodeListOf<HTMLIFrameElement>;
-    "image": NodeListOf<SVGImageElement>;
-    "img": NodeListOf<HTMLImageElement>;
-    "input": NodeListOf<HTMLInputElement>;
-    "ins": NodeListOf<HTMLModElement>;
-    "isindex": NodeListOf<HTMLUnknownElement>;
-    "kbd": NodeListOf<HTMLElement>;
-    "keygen": NodeListOf<HTMLElement>;
-    "label": NodeListOf<HTMLLabelElement>;
-    "legend": NodeListOf<HTMLLegendElement>;
-    "li": NodeListOf<HTMLLIElement>;
-    "line": NodeListOf<SVGLineElement>;
-    "lineargradient": NodeListOf<SVGLinearGradientElement>;
-    "link": NodeListOf<HTMLLinkElement>;
-    "listing": NodeListOf<HTMLPreElement>;
-    "map": NodeListOf<HTMLMapElement>;
-    "mark": NodeListOf<HTMLElement>;
-    "marker": NodeListOf<SVGMarkerElement>;
-    "marquee": NodeListOf<HTMLMarqueeElement>;
-    "mask": NodeListOf<SVGMaskElement>;
-    "menu": NodeListOf<HTMLMenuElement>;
-    "meta": NodeListOf<HTMLMetaElement>;
-    "metadata": NodeListOf<SVGMetadataElement>;
-    "meter": NodeListOf<HTMLMeterElement>;
-    "nav": NodeListOf<HTMLElement>;
-    "nextid": NodeListOf<HTMLUnknownElement>;
-    "nobr": NodeListOf<HTMLElement>;
-    "noframes": NodeListOf<HTMLElement>;
-    "noscript": NodeListOf<HTMLElement>;
-    "object": NodeListOf<HTMLObjectElement>;
-    "ol": NodeListOf<HTMLOListElement>;
-    "optgroup": NodeListOf<HTMLOptGroupElement>;
-    "option": NodeListOf<HTMLOptionElement>;
-    "p": NodeListOf<HTMLParagraphElement>;
-    "param": NodeListOf<HTMLParamElement>;
-    "path": NodeListOf<SVGPathElement>;
-    "pattern": NodeListOf<SVGPatternElement>;
-    "picture": NodeListOf<HTMLPictureElement>;
-    "plaintext": NodeListOf<HTMLElement>;
-    "polygon": NodeListOf<SVGPolygonElement>;
-    "polyline": NodeListOf<SVGPolylineElement>;
-    "pre": NodeListOf<HTMLPreElement>;
-    "progress": NodeListOf<HTMLProgressElement>;
-    "q": NodeListOf<HTMLQuoteElement>;
-    "radialgradient": NodeListOf<SVGRadialGradientElement>;
-    "rect": NodeListOf<SVGRectElement>;
-    "rt": NodeListOf<HTMLElement>;
-    "ruby": NodeListOf<HTMLElement>;
-    "s": NodeListOf<HTMLElement>;
-    "samp": NodeListOf<HTMLElement>;
-    "script": NodeListOf<HTMLScriptElement>;
-    "section": NodeListOf<HTMLElement>;
-    "select": NodeListOf<HTMLSelectElement>;
-    "small": NodeListOf<HTMLElement>;
-    "source": NodeListOf<HTMLSourceElement>;
-    "span": NodeListOf<HTMLSpanElement>;
-    "stop": NodeListOf<SVGStopElement>;
-    "strike": NodeListOf<HTMLElement>;
-    "strong": NodeListOf<HTMLElement>;
-    "style": NodeListOf<HTMLStyleElement>;
-    "sub": NodeListOf<HTMLElement>;
-    "sup": NodeListOf<HTMLElement>;
-    "svg": NodeListOf<SVGSVGElement>;
-    "switch": NodeListOf<SVGSwitchElement>;
-    "symbol": NodeListOf<SVGSymbolElement>;
-    "table": NodeListOf<HTMLTableElement>;
-    "tbody": NodeListOf<HTMLTableSectionElement>;
-    "td": NodeListOf<HTMLTableDataCellElement>;
-    "template": NodeListOf<HTMLTemplateElement>;
-    "text": NodeListOf<SVGTextElement>;
-    "textpath": NodeListOf<SVGTextPathElement>;
-    "textarea": NodeListOf<HTMLTextAreaElement>;
-    "tfoot": NodeListOf<HTMLTableSectionElement>;
-    "th": NodeListOf<HTMLTableHeaderCellElement>;
-    "thead": NodeListOf<HTMLTableSectionElement>;
-    "title": NodeListOf<HTMLTitleElement>;
-    "tr": NodeListOf<HTMLTableRowElement>;
-    "track": NodeListOf<HTMLTrackElement>;
-    "tspan": NodeListOf<SVGTSpanElement>;
-    "tt": NodeListOf<HTMLElement>;
-    "u": NodeListOf<HTMLElement>;
-    "ul": NodeListOf<HTMLUListElement>;
-    "use": NodeListOf<SVGUseElement>;
-    "var": NodeListOf<HTMLElement>;
-    "video": NodeListOf<HTMLVideoElement>;
-    "view": NodeListOf<SVGViewElement>;
-    "wbr": NodeListOf<HTMLElement>;
-    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
-    "xmp": NodeListOf<HTMLPreElement>;
-}
-
-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; };
-declare var applicationCache: ApplicationCache;
-declare var clientInformation: Navigator;
-declare var closed: boolean;
-declare var crypto: Crypto;
-declare var defaultStatus: string;
-declare var devicePixelRatio: number;
-declare var doNotTrack: string;
-declare var document: Document;
-declare var event: Event | undefined;
-declare var external: External;
-declare var frameElement: Element;
-declare var frames: Window;
-declare var history: History;
-declare var innerHeight: number;
-declare var innerWidth: number;
-declare var length: number;
-declare var location: Location;
-declare var locationbar: BarProp;
-declare var menubar: BarProp;
-declare var msCredentials: MSCredentials;
-declare const name: never;
-declare var navigator: Navigator;
-declare var offscreenBuffering: string | boolean;
-declare var onabort: (this: Window, ev: UIEvent) => any;
-declare var onafterprint: (this: Window, ev: Event) => any;
-declare var onbeforeprint: (this: Window, ev: Event) => any;
-declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-declare var onblur: (this: Window, ev: FocusEvent) => any;
-declare var oncanplay: (this: Window, ev: Event) => any;
-declare var oncanplaythrough: (this: Window, ev: Event) => any;
-declare var onchange: (this: Window, ev: Event) => any;
-declare var onclick: (this: Window, ev: MouseEvent) => any;
-declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
-declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
-declare var ondblclick: (this: Window, ev: MouseEvent) => any;
-declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
-declare var ondrag: (this: Window, ev: DragEvent) => any;
-declare var ondragend: (this: Window, ev: DragEvent) => any;
-declare var ondragenter: (this: Window, ev: DragEvent) => any;
-declare var ondragleave: (this: Window, ev: DragEvent) => any;
-declare var ondragover: (this: Window, ev: DragEvent) => any;
-declare var ondragstart: (this: Window, ev: DragEvent) => any;
-declare var ondrop: (this: Window, ev: DragEvent) => any;
-declare var ondurationchange: (this: Window, ev: Event) => any;
-declare var onemptied: (this: Window, ev: Event) => any;
-declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-declare var onerror: ErrorEventHandler;
-declare var onfocus: (this: Window, ev: FocusEvent) => any;
-declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
-declare var oninput: (this: Window, ev: Event) => any;
-declare var oninvalid: (this: Window, ev: Event) => any;
-declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
-declare var onload: (this: Window, ev: Event) => any;
-declare var onloadeddata: (this: Window, ev: Event) => any;
-declare var onloadedmetadata: (this: Window, ev: Event) => any;
-declare var onloadstart: (this: Window, ev: Event) => any;
-declare var onmessage: (this: Window, ev: MessageEvent) => any;
-declare var onmousedown: (this: Window, ev: MouseEvent) => any;
-declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
-declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
-declare var onmousemove: (this: Window, ev: MouseEvent) => any;
-declare var onmouseout: (this: Window, ev: MouseEvent) => any;
-declare var onmouseover: (this: Window, ev: MouseEvent) => any;
-declare var onmouseup: (this: Window, ev: MouseEvent) => any;
-declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
-declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-declare var onoffline: (this: Window, ev: Event) => any;
-declare var ononline: (this: Window, ev: Event) => any;
-declare var onorientationchange: (this: Window, ev: Event) => any;
-declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpause: (this: Window, ev: Event) => any;
-declare var onplay: (this: Window, ev: Event) => any;
-declare var onplaying: (this: Window, ev: Event) => any;
-declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
-declare var onprogress: (this: Window, ev: ProgressEvent) => any;
-declare var onratechange: (this: Window, ev: Event) => any;
-declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-declare var onreset: (this: Window, ev: Event) => any;
-declare var onresize: (this: Window, ev: UIEvent) => any;
-declare var onscroll: (this: Window, ev: UIEvent) => any;
-declare var onseeked: (this: Window, ev: Event) => any;
-declare var onseeking: (this: Window, ev: Event) => any;
-declare var onselect: (this: Window, ev: UIEvent) => any;
-declare var onstalled: (this: Window, ev: Event) => any;
-declare var onstorage: (this: Window, ev: StorageEvent) => any;
-declare var onsubmit: (this: Window, ev: Event) => any;
-declare var onsuspend: (this: Window, ev: Event) => any;
-declare var ontimeupdate: (this: Window, ev: Event) => any;
-declare var ontouchcancel: (ev: TouchEvent) => any;
-declare var ontouchend: (ev: TouchEvent) => any;
-declare var ontouchmove: (ev: TouchEvent) => any;
-declare var ontouchstart: (ev: TouchEvent) => any;
-declare var onunload: (this: Window, ev: Event) => any;
-declare var onvolumechange: (this: Window, ev: Event) => any;
-declare var onwaiting: (this: Window, ev: Event) => any;
-declare var opener: any;
-declare var orientation: string | number;
-declare var outerHeight: number;
-declare var outerWidth: number;
-declare var pageXOffset: number;
-declare var pageYOffset: number;
-declare var parent: Window;
-declare var performance: Performance;
-declare var personalbar: BarProp;
-declare var screen: Screen;
-declare var screenLeft: number;
-declare var screenTop: number;
-declare var screenX: number;
-declare var screenY: number;
-declare var scrollX: number;
-declare var scrollY: number;
-declare var scrollbars: BarProp;
-declare var self: Window;
-declare var status: string;
-declare var statusbar: BarProp;
-declare var styleMedia: StyleMedia;
-declare var toolbar: BarProp;
-declare var top: Window;
-declare var window: Window;
-declare function alert(message?: any): void;
-declare function blur(): void;
-declare function cancelAnimationFrame(handle: number): void;
-declare function captureEvents(): void;
-declare function close(): void;
-declare function confirm(message?: string): boolean;
-declare function focus(): void;
-declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
-declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
-declare function getSelection(): Selection;
-declare function matchMedia(mediaQuery: string): MediaQueryList;
-declare function moveBy(x?: number, y?: number): void;
-declare function moveTo(x?: number, y?: number): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
-declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
-declare function print(): void;
-declare function prompt(message?: string, _default?: string): string | null;
-declare function releaseEvents(): void;
-declare function requestAnimationFrame(callback: FrameRequestCallback): number;
-declare function resizeBy(x?: number, y?: number): void;
-declare function resizeTo(x?: number, y?: number): void;
-declare function scroll(x?: number, y?: number): void;
-declare function scrollBy(x?: number, y?: number): void;
-declare function scrollTo(x?: number, y?: number): void;
-declare function webkitCancelAnimationFrame(handle: number): void;
-declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
-declare function scroll(options?: ScrollToOptions): void;
-declare function scrollTo(options?: ScrollToOptions): void;
-declare function scrollBy(options?: ScrollToOptions): void;
-declare function toString(): string;
-declare function dispatchEvent(evt: Event): boolean;
-declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare function clearInterval(handle: number): void;
-declare function clearTimeout(handle: number): void;
-declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function clearImmediate(handle: number): void;
-declare function setImmediate(handler: (...args: any[]) => void): number;
-declare function setImmediate(handler: any, ...args: any[]): number;
-declare var sessionStorage: Storage;
-declare var localStorage: Storage;
-declare var console: Console;
-declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
-declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
-declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
-declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
-declare var onpointermove: (this: Window, ev: PointerEvent) => any;
-declare var onpointerout: (this: Window, ev: PointerEvent) => any;
-declare var onpointerover: (this: Window, ev: PointerEvent) => any;
-declare var onpointerup: (this: Window, ev: PointerEvent) => any;
-declare var onwheel: (this: Window, ev: WheelEvent) => any;
-declare var indexedDB: IDBFactory;
-declare function atob(encodedString: string): string;
-declare function btoa(rawString: string): string;
-declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
-declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-type AAGUID = string;
-type AlgorithmIdentifier = string | Algorithm;
-type ConstrainBoolean = boolean | ConstrainBooleanParameters;
-type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
-type ConstrainDouble = number | ConstrainDoubleRange;
-type ConstrainLong = number | ConstrainLongRange;
-type CryptoOperationData = ArrayBufferView;
-type GLbitfield = number;
-type GLboolean = boolean;
-type GLbyte = number;
-type GLclampf = number;
-type GLenum = number;
-type GLfloat = number;
-type GLint = number;
-type GLintptr = number;
-type GLshort = number;
-type GLsizei = number;
-type GLsizeiptr = number;
-type GLubyte = number;
-type GLuint = number;
-type GLushort = number;
-type IDBKeyPath = string;
-type KeyFormat = string;
-type KeyType = string;
-type KeyUsage = string;
-type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
-type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
-type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
-type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
-type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
-type payloadtype = number;
-type ScrollBehavior = "auto" | "instant" | "smooth";
-type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
-type IDBValidKey = number | string | Date | IDBArrayKey;
-type BufferSource = ArrayBuffer | ArrayBufferView;
-type MouseWheelEvent = WheelEvent;
+/*! 
*****************************************************************************
+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"/>
+
+
+
+/////////////////////////////
+/// IE DOM APIs
+/////////////////////////////
+
+interface Algorithm {
+    name: string;
+}
+
+interface AriaRequestEventInit extends EventInit {
+    attributeName?: string;
+    attributeValue?: string;
+}
+
+interface CommandEventInit extends EventInit {
+    commandName?: string;
+    detail?: string;
+}
+
+interface CompositionEventInit extends UIEventInit {
+    data?: string;
+}
+
+interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface ConstrainBooleanParameters {
+    exact?: boolean;
+    ideal?: boolean;
+}
+
+interface ConstrainDOMStringParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface ConstrainDoubleRange extends DoubleRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainLongRange extends LongRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainVideoFacingModeParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface CustomEventInit extends EventInit {
+    detail?: any;
+}
+
+interface DeviceAccelerationDict {
+    x?: number;
+    y?: number;
+    z?: number;
+}
+
+interface DeviceLightEventInit extends EventInit {
+    value?: number;
+}
+
+interface DeviceRotationRateDict {
+    alpha?: number;
+    beta?: number;
+    gamma?: number;
+}
+
+interface DoubleRange {
+    max?: number;
+    min?: number;
+}
+
+interface EventInit {
+    scoped?: boolean;
+    bubbles?: boolean;
+    cancelable?: boolean;
+}
+
+interface EventModifierInit extends UIEventInit {
+    ctrlKey?: boolean;
+    shiftKey?: boolean;
+    altKey?: boolean;
+    metaKey?: boolean;
+    modifierAltGraph?: boolean;
+    modifierCapsLock?: boolean;
+    modifierFn?: boolean;
+    modifierFnLock?: boolean;
+    modifierHyper?: boolean;
+    modifierNumLock?: boolean;
+    modifierOS?: boolean;
+    modifierScrollLock?: boolean;
+    modifierSuper?: boolean;
+    modifierSymbol?: boolean;
+    modifierSymbolLock?: boolean;
+}
+
+interface ExceptionInformation {
+    domain?: string;
+}
+
+interface FocusEventInit extends UIEventInit {
+    relatedTarget?: EventTarget;
+}
+
+interface HashChangeEventInit extends EventInit {
+    newURL?: string;
+    oldURL?: string;
+}
+
+interface IDBIndexParameters {
+    multiEntry?: boolean;
+    unique?: boolean;
+}
+
+interface IDBObjectStoreParameters {
+    autoIncrement?: boolean;
+    keyPath?: IDBKeyPath;
+}
+
+interface KeyAlgorithm {
+    name?: string;
+}
+
+interface KeyboardEventInit extends EventModifierInit {
+    code?: string;
+    key?: string;
+    location?: number;
+    repeat?: boolean;
+}
+
+interface LongRange {
+    max?: number;
+    min?: number;
+}
+
+interface MSAccountInfo {
+    rpDisplayName?: string;
+    userDisplayName?: string;
+    accountName?: string;
+    userId?: string;
+    accountImageUri?: string;
+}
+
+interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
+    networkSendQualityEventRatio?: number;
+    networkDelayEventRatio?: number;
+    cpuInsufficientEventRatio?: number;
+    deviceHalfDuplexAECEventRatio?: number;
+    deviceRenderNotFunctioningEventRatio?: number;
+    deviceCaptureNotFunctioningEventRatio?: number;
+    deviceGlitchesEventRatio?: number;
+    deviceLowSNREventRatio?: number;
+    deviceLowSpeechLevelEventRatio?: number;
+    deviceClippingEventRatio?: number;
+    deviceEchoEventRatio?: number;
+    deviceNearEndToEchoRatioEventRatio?: number;
+    deviceRenderZeroVolumeEventRatio?: number;
+    deviceRenderMuteEventRatio?: number;
+    deviceMultipleEndpointsEventCount?: number;
+    deviceHowlingEventCount?: number;
+}
+
+interface MSAudioRecvPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioRecvSignal;
+    packetReorderRatio?: number;
+    packetReorderDepthAvg?: number;
+    packetReorderDepthMax?: number;
+    burstLossLength1?: number;
+    burstLossLength2?: number;
+    burstLossLength3?: number;
+    burstLossLength4?: number;
+    burstLossLength5?: number;
+    burstLossLength6?: number;
+    burstLossLength7?: number;
+    burstLossLength8OrHigher?: number;
+    fecRecvDistance1?: number;
+    fecRecvDistance2?: number;
+    fecRecvDistance3?: number;
+    ratioConcealedSamplesAvg?: number;
+    ratioStretchedSamplesAvg?: number;
+    ratioCompressedSamplesAvg?: number;
+}
+
+interface MSAudioRecvSignal {
+    initialSignalLevelRMS?: number;
+    recvSignalLevelCh1?: number;
+    recvNoiseLevelCh1?: number;
+    renderSignalLevel?: number;
+    renderNoiseLevel?: number;
+    renderLoopbackSignalLevel?: number;
+}
+
+interface MSAudioSendPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioSendSignal;
+    audioFECUsed?: boolean;
+    sendMutePercent?: number;
+}
+
+interface MSAudioSendSignal {
+    noiseLevel?: number;
+    sendSignalLevelCh1?: number;
+    sendNoiseLevelCh1?: number;
+}
+
+interface MSConnectivity {
+    iceType?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    relayAddress?: MSRelayAddress;
+}
+
+interface MSCredentialFilter {
+    accept?: MSCredentialSpec[];
+}
+
+interface MSCredentialParameters {
+    type?: string;
+}
+
+interface MSCredentialSpec {
+    type?: string;
+    id?: string;
+}
+
+interface MSDelay {
+    roundTrip?: number;
+    roundTripMax?: number;
+}
+
+interface MSDescription extends RTCStats {
+    connectivity?: MSConnectivity;
+    transport?: string;
+    networkconnectivity?: MSNetworkConnectivityInfo;
+    localAddr?: MSIPAddressInfo;
+    remoteAddr?: MSIPAddressInfo;
+    deviceDevName?: string;
+    reflexiveLocalIPAddr?: MSIPAddressInfo;
+}
+
+interface MSFIDOCredentialParameters extends MSCredentialParameters {
+    algorithm?: string | Algorithm;
+    authenticators?: AAGUID[];
+}
+
+interface MSIPAddressInfo {
+    ipAddr?: string;
+    port?: number;
+    manufacturerMacAddrMask?: string;
+}
+
+interface MSIceWarningFlags {
+    turnTcpTimedOut?: boolean;
+    turnUdpAllocateFailed?: boolean;
+    turnUdpSendFailed?: boolean;
+    turnTcpAllocateFailed?: boolean;
+    turnTcpSendFailed?: boolean;
+    udpLocalConnectivityFailed?: boolean;
+    udpNatConnectivityFailed?: boolean;
+    udpRelayConnectivityFailed?: boolean;
+    tcpNatConnectivityFailed?: boolean;
+    tcpRelayConnectivityFailed?: boolean;
+    connCheckMessageIntegrityFailed?: boolean;
+    allocationMessageIntegrityFailed?: boolean;
+    connCheckOtherError?: boolean;
+    turnAuthUnknownUsernameError?: boolean;
+    noRelayServersConfigured?: boolean;
+    multipleRelayServersAttempted?: boolean;
+    portRangeExhausted?: boolean;
+    alternateServerReceived?: boolean;
+    pseudoTLSFailure?: boolean;
+    turnTurnTcpConnectivityFailed?: boolean;
+    useCandidateChecksFailed?: boolean;
+    fipsAllocationFailure?: boolean;
+}
+
+interface MSJitter {
+    interArrival?: number;
+    interArrivalMax?: number;
+    interArrivalSD?: number;
+}
+
+interface MSLocalClientEventBase extends RTCStats {
+    networkReceiveQualityEventRatio?: number;
+    networkBandwidthLowEventRatio?: number;
+}
+
+interface MSNetwork extends RTCStats {
+    jitter?: MSJitter;
+    delay?: MSDelay;
+    packetLoss?: MSPacketLoss;
+    utilization?: MSUtilization;
+}
+
+interface MSNetworkConnectivityInfo {
+    vpn?: boolean;
+    linkspeed?: number;
+    networkConnectionDetails?: string;
+}
+
+interface MSNetworkInterfaceType {
+    interfaceTypeEthernet?: boolean;
+    interfaceTypeWireless?: boolean;
+    interfaceTypePPP?: boolean;
+    interfaceTypeTunnel?: boolean;
+    interfaceTypeWWAN?: boolean;
+}
+
+interface MSOutboundNetwork extends MSNetwork {
+    appliedBandwidthLimit?: number;
+}
+
+interface MSPacketLoss {
+    lossRate?: number;
+    lossRateMax?: number;
+}
+
+interface MSPayloadBase extends RTCStats {
+    payloadDescription?: string;
+}
+
+interface MSRelayAddress {
+    relayAddress?: string;
+    port?: number;
+}
+
+interface MSSignatureParameters {
+    userPrompt?: string;
+}
+
+interface MSTransportDiagnosticsStats extends RTCStats {
+    baseAddress?: string;
+    localAddress?: string;
+    localSite?: string;
+    networkName?: string;
+    remoteAddress?: string;
+    remoteSite?: string;
+    localMR?: string;
+    remoteMR?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    portRangeMin?: number;
+    portRangeMax?: number;
+    localMRTCPPort?: number;
+    remoteMRTCPPort?: number;
+    stunVer?: number;
+    numConsentReqSent?: number;
+    numConsentReqReceived?: number;
+    numConsentRespSent?: number;
+    numConsentRespReceived?: number;
+    interfaces?: MSNetworkInterfaceType;
+    baseInterface?: MSNetworkInterfaceType;
+    protocol?: string;
+    localInterface?: MSNetworkInterfaceType;
+    localAddrType?: string;
+    remoteAddrType?: string;
+    iceRole?: string;
+    rtpRtcpMux?: boolean;
+    allocationTimeInMs?: number;
+    msRtcEngineVersion?: string;
+}
+
+interface MSUtilization {
+    packets?: number;
+    bandwidthEstimation?: number;
+    bandwidthEstimationMin?: number;
+    bandwidthEstimationMax?: number;
+    bandwidthEstimationStdDev?: number;
+    bandwidthEstimationAvg?: number;
+}
+
+interface MSVideoPayload extends MSPayloadBase {
+    resoluton?: string;
+    videoBitRateAvg?: number;
+    videoBitRateMax?: number;
+    videoFrameRateAvg?: number;
+    videoPacketLossRate?: number;
+    durationSeconds?: number;
+}
+
+interface MSVideoRecvPayload extends MSVideoPayload {
+    videoFrameLossRate?: number;
+    recvCodecType?: string;
+    recvResolutionWidth?: number;
+    recvResolutionHeight?: number;
+    videoResolutions?: MSVideoResolutionDistribution;
+    recvFrameRateAverage?: number;
+    recvBitRateMaximum?: number;
+    recvBitRateAverage?: number;
+    recvVideoStreamsMax?: number;
+    recvVideoStreamsMin?: number;
+    recvVideoStreamsMode?: number;
+    videoPostFECPLR?: number;
+    lowBitRateCallPercent?: number;
+    lowFrameRateCallPercent?: number;
+    reorderBufferTotalPackets?: number;
+    recvReorderBufferReorderedPackets?: number;
+    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
+    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
+    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
+    recvReorderBufferPacketsDroppedDueToTimeout?: number;
+    recvFpsHarmonicAverage?: number;
+    recvNumResSwitches?: number;
+}
+
+interface MSVideoResolutionDistribution {
+    cifQuality?: number;
+    vgaQuality?: number;
+    h720Quality?: number;
+    h1080Quality?: number;
+    h1440Quality?: number;
+    h2160Quality?: number;
+}
+
+interface MSVideoSendPayload extends MSVideoPayload {
+    sendFrameRateAverage?: number;
+    sendBitRateMaximum?: number;
+    sendBitRateAverage?: number;
+    sendVideoStreamsMax?: number;
+    sendResolutionWidth?: number;
+    sendResolutionHeight?: number;
+}
+
+interface MediaEncryptedEventInit extends EventInit {
+    initDataType?: string;
+    initData?: ArrayBuffer;
+}
+
+interface MediaKeyMessageEventInit extends EventInit {
+    messageType?: string;
+    message?: ArrayBuffer;
+}
+
+interface MediaKeySystemConfiguration {
+    initDataTypes?: string[];
+    audioCapabilities?: MediaKeySystemMediaCapability[];
+    videoCapabilities?: MediaKeySystemMediaCapability[];
+    distinctiveIdentifier?: string;
+    persistentState?: string;
+}
+
+interface MediaKeySystemMediaCapability {
+    contentType?: string;
+    robustness?: string;
+}
+
+interface MediaStreamConstraints {
+    video?: boolean | MediaTrackConstraints;
+    audio?: boolean | MediaTrackConstraints;
+}
+
+interface MediaStreamErrorEventInit extends EventInit {
+    error?: MediaStreamError;
+}
+
+interface MediaStreamTrackEventInit extends EventInit {
+    track?: MediaStreamTrack;
+}
+
+interface MediaTrackCapabilities {
+    width?: number | LongRange;
+    height?: number | LongRange;
+    aspectRatio?: number | DoubleRange;
+    frameRate?: number | DoubleRange;
+    facingMode?: string;
+    volume?: number | DoubleRange;
+    sampleRate?: number | LongRange;
+    sampleSize?: number | LongRange;
+    echoCancellation?: boolean[];
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackConstraintSet {
+    width?: number | ConstrainLongRange;
+    height?: number | ConstrainLongRange;
+    aspectRatio?: number | ConstrainDoubleRange;
+    frameRate?: number | ConstrainDoubleRange;
+    facingMode?: string | string[] | ConstrainDOMStringParameters;
+    volume?: number | ConstrainDoubleRange;
+    sampleRate?: number | ConstrainLongRange;
+    sampleSize?: number | ConstrainLongRange;
+    echoCancelation?: boolean | ConstrainBooleanParameters;
+    deviceId?: string | string[] | ConstrainDOMStringParameters;
+    groupId?: string | string[] | ConstrainDOMStringParameters;
+}
+
+interface MediaTrackConstraints extends MediaTrackConstraintSet {
+    advanced?: MediaTrackConstraintSet[];
+}
+
+interface MediaTrackSettings {
+    width?: number;
+    height?: number;
+    aspectRatio?: number;
+    frameRate?: number;
+    facingMode?: string;
+    volume?: number;
+    sampleRate?: number;
+    sampleSize?: number;
+    echoCancellation?: boolean;
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackSupportedConstraints {
+    width?: boolean;
+    height?: boolean;
+    aspectRatio?: boolean;
+    frameRate?: boolean;
+    facingMode?: boolean;
+    volume?: boolean;
+    sampleRate?: boolean;
+    sampleSize?: boolean;
+    echoCancellation?: boolean;
+    deviceId?: boolean;
+    groupId?: boolean;
+}
+
+interface MouseEventInit extends EventModifierInit {
+    screenX?: number;
+    screenY?: number;
+    clientX?: number;
+    clientY?: number;
+    button?: number;
+    buttons?: number;
+    relatedTarget?: EventTarget;
+}
+
+interface MsZoomToOptions {
+    contentX?: number;
+    contentY?: number;
+    viewportX?: string;
+    viewportY?: string;
+    scaleFactor?: number;
+    animate?: string;
+}
+
+interface MutationObserverInit {
+    childList?: boolean;
+    attributes?: boolean;
+    characterData?: boolean;
+    subtree?: boolean;
+    attributeOldValue?: boolean;
+    characterDataOldValue?: boolean;
+    attributeFilter?: string[];
+}
+
+interface ObjectURLOptions {
+    oneTimeOnly?: boolean;
+}
+
+interface PeriodicWaveConstraints {
+    disableNormalization?: boolean;
+}
+
+interface PointerEventInit extends MouseEventInit {
+    pointerId?: number;
+    width?: number;
+    height?: number;
+    pressure?: number;
+    tiltX?: number;
+    tiltY?: number;
+    pointerType?: string;
+    isPrimary?: boolean;
+}
+
+interface PositionOptions {
+    enableHighAccuracy?: boolean;
+    timeout?: number;
+    maximumAge?: number;
+}
+
+interface RTCDTMFToneChangeEventInit extends EventInit {
+    tone?: string;
+}
+
+interface RTCDtlsFingerprint {
+    algorithm?: string;
+    value?: string;
+}
+
+interface RTCDtlsParameters {
+    role?: string;
+    fingerprints?: RTCDtlsFingerprint[];
+}
+
+interface RTCIceCandidate {
+    foundation?: string;
+    priority?: number;
+    ip?: string;
+    protocol?: string;
+    port?: number;
+    type?: string;
+    tcpType?: string;
+    relatedAddress?: string;
+    relatedPort?: number;
+}
+
+interface RTCIceCandidateAttributes extends RTCStats {
+    ipAddress?: string;
+    portNumber?: number;
+    transport?: string;
+    candidateType?: string;
+    priority?: number;
+    addressSourceUrl?: string;
+}
+
+interface RTCIceCandidateComplete {
+}
+
+interface RTCIceCandidatePair {
+    local?: RTCIceCandidate;
+    remote?: RTCIceCandidate;
+}
+
+interface RTCIceCandidatePairStats extends RTCStats {
+    transportId?: string;
+    localCandidateId?: string;
+    remoteCandidateId?: string;
+    state?: string;
+    priority?: number;
+    nominated?: boolean;
+    writable?: boolean;
+    readable?: boolean;
+    bytesSent?: number;
+    bytesReceived?: number;
+    roundTripTime?: number;
+    availableOutgoingBitrate?: number;
+    availableIncomingBitrate?: number;
+}
+
+interface RTCIceGatherOptions {
+    gatherPolicy?: string;
+    iceservers?: RTCIceServer[];
+}
+
+interface RTCIceParameters {
+    usernameFragment?: string;
+    password?: string;
+}
+
+interface RTCIceServer {
+    urls?: any;
+    username?: string;
+    credential?: string;
+}
+
+interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsReceived?: number;
+    bytesReceived?: number;
+    packetsLost?: number;
+    jitter?: number;
+    fractionLost?: number;
+}
+
+interface RTCMediaStreamTrackStats extends RTCStats {
+    trackIdentifier?: string;
+    remoteSource?: boolean;
+    ssrcIds?: string[];
+    frameWidth?: number;
+    frameHeight?: number;
+    framesPerSecond?: number;
+    framesSent?: number;
+    framesReceived?: number;
+    framesDecoded?: number;
+    framesDropped?: number;
+    framesCorrupted?: number;
+    audioLevel?: number;
+    echoReturnLoss?: number;
+    echoReturnLossEnhancement?: number;
+}
+
+interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsSent?: number;
+    bytesSent?: number;
+    targetBitrate?: number;
+    roundTripTime?: number;
+}
+
+interface RTCRTPStreamStats extends RTCStats {
+    ssrc?: string;
+    associateStatsId?: string;
+    isRemote?: boolean;
+    mediaTrackId?: string;
+    transportId?: string;
+    codecId?: string;
+    firCount?: number;
+    pliCount?: number;
+    nackCount?: number;
+    sliCount?: number;
+}
+
+interface RTCRtcpFeedback {
+    type?: string;
+    parameter?: string;
+}
+
+interface RTCRtcpParameters {
+    ssrc?: number;
+    cname?: string;
+    reducedSize?: boolean;
+    mux?: boolean;
+}
+
+interface RTCRtpCapabilities {
+    codecs?: RTCRtpCodecCapability[];
+    headerExtensions?: RTCRtpHeaderExtension[];
+    fecMechanisms?: string[];
+}
+
+interface RTCRtpCodecCapability {
+    name?: string;
+    kind?: string;
+    clockRate?: number;
+    preferredPayloadType?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+    options?: any;
+    maxTemporalLayers?: number;
+    maxSpatialLayers?: number;
+    svcMultiStreamSupport?: boolean;
+}
+
+interface RTCRtpCodecParameters {
+    name?: string;
+    payloadType?: any;
+    clockRate?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+}
+
+interface RTCRtpContributingSource {
+    timestamp?: number;
+    csrc?: number;
+    audioLevel?: number;
+}
+
+interface RTCRtpEncodingParameters {
+    ssrc?: number;
+    codecPayloadType?: number;
+    fec?: RTCRtpFecParameters;
+    rtx?: RTCRtpRtxParameters;
+    priority?: number;
+    maxBitrate?: number;
+    minQuality?: number;
+    framerateBias?: number;
+    resolutionScale?: number;
+    framerateScale?: number;
+    active?: boolean;
+    encodingId?: string;
+    dependencyEncodingIds?: string[];
+    ssrcRange?: RTCSsrcRange;
+}
+
+interface RTCRtpFecParameters {
+    ssrc?: number;
+    mechanism?: string;
+}
+
+interface RTCRtpHeaderExtension {
+    kind?: string;
+    uri?: string;
+    preferredId?: number;
+    preferredEncrypt?: boolean;
+}
+
+interface RTCRtpHeaderExtensionParameters {
+    uri?: string;
+    id?: number;
+    encrypt?: boolean;
+}
+
+interface RTCRtpParameters {
+    muxId?: string;
+    codecs?: RTCRtpCodecParameters[];
+    headerExtensions?: RTCRtpHeaderExtensionParameters[];
+    encodings?: RTCRtpEncodingParameters[];
+    rtcp?: RTCRtcpParameters;
+}
+
+interface RTCRtpRtxParameters {
+    ssrc?: number;
+}
+
+interface RTCRtpUnhandled {
+    ssrc?: number;
+    payloadType?: number;
+    muxId?: string;
+}
+
+interface RTCSrtpKeyParam {
+    keyMethod?: string;
+    keySalt?: string;
+    lifetime?: string;
+    mkiValue?: number;
+    mkiLength?: number;
+}
+
+interface RTCSrtpSdesParameters {
+    tag?: number;
+    cryptoSuite?: string;
+    keyParams?: RTCSrtpKeyParam[];
+    sessionParams?: string[];
+}
+
+interface RTCSsrcRange {
+    min?: number;
+    max?: number;
+}
+
+interface RTCStats {
+    timestamp?: number;
+    type?: string;
+    id?: string;
+    msType?: string;
+}
+
+interface RTCStatsReport {
+}
+
+interface RTCTransportStats extends RTCStats {
+    bytesSent?: number;
+    bytesReceived?: number;
+    rtcpTransportStatsId?: string;
+    activeConnection?: boolean;
+    selectedCandidatePairId?: string;
+    localCertificateId?: string;
+    remoteCertificateId?: string;
+}
+
+interface StoreExceptionsInformation extends ExceptionInformation {
+    siteName?: string;
+    explanationString?: string;
+    detailURI?: string;
+}
+
+interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface UIEventInit extends EventInit {
+    view?: Window;
+    detail?: number;
+}
+
+interface WebGLContextAttributes {
+    failIfMajorPerformanceCaveat?: boolean;
+    alpha?: boolean;
+    depth?: boolean;
+    stencil?: boolean;
+    antialias?: boolean;
+    premultipliedAlpha?: boolean;
+    preserveDrawingBuffer?: boolean;
+}
+
+interface WebGLContextEventInit extends EventInit {
+    statusMessage?: string;
+}
+
+interface WheelEventInit extends MouseEventInit {
+    deltaX?: number;
+    deltaY?: number;
+    deltaZ?: number;
+    deltaMode?: number;
+}
+
+interface EventListener {
+    (evt: Event): void;
+}
+
+interface ANGLE_instanced_arrays {
+    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
+    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
+    vertexAttribDivisorANGLE(index: number, divisor: number): void;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+declare var ANGLE_instanced_arrays: {
+    prototype: ANGLE_instanced_arrays;
+    new(): ANGLE_instanced_arrays;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+interface AnalyserNode extends AudioNode {
+    fftSize: number;
+    readonly frequencyBinCount: number;
+    maxDecibels: number;
+    minDecibels: number;
+    smoothingTimeConstant: number;
+    getByteFrequencyData(array: Uint8Array): void;
+    getByteTimeDomainData(array: Uint8Array): void;
+    getFloatFrequencyData(array: Float32Array): void;
+    getFloatTimeDomainData(array: Float32Array): void;
+}
+
+declare var AnalyserNode: {
+    prototype: AnalyserNode;
+    new(): AnalyserNode;
+}
+
+interface AnimationEvent extends Event {
+    readonly animationName: string;
+    readonly elapsedTime: number;
+    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var AnimationEvent: {
+    prototype: AnimationEvent;
+    new(): AnimationEvent;
+}
+
+interface ApplicationCacheEventMap {
+    "cached": Event;
+    "checking": Event;
+    "downloading": Event;
+    "error": ErrorEvent;
+    "noupdate": Event;
+    "obsolete": Event;
+    "progress": ProgressEvent;
+    "updateready": Event;
+}
+
+interface ApplicationCache extends EventTarget {
+    oncached: (this: ApplicationCache, ev: Event) => any;
+    onchecking: (this: ApplicationCache, ev: Event) => any;
+    ondownloading: (this: ApplicationCache, ev: Event) => any;
+    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
+    onnoupdate: (this: ApplicationCache, ev: Event) => any;
+    onobsolete: (this: ApplicationCache, ev: Event) => any;
+    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
+    onupdateready: (this: ApplicationCache, ev: Event) => any;
+    readonly status: number;
+    abort(): void;
+    swapCache(): void;
+    update(): void;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ApplicationCache: {
+    prototype: ApplicationCache;
+    new(): ApplicationCache;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+}
+
+interface AriaRequestEvent extends Event {
+    readonly attributeName: string;
+    attributeValue: string | null;
+}
+
+declare var AriaRequestEvent: {
+    prototype: AriaRequestEvent;
+    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
+}
+
+interface Attr extends Node {
+    readonly name: string;
+    readonly ownerElement: Element;
+    readonly prefix: string | null;
+    readonly specified: boolean;
+    value: string;
+}
+
+declare var Attr: {
+    prototype: Attr;
+    new(): Attr;
+}
+
+interface AudioBuffer {
+    readonly duration: number;
+    readonly length: number;
+    readonly numberOfChannels: number;
+    readonly sampleRate: number;
+    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    getChannelData(channel: number): Float32Array;
+}
+
+declare var AudioBuffer: {
+    prototype: AudioBuffer;
+    new(): AudioBuffer;
+}
+
+interface AudioBufferSourceNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface AudioBufferSourceNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    readonly detune: AudioParam;
+    loop: boolean;
+    loopEnd: number;
+    loopStart: number;
+    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
+    readonly playbackRate: AudioParam;
+    start(when?: number, offset?: number, duration?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var AudioBufferSourceNode: {
+    prototype: AudioBufferSourceNode;
+    new(): AudioBufferSourceNode;
+}
+
+interface AudioContext extends EventTarget {
+    readonly currentTime: number;
+    readonly destination: AudioDestinationNode;
+    readonly listener: AudioListener;
+    readonly sampleRate: number;
+    state: string;
+    createAnalyser(): AnalyserNode;
+    createBiquadFilter(): BiquadFilterNode;
+    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
+    createBufferSource(): AudioBufferSourceNode;
+    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
+    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
+    createConvolver(): ConvolverNode;
+    createDelay(maxDelayTime?: number): DelayNode;
+    createDynamicsCompressor(): DynamicsCompressorNode;
+    createGain(): GainNode;
+    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
+    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
+    createOscillator(): OscillatorNode;
+    createPanner(): PannerNode;
+    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
+    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
+    createStereoPanner(): StereoPannerNode;
+    createWaveShaper(): WaveShaperNode;
+    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
+}
+
+declare var AudioContext: {
+    prototype: AudioContext;
+    new(): AudioContext;
+}
+
+interface AudioDestinationNode extends AudioNode {
+    readonly maxChannelCount: number;
+}
+
+declare var AudioDestinationNode: {
+    prototype: AudioDestinationNode;
+    new(): AudioDestinationNode;
+}
+
+interface AudioListener {
+    dopplerFactor: number;
+    speedOfSound: number;
+    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var AudioListener: {
+    prototype: AudioListener;
+    new(): AudioListener;
+}
+
+interface AudioNode extends EventTarget {
+    channelCount: number;
+    channelCountMode: string;
+    channelInterpretation: string;
+    readonly context: AudioContext;
+    readonly numberOfInputs: number;
+    readonly numberOfOutputs: number;
+    connect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(output?: number): void;
+    disconnect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(destination: AudioParam, output?: number): void;
+}
+
+declare var AudioNode: {
+    prototype: AudioNode;
+    new(): AudioNode;
+}
+
+interface AudioParam {
+    readonly defaultValue: number;
+    value: number;
+    cancelScheduledValues(startTime: number): void;
+    exponentialRampToValueAtTime(value: number, endTime: number): void;
+    linearRampToValueAtTime(value: number, endTime: number): void;
+    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
+    setValueAtTime(value: number, startTime: number): void;
+    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
+}
+
+declare var AudioParam: {
+    prototype: AudioParam;
+    new(): AudioParam;
+}
+
+interface AudioProcessingEvent extends Event {
+    readonly inputBuffer: AudioBuffer;
+    readonly outputBuffer: AudioBuffer;
+    readonly playbackTime: number;
+}
+
+declare var AudioProcessingEvent: {
+    prototype: AudioProcessingEvent;
+    new(): AudioProcessingEvent;
+}
+
+interface AudioTrack {
+    enabled: boolean;
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var AudioTrack: {
+    prototype: AudioTrack;
+    new(): AudioTrack;
+}
+
+interface AudioTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface AudioTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    onchange: (this: AudioTrackList, ev: Event) => any;
+    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    getTrackById(id: string): AudioTrack | null;
+    item(index: number): AudioTrack;
+    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: AudioTrack;
+}
+
+declare var AudioTrackList: {
+    prototype: AudioTrackList;
+    new(): AudioTrackList;
+}
+
+interface BarProp {
+    readonly visible: boolean;
+}
+
+declare var BarProp: {
+    prototype: BarProp;
+    new(): BarProp;
+}
+
+interface BeforeUnloadEvent extends Event {
+    returnValue: any;
+}
+
+declare var BeforeUnloadEvent: {
+    prototype: BeforeUnloadEvent;
+    new(): BeforeUnloadEvent;
+}
+
+interface BiquadFilterNode extends AudioNode {
+    readonly Q: AudioParam;
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    readonly gain: AudioParam;
+    type: string;
+    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
+}
+
+declare var BiquadFilterNode: {
+    prototype: BiquadFilterNode;
+    new(): BiquadFilterNode;
+}
+
+interface Blob {
+    readonly size: number;
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+    slice(start?: number, end?: number, contentType?: string): Blob;
+}
+
+declare var Blob: {
+    prototype: Blob;
+    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
+}
+
+interface CDATASection extends Text {
+}
+
+declare var CDATASection: {
+    prototype: CDATASection;
+    new(): CDATASection;
+}
+
+interface CSS {
+    supports(property: string, value?: string): boolean;
+}
+declare var CSS: CSS;
+
+interface CSSConditionRule extends CSSGroupingRule {
+    conditionText: string;
+}
+
+declare var CSSConditionRule: {
+    prototype: CSSConditionRule;
+    new(): CSSConditionRule;
+}
+
+interface CSSFontFaceRule extends CSSRule {
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSFontFaceRule: {
+    prototype: CSSFontFaceRule;
+    new(): CSSFontFaceRule;
+}
+
+interface CSSGroupingRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    deleteRule(index: number): void;
+    insertRule(rule: string, index: number): number;
+}
+
+declare var CSSGroupingRule: {
+    prototype: CSSGroupingRule;
+    new(): CSSGroupingRule;
+}
+
+interface CSSImportRule extends CSSRule {
+    readonly href: string;
+    readonly media: MediaList;
+    readonly styleSheet: CSSStyleSheet;
+}
+
+declare var CSSImportRule: {
+    prototype: CSSImportRule;
+    new(): CSSImportRule;
+}
+
+interface CSSKeyframeRule extends CSSRule {
+    keyText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSKeyframeRule: {
+    prototype: CSSKeyframeRule;
+    new(): CSSKeyframeRule;
+}
+
+interface CSSKeyframesRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    name: string;
+    appendRule(rule: string): void;
+    deleteRule(rule: string): void;
+    findRule(rule: string): CSSKeyframeRule;
+}
+
+declare var CSSKeyframesRule: {
+    prototype: CSSKeyframesRule;
+    new(): CSSKeyframesRule;
+}
+
+interface CSSMediaRule extends CSSConditionRule {
+    readonly media: MediaList;
+}
+
+declare var CSSMediaRule: {
+    prototype: CSSMediaRule;
+    new(): CSSMediaRule;
+}
+
+interface CSSNamespaceRule extends CSSRule {
+    readonly namespaceURI: string;
+    readonly prefix: string;
+}
+
+declare var CSSNamespaceRule: {
+    prototype: CSSNamespaceRule;
+    new(): CSSNamespaceRule;
+}
+
+interface CSSPageRule extends CSSRule {
+    readonly pseudoClass: string;
+    readonly selector: string;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSPageRule: {
+    prototype: CSSPageRule;
+    new(): CSSPageRule;
+}
+
+interface CSSRule {
+    cssText: string;
+    readonly parentRule: CSSRule;
+    readonly parentStyleSheet: CSSStyleSheet;
+    readonly type: number;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+declare var CSSRule: {
+    prototype: CSSRule;
+    new(): CSSRule;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+interface CSSRuleList {
+    readonly length: number;
+    item(index: number): CSSRule;
+    [index: number]: CSSRule;
+}
+
+declare var CSSRuleList: {
+    prototype: CSSRuleList;
+    new(): CSSRuleList;
+}
+
+interface CSSStyleDeclaration {
+    alignContent: string | null;
+    alignItems: string | null;
+    alignSelf: string | null;
+    alignmentBaseline: string | null;
+    animation: string | null;
+    animationDelay: string | null;
+    animationDirection: string | null;
+    animationDuration: string | null;
+    animationFillMode: string | null;
+    animationIterationCount: string | null;
+    animationName: string | null;
+    animationPlayState: string | null;
+    animationTimingFunction: string | null;
+    backfaceVisibility: string | null;
+    background: string | null;
+    backgroundAttachment: string | null;
+    backgroundClip: string | null;
+    backgroundColor: string | null;
+    backgroundImage: string | null;
+    backgroundOrigin: string | null;
+    backgroundPosition: string | null;
+    backgroundPositionX: string | null;
+    backgroundPositionY: string | null;
+    backgroundRepeat: string | null;
+    backgroundSize: string | null;
+    baselineShift: string | null;
+    border: string | null;
+    borderBottom: string | null;
+    borderBottomColor: string | null;
+    borderBottomLeftRadius: string | null;
+    borderBottomRightRadius: string | null;
+    borderBottomStyle: string | null;
+    borderBottomWidth: string | null;
+    borderCollapse: string | null;
+    borderColor: string | null;
+    borderImage: string | null;
+    borderImageOutset: string | null;
+    borderImageRepeat: string | null;
+    borderImageSlice: string | null;
+    borderImageSource: string | null;
+    borderImageWidth: string | null;
+    borderLeft: string | null;
+    borderLeftColor: string | null;
+    borderLeftStyle: string | null;
+    borderLeftWidth: string | null;
+    borderRadius: string | null;
+    borderRight: string | null;
+    borderRightColor: string | null;
+    borderRightStyle: string | null;
+    borderRightWidth: string | null;
+    borderSpacing: string | null;
+    borderStyle: string | null;
+    borderTop: string | null;
+    borderTopColor: string | null;
+    borderTopLeftRadius: string | null;
+    borderTopRightRadius: string | null;
+    borderTopStyle: string | null;
+    borderTopWidth: string | null;
+    borderWidth: string | null;
+    bottom: string | null;
+    boxShadow: string | null;
+    boxSizing: string | null;
+    breakAfter: string | null;
+    breakBefore: string | null;
+    breakInside: string | null;
+    captionSide: string | null;
+    clear: string | null;
+    clip: string | null;
+    clipPath: string | null;
+    clipRule: string | null;
+    color: string | null;
+    colorInterpolationFilters: string | null;
+    columnCount: any;
+    columnFill: string | null;
+    columnGap: any;
+    columnRule: string | null;
+    columnRuleColor: any;
+    columnRuleStyle: string | null;
+    columnRuleWidth: any;
+    columnSpan: string | null;
+    columnWidth: any;
+    columns: string | null;
+    content: string | null;
+    counterIncrement: string | null;
+    counterReset: string | null;
+    cssFloat: string | null;
+    cssText: string;
+    cursor: string | null;
+    direction: string | null;
+    display: string | null;
+    dominantBaseline: string | null;
+    emptyCells: string | null;
+    enableBackground: string | null;
+    fill: string | null;
+    fillOpacity: string | null;
+    fillRule: string | null;
+    filter: string | null;
+    flex: string | null;
+    flexBasis: string | null;
+    flexDirection: string | null;
+    flexFlow: string | null;
+    flexGrow: string | null;
+    flexShrink: string | null;
+    flexWrap: string | null;
+    floodColor: string | null;
+    floodOpacity: string | null;
+    font: string | null;
+    fontFamily: string | null;
+    fontFeatureSettings: string | null;
+    fontSize: string | null;
+    fontSizeAdjust: string | null;
+    fontStretch: string | null;
+    fontStyle: string | null;
+    fontVariant: string | null;
+    fontWeight: string | null;
+    glyphOrientationHorizontal: string | null;
+    glyphOrientationVertical: string | null;
+    height: string | null;
+    imeMode: string | null;
+    justifyContent: string | null;
+    kerning: string | null;
+    left: string | null;
+    readonly length: number;
+    letterSpacing: string | null;
+    lightingColor: string | null;
+    lineHeight: string | null;
+    listStyle: string | null;
+    listStyleImage: string | null;
+    listStylePosition: string | null;
+    listStyleType: string | null;
+    margin: string | null;
+    marginBottom: string | null;
+    marginLeft: string | null;
+    marginRight: string | null;
+    marginTop: string | null;
+    marker: string | null;
+    markerEnd: string | null;
+    markerMid: string | null;
+    markerStart: string | null;
+    mask: string | null;
+    maxHeight: string | null;
+    maxWidth: string | null;
+    minHeight: string | null;
+    minWidth: string | null;
+    msContentZoomChaining: string | null;
+    msContentZoomLimit: string | null;
+    msContentZoomLimitMax: any;
+    msContentZoomLimitMin: any;
+    msContentZoomSnap: string | null;
+    msContentZoomSnapPoints: string | null;
+    msContentZoomSnapType: string | null;
+    msContentZooming: string | null;
+    msFlowFrom: string | null;
+    msFlowInto: string | null;
+    msFontFeatureSettings: string | null;
+    msGridColumn: any;
+    msGridColumnAlign: string | null;
+    msGridColumnSpan: any;
+    msGridColumns: string | null;
+    msGridRow: any;
+    msGridRowAlign: string | null;
+    msGridRowSpan: any;
+    msGridRows: string | null;
+    msHighContrastAdjust: string | null;
+    msHyphenateLimitChars: string | null;
+    msHyphenateLimitLines: any;
+    msHyphenateLimitZone: any;
+    msHyphens: string | null;
+    msImeAlign: string | null;
+    msOverflowStyle: string | null;
+    msScrollChaining: string | null;
+    msScrollLimit: string | null;
+    msScrollLimitXMax: any;
+    msScrollLimitXMin: any;
+    msScrollLimitYMax: any;
+    msScrollLimitYMin: any;
+    msScrollRails: string | null;
+    msScrollSnapPointsX: string | null;
+    msScrollSnapPointsY: string | null;
+    msScrollSnapType: string | null;
+    msScrollSnapX: string | null;
+    msScrollSnapY: string | null;
+    msScrollTranslation: string | null;
+    msTextCombineHorizontal: string | null;
+    msTextSizeAdjust: any;
+    msTouchAction: string | null;
+    msTouchSelect: string | null;
+    msUserSelect: string | null;
+    msWrapFlow: string;
+    msWrapMargin: any;
+    msWrapThrough: string;
+    opacity: string | null;
+    order: string | null;
+    orphans: string | null;
+    outline: string | null;
+    outlineColor: string | null;
+    outlineStyle: string | null;
+    outlineWidth: string | null;
+    overflow: string | null;
+    overflowX: string | null;
+    overflowY: string | null;
+    padding: string | null;
+    paddingBottom: string | null;
+    paddingLeft: string | null;
+    paddingRight: string | null;
+    paddingTop: string | null;
+    pageBreakAfter: string | null;
+    pageBreakBefore: string | null;
+    pageBreakInside: string | null;
+    readonly parentRule: CSSRule;
+    perspective: string | null;
+    perspectiveOrigin: string | null;
+    pointerEvents: string | null;
+    position: string | null;
+    quotes: string | null;
+    right: string | null;
+    rubyAlign: string | null;
+    rubyOverhang: string | null;
+    rubyPosition: string | null;
+    stopColor: string | null;
+    stopOpacity: string | null;
+    stroke: string | null;
+    strokeDasharray: string | null;
+    strokeDashoffset: string | null;
+    strokeLinecap: string | null;
+    strokeLinejoin: string | null;
+    strokeMiterlimit: string | null;
+    strokeOpacity: string | null;
+    strokeWidth: string | null;
+    tableLayout: string | null;
+    textAlign: string | null;
+    textAlignLast: string | null;
+    textAnchor: string | null;
+    textDecoration: string | null;
+    textIndent: string | null;
+    textJustify: string | null;
+    textKashida: string | null;
+    textKashidaSpace: string | null;
+    textOverflow: string | null;
+    textShadow: string | null;
+    textTransform: string | null;
+    textUnderlinePosition: string | null;
+    top: string | null;
+    touchAction: string | null;
+    transform: string | null;
+    transformOrigin: string | null;
+    transformStyle: string | null;
+    transition: string | null;
+    transitionDelay: string | null;
+    transitionDuration: string | null;
+    transitionProperty: string | null;
+    transitionTimingFunction: string | null;
+    unicodeBidi: string | null;
+    verticalAlign: string | null;
+    visibility: string | null;
+    webkitAlignContent: string | null;
+    webkitAlignItems: string | null;
+    webkitAlignSelf: string | null;
+    webkitAnimation: string | null;
+    webkitAnimationDelay: string | null;
+    webkitAnimationDirection: string | null;
+    webkitAnimationDuration: string | null;
+    webkitAnimationFillMode: string | null;
+    webkitAnimationIterationCount: string | null;
+    webkitAnimationName: string | null;
+    webkitAnimationPlayState: string | null;
+    webkitAnimationTimingFunction: string | null;
+    webkitAppearance: string | null;
+    webkitBackfaceVisibility: string | null;
+    webkitBackgroundClip: string | null;
+    webkitBackgroundOrigin: string | null;
+    webkitBackgroundSize: string | null;
+    webkitBorderBottomLeftRadius: string | null;
+    webkitBorderBottomRightRadius: string | null;
+    webkitBorderImage: string | null;
+    webkitBorderRadius: string | null;
+    webkitBorderTopLeftRadius: string | null;
+    webkitBorderTopRightRadius: string | null;
+    webkitBoxAlign: string | null;
+    webkitBoxDirection: string | null;
+    webkitBoxFlex: string | null;
+    webkitBoxOrdinalGroup: string | null;
+    webkitBoxOrient: string | null;
+    webkitBoxPack: string | null;
+    webkitBoxSizing: string | null;
+    webkitColumnBreakAfter: string | null;
+    webkitColumnBreakBefore: string | null;
+    webkitColumnBreakInside: string | null;
+    webkitColumnCount: any;
+    webkitColumnGap: any;
+    webkitColumnRule: string | null;
+    webkitColumnRuleColor: any;
+    webkitColumnRuleStyle: string | null;
+    webkitColumnRuleWidth: any;
+    webkitColumnSpan: string | null;
+    webkitColumnWidth: any;
+    webkitColumns: string | null;
+    webkitFilter: string | null;
+    webkitFlex: string | null;
+    webkitFlexBasis: string | null;
+    webkitFlexDirection: string | null;
+    webkitFlexFlow: string | null;
+    webkitFlexGrow: string | null;
+    webkitFlexShrink: string | null;
+    webkitFlexWrap: string | null;
+    webkitJustifyContent: string | null;
+    webkitOrder: string | null;
+    webkitPerspective: string | null;
+    webkitPerspectiveOrigin: string | null;
+    webkitTapHighlightColor: string | null;
+    webkitTextFillColor: string | null;
+    webkitTextSizeAdjust: any;
+    webkitTransform: string | null;
+    webkitTransformOrigin: string | null;
+    webkitTransformStyle: string | null;
+    webkitTransition: string | null;
+    webkitTransitionDelay: string | null;
+    webkitTransitionDuration: string | null;
+    webkitTransitionProperty: string | null;
+    webkitTransitionTimingFunction: string | null;
+    webkitUserModify: string | null;
+    webkitUserSelect: string | null;
+    webkitWritingMode: string | null;
+    whiteSpace: string | null;
+    widows: string | null;
+    width: string | null;
+    wordBreak: string | null;
+    wordSpacing: string | null;
+    wordWrap: string | null;
+    writingMode: string | null;
+    zIndex: string | null;
+    zoom: string | null;
+    resize: string | null;
+    getPropertyPriority(propertyName: string): string;
+    getPropertyValue(propertyName: string): string;
+    item(index: number): string;
+    removeProperty(propertyName: string): string;
+    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
+    [index: number]: string;
+}
+
+declare var CSSStyleDeclaration: {
+    prototype: CSSStyleDeclaration;
+    new(): CSSStyleDeclaration;
+}
+
+interface CSSStyleRule extends CSSRule {
+    readonly readOnly: boolean;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSStyleRule: {
+    prototype: CSSStyleRule;
+    new(): CSSStyleRule;
+}
+
+interface CSSStyleSheet extends StyleSheet {
+    readonly cssRules: CSSRuleList;
+    cssText: string;
+    readonly href: string;
+    readonly id: string;
+    readonly imports: StyleSheetList;
+    readonly isAlternate: boolean;
+    readonly isPrefAlternate: boolean;
+    readonly ownerRule: CSSRule;
+    readonly owningElement: Element;
+    readonly pages: StyleSheetPageList;
+    readonly readOnly: boolean;
+    readonly rules: CSSRuleList;
+    addImport(bstrURL: string, lIndex?: number): number;
+    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
+    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
+    deleteRule(index?: number): void;
+    insertRule(rule: string, index?: number): number;
+    removeImport(lIndex: number): void;
+    removeRule(lIndex: number): void;
+}
+
+declare var CSSStyleSheet: {
+    prototype: CSSStyleSheet;
+    new(): CSSStyleSheet;
+}
+
+interface CSSSupportsRule extends CSSConditionRule {
+}
+
+declare var CSSSupportsRule: {
+    prototype: CSSSupportsRule;
+    new(): CSSSupportsRule;
+}
+
+interface CanvasGradient {
+    addColorStop(offset: number, color: string): void;
+}
+
+declare var CanvasGradient: {
+    prototype: CanvasGradient;
+    new(): CanvasGradient;
+}
+
+interface CanvasPattern {
+    setTransform(matrix: SVGMatrix): void;
+}
+
+declare var CanvasPattern: {
+    prototype: CanvasPattern;
+    new(): CanvasPattern;
+}
+
+interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
+    readonly canvas: HTMLCanvasElement;
+    fillStyle: string | CanvasGradient | CanvasPattern;
+    font: string;
+    globalAlpha: number;
+    globalCompositeOperation: string;
+    lineCap: string;
+    lineDashOffset: number;
+    lineJoin: string;
+    lineWidth: number;
+    miterLimit: number;
+    msFillRule: string;
+    msImageSmoothingEnabled: boolean;
+    shadowBlur: number;
+    shadowColor: string;
+    shadowOffsetX: number;
+    shadowOffsetY: number;
+    strokeStyle: string | CanvasGradient | CanvasPattern;
+    textAlign: string;
+    textBaseline: string;
+    mozImageSmoothingEnabled: boolean;
+    webkitImageSmoothingEnabled: boolean;
+    oImageSmoothingEnabled: boolean;
+    beginPath(): void;
+    clearRect(x: number, y: number, w: number, h: number): void;
+    clip(fillRule?: string): void;
+    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
+    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
+    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
+    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
+    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
+    fill(fillRule?: string): void;
+    fillRect(x: number, y: number, w: number, h: number): void;
+    fillText(text: string, x: number, y: number, maxWidth?: number): void;
+    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+    getLineDash(): number[];
+    isPointInPath(x: number, y: number, fillRule?: string): boolean;
+    measureText(text: string): TextMetrics;
+    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
+    restore(): void;
+    rotate(angle: number): void;
+    save(): void;
+    scale(x: number, y: number): void;
+    setLineDash(segments: number[]): void;
+    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
+    stroke(): void;
+    strokeRect(x: number, y: number, w: number, h: number): void;
+    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
+    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
+    translate(x: number, y: number): void;
+}
+
+declare var CanvasRenderingContext2D: {
+    prototype: CanvasRenderingContext2D;
+    new(): CanvasRenderingContext2D;
+}
+
+interface ChannelMergerNode extends AudioNode {
+}
+
+declare var ChannelMergerNode: {
+    prototype: ChannelMergerNode;
+    new(): ChannelMergerNode;
+}
+
+interface ChannelSplitterNode extends AudioNode {
+}
+
+declare var ChannelSplitterNode: {
+    prototype: ChannelSplitterNode;
+    new(): ChannelSplitterNode;
+}
+
+interface CharacterData extends Node, ChildNode {
+    data: string;
+    readonly length: number;
+    appendData(arg: string): void;
+    deleteData(offset: number, count: number): void;
+    insertData(offset: number, arg: string): void;
+    replaceData(offset: number, count: number, arg: string): void;
+    substringData(offset: number, count: number): string;
+}
+
+declare var CharacterData: {
+    prototype: CharacterData;
+    new(): CharacterData;
+}
+
+interface ClientRect {
+    bottom: number;
+    readonly height: number;
+    left: number;
+    right: number;
+    top: number;
+    readonly width: number;
+}
+
+declare var ClientRect: {
+    prototype: ClientRect;
+    new(): ClientRect;
+}
+
+interface ClientRectList {
+    readonly length: number;
+    item(index: number): ClientRect;
+    [index: number]: ClientRect;
+}
+
+declare var ClientRectList: {
+    prototype: ClientRectList;
+    new(): ClientRectList;
+}
+
+interface ClipboardEvent extends Event {
+    readonly clipboardData: DataTransfer;
+}
+
+declare var ClipboardEvent: {
+    prototype: ClipboardEvent;
+    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+}
+
+interface CloseEvent extends Event {
+    readonly code: number;
+    readonly reason: string;
+    readonly wasClean: boolean;
+    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
+}
+
+declare var CloseEvent: {
+    prototype: CloseEvent;
+    new(): CloseEvent;
+}
+
+interface CommandEvent extends Event {
+    readonly commandName: string;
+    readonly detail: string | null;
+}
+
+declare var CommandEvent: {
+    prototype: CommandEvent;
+    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
+}
+
+interface Comment extends CharacterData {
+    text: string;
+}
+
+declare var Comment: {
+    prototype: Comment;
+    new(): Comment;
+}
+
+interface CompositionEvent extends UIEvent {
+    readonly data: string;
+    readonly locale: string;
+    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
+}
+
+declare var CompositionEvent: {
+    prototype: CompositionEvent;
+    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
+}
+
+interface Console {
+    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
+    clear(): void;
+    count(countTitle?: string): void;
+    debug(message?: string, ...optionalParams: any[]): void;
+    dir(value?: any, ...optionalParams: any[]): void;
+    dirxml(value: any): void;
+    error(message?: any, ...optionalParams: any[]): void;
+    exception(message?: string, ...optionalParams: any[]): void;
+    group(groupTitle?: string): void;
+    groupCollapsed(groupTitle?: string): void;
+    groupEnd(): void;
+    info(message?: any, ...optionalParams: any[]): void;
+    log(message?: any, ...optionalParams: any[]): void;
+    msIsIndependentlyComposed(element: Element): boolean;
+    profile(reportName?: string): void;
+    profileEnd(): void;
+    select(element: Element): void;
+    table(...data: any[]): void;
+    time(timerName?: string): void;
+    timeEnd(timerName?: string): void;
+    trace(message?: any, ...optionalParams: any[]): void;
+    warn(message?: any, ...optionalParams: any[]): void;
+}
+
+declare var Console: {
+    prototype: Console;
+    new(): Console;
+}
+
+interface ConvolverNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    normalize: boolean;
+}
+
+declare var ConvolverNode: {
+    prototype: ConvolverNode;
+    new(): ConvolverNode;
+}
+
+interface Coordinates {
+    readonly accuracy: number;
+    readonly altitude: number | null;
+    readonly altitudeAccuracy: number | null;
+    readonly heading: number | null;
+    readonly latitude: number;
+    readonly longitude: number;
+    readonly speed: number | null;
+}
+
+declare var Coordinates: {
+    prototype: Coordinates;
+    new(): Coordinates;
+}
+
+interface Crypto extends Object, RandomSource {
+    readonly subtle: SubtleCrypto;
+}
+
+declare var Crypto: {
+    prototype: Crypto;
+    new(): Crypto;
+}
+
+interface CryptoKey {
+    readonly algorithm: KeyAlgorithm;
+    readonly extractable: boolean;
+    readonly type: string;
+    readonly usages: string[];
+}
+
+declare var CryptoKey: {
+    prototype: CryptoKey;
+    new(): CryptoKey;
+}
+
+interface CryptoKeyPair {
+    privateKey: CryptoKey;
+    publicKey: CryptoKey;
+}
+
+declare var CryptoKeyPair: {
+    prototype: CryptoKeyPair;
+    new(): CryptoKeyPair;
+}
+
+interface CustomEvent extends Event {
+    readonly detail: any;
+    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
+}
+
+declare var CustomEvent: {
+    prototype: CustomEvent;
+    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
+}
+
+interface DOMError {
+    readonly name: string;
+    toString(): string;
+}
+
+declare var DOMError: {
+    prototype: DOMError;
+    new(): DOMError;
+}
+
+interface DOMException {
+    readonly code: number;
+    readonly message: string;
+    readonly name: string;
+    toString(): string;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+declare var DOMException: {
+    prototype: DOMException;
+    new(): DOMException;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+interface DOMImplementation {
+    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
+    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
+    createHTMLDocument(title: string): Document;
+    hasFeature(feature: string | null, version: string | null): boolean;
+}
+
+declare var DOMImplementation: {
+    prototype: DOMImplementation;
+    new(): DOMImplementation;
+}
+
+interface DOMParser {
+    parseFromString(source: string, mimeType: string): Document;
+}
+
+declare var DOMParser: {
+    prototype: DOMParser;
+    new(): DOMParser;
+}
+
+interface DOMSettableTokenList extends DOMTokenList {
+    value: string;
+}
+
+declare var DOMSettableTokenList: {
+    prototype: DOMSettableTokenList;
+    new(): DOMSettableTokenList;
+}
+
+interface DOMStringList {
+    readonly length: number;
+    contains(str: string): boolean;
+    item(index: number): string | null;
+    [index: number]: string;
+}
+
+declare var DOMStringList: {
+    prototype: DOMStringList;
+    new(): DOMStringList;
+}
+
+interface DOMStringMap {
+    [name: string]: string;
+}
+
+declare var DOMStringMap: {
+    prototype: DOMStringMap;
+    new(): DOMStringMap;
+}
+
+interface DOMTokenList {
+    readonly length: number;
+    add(...token: string[]): void;
+    contains(token: string): boolean;
+    item(index: number): string;
+    remove(...token: string[]): void;
+    toString(): string;
+    toggle(token: string, force?: boolean): boolean;
+    [index: number]: string;
+}
+
+declare var DOMTokenList: {
+    prototype: DOMTokenList;
+    new(): DOMTokenList;
+}
+
+interface DataCue extends TextTrackCue {
+    data: ArrayBuffer;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var DataCue: {
+    prototype: DataCue;
+    new(): DataCue;
+}
+
+interface DataTransfer {
+    dropEffect: string;
+    effectAllowed: string;
+    readonly files: FileList;
+    readonly items: DataTransferItemList;
+    readonly types: string[];
+    clearData(format?: string): boolean;
+    getData(format: string): string;
+    setData(format: string, data: string): boolean;
+}
+
+declare var DataTransfer: {
+    prototype: DataTransfer;
+    new(): DataTransfer;
+}
+
+interface DataTransferItem {
+    readonly kind: string;
+    readonly type: string;
+    getAsFile(): File | null;
+    getAsString(_callback: FunctionStringCallback | null): void;
+}
+
+declare var DataTransferItem: {
+    prototype: DataTransferItem;
+    new(): DataTransferItem;
+}
+
+interface DataTransferItemList {
+    readonly length: number;
+    add(data: File): DataTransferItem | null;
+    clear(): void;
+    item(index: number): DataTransferItem;
+    remove(index: number): void;
+    [index: number]: DataTransferItem;
+}
+
+declare var DataTransferItemList: {
+    prototype: DataTransferItemList;
+    new(): DataTransferItemList;
+}
+
+interface DeferredPermissionRequest {
+    readonly id: number;
+    readonly type: string;
+    readonly uri: string;
+    allow(): void;
+    deny(): void;
+}
+
+declare var DeferredPermissionRequest: {
+    prototype: DeferredPermissionRequest;
+    new(): DeferredPermissionRequest;
+}
+
+interface DelayNode extends AudioNode {
+    readonly delayTime: AudioParam;
+}
+
+declare var DelayNode: {
+    prototype: DelayNode;
+    new(): DelayNode;
+}
+
+interface DeviceAcceleration {
+    readonly x: number | null;
+    readonly y: number | null;
+    readonly z: number | null;
+}
+
+declare var DeviceAcceleration: {
+    prototype: DeviceAcceleration;
+    new(): DeviceAcceleration;
+}
+
+interface DeviceLightEvent extends Event {
+    readonly value: number;
+}
+
+declare var DeviceLightEvent: {
+    prototype: DeviceLightEvent;
+    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
+}
+
+interface DeviceMotionEvent extends Event {
+    readonly acceleration: DeviceAcceleration | null;
+    readonly accelerationIncludingGravity: DeviceAcceleration | null;
+    readonly interval: number | null;
+    readonly rotationRate: DeviceRotationRate | null;
+    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
+}
+
+declare var DeviceMotionEvent: {
+    prototype: DeviceMotionEvent;
+    new(): DeviceMotionEvent;
+}
+
+interface DeviceOrientationEvent extends Event {
+    readonly absolute: boolean;
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
+}
+
+declare var DeviceOrientationEvent: {
+    prototype: DeviceOrientationEvent;
+    new(): DeviceOrientationEvent;
+}
+
+interface DeviceRotationRate {
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+declare var DeviceRotationRate: {
+    prototype: DeviceRotationRate;
+    new(): DeviceRotationRate;
+}
+
+interface DocumentEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforedeactivate": UIEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "fullscreenchange": Event;
+    "fullscreenerror": Event;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "mssitemodejumplistitemremoved": MSSiteModeEvent;
+    "msthumbnailclick": MSSiteModeEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "pointerlockchange": Event;
+    "pointerlockerror": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectionchange": Event;
+    "selectstart": Event;
+    "stalled": Event;
+    "stop": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "volumechange": Event;
+    "waiting": Event;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
+    /**
+      * Sets or gets the URL for the current document. 
+      */
+    readonly URL: string;
+    /**
+      * Gets the URL for the document, stripped of any character encoding.
+      */
+    readonly URLUnencoded: string;
+    /**
+      * Gets the object that has the focus when the parent document has focus.
+      */
+    readonly activeElement: Element;
+    /**
+      * Sets or gets the color of all active links in the document.
+      */
+    alinkColor: string;
+    /**
+      * Returns a reference to the collection of elements contained by the 
object.
+      */
+    readonly all: HTMLAllCollection;
+    /**
+      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
+      */
+    anchors: HTMLCollectionOf<HTMLAnchorElement>;
+    /**
+      * Retrieves a collection of all applet objects in the document.
+      */
+    applets: HTMLCollectionOf<HTMLAppletElement>;
+    /**
+      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
+      */
+    bgColor: string;
+    /**
+      * Specifies the beginning and end of the document body.
+      */
+    body: HTMLElement;
+    readonly characterSet: string;
+    /**
+      * Gets or sets the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
+      */
+    readonly compatMode: string;
+    cookie: string;
+    readonly currentScript: HTMLScriptElement | SVGScriptElement;
+    /**
+      * Gets the default character set from the current regional language 
settings.
+      */
+    readonly defaultCharset: string;
+    readonly defaultView: Window;
+    /**
+      * Sets or gets a value that indicates whether the document can be edited.
+      */
+    designMode: string;
+    /**
+      * Sets or retrieves a value that indicates the reading order of the 
object. 
+      */
+    dir: string;
+    /**
+      * Gets an object representing the document type declaration associated 
with the current document. 
+      */
+    readonly doctype: DocumentType;
+    /**
+      * Gets a reference to the root node of the document. 
+      */
+    documentElement: HTMLElement;
+    /**
+      * Sets or gets the security domain of the document. 
+      */
+    domain: string;
+    /**
+      * Retrieves a collection of all embed objects in the document.
+      */
+    embeds: HTMLCollectionOf<HTMLEmbedElement>;
+    /**
+      * Sets or gets the foreground (text) color of the document.
+      */
+    fgColor: string;
+    /**
+      * Retrieves a collection, in source order, of all form objects in the 
document.
+      */
+    forms: HTMLCollectionOf<HTMLFormElement>;
+    readonly fullscreenElement: Element | null;
+    readonly fullscreenEnabled: boolean;
+    readonly head: HTMLHeadElement;
+    readonly hidden: boolean;
+    /**
+      * Retrieves a collection, in source order, of img objects in the 
document.
+      */
+    images: HTMLCollectionOf<HTMLImageElement>;
+    /**
+      * Gets the implementation object of the current document. 
+      */
+    readonly implementation: DOMImplementation;
+    /**
+      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
+      */
+    readonly inputEncoding: string | null;
+    /**
+      * Gets the date that the page was last modified, if the page supplies 
one. 
+      */
+    readonly lastModified: string;
+    /**
+      * Sets or gets the color of the document links. 
+      */
+    linkColor: string;
+    /**
+      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
+      */
+    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
+    /**
+      * Contains information about the current URL. 
+      */
+    readonly location: Location;
+    msCSSOMElementFloatMetrics: boolean;
+    msCapsLockWarningOff: boolean;
+    /**
+      * Fires when the user aborts the download.
+      * @param ev The event.
+      */
+    onabort: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the object is set as the active element.
+      * @param ev The event.
+      */
+    onactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the object is set as the active element.
+      * @param ev The event.
+      */
+    onbeforeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
+      * @param ev The event.
+      */
+    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
+    /** 
+      * Fires when the object loses the input focus. 
+      * @param ev The focus event.
+      */
+    onblur: (this: Document, ev: FocusEvent) => any;
+    /**
+      * Occurs when playback is possible, but would require further buffering. 
+      * @param ev The event.
+      */
+    oncanplay: (this: Document, ev: Event) => any;
+    oncanplaythrough: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the contents of the object or selection have changed. 
+      * @param ev The event.
+      */
+    onchange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the left mouse button on the object
+      * @param ev The mouse event.
+      */
+    onclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
+      * @param ev The mouse event.
+      */
+    oncontextmenu: (this: Document, ev: PointerEvent) => any;
+    /**
+      * Fires when the user double-clicks the object.
+      * @param ev The mouse event.
+      */
+    ondblclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
+      * @param ev The UI Event
+      */
+    ondeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires on the source object continuously during a drag operation.
+      * @param ev The event.
+      */
+    ondrag: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
+      * @param ev The event.
+      */
+    ondragend: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target element when the user drags the object to a valid 
drop target.
+      * @param ev The drag event.
+      */
+    ondragenter: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
+      * @param ev The drag event.
+      */
+    ondragleave: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
+      * @param ev The event.
+      */
+    ondragover: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
+      * @param ev The event.
+      */
+    ondragstart: (this: Document, ev: DragEvent) => any;
+    ondrop: (this: Document, ev: DragEvent) => any;
+    /**
+      * Occurs when the duration attribute is updated. 
+      * @param ev The event.
+      */
+    ondurationchange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the media element is reset to its initial state. 
+      * @param ev The event.
+      */
+    onemptied: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the end of playback is reached. 
+      * @param ev The event
+      */
+    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
+    /**
+      * Fires when an error occurs during object loading.
+      * @param ev The event.
+      */
+    onerror: (this: Document, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus. 
+      * @param ev The event.
+      */
+    onfocus: (this: Document, ev: FocusEvent) => any;
+    onfullscreenchange: (this: Document, ev: Event) => any;
+    onfullscreenerror: (this: Document, ev: Event) => any;
+    oninput: (this: Document, ev: Event) => any;
+    oninvalid: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user presses a key.
+      * @param ev The keyboard event
+      */
+    onkeydown: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user presses an alphanumeric key.
+      * @param ev The event.
+      */
+    onkeypress: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user releases a key.
+      * @param ev The keyboard event
+      */
+    onkeyup: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires immediately after the browser loads the object. 
+      * @param ev The event.
+      */
+    onload: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when media data is loaded at the current playback position. 
+      * @param ev The event.
+      */
+    onloadeddata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the duration and dimensions of the media have been 
determined.
+      * @param ev The event.
+      */
+    onloadedmetadata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when Internet Explorer begins looking for media data. 
+      * @param ev The event.
+      */
+    onloadstart: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the object with either mouse button. 
+      * @param ev The mouse event.
+      */
+    onmousedown: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse over the object. 
+      * @param ev The mouse event.
+      */
+    onmousemove: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseout: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer into the object.
+      * @param ev The mouse event.
+      */
+    onmouseover: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user releases a mouse button while the mouse is over 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseup: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the wheel button is rotated. 
+      * @param ev The mouse event
+      */
+    onmousewheel: (this: Document, ev: WheelEvent) => any;
+    onmscontentzoom: (this: Document, ev: UIEvent) => any;
+    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
+    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
+    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
+    /**
+      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
+      * @param ev The event.
+      */
+    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
+    /**
+      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
+      * @param ev The event.
+      */
+    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
+    /**
+      * Occurs when playback is paused.
+      * @param ev The event.
+      */
+    onpause: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the play method is requested. 
+      * @param ev The event.
+      */
+    onplay: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the audio or video has started playing. 
+      * @param ev The event.
+      */
+    onplaying: (this: Document, ev: Event) => any;
+    onpointerlockchange: (this: Document, ev: Event) => any;
+    onpointerlockerror: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate progress while downloading media data. 
+      * @param ev The event.
+      */
+    onprogress: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Occurs when the playback rate is increased or decreased. 
+      * @param ev The event.
+      */
+    onratechange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the state of the object has changed.
+      * @param ev The event
+      */
+    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Fires when the user resets a form. 
+      * @param ev The event.
+      */
+    onreset: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
+      * @param ev The event.
+      */
+    onscroll: (this: Document, ev: UIEvent) => any;
+    /**
+      * Occurs when the seek operation ends. 
+      * @param ev The event.
+      */
+    onseeked: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the current playback position is moved. 
+      * @param ev The event.
+      */
+    onseeking: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the current selection changes.
+      * @param ev The event.
+      */
+    onselect: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the selection state of a document changes.
+      * @param ev The event.
+      */
+    onselectionchange: (this: Document, ev: Event) => any;
+    onselectstart: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the download has stopped. 
+      * @param ev The event.
+      */
+    onstalled: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the Stop button or leaves the Web page.
+      * @param ev The event.
+      */
+    onstop: (this: Document, ev: Event) => any;
+    onsubmit: (this: Document, ev: Event) => any;
+    /**
+      * Occurs if the load operation has been intentionally halted. 
+      * @param ev The event.
+      */
+    onsuspend: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate the current playback position.
+      * @param ev The event.
+      */
+    ontimeupdate: (this: Document, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    /**
+      * Occurs when the volume is changed, or playback is muted or unmuted.
+      * @param ev The event.
+      */
+    onvolumechange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when playback stops because the next frame of a video resource 
is not available. 
+      * @param ev The event.
+      */
+    onwaiting: (this: Document, ev: Event) => any;
+    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
+    plugins: HTMLCollectionOf<HTMLEmbedElement>;
+    readonly pointerLockElement: Element;
+    /**
+      * Retrieves a value that indicates the current state of the object.
+      */
+    readonly readyState: string;
+    /**
+      * Gets the URL of the location that referred the user to the current 
page.
+      */
+    readonly referrer: string;
+    /**
+      * Gets the root svg element in the document hierarchy.
+      */
+    readonly rootElement: SVGSVGElement;
+    /**
+      * Retrieves a collection of all script objects in the document.
+      */
+    scripts: HTMLCollectionOf<HTMLScriptElement>;
+    readonly scrollingElement: Element | null;
+    /**
+      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
+      */
+    readonly styleSheets: StyleSheetList;
+    /**
+      * Contains the title of the document.
+      */
+    title: string;
+    readonly visibilityState: string;
+    /** 
+      * Sets or gets the color of the links that the user has visited.
+      */
+    vlinkColor: string;
+    readonly webkitCurrentFullScreenElement: Element | null;
+    readonly webkitFullscreenElement: Element | null;
+    readonly webkitFullscreenEnabled: boolean;
+    readonly webkitIsFullScreen: boolean;
+    readonly xmlEncoding: string | null;
+    xmlStandalone: boolean;
+    /**
+      * Gets or sets the version attribute specified in the declaration of an 
XML document.
+      */
+    xmlVersion: string | null;
+    adoptNode(source: Node): Node;
+    captureEvents(): void;
+    caretRangeFromPoint(x: number, y: number): Range;
+    clear(): void;
+    /**
+      * Closes an output stream and forces the sent data to display.
+      */
+    close(): void;
+    /**
+      * Creates an attribute object with a specified name.
+      * @param name String that sets the attribute object's name.
+      */
+    createAttribute(name: string): Attr;
+    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
+    createCDATASection(data: string): CDATASection;
+    /**
+      * Creates a comment object with the specified data.
+      * @param data Sets the comment object's data.
+      */
+    createComment(data: string): Comment;
+    /**
+      * Creates a new document.
+      */
+    createDocumentFragment(): DocumentFragment;
+    /**
+      * Creates an instance of the element for the specified tag.
+      * @param tagName The name of an element.
+      */
+    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
+    createElement(tagName: string): HTMLElement;
+    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
+    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver: Node): XPathNSResolver;
+    /**
+      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list
+      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
+    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
+    /**
+      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
+      */
+    createRange(): Range;
+    /**
+      * Creates a text string from the specified value. 
+      * @param data String that specifies the nodeValue property of the text 
node.
+      */
+    createTextNode(data: string): Text;
+    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
+    createTouchList(...touches: Touch[]): TouchList;
+    /**
+      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
+      * @param filter A custom NodeFilter function to use.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
+    /**
+      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
+      * @param x The x-offset
+      * @param y The y-offset
+      */
+    elementFromPoint(x: number, y: number): Element;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+    /**
+      * Executes a command on the current document, current selection, or the 
given range.
+      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
+      * @param showUI Display the user interface, defaults to false.
+      * @param value Value to assign.
+      */
+    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
+    /**
+      * Displays help information for the given command identifier.
+      * @param commandId Displays help information for the given command 
identifier.
+      */
+    execCommandShowHelp(commandId: string): boolean;
+    exitFullscreen(): void;
+    exitPointerLock(): void;
+    /**
+      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
+      */
+    focus(): void;
+    /**
+      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
+      * @param elementId String that specifies the ID value. Case-insensitive.
+      */
+    getElementById(elementId: string): HTMLElement | null;
+    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
+    /**
+      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
+      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
+      */
+    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
+    /**
+      * Retrieves a collection of objects based on the specified element name.
+      * @param name Specifies the name of an element.
+      */
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(tagname: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    /**
+      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
+      */
+    getSelection(): Selection;
+    /**
+      * Gets a value indicating whether the object currently has focus.
+      */
+    hasFocus(): boolean;
+    importNode(importedNode: Node, deep: boolean): Node;
+    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
+    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
+    /**
+      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
+      * @param url Specifies a MIME type for the document.
+      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
+      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
+      */
+    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
+    /** 
+      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandEnabled(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandIndeterm(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates the current state of the 
command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandState(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandSupported(commandId: string): boolean;
+    /**
+      * Retrieves the string associated with a command.
+      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
+      */
+    queryCommandText(commandId: string): string;
+    /**
+      * Returns the current value of the document, range, or current selection 
for the given command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandValue(commandId: string): string;
+    releaseEvents(): void;
+    /**
+      * Allows updating the print settings for the page.
+      */
+    updateSettings(): void;
+    webkitCancelFullScreen(): void;
+    webkitExitFullscreen(): void;
+    /**
+      * Writes one or more HTML expressions to a document in the specified 
window. 
+      * @param content Specifies the text and HTML tags to write.
+      */
+    write(...content: string[]): void;
+    /**
+      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
+      * @param content The text and HTML tags to write.
+      */
+    writeln(...content: string[]): void;
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Document: {
+    prototype: Document;
+    new(): Document;
+}
+
+interface DocumentFragment extends Node, NodeSelector, ParentNode {
+}
+
+declare var DocumentFragment: {
+    prototype: DocumentFragment;
+    new(): DocumentFragment;
+}
+
+interface DocumentType extends Node, ChildNode {
+    readonly entities: NamedNodeMap;
+    readonly internalSubset: string | null;
+    readonly name: string;
+    readonly notations: NamedNodeMap;
+    readonly publicId: string | null;
+    readonly systemId: string | null;
+}
+
+declare var DocumentType: {
+    prototype: DocumentType;
+    new(): DocumentType;
+}
+
+interface DragEvent extends MouseEvent {
+    readonly dataTransfer: DataTransfer;
+    initDragEvent(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, dataTransferArg: DataTransfer): void;
+    msConvertURL(file: File, targetType: string, targetURL?: string): void;
+}
+
+declare var DragEvent: {
+    prototype: DragEvent;
+    new(): DragEvent;
+}
+
+interface DynamicsCompressorNode extends AudioNode {
+    readonly attack: AudioParam;
+    readonly knee: AudioParam;
+    readonly ratio: AudioParam;
+    readonly reduction: AudioParam;
+    readonly release: AudioParam;
+    readonly threshold: AudioParam;
+}
+
+declare var DynamicsCompressorNode: {
+    prototype: DynamicsCompressorNode;
+    new(): DynamicsCompressorNode;
+}
+
+interface EXT_frag_depth {
+}
+
+declare var EXT_frag_depth: {
+    prototype: EXT_frag_depth;
+    new(): EXT_frag_depth;
+}
+
+interface EXT_texture_filter_anisotropic {
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+declare var EXT_texture_filter_anisotropic: {
+    prototype: EXT_texture_filter_anisotropic;
+    new(): EXT_texture_filter_anisotropic;
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+interface ElementEventMap extends GlobalEventHandlersEventMap {
+    "ariarequest": AriaRequestEvent;
+    "command": CommandEvent;
+    "gotpointercapture": PointerEvent;
+    "lostpointercapture": PointerEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSGotPointerCapture": MSPointerEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSLostPointerCapture": MSPointerEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
+    readonly classList: DOMTokenList;
+    className: string;
+    readonly clientHeight: number;
+    readonly clientLeft: number;
+    readonly clientTop: number;
+    readonly clientWidth: number;
+    id: string;
+    msContentZoomFactor: number;
+    readonly msRegionOverflow: string;
+    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
+    oncommand: (this: Element, ev: CommandEvent) => any;
+    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
+    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
+    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
+    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
+    readonly prefix: string | null;
+    readonly scrollHeight: number;
+    scrollLeft: number;
+    scrollTop: number;
+    readonly scrollWidth: number;
+    readonly tagName: string;
+    innerHTML: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    slot: string;
+    readonly shadowRoot: ShadowRoot | null;
+    getAttribute(name: string): string | null;
+    getAttributeNS(namespaceURI: string, localName: string): string;
+    getAttributeNode(name: string): Attr;
+    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(name: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    hasAttribute(name: string): boolean;
+    hasAttributeNS(namespaceURI: string, localName: string): boolean;
+    msGetRegionContent(): MSRangeCollection;
+    msGetUntransformedBounds(): ClientRect;
+    msMatchesSelector(selectors: string): boolean;
+    msReleasePointerCapture(pointerId: number): void;
+    msSetPointerCapture(pointerId: number): void;
+    msZoomTo(args: MsZoomToOptions): void;
+    releasePointerCapture(pointerId: number): void;
+    removeAttribute(name?: string): void;
+    removeAttributeNS(namespaceURI: string, localName: string): void;
+    removeAttributeNode(oldAttr: Attr): Attr;
+    requestFullscreen(): void;
+    requestPointerLock(): void;
+    setAttribute(name: string, value: string): void;
+    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
+    setAttributeNode(newAttr: Attr): Attr;
+    setAttributeNodeNS(newAttr: Attr): Attr;
+    setPointerCapture(pointerId: number): void;
+    webkitMatchesSelector(selectors: string): boolean;
+    webkitRequestFullScreen(): void;
+    webkitRequestFullscreen(): void;
+    getElementsByClassName(classNames: string): NodeListOf<Element>;
+    matches(selector: string): boolean;
+    closest(selector: string): Element | null;
+    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
+    scroll(options?: ScrollToOptions): void;
+    scroll(x: number, y: number): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollTo(x: number, y: number): void;
+    scrollBy(options?: ScrollToOptions): void;
+    scrollBy(x: number, y: number): void;
+    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
+    insertAdjacentHTML(where: string, html: string): void;
+    insertAdjacentText(where: string, text: string): void;
+    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
+    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Element: {
+    prototype: Element;
+    new(): Element;
+}
+
+interface ErrorEvent extends Event {
+    readonly colno: number;
+    readonly error: any;
+    readonly filename: string;
+    readonly lineno: number;
+    readonly message: string;
+    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
+}
+
+declare var ErrorEvent: {
+    prototype: ErrorEvent;
+    new(): ErrorEvent;
+}
+
+interface Event {
+    readonly bubbles: boolean;
+    cancelBubble: boolean;
+    readonly cancelable: boolean;
+    readonly currentTarget: EventTarget;
+    readonly defaultPrevented: boolean;
+    readonly eventPhase: number;
+    readonly isTrusted: boolean;
+    returnValue: boolean;
+    readonly srcElement: Element | null;
+    readonly target: EventTarget;
+    readonly timeStamp: number;
+    readonly type: string;
+    readonly scoped: boolean;
+    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
+    preventDefault(): void;
+    stopImmediatePropagation(): void;
+    stopPropagation(): void;
+    deepPath(): EventTarget[];
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+declare var Event: {
+    prototype: Event;
+    new(type: string, eventInitDict?: EventInit): Event;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+interface EventTarget {
+    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    dispatchEvent(evt: Event): boolean;
+    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var EventTarget: {
+    prototype: EventTarget;
+    new(): EventTarget;
+}
+
+interface External {
+}
+
+declare var External: {
+    prototype: External;
+    new(): External;
+}
+
+interface File extends Blob {
+    readonly lastModifiedDate: any;
+    readonly name: string;
+    readonly webkitRelativePath: string;
+}
+
+declare var File: {
+    prototype: File;
+    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
+}
+
+interface FileList {
+    readonly length: number;
+    item(index: number): File;
+    [index: number]: File;
+}
+
+declare var FileList: {
+    prototype: FileList;
+    new(): FileList;
+}
+
+interface FileReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(blob: Blob): void;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): void;
+    readAsText(blob: Blob, encoding?: string): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var FileReader: {
+    prototype: FileReader;
+    new(): FileReader;
+}
+
+interface FocusEvent extends UIEvent {
+    readonly relatedTarget: EventTarget;
+    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
+}
+
+declare var FocusEvent: {
+    prototype: FocusEvent;
+    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
+}
+
+interface FormData {
+    append(name: any, value: any, blobName?: string): void;
+}
+
+declare var FormData: {
+    prototype: FormData;
+    new (form?: HTMLFormElement): FormData;
+}
+
+interface GainNode extends AudioNode {
+    readonly gain: AudioParam;
+}
+
+declare var GainNode: {
+    prototype: GainNode;
+    new(): GainNode;
+}
+
+interface Gamepad {
+    readonly axes: number[];
+    readonly buttons: GamepadButton[];
+    readonly connected: boolean;
+    readonly id: string;
+    readonly index: number;
+    readonly mapping: string;
+    readonly timestamp: number;
+}
+
+declare var Gamepad: {
+    prototype: Gamepad;
+    new(): Gamepad;
+}
+
+interface GamepadButton {
+    readonly pressed: boolean;
+    readonly value: number;
+}
+
+declare var GamepadButton: {
+    prototype: GamepadButton;
+    new(): GamepadButton;
+}
+
+interface GamepadEvent extends Event {
+    readonly gamepad: Gamepad;
+}
+
+declare var GamepadEvent: {
+    prototype: GamepadEvent;
+    new(): GamepadEvent;
+}
+
+interface Geolocation {
+    clearWatch(watchId: number): void;
+    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
+    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
+}
+
+declare var Geolocation: {
+    prototype: Geolocation;
+    new(): Geolocation;
+}
+
+interface HTMLAllCollection extends HTMLCollection {
+    namedItem(name: string): Element;
+}
+
+declare var HTMLAllCollection: {
+    prototype: HTMLAllCollection;
+    new(): HTMLAllCollection;
+}
+
+interface HTMLAnchorElement extends HTMLElement {
+    Methods: string;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Contains the anchor portion of the URL including the hash sign (#).
+      */
+    hash: string;
+    /**
+      * Contains the hostname and port values of the URL.
+      */
+    host: string;
+    /**
+      * Contains the hostname of a URL.
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    readonly mimeType: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    readonly nameProp: string;
+    /**
+      * Contains the pathname of the URL.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Contains the protocol of the URL.
+      */
+    protocol: string;
+    readonly protocolLong: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    type: string;
+    urn: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAnchorElement: {
+    prototype: HTMLAnchorElement;
+    new(): HTMLAnchorElement;
+}
+
+interface HTMLAppletElement extends HTMLElement {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
+      */
+    declare: boolean;
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    object: string | null;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    vspace: number;
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAppletElement: {
+    prototype: HTMLAppletElement;
+    new(): HTMLAppletElement;
+}
+
+interface HTMLAreaElement extends HTMLElement {
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
+      */
+    hash: string;
+    /**
+      * Sets or retrieves the hostname and port number of the location or URL.
+      */
+    host: string;
+    /**
+      * Sets or retrieves the host name part of the location or URL. 
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or gets whether clicks in this region cause action.
+      */
+    noHref: boolean;
+    /**
+      * Sets or retrieves the file name or path specified by the object.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Sets or retrieves the protocol portion of a URL.
+      */
+    protocol: string;
+    rel: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAreaElement: {
+    prototype: HTMLAreaElement;
+    new(): HTMLAreaElement;
+}
+
+interface HTMLAreasCollection extends HTMLCollection {
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Removes an element from the collection.
+      */
+    remove(index?: number): void;
+}
+
+declare var HTMLAreasCollection: {
+    prototype: HTMLAreasCollection;
+    new(): HTMLAreasCollection;
+}
+
+interface HTMLAudioElement extends HTMLMediaElement {
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAudioElement: {
+    prototype: HTMLAudioElement;
+    new(): HTMLAudioElement;
+}
+
+interface HTMLBRElement extends HTMLElement {
+    /**
+      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
+      */
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBRElement: {
+    prototype: HTMLBRElement;
+    new(): HTMLBRElement;
+}
+
+interface HTMLBaseElement extends HTMLElement {
+    /**
+      * Gets or sets the baseline URL on which relative links are based.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseElement: {
+    prototype: HTMLBaseElement;
+    new(): HTMLBaseElement;
+}
+
+interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    /**
+      * Sets or retrieves the font size of the object.
+      */
+    size: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseFontElement: {
+    prototype: HTMLBaseFontElement;
+    new(): HTMLBaseFontElement;
+}
+
+interface HTMLBodyElementEventMap extends HTMLElementEventMap {
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "popstate": PopStateEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLBodyElement extends HTMLElement {
+    aLink: any;
+    background: string;
+    bgColor: any;
+    bgProperties: string;
+    link: any;
+    noWrap: boolean;
+    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
+    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLBodyElement, ev: Event) => any;
+    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLBodyElement, ev: Event) => any;
+    ononline: (this: HTMLBodyElement, ev: Event) => any;
+    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
+    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
+    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLBodyElement, ev: Event) => any;
+    text: any;
+    vLink: any;
+    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBodyElement: {
+    prototype: HTMLBodyElement;
+    new(): HTMLBodyElement;
+}
+
+interface HTMLButtonElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /** 
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    status: any;
+    /**
+      * Gets the classification and default behavior of the button.
+      */
+    type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /** 
+      * Sets or retrieves the default or selected value of the control.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLButtonElement: {
+    prototype: HTMLButtonElement;
+    new(): HTMLButtonElement;
+}
+
+interface HTMLCanvasElement extends HTMLElement {
+    /**
+      * Gets or sets the height of a canvas element on a document.
+      */
+    height: number;
+    /**
+      * Gets or sets the width of a canvas element on a document.
+      */
+    width: number;
+    /**
+      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
+      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
+      */
+    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
+    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
+    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
+    /**
+      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
+      */
+    msToBlob(): Blob;
+    /**
+      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
+      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
+      */
+    toDataURL(type?: string, ...args: any[]): string;
+    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLCanvasElement: {
+    prototype: HTMLCanvasElement;
+    new(): HTMLCanvasElement;
+}
+
+interface HTMLCollection {
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Retrieves an object from various collections.
+      */
+    item(index: number): Element;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      */
+    namedItem(name: string): Element;
+    [index: number]: Element;
+}
+
+declare var HTMLCollection: {
+    prototype: HTMLCollection;
+    new(): HTMLCollection;
+}
+
+interface HTMLDListElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDListElement: {
+    prototype: HTMLDListElement;
+    new(): HTMLDListElement;
+}
+
+interface HTMLDataListElement extends HTMLElement {
+    options: HTMLCollectionOf<HTMLOptionElement>;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDataListElement: {
+    prototype: HTMLDataListElement;
+    new(): HTMLDataListElement;
+}
+
+interface HTMLDirectoryElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDirectoryElement: {
+    prototype: HTMLDirectoryElement;
+    new(): HTMLDirectoryElement;
+}
+
+interface HTMLDivElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDivElement: {
+    prototype: HTMLDivElement;
+    new(): HTMLDivElement;
+}
+
+interface HTMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDocument: {
+    prototype: HTMLDocument;
+    new(): HTMLDocument;
+}
+
+interface HTMLElementEventMap extends ElementEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforecopy": ClipboardEvent;
+    "beforecut": ClipboardEvent;
+    "beforedeactivate": UIEvent;
+    "beforepaste": ClipboardEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "copy": ClipboardEvent;
+    "cuechange": Event;
+    "cut": ClipboardEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "paste": ClipboardEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectstart": Event;
+    "stalled": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface HTMLElement extends Element {
+    accessKey: string;
+    readonly children: HTMLCollection;
+    contentEditable: string;
+    readonly dataset: DOMStringMap;
+    dir: string;
+    draggable: boolean;
+    hidden: boolean;
+    hideFocus: boolean;
+    innerHTML: string;
+    innerText: string;
+    readonly isContentEditable: boolean;
+    lang: string;
+    readonly offsetHeight: number;
+    readonly offsetLeft: number;
+    readonly offsetParent: Element;
+    readonly offsetTop: number;
+    readonly offsetWidth: number;
+    onabort: (this: HTMLElement, ev: UIEvent) => any;
+    onactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onblur: (this: HTMLElement, ev: FocusEvent) => any;
+    oncanplay: (this: HTMLElement, ev: Event) => any;
+    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
+    onchange: (this: HTMLElement, ev: Event) => any;
+    onclick: (this: HTMLElement, ev: MouseEvent) => any;
+    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
+    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    oncuechange: (this: HTMLElement, ev: Event) => any;
+    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
+    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    ondrag: (this: HTMLElement, ev: DragEvent) => any;
+    ondragend: (this: HTMLElement, ev: DragEvent) => any;
+    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
+    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
+    ondragover: (this: HTMLElement, ev: DragEvent) => any;
+    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
+    ondrop: (this: HTMLElement, ev: DragEvent) => any;
+    ondurationchange: (this: HTMLElement, ev: Event) => any;
+    onemptied: (this: HTMLElement, ev: Event) => any;
+    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
+    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
+    oninput: (this: HTMLElement, ev: Event) => any;
+    oninvalid: (this: HTMLElement, ev: Event) => any;
+    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onload: (this: HTMLElement, ev: Event) => any;
+    onloadeddata: (this: HTMLElement, ev: Event) => any;
+    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
+    onloadstart: (this: HTMLElement, ev: Event) => any;
+    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
+    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
+    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
+    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onpause: (this: HTMLElement, ev: Event) => any;
+    onplay: (this: HTMLElement, ev: Event) => any;
+    onplaying: (this: HTMLElement, ev: Event) => any;
+    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
+    onratechange: (this: HTMLElement, ev: Event) => any;
+    onreset: (this: HTMLElement, ev: Event) => any;
+    onscroll: (this: HTMLElement, ev: UIEvent) => any;
+    onseeked: (this: HTMLElement, ev: Event) => any;
+    onseeking: (this: HTMLElement, ev: Event) => any;
+    onselect: (this: HTMLElement, ev: UIEvent) => any;
+    onselectstart: (this: HTMLElement, ev: Event) => any;
+    onstalled: (this: HTMLElement, ev: Event) => any;
+    onsubmit: (this: HTMLElement, ev: Event) => any;
+    onsuspend: (this: HTMLElement, ev: Event) => any;
+    ontimeupdate: (this: HTMLElement, ev: Event) => any;
+    onvolumechange: (this: HTMLElement, ev: Event) => any;
+    onwaiting: (this: HTMLElement, ev: Event) => any;
+    outerHTML: string;
+    outerText: string;
+    spellcheck: boolean;
+    readonly style: CSSStyleDeclaration;
+    tabIndex: number;
+    title: string;
+    blur(): void;
+    click(): void;
+    dragDrop(): boolean;
+    focus(): void;
+    msGetInputContext(): MSInputMethodContext;
+    setActive(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLElement: {
+    prototype: HTMLElement;
+    new(): HTMLElement;
+}
+
+interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hidden: any;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the palette used for the embedded document.
+      */
+    readonly palette: string;
+    /**
+      * Retrieves the URL of the plug-in used to view an embedded document.
+      */
+    readonly pluginspage: string;
+    readonly readyState: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the height and width units of the embed object.
+      */
+    units: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLEmbedElement: {
+    prototype: HTMLEmbedElement;
+    new(): HTMLEmbedElement;
+}
+
+interface HTMLFieldSetElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFieldSetElement: {
+    prototype: HTMLFieldSetElement;
+    new(): HTMLFieldSetElement;
+}
+
+interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFontElement: {
+    prototype: HTMLFontElement;
+    new(): HTMLFontElement;
+}
+
+interface HTMLFormElement extends HTMLElement {
+    /**
+      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
+      */
+    acceptCharset: string;
+    /**
+      * Sets or retrieves the URL to which the form content is sent for 
processing.
+      */
+    action: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Retrieves a collection, in source order, of all controls in a given 
form.
+      */
+    readonly elements: HTMLCollection;
+    /**
+      * Sets or retrieves the MIME encoding for the form.
+      */
+    encoding: string;
+    /**
+      * Sets or retrieves the encoding type for the form.
+      */
+    enctype: string;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Sets or retrieves how to send the form data to the server.
+      */
+    method: string;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Designates a form that is not validated when submitted.
+      */
+    noValidate: boolean;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      */
+    namedItem(name: string): any;
+    /**
+      * Fires when the user resets a form.
+      */
+    reset(): void;
+    /**
+      * Fires when a FORM is about to be submitted.
+      */
+    submit(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLFormElement: {
+    prototype: HTMLFormElement;
+    new(): HTMLFormElement;
+}
+
+interface HTMLFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string | number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLFrameElement, ev: Event) => any;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string | number;
+    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameElement: {
+    prototype: HTMLFrameElement;
+    new(): HTMLFrameElement;
+}
+
+interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLFrameSetElement extends HTMLElement {
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Sets or retrieves the frame widths of the object.
+      */
+    cols: string;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    name: string;
+    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
+    /**
+      * Fires when the object loses the input focus.
+      */
+    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus.
+      */
+    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLFrameSetElement, ev: Event) => any;
+    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
+    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
+    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
+    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
+    /**
+      * Sets or retrieves the frame heights of the object.
+      */
+    rows: string;
+    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameSetElement: {
+    prototype: HTMLFrameSetElement;
+    new(): HTMLFrameSetElement;
+}
+
+interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
+      */
+    noShade: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHRElement: {
+    prototype: HTMLHRElement;
+    new(): HTMLHRElement;
+}
+
+interface HTMLHeadElement extends HTMLElement {
+    profile: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadElement: {
+    prototype: HTMLHeadElement;
+    new(): HTMLHeadElement;
+}
+
+interface HTMLHeadingElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadingElement: {
+    prototype: HTMLHeadingElement;
+    new(): HTMLHeadingElement;
+}
+
+interface HTMLHtmlElement extends HTMLElement {
+    /**
+      * Sets or retrieves the DTD version that governs the current document.
+      */
+    version: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHtmlElement: {
+    prototype: HTMLHtmlElement;
+    new(): HTMLHtmlElement;
+}
+
+interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    allowFullscreen: boolean;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the horizontal margin for the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLIFrameElement, ev: Event) => any;
+    readonly sandbox: DOMSettableTokenList;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLIFrameElement: {
+    prototype: HTMLIFrameElement;
+    new(): HTMLIFrameElement;
+}
+
+interface HTMLImageElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    crossOrigin: string;
+    readonly currentSrc: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: number;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves whether the image is a server-side image map.
+      */
+    isMap: boolean;
+    /**
+      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
+      */
+    longDesc: string;
+    lowsrc: string;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * The original height of the image resource before sizing.
+      */
+    readonly naturalHeight: number;
+    /**
+      * The original width of the image resource before sizing.
+      */
+    readonly naturalWidth: number;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    readonly x: number;
+    readonly y: number;
+    msGetAsCastingSource(): any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLImageElement: {
+    prototype: HTMLImageElement;
+    new(): HTMLImageElement;
+    create(): HTMLImageElement;
+}
+
+interface HTMLInputElement extends HTMLElement {
+    /**
+      * Sets or retrieves a comma-separated list of content types.
+      */
+    accept: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    checked: boolean;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    defaultChecked: boolean;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Returns a FileList object on a file type input object.
+      */
+    readonly files: FileList | null;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    indeterminate: boolean;
+    /**
+      * Specifies the ID of a pre-defined datalist of options for an input 
element.
+      */
+    readonly list: HTMLElement;
+    /**
+      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
+      */
+    max: string;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
+      */
+    min: string;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a string containing a regular expression that the user's 
input must match.
+      */
+    pattern: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    selectionDirection: string;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    size: number;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    status: boolean;
+    /**
+      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
+      */
+    step: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns the value of the data at the cursor's current position.
+      */
+    value: string;
+    valueAsDate: Date;
+    /**
+      * Returns the input field value as a number.
+      */
+    valueAsNumber: number;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    webkitdirectory: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Makes the selection equal to the current object.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start?: number, end?: number, direction?: string): void;
+    /**
+      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
+      * @param n Value to decrement the value by.
+      */
+    stepDown(n?: number): void;
+    /**
+      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
+      * @param n Value to increment the value by.
+      */
+    stepUp(n?: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLInputElement: {
+    prototype: HTMLInputElement;
+    new(): HTMLInputElement;
+}
+
+interface HTMLLIElement extends HTMLElement {
+    type: string;
+    /**
+      * Sets or retrieves the value of a list item.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLIElement: {
+    prototype: HTMLLIElement;
+    new(): HTMLLIElement;
+}
+
+interface HTMLLabelElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the object to which the given label object is 
assigned.
+      */
+    htmlFor: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLabelElement: {
+    prototype: HTMLLabelElement;
+    new(): HTMLLabelElement;
+}
+
+interface HTMLLegendElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    align: string;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLegendElement: {
+    prototype: HTMLLegendElement;
+    new(): HTMLLegendElement;
+}
+
+interface HTMLLinkElement extends HTMLElement, LinkStyle {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    disabled: boolean;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    import?: Document;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLinkElement: {
+    prototype: HTMLLinkElement;
+    new(): HTMLLinkElement;
+}
+
+interface HTMLMapElement extends HTMLElement {
+    /**
+      * Retrieves a collection of the area objects defined for the given map 
object.
+      */
+    readonly areas: HTMLAreasCollection;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMapElement: {
+    prototype: HTMLMapElement;
+    new(): HTMLMapElement;
+}
+
+interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
+    "bounce": Event;
+    "finish": Event;
+    "start": Event;
+}
+
+interface HTMLMarqueeElement extends HTMLElement {
+    behavior: string;
+    bgColor: any;
+    direction: string;
+    height: string;
+    hspace: number;
+    loop: number;
+    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
+    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
+    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
+    scrollAmount: number;
+    scrollDelay: number;
+    trueSpeed: boolean;
+    vspace: number;
+    width: string;
+    start(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMarqueeElement: {
+    prototype: HTMLMarqueeElement;
+    new(): HTMLMarqueeElement;
+}
+
+interface HTMLMediaElementEventMap extends HTMLElementEventMap {
+    "encrypted": MediaEncryptedEvent;
+    "msneedkey": MSMediaKeyNeededEvent;
+}
+
+interface HTMLMediaElement extends HTMLElement {
+    /**
+      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
+      */
+    readonly audioTracks: AudioTrackList;
+    /**
+      * Gets or sets a value that indicates whether to start playing the media 
automatically.
+      */
+    autoplay: boolean;
+    /**
+      * Gets a collection of buffered time ranges.
+      */
+    readonly buffered: TimeRanges;
+    /**
+      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
+      */
+    controls: boolean;
+    crossOrigin: string;
+    /**
+      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
+      */
+    readonly currentSrc: string;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    currentTime: number;
+    defaultMuted: boolean;
+    /**
+      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
+      */
+    defaultPlaybackRate: number;
+    /**
+      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
+      */
+    readonly duration: number;
+    /**
+      * Gets information about whether the playback has ended or not.
+      */
+    readonly ended: boolean;
+    /**
+      * Returns an object representing the current error state of the audio or 
video element.
+      */
+    readonly error: MediaError;
+    /**
+      * Gets or sets a flag to specify whether playback should restart after 
it completes.
+      */
+    loop: boolean;
+    readonly mediaKeys: MediaKeys | null;
+    /**
+      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
+      */
+    msAudioCategory: string;
+    /**
+      * Specifies the output device id that the audio will be sent to.
+      */
+    msAudioDeviceType: string;
+    readonly msGraphicsTrustStatus: MSGraphicsTrust;
+    /**
+      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
+      */
+    readonly msKeys: MSMediaKeys;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Specifies whether or not to enable low-latency playback on the media 
element.
+      */
+    msRealTime: boolean;
+    /**
+      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
+      */
+    muted: boolean;
+    /**
+      * Gets the current network activity for the element.
+      */
+    readonly networkState: number;
+    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
+    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
+    /**
+      * Gets a flag that specifies whether playback is paused.
+      */
+    readonly paused: boolean;
+    /**
+      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
+      */
+    playbackRate: number;
+    /**
+      * Gets TimeRanges for the current media resource that has been played.
+      */
+    readonly played: TimeRanges;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    preload: string;
+    readyState: number;
+    /**
+      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
+      */
+    readonly seekable: TimeRanges;
+    /**
+      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
+      */
+    readonly seeking: boolean;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcObject: MediaStream | null;
+    readonly textTracks: TextTrackList;
+    readonly videoTracks: VideoTrackList;
+    /**
+      * Gets or sets the volume level for audio portions of the media element.
+      */
+    volume: number;
+    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
+    /**
+      * Returns a string that specifies whether the client can play a given 
media resource type.
+      */
+    canPlayType(type: string): string;
+    /**
+      * Resets the audio or video object and loads a new media resource.
+      */
+    load(): void;
+    /**
+      * Clears all effects from the media pipeline.
+      */
+    msClearEffects(): void;
+    msGetAsCastingSource(): any;
+    /**
+      * Inserts the specified audio effect into media pipeline.
+      */
+    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
+    /**
+      * Specifies the media protection manager for a given media pipeline.
+      */
+    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
+    /**
+      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
+      */
+    pause(): void;
+    /**
+      * Loads and starts playback of a media resource.
+      */
+    play(): void;
+    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMediaElement: {
+    prototype: HTMLMediaElement;
+    new(): HTMLMediaElement;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+}
+
+interface HTMLMenuElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMenuElement: {
+    prototype: HTMLMenuElement;
+    new(): HTMLMenuElement;
+}
+
+interface HTMLMetaElement extends HTMLElement {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets or sets meta-information to associate with httpEquiv or name.
+      */
+    content: string;
+    /**
+      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
+      */
+    httpEquiv: string;
+    /**
+      * Sets or retrieves the value specified in the content attribute of the 
meta object.
+      */
+    name: string;
+    /**
+      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
+      */
+    scheme: string;
+    /**
+      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
+      */
+    url: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMetaElement: {
+    prototype: HTMLMetaElement;
+    new(): HTMLMetaElement;
+}
+
+interface HTMLMeterElement extends HTMLElement {
+    high: number;
+    low: number;
+    max: number;
+    min: number;
+    optimum: number;
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMeterElement: {
+    prototype: HTMLMeterElement;
+    new(): HTMLMeterElement;
+}
+
+interface HTMLModElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    /**
+      * Sets or retrieves the date and time of a modification to the object.
+      */
+    dateTime: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLModElement: {
+    prototype: HTMLModElement;
+    new(): HTMLModElement;
+}
+
+interface HTMLOListElement extends HTMLElement {
+    compact: boolean;
+    /**
+      * The starting number.
+      */
+    start: number;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOListElement: {
+    prototype: HTMLOListElement;
+    new(): HTMLOListElement;
+}
+
+interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    /**
+      * Sets or retrieves the URL of the file containing the compiled Java 
class.
+      */
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    declare: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the contained object.
+      */
+    readonly object: any;
+    readonly readyState: number;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLObjectElement: {
+    prototype: HTMLObjectElement;
+    new(): HTMLObjectElement;
+}
+
+interface HTMLOptGroupElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    readonly text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptGroupElement: {
+    prototype: HTMLOptGroupElement;
+    new(): HTMLOptGroupElement;
+}
+
+interface HTMLOptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptionElement: {
+    prototype: HTMLOptionElement;
+    new(): HTMLOptionElement;
+    create(): HTMLOptionElement;
+}
+
+interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
+    length: number;
+    selectedIndex: number;
+    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
+    remove(index: number): void;
+}
+
+declare var HTMLOptionsCollection: {
+    prototype: HTMLOptionsCollection;
+    new(): HTMLOptionsCollection;
+}
+
+interface HTMLParagraphElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParagraphElement: {
+    prototype: HTMLParagraphElement;
+    new(): HTMLParagraphElement;
+}
+
+interface HTMLParamElement extends HTMLElement {
+    /**
+      * Sets or retrieves the name of an input parameter for an element.
+      */
+    name: string;
+    /**
+      * Sets or retrieves the content type of the resource designated by the 
value attribute.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the value of an input parameter for an element.
+      */
+    value: string;
+    /**
+      * Sets or retrieves the data type of the value attribute.
+      */
+    valueType: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParamElement: {
+    prototype: HTMLParamElement;
+    new(): HTMLParamElement;
+}
+
+interface HTMLPictureElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPictureElement: {
+    prototype: HTMLPictureElement;
+    new(): HTMLPictureElement;
+}
+
+interface HTMLPreElement extends HTMLElement {
+    /**
+      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPreElement: {
+    prototype: HTMLPreElement;
+    new(): HTMLPreElement;
+}
+
+interface HTMLProgressElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Defines the maximum, or "done" value for a progress element.
+      */
+    max: number;
+    /**
+      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
+      */
+    readonly position: number;
+    /**
+      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLProgressElement: {
+    prototype: HTMLProgressElement;
+    new(): HTMLProgressElement;
+}
+
+interface HTMLQuoteElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLQuoteElement: {
+    prototype: HTMLQuoteElement;
+    new(): HTMLQuoteElement;
+}
+
+interface HTMLScriptElement extends HTMLElement {
+    async: boolean;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the status of the script.
+      */
+    defer: boolean;
+    /**
+      * Sets or retrieves the event for which the script is written. 
+      */
+    event: string;
+    /** 
+      * Sets or retrieves the object that is bound to the event script.
+      */
+    htmlFor: string;
+    /**
+      * Retrieves the URL to an external file that contains the source code or 
data.
+      */
+    src: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    /**
+      * Sets or retrieves the MIME type for the associated scripting engine.
+      */
+    type: string;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLScriptElement: {
+    prototype: HTMLScriptElement;
+    new(): HTMLScriptElement;
+}
+
+interface HTMLSelectElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    length: number;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    readonly options: HTMLOptionsCollection;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the index of the selected option in a select object.
+      */
+    selectedIndex: number;
+    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
+    /**
+      * Sets or retrieves the number of rows in the list box. 
+      */
+    size: number;
+    /**
+      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
+      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
+      */
+    namedItem(name: string): any;
+    /**
+      * Removes an element from the collection.
+      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
+      */
+    remove(index?: number): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLSelectElement: {
+    prototype: HTMLSelectElement;
+    new(): HTMLSelectElement;
+}
+
+interface HTMLSourceElement extends HTMLElement {
+    /**
+      * Gets or sets the intended media type of the media source.
+     */
+    media: string;
+    msKeySystem: string;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+     * Gets or sets the MIME type of a media resource.
+     */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSourceElement: {
+    prototype: HTMLSourceElement;
+    new(): HTMLSourceElement;
+}
+
+interface HTMLSpanElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSpanElement: {
+    prototype: HTMLSpanElement;
+    new(): HTMLSpanElement;
+}
+
+interface HTMLStyleElement extends HTMLElement, LinkStyle {
+    disabled: boolean;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Retrieves the CSS language in which the style sheet is written.
+      */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLStyleElement: {
+    prototype: HTMLStyleElement;
+    new(): HTMLStyleElement;
+}
+
+interface HTMLTableCaptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the alignment of the caption or legend.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
+      */
+    vAlign: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCaptionElement: {
+    prototype: HTMLTableCaptionElement;
+    new(): HTMLTableCaptionElement;
+}
+
+interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves abbreviated text for the object.
+      */
+    abbr: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
+      */
+    axis: string;
+    bgColor: any;
+    /**
+      * Retrieves the position of the object in the cells collection of a row.
+      */
+    readonly cellIndex: number;
+    /**
+      * Sets or retrieves the number columns in the table that the object 
should span.
+      */
+    colSpan: number;
+    /**
+      * Sets or retrieves a list of header cells that provide information for 
the object.
+      */
+    headers: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    /**
+      * Sets or retrieves how many rows in a table the cell should span.
+      */
+    rowSpan: number;
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCellElement: {
+    prototype: HTMLTableCellElement;
+    new(): HTMLTableCellElement;
+}
+
+interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves the alignment of the object relative to the display 
or table.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of columns in the group.
+      */
+    span: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableColElement: {
+    prototype: HTMLTableColElement;
+    new(): HTMLTableColElement;
+}
+
+interface HTMLTableDataCellElement extends HTMLTableCellElement {
+}
+
+declare var HTMLTableDataCellElement: {
+    prototype: HTMLTableDataCellElement;
+    new(): HTMLTableDataCellElement;
+}
+
+interface HTMLTableElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object. 
+      */
+    borderColor: any;
+    /**
+      * Retrieves the caption object of a table.
+      */
+    caption: HTMLTableCaptionElement;
+    /**
+      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
+      */
+    cellPadding: string;
+    /**
+      * Sets or retrieves the amount of space between cells in a table.
+      */
+    cellSpacing: string;
+    /**
+      * Sets or retrieves the number of columns in the table.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the way the border frame around the table is 
displayed.
+      */
+    frame: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Sets or retrieves which dividing lines (inner borders) are displayed.
+      */
+    rules: string;
+    /**
+      * Sets or retrieves a description and/or structure of the object.
+      */
+    summary: string;
+    /**
+      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
+      */
+    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
+    /**
+      * Retrieves the tFoot object of the table.
+      */
+    tFoot: HTMLTableSectionElement;
+    /**
+      * Retrieves the tHead object of the table.
+      */
+    tHead: HTMLTableSectionElement;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Creates an empty caption element in the table.
+      */
+    createCaption(): HTMLTableCaptionElement;
+    /**
+      * Creates an empty tBody element in the table.
+      */
+    createTBody(): HTMLTableSectionElement;
+    /**
+      * Creates an empty tFoot element in the table.
+      */
+    createTFoot(): HTMLTableSectionElement;
+    /**
+      * Returns the tHead element object if successful, or null otherwise.
+      */
+    createTHead(): HTMLTableSectionElement;
+    /**
+      * Deletes the caption element and its contents from the table.
+      */
+    deleteCaption(): void;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Deletes the tFoot element and its contents from the table.
+      */
+    deleteTFoot(): void;
+    /**
+      * Deletes the tHead element and its contents from the table.
+      */
+    deleteTHead(): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableElement: {
+    prototype: HTMLTableElement;
+    new(): HTMLTableElement;
+}
+
+interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+}
+
+declare var HTMLTableHeaderCellElement: {
+    prototype: HTMLTableHeaderCellElement;
+    new(): HTMLTableHeaderCellElement;
+}
+
+interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Retrieves a collection of all cells in the table row.
+      */
+    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Retrieves the position of the object in the rows collection for the 
table.
+      */
+    readonly rowIndex: number;
+    /**
+      * Retrieves the position of the object in the collection.
+      */
+    readonly sectionRowIndex: number;
+    /**
+      * Removes the specified cell from the table row, as well as from the 
cells collection.
+      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
+      */
+    deleteCell(index?: number): void;
+    /**
+      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
+      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
+      */
+    insertCell(index?: number): HTMLTableDataCellElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableRowElement: {
+    prototype: HTMLTableRowElement;
+    new(): HTMLTableRowElement;
+}
+
+interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableSectionElement: {
+    prototype: HTMLTableSectionElement;
+    new(): HTMLTableSectionElement;
+}
+
+interface HTMLTemplateElement extends HTMLElement {
+    readonly content: DocumentFragment;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTemplateElement: {
+    prototype: HTMLTemplateElement;
+    new(): HTMLTemplateElement;
+}
+
+interface HTMLTextAreaElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    /**
+      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
+      */
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: number;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    /**
+      * Sets or retrieves the value indicating whether the control is selected.
+      */
+    status: any;
+    /**
+      * Retrieves the type of control.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Retrieves or sets the text in the entry field of the textArea element.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Sets or retrieves how to handle wordwrapping in the object.
+      */
+    wrap: string;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Highlights the input area of a form element.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start: number, end: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTextAreaElement: {
+    prototype: HTMLTextAreaElement;
+    new(): HTMLTextAreaElement;
+}
+
+interface HTMLTitleElement extends HTMLElement {
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTitleElement: {
+    prototype: HTMLTitleElement;
+    new(): HTMLTitleElement;
+}
+
+interface HTMLTrackElement extends HTMLElement {
+    default: boolean;
+    kind: string;
+    label: string;
+    readonly readyState: number;
+    src: string;
+    srclang: string;
+    readonly track: TextTrack;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTrackElement: {
+    prototype: HTMLTrackElement;
+    new(): HTMLTrackElement;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+}
+
+interface HTMLUListElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUListElement: {
+    prototype: HTMLUListElement;
+    new(): HTMLUListElement;
+}
+
+interface HTMLUnknownElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUnknownElement: {
+    prototype: HTMLUnknownElement;
+    new(): HTMLUnknownElement;
+}
+
+interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
+    "MSVideoFormatChanged": Event;
+    "MSVideoFrameStepCompleted": Event;
+    "MSVideoOptimalLayoutChanged": Event;
+}
+
+interface HTMLVideoElement extends HTMLMediaElement {
+    /**
+      * Gets or sets the height of the video element.
+      */
+    height: number;
+    msHorizontalMirror: boolean;
+    readonly msIsLayoutOptimalForPlayback: boolean;
+    readonly msIsStereo3D: boolean;
+    msStereo3DPackingMode: string;
+    msStereo3DRenderMode: string;
+    msZoom: boolean;
+    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
+    /**
+      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
+      */
+    poster: string;
+    /**
+      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoHeight: number;
+    /**
+      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoWidth: number;
+    readonly webkitDisplayingFullscreen: boolean;
+    readonly webkitSupportsFullscreen: boolean;
+    /**
+      * Gets or sets the width of the video element.
+      */
+    width: number;
+    getVideoPlaybackQuality(): VideoPlaybackQuality;
+    msFrameStep(forward: boolean): void;
+    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
+    webkitEnterFullScreen(): void;
+    webkitEnterFullscreen(): void;
+    webkitExitFullScreen(): void;
+    webkitExitFullscreen(): void;
+    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLVideoElement: {
+    prototype: HTMLVideoElement;
+    new(): HTMLVideoElement;
+}
+
+interface HashChangeEvent extends Event {
+    readonly newURL: string | null;
+    readonly oldURL: string | null;
+}
+
+declare var HashChangeEvent: {
+    prototype: HashChangeEvent;
+    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
+}
+
+interface History {
+    readonly length: number;
+    readonly state: any;
+    scrollRestoration: ScrollRestoration;
+    back(): void;
+    forward(): void;
+    go(delta?: number): void;
+    pushState(data: any, title: string, url?: string | null): void;
+    replaceState(data: any, title: string, url?: string | null): void;
+}
+
+declare var History: {
+    prototype: History;
+    new(): History;
+}
+
+interface IDBCursor {
+    readonly direction: string;
+    key: IDBKeyRange | IDBValidKey;
+    readonly primaryKey: any;
+    source: IDBObjectStore | IDBIndex;
+    advance(count: number): void;
+    continue(key?: IDBKeyRange | IDBValidKey): void;
+    delete(): IDBRequest;
+    update(value: any): IDBRequest;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+declare var IDBCursor: {
+    prototype: IDBCursor;
+    new(): IDBCursor;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+interface IDBCursorWithValue extends IDBCursor {
+    readonly value: any;
+}
+
+declare var IDBCursorWithValue: {
+    prototype: IDBCursorWithValue;
+    new(): IDBCursorWithValue;
+}
+
+interface IDBDatabaseEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBDatabase extends EventTarget {
+    readonly name: string;
+    readonly objectStoreNames: DOMStringList;
+    onabort: (this: IDBDatabase, ev: Event) => any;
+    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
+    version: number;
+    onversionchange: (ev: IDBVersionChangeEvent) => any;
+    close(): void;
+    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
+    deleteObjectStore(name: string): void;
+    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
+    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
+    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBDatabase: {
+    prototype: IDBDatabase;
+    new(): IDBDatabase;
+}
+
+interface IDBFactory {
+    cmp(first: any, second: any): number;
+    deleteDatabase(name: string): IDBOpenDBRequest;
+    open(name: string, version?: number): IDBOpenDBRequest;
+}
+
+declare var IDBFactory: {
+    prototype: IDBFactory;
+    new(): IDBFactory;
+}
+
+interface IDBIndex {
+    keyPath: string | string[];
+    readonly name: string;
+    readonly objectStore: IDBObjectStore;
+    readonly unique: boolean;
+    multiEntry: boolean;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+}
+
+declare var IDBIndex: {
+    prototype: IDBIndex;
+    new(): IDBIndex;
+}
+
+interface IDBKeyRange {
+    readonly lower: any;
+    readonly lowerOpen: boolean;
+    readonly upper: any;
+    readonly upperOpen: boolean;
+}
+
+declare var IDBKeyRange: {
+    prototype: IDBKeyRange;
+    new(): IDBKeyRange;
+    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
+    lowerBound(lower: any, open?: boolean): IDBKeyRange;
+    only(value: any): IDBKeyRange;
+    upperBound(upper: any, open?: boolean): IDBKeyRange;
+}
+
+interface IDBObjectStore {
+    readonly indexNames: DOMStringList;
+    keyPath: string | string[];
+    readonly name: string;
+    readonly transaction: IDBTransaction;
+    autoIncrement: boolean;
+    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    clear(): IDBRequest;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
+    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    deleteIndex(indexName: string): void;
+    get(key: any): IDBRequest;
+    index(name: string): IDBIndex;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+}
+
+declare var IDBObjectStore: {
+    prototype: IDBObjectStore;
+    new(): IDBObjectStore;
+}
+
+interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
+    "blocked": Event;
+    "upgradeneeded": IDBVersionChangeEvent;
+}
+
+interface IDBOpenDBRequest extends IDBRequest {
+    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
+    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
+    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBOpenDBRequest: {
+    prototype: IDBOpenDBRequest;
+    new(): IDBOpenDBRequest;
+}
+
+interface IDBRequestEventMap {
+    "error": ErrorEvent;
+    "success": Event;
+}
+
+interface IDBRequest extends EventTarget {
+    readonly error: DOMError;
+    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
+    onsuccess: (this: IDBRequest, ev: Event) => any;
+    readonly readyState: string;
+    readonly result: any;
+    source: IDBObjectStore | IDBIndex | IDBCursor;
+    readonly transaction: IDBTransaction;
+    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBRequest: {
+    prototype: IDBRequest;
+    new(): IDBRequest;
+}
+
+interface IDBTransactionEventMap {
+    "abort": Event;
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBTransaction extends EventTarget {
+    readonly db: IDBDatabase;
+    readonly error: DOMError;
+    readonly mode: string;
+    onabort: (this: IDBTransaction, ev: Event) => any;
+    oncomplete: (this: IDBTransaction, ev: Event) => any;
+    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
+    abort(): void;
+    objectStore(name: string): IDBObjectStore;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBTransaction: {
+    prototype: IDBTransaction;
+    new(): IDBTransaction;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+}
+
+interface IDBVersionChangeEvent extends Event {
+    readonly newVersion: number | null;
+    readonly oldVersion: number;
+}
+
+declare var IDBVersionChangeEvent: {
+    prototype: IDBVersionChangeEvent;
+    new(): IDBVersionChangeEvent;
+}
+
+interface ImageData {
+    data: Uint8ClampedArray;
+    readonly height: number;
+    readonly width: number;
+}
+
+declare var ImageData: {
+    prototype: ImageData;
+    new(width: number, height: number): ImageData;
+    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
+}
+
+interface KeyboardEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly char: string | null;
+    readonly charCode: number;
+    readonly ctrlKey: boolean;
+    readonly key: string;
+    readonly keyCode: number;
+    readonly locale: string;
+    readonly location: number;
+    readonly metaKey: boolean;
+    readonly repeat: boolean;
+    readonly shiftKey: boolean;
+    readonly which: number;
+    readonly code: string;
+    getModifierState(keyArg: string): boolean;
+    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+declare var KeyboardEvent: {
+    prototype: KeyboardEvent;
+    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+interface ListeningStateChangedEvent extends Event {
+    readonly label: string;
+    readonly state: string;
+}
+
+declare var ListeningStateChangedEvent: {
+    prototype: ListeningStateChangedEvent;
+    new(): ListeningStateChangedEvent;
+}
+
+interface Location {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    assign(url: string): void;
+    reload(forcedReload?: boolean): void;
+    replace(url: string): void;
+    toString(): string;
+}
+
+declare var Location: {
+    prototype: Location;
+    new(): Location;
+}
+
+interface LongRunningScriptDetectedEvent extends Event {
+    readonly executionTime: number;
+    stopPageScriptExecution: boolean;
+}
+
+declare var LongRunningScriptDetectedEvent: {
+    prototype: LongRunningScriptDetectedEvent;
+    new(): LongRunningScriptDetectedEvent;
+}
+
+interface MSApp {
+    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
+    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
+    createDataPackage(object: any): any;
+    createDataPackageFromSelection(): any;
+    createFileFromStorageFile(storageFile: any): File;
+    createStreamFromInputStream(type: string, inputStream: any): MSStream;
+    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
+    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
+    getCurrentPriority(): string;
+    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
+    getViewId(view: any): any;
+    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
+    pageHandlesAllApplicationActivations(enabled: boolean): void;
+    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
+    terminateApp(exceptionObject: any): void;
+    readonly CURRENT: string;
+    readonly HIGH: string;
+    readonly IDLE: string;
+    readonly NORMAL: string;
+}
+declare var MSApp: MSApp;
+
+interface MSAppAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSAppAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
+    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSAppAsyncOperation: {
+    prototype: MSAppAsyncOperation;
+    new(): MSAppAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+}
+
+interface MSAssertion {
+    readonly id: string;
+    readonly type: string;
+}
+
+declare var MSAssertion: {
+    prototype: MSAssertion;
+    new(): MSAssertion;
+}
+
+interface MSBlobBuilder {
+    append(data: any, endings?: string): void;
+    getBlob(contentType?: string): Blob;
+}
+
+declare var MSBlobBuilder: {
+    prototype: MSBlobBuilder;
+    new(): MSBlobBuilder;
+}
+
+interface MSCredentials {
+    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
+    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
+}
+
+declare var MSCredentials: {
+    prototype: MSCredentials;
+    new(): MSCredentials;
+}
+
+interface MSFIDOCredentialAssertion extends MSAssertion {
+    readonly algorithm: string | Algorithm;
+    readonly attestation: any;
+    readonly publicKey: string;
+    readonly transportHints: string[];
+}
+
+declare var MSFIDOCredentialAssertion: {
+    prototype: MSFIDOCredentialAssertion;
+    new(): MSFIDOCredentialAssertion;
+}
+
+interface MSFIDOSignature {
+    readonly authnrData: string;
+    readonly clientData: string;
+    readonly signature: string;
+}
+
+declare var MSFIDOSignature: {
+    prototype: MSFIDOSignature;
+    new(): MSFIDOSignature;
+}
+
+interface MSFIDOSignatureAssertion extends MSAssertion {
+    readonly signature: MSFIDOSignature;
+}
+
+declare var MSFIDOSignatureAssertion: {
+    prototype: MSFIDOSignatureAssertion;
+    new(): MSFIDOSignatureAssertion;
+}
+
+interface MSGesture {
+    target: Element;
+    addPointer(pointerId: number): void;
+    stop(): void;
+}
+
+declare var MSGesture: {
+    prototype: MSGesture;
+    new(): MSGesture;
+}
+
+interface MSGestureEvent extends UIEvent {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly expansion: number;
+    readonly gestureObject: any;
+    readonly hwTimestamp: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly rotation: number;
+    readonly scale: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly translationX: number;
+    readonly translationY: number;
+    readonly velocityAngular: number;
+    readonly velocityExpansion: number;
+    readonly velocityX: number;
+    readonly velocityY: number;
+    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+declare var MSGestureEvent: {
+    prototype: MSGestureEvent;
+    new(): MSGestureEvent;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+interface MSGraphicsTrust {
+    readonly constrictionActive: boolean;
+    readonly status: string;
+}
+
+declare var MSGraphicsTrust: {
+    prototype: MSGraphicsTrust;
+    new(): MSGraphicsTrust;
+}
+
+interface MSHTMLWebViewElement extends HTMLElement {
+    readonly canGoBack: boolean;
+    readonly canGoForward: boolean;
+    readonly containsFullScreenElement: boolean;
+    readonly documentTitle: string;
+    height: number;
+    readonly settings: MSWebViewSettings;
+    src: string;
+    width: number;
+    addWebAllowedObject(name: string, applicationObject: any): void;
+    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
+    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
+    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
+    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
+    getDeferredPermissionRequests(): DeferredPermissionRequest[];
+    goBack(): void;
+    goForward(): void;
+    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
+    navigate(uri: string): void;
+    navigateToLocalStreamUri(source: string, streamResolver: any): void;
+    navigateToString(contents: string): void;
+    navigateWithHttpRequestMessage(requestMessage: any): void;
+    refresh(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSHTMLWebViewElement: {
+    prototype: MSHTMLWebViewElement;
+    new(): MSHTMLWebViewElement;
+}
+
+interface MSInputMethodContextEventMap {
+    "MSCandidateWindowHide": Event;
+    "MSCandidateWindowShow": Event;
+    "MSCandidateWindowUpdate": Event;
+}
+
+interface MSInputMethodContext extends EventTarget {
+    readonly compositionEndOffset: number;
+    readonly compositionStartOffset: number;
+    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
+    readonly target: HTMLElement;
+    getCandidateWindowClientRect(): ClientRect;
+    getCompositionAlternatives(): string[];
+    hasComposition(): boolean;
+    isCandidateWindowVisible(): boolean;
+    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSInputMethodContext: {
+    prototype: MSInputMethodContext;
+    new(): MSInputMethodContext;
+}
+
+interface MSManipulationEvent extends UIEvent {
+    readonly currentState: number;
+    readonly inertiaDestinationX: number;
+    readonly inertiaDestinationY: number;
+    readonly lastState: number;
+    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+declare var MSManipulationEvent: {
+    prototype: MSManipulationEvent;
+    new(): MSManipulationEvent;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+interface MSMediaKeyError {
+    readonly code: number;
+    readonly systemCode: number;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+declare var MSMediaKeyError: {
+    prototype: MSMediaKeyError;
+    new(): MSMediaKeyError;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+interface MSMediaKeyMessageEvent extends Event {
+    readonly destinationURL: string | null;
+    readonly message: Uint8Array;
+}
+
+declare var MSMediaKeyMessageEvent: {
+    prototype: MSMediaKeyMessageEvent;
+    new(): MSMediaKeyMessageEvent;
+}
+
+interface MSMediaKeyNeededEvent extends Event {
+    readonly initData: Uint8Array | null;
+}
+
+declare var MSMediaKeyNeededEvent: {
+    prototype: MSMediaKeyNeededEvent;
+    new(): MSMediaKeyNeededEvent;
+}
+
+interface MSMediaKeySession extends EventTarget {
+    readonly error: MSMediaKeyError | null;
+    readonly keySystem: string;
+    readonly sessionId: string;
+    close(): void;
+    update(key: Uint8Array): void;
+}
+
+declare var MSMediaKeySession: {
+    prototype: MSMediaKeySession;
+    new(): MSMediaKeySession;
+}
+
+interface MSMediaKeys {
+    readonly keySystem: string;
+    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
+}
+
+declare var MSMediaKeys: {
+    prototype: MSMediaKeys;
+    new(keySystem: string): MSMediaKeys;
+    isTypeSupported(keySystem: string, type?: string): boolean;
+    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
+}
+
+interface MSPointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var MSPointerEvent: {
+    prototype: MSPointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
+}
+
+interface MSRangeCollection {
+    readonly length: number;
+    item(index: number): Range;
+    [index: number]: Range;
+}
+
+declare var MSRangeCollection: {
+    prototype: MSRangeCollection;
+    new(): MSRangeCollection;
+}
+
+interface MSSiteModeEvent extends Event {
+    readonly actionURL: string;
+    readonly buttonID: number;
+}
+
+declare var MSSiteModeEvent: {
+    prototype: MSSiteModeEvent;
+    new(): MSSiteModeEvent;
+}
+
+interface MSStream {
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+}
+
+declare var MSStream: {
+    prototype: MSStream;
+    new(): MSStream;
+}
+
+interface MSStreamReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(stream: MSStream, size?: number): void;
+    readAsBinaryString(stream: MSStream, size?: number): void;
+    readAsBlob(stream: MSStream, size?: number): void;
+    readAsDataURL(stream: MSStream, size?: number): void;
+    readAsText(stream: MSStream, encoding?: string, size?: number): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSStreamReader: {
+    prototype: MSStreamReader;
+    new(): MSStreamReader;
+}
+
+interface MSWebViewAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSWebViewAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
+    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    readonly target: MSHTMLWebViewElement;
+    readonly type: number;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSWebViewAsyncOperation: {
+    prototype: MSWebViewAsyncOperation;
+    new(): MSWebViewAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+}
+
+interface MSWebViewSettings {
+    isIndexedDBEnabled: boolean;
+    isJavaScriptEnabled: boolean;
+}
+
+declare var MSWebViewSettings: {
+    prototype: MSWebViewSettings;
+    new(): MSWebViewSettings;
+}
+
+interface MediaDeviceInfo {
+    readonly deviceId: string;
+    readonly groupId: string;
+    readonly kind: string;
+    readonly label: string;
+}
+
+declare var MediaDeviceInfo: {
+    prototype: MediaDeviceInfo;
+    new(): MediaDeviceInfo;
+}
+
+interface MediaDevicesEventMap {
+    "devicechange": Event;
+}
+
+interface MediaDevices extends EventTarget {
+    ondevicechange: (this: MediaDevices, ev: Event) => any;
+    enumerateDevices(): any;
+    getSupportedConstraints(): MediaTrackSupportedConstraints;
+    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
+    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaDevices: {
+    prototype: MediaDevices;
+    new(): MediaDevices;
+}
+
+interface MediaElementAudioSourceNode extends AudioNode {
+}
+
+declare var MediaElementAudioSourceNode: {
+    prototype: MediaElementAudioSourceNode;
+    new(): MediaElementAudioSourceNode;
+}
+
+interface MediaEncryptedEvent extends Event {
+    readonly initData: ArrayBuffer | null;
+    readonly initDataType: string;
+}
+
+declare var MediaEncryptedEvent: {
+    prototype: MediaEncryptedEvent;
+    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
+}
+
+interface MediaError {
+    readonly code: number;
+    readonly msExtendedCode: number;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+declare var MediaError: {
+    prototype: MediaError;
+    new(): MediaError;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+interface MediaKeyMessageEvent extends Event {
+    readonly message: ArrayBuffer;
+    readonly messageType: string;
+}
+
+declare var MediaKeyMessageEvent: {
+    prototype: MediaKeyMessageEvent;
+    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
+}
+
+interface MediaKeySession extends EventTarget {
+    readonly closed: PromiseLike<void>;
+    readonly expiration: number;
+    readonly keyStatuses: MediaKeyStatusMap;
+    readonly sessionId: string;
+    close(): PromiseLike<void>;
+    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
+    load(sessionId: string): PromiseLike<boolean>;
+    remove(): PromiseLike<void>;
+    update(response: any): PromiseLike<void>;
+}
+
+declare var MediaKeySession: {
+    prototype: MediaKeySession;
+    new(): MediaKeySession;
+}
+
+interface MediaKeyStatusMap {
+    readonly size: number;
+    forEach(callback: ForEachCallback): void;
+    get(keyId: any): string;
+    has(keyId: any): boolean;
+}
+
+declare var MediaKeyStatusMap: {
+    prototype: MediaKeyStatusMap;
+    new(): MediaKeyStatusMap;
+}
+
+interface MediaKeySystemAccess {
+    readonly keySystem: string;
+    createMediaKeys(): PromiseLike<MediaKeys>;
+    getConfiguration(): MediaKeySystemConfiguration;
+}
+
+declare var MediaKeySystemAccess: {
+    prototype: MediaKeySystemAccess;
+    new(): MediaKeySystemAccess;
+}
+
+interface MediaKeys {
+    createSession(sessionType?: string): MediaKeySession;
+    setServerCertificate(serverCertificate: any): PromiseLike<void>;
+}
+
+declare var MediaKeys: {
+    prototype: MediaKeys;
+    new(): MediaKeys;
+}
+
+interface MediaList {
+    readonly length: number;
+    mediaText: string;
+    appendMedium(newMedium: string): void;
+    deleteMedium(oldMedium: string): void;
+    item(index: number): string;
+    toString(): string;
+    [index: number]: string;
+}
+
+declare var MediaList: {
+    prototype: MediaList;
+    new(): MediaList;
+}
+
+interface MediaQueryList {
+    readonly matches: boolean;
+    readonly media: string;
+    addListener(listener: MediaQueryListListener): void;
+    removeListener(listener: MediaQueryListListener): void;
+}
+
+declare var MediaQueryList: {
+    prototype: MediaQueryList;
+    new(): MediaQueryList;
+}
+
+interface MediaSource extends EventTarget {
+    readonly activeSourceBuffers: SourceBufferList;
+    duration: number;
+    readonly readyState: string;
+    readonly sourceBuffers: SourceBufferList;
+    addSourceBuffer(type: string): SourceBuffer;
+    endOfStream(error?: number): void;
+    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
+}
+
+declare var MediaSource: {
+    prototype: MediaSource;
+    new(): MediaSource;
+    isTypeSupported(type: string): boolean;
+}
+
+interface MediaStreamEventMap {
+    "active": Event;
+    "addtrack": TrackEvent;
+    "inactive": Event;
+    "removetrack": TrackEvent;
+}
+
+interface MediaStream extends EventTarget {
+    readonly active: boolean;
+    readonly id: string;
+    onactive: (this: MediaStream, ev: Event) => any;
+    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
+    oninactive: (this: MediaStream, ev: Event) => any;
+    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
+    addTrack(track: MediaStreamTrack): void;
+    clone(): MediaStream;
+    getAudioTracks(): MediaStreamTrack[];
+    getTrackById(trackId: string): MediaStreamTrack | null;
+    getTracks(): MediaStreamTrack[];
+    getVideoTracks(): MediaStreamTrack[];
+    removeTrack(track: MediaStreamTrack): void;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStream: {
+    prototype: MediaStream;
+    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
+}
+
+interface MediaStreamAudioSourceNode extends AudioNode {
+}
+
+declare var MediaStreamAudioSourceNode: {
+    prototype: MediaStreamAudioSourceNode;
+    new(): MediaStreamAudioSourceNode;
+}
+
+interface MediaStreamError {
+    readonly constraintName: string | null;
+    readonly message: string | null;
+    readonly name: string;
+}
+
+declare var MediaStreamError: {
+    prototype: MediaStreamError;
+    new(): MediaStreamError;
+}
+
+interface MediaStreamErrorEvent extends Event {
+    readonly error: MediaStreamError | null;
+}
+
+declare var MediaStreamErrorEvent: {
+    prototype: MediaStreamErrorEvent;
+    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
+}
+
+interface MediaStreamTrackEventMap {
+    "ended": MediaStreamErrorEvent;
+    "mute": Event;
+    "overconstrained": MediaStreamErrorEvent;
+    "unmute": Event;
+}
+
+interface MediaStreamTrack extends EventTarget {
+    enabled: boolean;
+    readonly id: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly muted: boolean;
+    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
+    onmute: (this: MediaStreamTrack, ev: Event) => any;
+    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
+    onunmute: (this: MediaStreamTrack, ev: Event) => any;
+    readonly readonly: boolean;
+    readonly readyState: string;
+    readonly remote: boolean;
+    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
+    clone(): MediaStreamTrack;
+    getCapabilities(): MediaTrackCapabilities;
+    getConstraints(): MediaTrackConstraints;
+    getSettings(): MediaTrackSettings;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStreamTrack: {
+    prototype: MediaStreamTrack;
+    new(): MediaStreamTrack;
+}
+
+interface MediaStreamTrackEvent extends Event {
+    readonly track: MediaStreamTrack;
+}
+
+declare var MediaStreamTrackEvent: {
+    prototype: MediaStreamTrackEvent;
+    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
+}
+
+interface MessageChannel {
+    readonly port1: MessagePort;
+    readonly port2: MessagePort;
+}
+
+declare var MessageChannel: {
+    prototype: MessageChannel;
+    new(): MessageChannel;
+}
+
+interface MessageEvent extends Event {
+    readonly data: any;
+    readonly origin: string;
+    readonly ports: any;
+    readonly source: Window;
+    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
+}
+
+declare var MessageEvent: {
+    prototype: MessageEvent;
+    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
+}
+
+interface MessagePortEventMap {
+    "message": MessageEvent;
+}
+
+interface MessagePort extends EventTarget {
+    onmessage: (this: MessagePort, ev: MessageEvent) => any;
+    close(): void;
+    postMessage(message?: any, ports?: any): void;
+    start(): void;
+    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MessagePort: {
+    prototype: MessagePort;
+    new(): MessagePort;
+}
+
+interface MimeType {
+    readonly description: string;
+    readonly enabledPlugin: Plugin;
+    readonly suffixes: string;
+    readonly type: string;
+}
+
+declare var MimeType: {
+    prototype: MimeType;
+    new(): MimeType;
+}
+
+interface MimeTypeArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(type: string): Plugin;
+    [index: number]: Plugin;
+}
+
+declare var MimeTypeArray: {
+    prototype: MimeTypeArray;
+    new(): MimeTypeArray;
+}
+
+interface MouseEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly button: number;
+    readonly buttons: number;
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly ctrlKey: boolean;
+    readonly fromElement: Element;
+    readonly layerX: number;
+    readonly layerY: number;
+    readonly metaKey: boolean;
+    readonly movementX: number;
+    readonly movementY: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly relatedTarget: EventTarget;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly shiftKey: boolean;
+    readonly toElement: Element;
+    readonly which: number;
+    readonly x: number;
+    readonly y: number;
+    getModifierState(keyArg: string): boolean;
+    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
+}
+
+interface MutationEvent extends Event {
+    readonly attrChange: number;
+    readonly attrName: string;
+    readonly newValue: string;
+    readonly prevValue: string;
+    readonly relatedNode: Node;
+    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+declare var MutationEvent: {
+    prototype: MutationEvent;
+    new(): MutationEvent;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+interface MutationObserver {
+    disconnect(): void;
+    observe(target: Node, options: MutationObserverInit): void;
+    takeRecords(): MutationRecord[];
+}
+
+declare var MutationObserver: {
+    prototype: MutationObserver;
+    new(callback: MutationCallback): MutationObserver;
+}
+
+interface MutationRecord {
+    readonly addedNodes: NodeList;
+    readonly attributeName: string | null;
+    readonly attributeNamespace: string | null;
+    readonly nextSibling: Node | null;
+    readonly oldValue: string | null;
+    readonly previousSibling: Node | null;
+    readonly removedNodes: NodeList;
+    readonly target: Node;
+    readonly type: string;
+}
+
+declare var MutationRecord: {
+    prototype: MutationRecord;
+    new(): MutationRecord;
+}
+
+interface NamedNodeMap {
+    readonly length: number;
+    getNamedItem(name: string): Attr;
+    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    item(index: number): Attr;
+    removeNamedItem(name: string): Attr;
+    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    setNamedItem(arg: Attr): Attr;
+    setNamedItemNS(arg: Attr): Attr;
+    [index: number]: Attr;
+}
+
+declare var NamedNodeMap: {
+    prototype: NamedNodeMap;
+    new(): NamedNodeMap;
+}
+
+interface NavigationCompletedEvent extends NavigationEvent {
+    readonly isSuccess: boolean;
+    readonly webErrorStatus: number;
+}
+
+declare var NavigationCompletedEvent: {
+    prototype: NavigationCompletedEvent;
+    new(): NavigationCompletedEvent;
+}
+
+interface NavigationEvent extends Event {
+    readonly uri: string;
+}
+
+declare var NavigationEvent: {
+    prototype: NavigationEvent;
+    new(): NavigationEvent;
+}
+
+interface NavigationEventWithReferrer extends NavigationEvent {
+    readonly referer: string;
+}
+
+declare var NavigationEventWithReferrer: {
+    prototype: NavigationEventWithReferrer;
+    new(): NavigationEventWithReferrer;
+}
+
+interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
+    readonly appCodeName: string;
+    readonly cookieEnabled: boolean;
+    readonly language: string;
+    readonly maxTouchPoints: number;
+    readonly mimeTypes: MimeTypeArray;
+    readonly msManipulationViewsEnabled: boolean;
+    readonly msMaxTouchPoints: number;
+    readonly msPointerEnabled: boolean;
+    readonly plugins: PluginArray;
+    readonly pointerEnabled: boolean;
+    readonly webdriver: boolean;
+    readonly hardwareConcurrency: number;
+    getGamepads(): Gamepad[];
+    javaEnabled(): boolean;
+    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
+    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
+    vibrate(pattern: number | number[]): boolean;
+}
+
+declare var Navigator: {
+    prototype: Navigator;
+    new(): Navigator;
+}
+
+interface Node extends EventTarget {
+    readonly attributes: NamedNodeMap;
+    readonly baseURI: string | null;
+    readonly childNodes: NodeList;
+    readonly firstChild: Node | null;
+    readonly lastChild: Node | null;
+    readonly localName: string | null;
+    readonly namespaceURI: string | null;
+    readonly nextSibling: Node | null;
+    readonly nodeName: string;
+    readonly nodeType: number;
+    nodeValue: string | null;
+    readonly ownerDocument: Document;
+    readonly parentElement: HTMLElement | null;
+    readonly parentNode: Node | null;
+    readonly previousSibling: Node | null;
+    textContent: string | null;
+    appendChild(newChild: Node): Node;
+    cloneNode(deep?: boolean): Node;
+    compareDocumentPosition(other: Node): number;
+    contains(child: Node): boolean;
+    hasAttributes(): boolean;
+    hasChildNodes(): boolean;
+    insertBefore(newChild: Node, refChild: Node | null): Node;
+    isDefaultNamespace(namespaceURI: string | null): boolean;
+    isEqualNode(arg: Node): boolean;
+    isSameNode(other: Node): boolean;
+    lookupNamespaceURI(prefix: string | null): string | null;
+    lookupPrefix(namespaceURI: string | null): string | null;
+    normalize(): void;
+    removeChild(oldChild: Node): Node;
+    replaceChild(newChild: Node, oldChild: Node): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+declare var Node: {
+    prototype: Node;
+    new(): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+interface NodeFilter {
+    acceptNode(n: Node): number;
+}
+
+declare var NodeFilter: {
+    readonly FILTER_ACCEPT: number;
+    readonly FILTER_REJECT: number;
+    readonly FILTER_SKIP: number;
+    readonly SHOW_ALL: number;
+    readonly SHOW_ATTRIBUTE: number;
+    readonly SHOW_CDATA_SECTION: number;
+    readonly SHOW_COMMENT: number;
+    readonly SHOW_DOCUMENT: number;
+    readonly SHOW_DOCUMENT_FRAGMENT: number;
+    readonly SHOW_DOCUMENT_TYPE: number;
+    readonly SHOW_ELEMENT: number;
+    readonly SHOW_ENTITY: number;
+    readonly SHOW_ENTITY_REFERENCE: number;
+    readonly SHOW_NOTATION: number;
+    readonly SHOW_PROCESSING_INSTRUCTION: number;
+    readonly SHOW_TEXT: number;
+}
+
+interface NodeIterator {
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    detach(): void;
+    nextNode(): Node;
+    previousNode(): Node;
+}
+
+declare var NodeIterator: {
+    prototype: NodeIterator;
+    new(): NodeIterator;
+}
+
+interface NodeList {
+    readonly length: number;
+    item(index: number): Node;
+    [index: number]: Node;
+}
+
+declare var NodeList: {
+    prototype: NodeList;
+    new(): NodeList;
+}
+
+interface OES_element_index_uint {
+}
+
+declare var OES_element_index_uint: {
+    prototype: OES_element_index_uint;
+    new(): OES_element_index_uint;
+}
+
+interface OES_standard_derivatives {
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+declare var OES_standard_derivatives: {
+    prototype: OES_standard_derivatives;
+    new(): OES_standard_derivatives;
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+interface OES_texture_float {
+}
+
+declare var OES_texture_float: {
+    prototype: OES_texture_float;
+    new(): OES_texture_float;
+}
+
+interface OES_texture_float_linear {
+}
+
+declare var OES_texture_float_linear: {
+    prototype: OES_texture_float_linear;
+    new(): OES_texture_float_linear;
+}
+
+interface OfflineAudioCompletionEvent extends Event {
+    readonly renderedBuffer: AudioBuffer;
+}
+
+declare var OfflineAudioCompletionEvent: {
+    prototype: OfflineAudioCompletionEvent;
+    new(): OfflineAudioCompletionEvent;
+}
+
+interface OfflineAudioContextEventMap {
+    "complete": Event;
+}
+
+interface OfflineAudioContext extends AudioContext {
+    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
+    startRendering(): PromiseLike<AudioBuffer>;
+    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OfflineAudioContext: {
+    prototype: OfflineAudioContext;
+    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
+}
+
+interface OscillatorNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface OscillatorNode extends AudioNode {
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
+    type: string;
+    setPeriodicWave(periodicWave: PeriodicWave): void;
+    start(when?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OscillatorNode: {
+    prototype: OscillatorNode;
+    new(): OscillatorNode;
+}
+
+interface OverflowEvent extends UIEvent {
+    readonly horizontalOverflow: boolean;
+    readonly orient: number;
+    readonly verticalOverflow: boolean;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+declare var OverflowEvent: {
+    prototype: OverflowEvent;
+    new(): OverflowEvent;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+interface PageTransitionEvent extends Event {
+    readonly persisted: boolean;
+}
+
+declare var PageTransitionEvent: {
+    prototype: PageTransitionEvent;
+    new(): PageTransitionEvent;
+}
+
+interface PannerNode extends AudioNode {
+    coneInnerAngle: number;
+    coneOuterAngle: number;
+    coneOuterGain: number;
+    distanceModel: string;
+    maxDistance: number;
+    panningModel: string;
+    refDistance: number;
+    rolloffFactor: number;
+    setOrientation(x: number, y: number, z: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var PannerNode: {
+    prototype: PannerNode;
+    new(): PannerNode;
+}
+
+interface PerfWidgetExternal {
+    readonly activeNetworkRequestCount: number;
+    readonly averageFrameTime: number;
+    readonly averagePaintTime: number;
+    readonly extraInformationEnabled: boolean;
+    readonly independentRenderingEnabled: boolean;
+    readonly irDisablingContentString: string;
+    readonly irStatusAvailable: boolean;
+    readonly maxCpuSpeed: number;
+    readonly paintRequestsPerSecond: number;
+    readonly performanceCounter: number;
+    readonly performanceCounterFrequency: number;
+    addEventListener(eventType: string, callback: Function): void;
+    getMemoryUsage(): number;
+    getProcessCpuUsage(): number;
+    getRecentCpuUsage(last: number | null): any;
+    getRecentFrames(last: number | null): any;
+    getRecentMemoryUsage(last: number | null): any;
+    getRecentPaintRequests(last: number | null): any;
+    removeEventListener(eventType: string, callback: Function): void;
+    repositionWindow(x: number, y: number): void;
+    resizeWindow(width: number, height: number): void;
+}
+
+declare var PerfWidgetExternal: {
+    prototype: PerfWidgetExternal;
+    new(): PerfWidgetExternal;
+}
+
+interface Performance {
+    readonly navigation: PerformanceNavigation;
+    readonly timing: PerformanceTiming;
+    clearMarks(markName?: string): void;
+    clearMeasures(measureName?: string): void;
+    clearResourceTimings(): void;
+    getEntries(): any;
+    getEntriesByName(name: string, entryType?: string): any;
+    getEntriesByType(entryType: string): any;
+    getMarks(markName?: string): any;
+    getMeasures(measureName?: string): any;
+    mark(markName: string): void;
+    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
+    now(): number;
+    setResourceTimingBufferSize(maxSize: number): void;
+    toJSON(): any;
+}
+
+declare var Performance: {
+    prototype: Performance;
+    new(): Performance;
+}
+
+interface PerformanceEntry {
+    readonly duration: number;
+    readonly entryType: string;
+    readonly name: string;
+    readonly startTime: number;
+}
+
+declare var PerformanceEntry: {
+    prototype: PerformanceEntry;
+    new(): PerformanceEntry;
+}
+
+interface PerformanceMark extends PerformanceEntry {
+}
+
+declare var PerformanceMark: {
+    prototype: PerformanceMark;
+    new(): PerformanceMark;
+}
+
+interface PerformanceMeasure extends PerformanceEntry {
+}
+
+declare var PerformanceMeasure: {
+    prototype: PerformanceMeasure;
+    new(): PerformanceMeasure;
+}
+
+interface PerformanceNavigation {
+    readonly redirectCount: number;
+    readonly type: number;
+    toJSON(): any;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+declare var PerformanceNavigation: {
+    prototype: PerformanceNavigation;
+    new(): PerformanceNavigation;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+interface PerformanceNavigationTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly navigationStart: number;
+    readonly redirectCount: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly type: string;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+}
+
+declare var PerformanceNavigationTiming: {
+    prototype: PerformanceNavigationTiming;
+    new(): PerformanceNavigationTiming;
+}
+
+interface PerformanceResourceTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly initiatorType: string;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+}
+
+declare var PerformanceResourceTiming: {
+    prototype: PerformanceResourceTiming;
+    new(): PerformanceResourceTiming;
+}
+
+interface PerformanceTiming {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly msFirstPaint: number;
+    readonly navigationStart: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+    readonly secureConnectionStart: number;
+    toJSON(): any;
+}
+
+declare var PerformanceTiming: {
+    prototype: PerformanceTiming;
+    new(): PerformanceTiming;
+}
+
+interface PeriodicWave {
+}
+
+declare var PeriodicWave: {
+    prototype: PeriodicWave;
+    new(): PeriodicWave;
+}
+
+interface PermissionRequest extends DeferredPermissionRequest {
+    readonly state: string;
+    defer(): void;
+}
+
+declare var PermissionRequest: {
+    prototype: PermissionRequest;
+    new(): PermissionRequest;
+}
+
+interface PermissionRequestedEvent extends Event {
+    readonly permissionRequest: PermissionRequest;
+}
+
+declare var PermissionRequestedEvent: {
+    prototype: PermissionRequestedEvent;
+    new(): PermissionRequestedEvent;
+}
+
+interface Plugin {
+    readonly description: string;
+    readonly filename: string;
+    readonly length: number;
+    readonly name: string;
+    readonly version: string;
+    item(index: number): MimeType;
+    namedItem(type: string): MimeType;
+    [index: number]: MimeType;
+}
+
+declare var Plugin: {
+    prototype: Plugin;
+    new(): Plugin;
+}
+
+interface PluginArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(name: string): Plugin;
+    refresh(reload?: boolean): void;
+    [index: number]: Plugin;
+}
+
+declare var PluginArray: {
+    prototype: PluginArray;
+    new(): PluginArray;
+}
+
+interface PointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var PointerEvent: {
+    prototype: PointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
+}
+
+interface PopStateEvent extends Event {
+    readonly state: any;
+    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
+}
+
+declare var PopStateEvent: {
+    prototype: PopStateEvent;
+    new(): PopStateEvent;
+}
+
+interface Position {
+    readonly coords: Coordinates;
+    readonly timestamp: number;
+}
+
+declare var Position: {
+    prototype: Position;
+    new(): Position;
+}
+
+interface PositionError {
+    readonly code: number;
+    readonly message: string;
+    toString(): string;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+declare var PositionError: {
+    prototype: PositionError;
+    new(): PositionError;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+interface ProcessingInstruction extends CharacterData {
+    readonly target: string;
+}
+
+declare var ProcessingInstruction: {
+    prototype: ProcessingInstruction;
+    new(): ProcessingInstruction;
+}
+
+interface ProgressEvent extends Event {
+    readonly lengthComputable: boolean;
+    readonly loaded: number;
+    readonly total: number;
+    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
+}
+
+declare var ProgressEvent: {
+    prototype: ProgressEvent;
+    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
+}
+
+interface RTCDTMFToneChangeEvent extends Event {
+    readonly tone: string;
+}
+
+declare var RTCDTMFToneChangeEvent: {
+    prototype: RTCDTMFToneChangeEvent;
+    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtlsTransportEventMap {
+    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
+    "error": ErrorEvent;
+}
+
+interface RTCDtlsTransport extends RTCStatsProvider {
+    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
+    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
+    readonly state: string;
+    readonly transport: RTCIceTransport;
+    getLocalParameters(): RTCDtlsParameters;
+    getRemoteCertificates(): ArrayBuffer[];
+    getRemoteParameters(): RTCDtlsParameters | null;
+    start(remoteParameters: RTCDtlsParameters): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtlsTransport: {
+    prototype: RTCDtlsTransport;
+    new(transport: RTCIceTransport): RTCDtlsTransport;
+}
+
+interface RTCDtlsTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCDtlsTransportStateChangedEvent: {
+    prototype: RTCDtlsTransportStateChangedEvent;
+    new(): RTCDtlsTransportStateChangedEvent;
+}
+
+interface RTCDtmfSenderEventMap {
+    "tonechange": RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtmfSender extends EventTarget {
+    readonly canInsertDTMF: boolean;
+    readonly duration: number;
+    readonly interToneGap: number;
+    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
+    readonly sender: RTCRtpSender;
+    readonly toneBuffer: string;
+    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
+    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtmfSender: {
+    prototype: RTCDtmfSender;
+    new(sender: RTCRtpSender): RTCDtmfSender;
+}
+
+interface RTCIceCandidatePairChangedEvent extends Event {
+    readonly pair: RTCIceCandidatePair;
+}
+
+declare var RTCIceCandidatePairChangedEvent: {
+    prototype: RTCIceCandidatePairChangedEvent;
+    new(): RTCIceCandidatePairChangedEvent;
+}
+
+interface RTCIceGathererEventMap {
+    "error": ErrorEvent;
+    "localcandidate": RTCIceGathererEvent;
+}
+
+interface RTCIceGatherer extends RTCStatsProvider {
+    readonly component: string;
+    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
+    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
+    createAssociatedGatherer(): RTCIceGatherer;
+    getLocalCandidates(): RTCIceCandidate[];
+    getLocalParameters(): RTCIceParameters;
+    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceGatherer: {
+    prototype: RTCIceGatherer;
+    new(options: RTCIceGatherOptions): RTCIceGatherer;
+}
+
+interface RTCIceGathererEvent extends Event {
+    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
+}
+
+declare var RTCIceGathererEvent: {
+    prototype: RTCIceGathererEvent;
+    new(): RTCIceGathererEvent;
+}
+
+interface RTCIceTransportEventMap {
+    "candidatepairchange": RTCIceCandidatePairChangedEvent;
+    "icestatechange": RTCIceTransportStateChangedEvent;
+}
+
+interface RTCIceTransport extends RTCStatsProvider {
+    readonly component: string;
+    readonly iceGatherer: RTCIceGatherer | null;
+    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
+    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
+    readonly role: string;
+    readonly state: string;
+    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
+    createAssociatedTransport(): RTCIceTransport;
+    getNominatedCandidatePair(): RTCIceCandidatePair | null;
+    getRemoteCandidates(): RTCIceCandidate[];
+    getRemoteParameters(): RTCIceParameters | null;
+    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
+    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceTransport: {
+    prototype: RTCIceTransport;
+    new(): RTCIceTransport;
+}
+
+interface RTCIceTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCIceTransportStateChangedEvent: {
+    prototype: RTCIceTransportStateChangedEvent;
+    new(): RTCIceTransportStateChangedEvent;
+}
+
+interface RTCRtpReceiverEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCRtpReceiver extends RTCStatsProvider {
+    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack | null;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    getContributingSources(): RTCRtpContributingSource[];
+    receive(parameters: RTCRtpParameters): void;
+    requestSendCSRC(csrc: number): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpReceiver: {
+    prototype: RTCRtpReceiver;
+    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCRtpSenderEventMap {
+    "error": ErrorEvent;
+    "ssrcconflict": RTCSsrcConflictEvent;
+}
+
+interface RTCRtpSender extends RTCStatsProvider {
+    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
+    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    send(parameters: RTCRtpParameters): void;
+    setTrack(track: MediaStreamTrack): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpSender: {
+    prototype: RTCRtpSender;
+    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCSrtpSdesTransportEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCSrtpSdesTransport extends EventTarget {
+    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
+    readonly transport: RTCIceTransport;
+    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCSrtpSdesTransport: {
+    prototype: RTCSrtpSdesTransport;
+    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
+    getLocalParameters(): RTCSrtpSdesParameters[];
+}
+
+interface RTCSsrcConflictEvent extends Event {
+    readonly ssrc: number;
+}
+
+declare var RTCSsrcConflictEvent: {
+    prototype: RTCSsrcConflictEvent;
+    new(): RTCSsrcConflictEvent;
+}
+
+interface RTCStatsProvider extends EventTarget {
+    getStats(): PromiseLike<RTCStatsReport>;
+    msGetStats(): PromiseLike<RTCStatsReport>;
+}
+
+declare var RTCStatsProvider: {
+    prototype: RTCStatsProvider;
+    new(): RTCStatsProvider;
+}
+
+interface Range {
+    readonly collapsed: boolean;
+    readonly commonAncestorContainer: Node;
+    readonly endContainer: Node;
+    readonly endOffset: number;
+    readonly startContainer: Node;
+    readonly startOffset: number;
+    cloneContents(): DocumentFragment;
+    cloneRange(): Range;
+    collapse(toStart: boolean): void;
+    compareBoundaryPoints(how: number, sourceRange: Range): number;
+    createContextualFragment(fragment: string): DocumentFragment;
+    deleteContents(): void;
+    detach(): void;
+    expand(Unit: string): boolean;
+    extractContents(): DocumentFragment;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    insertNode(newNode: Node): void;
+    selectNode(refNode: Node): void;
+    selectNodeContents(refNode: Node): void;
+    setEnd(refNode: Node, offset: number): void;
+    setEndAfter(refNode: Node): void;
+    setEndBefore(refNode: Node): void;
+    setStart(refNode: Node, offset: number): void;
+    setStartAfter(refNode: Node): void;
+    setStartBefore(refNode: Node): void;
+    surroundContents(newParent: Node): void;
+    toString(): string;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+declare var Range: {
+    prototype: Range;
+    new(): Range;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly target: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGAElement: {
+    prototype: SVGAElement;
+    new(): SVGAElement;
+}
+
+interface SVGAngle {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+declare var SVGAngle: {
+    prototype: SVGAngle;
+    new(): SVGAngle;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+interface SVGAnimatedAngle {
+    readonly animVal: SVGAngle;
+    readonly baseVal: SVGAngle;
+}
+
+declare var SVGAnimatedAngle: {
+    prototype: SVGAnimatedAngle;
+    new(): SVGAnimatedAngle;
+}
+
+interface SVGAnimatedBoolean {
+    readonly animVal: boolean;
+    baseVal: boolean;
+}
+
+declare var SVGAnimatedBoolean: {
+    prototype: SVGAnimatedBoolean;
+    new(): SVGAnimatedBoolean;
+}
+
+interface SVGAnimatedEnumeration {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedEnumeration: {
+    prototype: SVGAnimatedEnumeration;
+    new(): SVGAnimatedEnumeration;
+}
+
+interface SVGAnimatedInteger {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedInteger: {
+    prototype: SVGAnimatedInteger;
+    new(): SVGAnimatedInteger;
+}
+
+interface SVGAnimatedLength {
+    readonly animVal: SVGLength;
+    readonly baseVal: SVGLength;
+}
+
+declare var SVGAnimatedLength: {
+    prototype: SVGAnimatedLength;
+    new(): SVGAnimatedLength;
+}
+
+interface SVGAnimatedLengthList {
+    readonly animVal: SVGLengthList;
+    readonly baseVal: SVGLengthList;
+}
+
+declare var SVGAnimatedLengthList: {
+    prototype: SVGAnimatedLengthList;
+    new(): SVGAnimatedLengthList;
+}
+
+interface SVGAnimatedNumber {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedNumber: {
+    prototype: SVGAnimatedNumber;
+    new(): SVGAnimatedNumber;
+}
+
+interface SVGAnimatedNumberList {
+    readonly animVal: SVGNumberList;
+    readonly baseVal: SVGNumberList;
+}
+
+declare var SVGAnimatedNumberList: {
+    prototype: SVGAnimatedNumberList;
+    new(): SVGAnimatedNumberList;
+}
+
+interface SVGAnimatedPreserveAspectRatio {
+    readonly animVal: SVGPreserveAspectRatio;
+    readonly baseVal: SVGPreserveAspectRatio;
+}
+
+declare var SVGAnimatedPreserveAspectRatio: {
+    prototype: SVGAnimatedPreserveAspectRatio;
+    new(): SVGAnimatedPreserveAspectRatio;
+}
+
+interface SVGAnimatedRect {
+    readonly animVal: SVGRect;
+    readonly baseVal: SVGRect;
+}
+
+declare var SVGAnimatedRect: {
+    prototype: SVGAnimatedRect;
+    new(): SVGAnimatedRect;
+}
+
+interface SVGAnimatedString {
+    readonly animVal: string;
+    baseVal: string;
+}
+
+declare var SVGAnimatedString: {
+    prototype: SVGAnimatedString;
+    new(): SVGAnimatedString;
+}
+
+interface SVGAnimatedTransformList {
+    readonly animVal: SVGTransformList;
+    readonly baseVal: SVGTransformList;
+}
+
+declare var SVGAnimatedTransformList: {
+    prototype: SVGAnimatedTransformList;
+    new(): SVGAnimatedTransformList;
+}
+
+interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGCircleElement: {
+    prototype: SVGCircleElement;
+    new(): SVGCircleElement;
+}
+
+interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
+    readonly clipPathUnits: SVGAnimatedEnumeration;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGClipPathElement: {
+    prototype: SVGClipPathElement;
+    new(): SVGClipPathElement;
+}
+
+interface SVGComponentTransferFunctionElement extends SVGElement {
+    readonly amplitude: SVGAnimatedNumber;
+    readonly exponent: SVGAnimatedNumber;
+    readonly intercept: SVGAnimatedNumber;
+    readonly offset: SVGAnimatedNumber;
+    readonly slope: SVGAnimatedNumber;
+    readonly tableValues: SVGAnimatedNumberList;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGComponentTransferFunctionElement: {
+    prototype: SVGComponentTransferFunctionElement;
+    new(): SVGComponentTransferFunctionElement;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+}
+
+interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDefsElement: {
+    prototype: SVGDefsElement;
+    new(): SVGDefsElement;
+}
+
+interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDescElement: {
+    prototype: SVGDescElement;
+    new(): SVGDescElement;
+}
+
+interface SVGElementEventMap extends ElementEventMap {
+    "click": MouseEvent;
+    "dblclick": MouseEvent;
+    "focusin": FocusEvent;
+    "focusout": FocusEvent;
+    "load": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+}
+
+interface SVGElement extends Element {
+    onclick: (this: SVGElement, ev: MouseEvent) => any;
+    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
+    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
+    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
+    onload: (this: SVGElement, ev: Event) => any;
+    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
+    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
+    readonly ownerSVGElement: SVGSVGElement;
+    readonly viewportElement: SVGElement;
+    xmlbase: string;
+    className: any;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGElement: {
+    prototype: SVGElement;
+    new(): SVGElement;
+}
+
+interface SVGElementInstance extends EventTarget {
+    readonly childNodes: SVGElementInstanceList;
+    readonly correspondingElement: SVGElement;
+    readonly correspondingUseElement: SVGUseElement;
+    readonly firstChild: SVGElementInstance;
+    readonly lastChild: SVGElementInstance;
+    readonly nextSibling: SVGElementInstance;
+    readonly parentNode: SVGElementInstance;
+    readonly previousSibling: SVGElementInstance;
+}
+
+declare var SVGElementInstance: {
+    prototype: SVGElementInstance;
+    new(): SVGElementInstance;
+}
+
+interface SVGElementInstanceList {
+    readonly length: number;
+    item(index: number): SVGElementInstance;
+}
+
+declare var SVGElementInstanceList: {
+    prototype: SVGElementInstanceList;
+    new(): SVGElementInstanceList;
+}
+
+interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGEllipseElement: {
+    prototype: SVGEllipseElement;
+    new(): SVGEllipseElement;
+}
+
+interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly mode: SVGAnimatedEnumeration;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEBlendElement: {
+    prototype: SVGFEBlendElement;
+    new(): SVGFEBlendElement;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+}
+
+interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly type: SVGAnimatedEnumeration;
+    readonly values: SVGAnimatedNumberList;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEColorMatrixElement: {
+    prototype: SVGFEColorMatrixElement;
+    new(): SVGFEColorMatrixElement;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+}
+
+interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEComponentTransferElement: {
+    prototype: SVGFEComponentTransferElement;
+    new(): SVGFEComponentTransferElement;
+}
+
+interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly k1: SVGAnimatedNumber;
+    readonly k2: SVGAnimatedNumber;
+    readonly k3: SVGAnimatedNumber;
+    readonly k4: SVGAnimatedNumber;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFECompositeElement: {
+    prototype: SVGFECompositeElement;
+    new(): SVGFECompositeElement;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+}
+
+interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly bias: SVGAnimatedNumber;
+    readonly divisor: SVGAnimatedNumber;
+    readonly edgeMode: SVGAnimatedEnumeration;
+    readonly in1: SVGAnimatedString;
+    readonly kernelMatrix: SVGAnimatedNumberList;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly orderX: SVGAnimatedInteger;
+    readonly orderY: SVGAnimatedInteger;
+    readonly preserveAlpha: SVGAnimatedBoolean;
+    readonly targetX: SVGAnimatedInteger;
+    readonly targetY: SVGAnimatedInteger;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEConvolveMatrixElement: {
+    prototype: SVGFEConvolveMatrixElement;
+    new(): SVGFEConvolveMatrixElement;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+}
+
+interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly diffuseConstant: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDiffuseLightingElement: {
+    prototype: SVGFEDiffuseLightingElement;
+    new(): SVGFEDiffuseLightingElement;
+}
+
+interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly scale: SVGAnimatedNumber;
+    readonly xChannelSelector: SVGAnimatedEnumeration;
+    readonly yChannelSelector: SVGAnimatedEnumeration;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDisplacementMapElement: {
+    prototype: SVGFEDisplacementMapElement;
+    new(): SVGFEDisplacementMapElement;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+}
+
+interface SVGFEDistantLightElement extends SVGElement {
+    readonly azimuth: SVGAnimatedNumber;
+    readonly elevation: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDistantLightElement: {
+    prototype: SVGFEDistantLightElement;
+    new(): SVGFEDistantLightElement;
+}
+
+interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEFloodElement: {
+    prototype: SVGFEFloodElement;
+    new(): SVGFEFloodElement;
+}
+
+interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncAElement: {
+    prototype: SVGFEFuncAElement;
+    new(): SVGFEFuncAElement;
+}
+
+interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncBElement: {
+    prototype: SVGFEFuncBElement;
+    new(): SVGFEFuncBElement;
+}
+
+interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncGElement: {
+    prototype: SVGFEFuncGElement;
+    new(): SVGFEFuncGElement;
+}
+
+interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncRElement: {
+    prototype: SVGFEFuncRElement;
+    new(): SVGFEFuncRElement;
+}
+
+interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly stdDeviationX: SVGAnimatedNumber;
+    readonly stdDeviationY: SVGAnimatedNumber;
+    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEGaussianBlurElement: {
+    prototype: SVGFEGaussianBlurElement;
+    new(): SVGFEGaussianBlurElement;
+}
+
+interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEImageElement: {
+    prototype: SVGFEImageElement;
+    new(): SVGFEImageElement;
+}
+
+interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeElement: {
+    prototype: SVGFEMergeElement;
+    new(): SVGFEMergeElement;
+}
+
+interface SVGFEMergeNodeElement extends SVGElement {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeNodeElement: {
+    prototype: SVGFEMergeNodeElement;
+    new(): SVGFEMergeNodeElement;
+}
+
+interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly radiusX: SVGAnimatedNumber;
+    readonly radiusY: SVGAnimatedNumber;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMorphologyElement: {
+    prototype: SVGFEMorphologyElement;
+    new(): SVGFEMorphologyElement;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+}
+
+interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly dx: SVGAnimatedNumber;
+    readonly dy: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEOffsetElement: {
+    prototype: SVGFEOffsetElement;
+    new(): SVGFEOffsetElement;
+}
+
+interface SVGFEPointLightElement extends SVGElement {
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEPointLightElement: {
+    prototype: SVGFEPointLightElement;
+    new(): SVGFEPointLightElement;
+}
+
+interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly specularConstant: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpecularLightingElement: {
+    prototype: SVGFESpecularLightingElement;
+    new(): SVGFESpecularLightingElement;
+}
+
+interface SVGFESpotLightElement extends SVGElement {
+    readonly limitingConeAngle: SVGAnimatedNumber;
+    readonly pointsAtX: SVGAnimatedNumber;
+    readonly pointsAtY: SVGAnimatedNumber;
+    readonly pointsAtZ: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpotLightElement: {
+    prototype: SVGFESpotLightElement;
+    new(): SVGFESpotLightElement;
+}
+
+interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETileElement: {
+    prototype: SVGFETileElement;
+    new(): SVGFETileElement;
+}
+
+interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly baseFrequencyX: SVGAnimatedNumber;
+    readonly baseFrequencyY: SVGAnimatedNumber;
+    readonly numOctaves: SVGAnimatedInteger;
+    readonly seed: SVGAnimatedNumber;
+    readonly stitchTiles: SVGAnimatedEnumeration;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETurbulenceElement: {
+    prototype: SVGFETurbulenceElement;
+    new(): SVGFETurbulenceElement;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+}
+
+interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
+    readonly filterResX: SVGAnimatedInteger;
+    readonly filterResY: SVGAnimatedInteger;
+    readonly filterUnits: SVGAnimatedEnumeration;
+    readonly height: SVGAnimatedLength;
+    readonly primitiveUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    setFilterRes(filterResX: number, filterResY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFilterElement: {
+    prototype: SVGFilterElement;
+    new(): SVGFilterElement;
+}
+
+interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGForeignObjectElement: {
+    prototype: SVGForeignObjectElement;
+    new(): SVGForeignObjectElement;
+}
+
+interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGElement: {
+    prototype: SVGGElement;
+    new(): SVGGElement;
+}
+
+interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
+    readonly gradientTransform: SVGAnimatedTransformList;
+    readonly gradientUnits: SVGAnimatedEnumeration;
+    readonly spreadMethod: SVGAnimatedEnumeration;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGradientElement: {
+    prototype: SVGGradientElement;
+    new(): SVGGradientElement;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+}
+
+interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly height: SVGAnimatedLength;
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGImageElement: {
+    prototype: SVGImageElement;
+    new(): SVGImageElement;
+}
+
+interface SVGLength {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+declare var SVGLength: {
+    prototype: SVGLength;
+    new(): SVGLength;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+interface SVGLengthList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGLength): SVGLength;
+    clear(): void;
+    getItem(index: number): SVGLength;
+    initialize(newItem: SVGLength): SVGLength;
+    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
+    removeItem(index: number): SVGLength;
+    replaceItem(newItem: SVGLength, index: number): SVGLength;
+}
+
+declare var SVGLengthList: {
+    prototype: SVGLengthList;
+    new(): SVGLengthList;
+}
+
+interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGLineElement: {
+    prototype: SVGLineElement;
+    new(): SVGLineElement;
+}
+
+interface SVGLinearGradientElement extends SVGGradientElement {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+}
+
+declare var SVGLinearGradientElement: {
+    prototype: SVGLinearGradientElement;
+    new(): SVGLinearGradientElement;
+}
+
+interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    readonly markerHeight: SVGAnimatedLength;
+    readonly markerUnits: SVGAnimatedEnumeration;
+    readonly markerWidth: SVGAnimatedLength;
+    readonly orientAngle: SVGAnimatedAngle;
+    readonly orientType: SVGAnimatedEnumeration;
+    readonly refX: SVGAnimatedLength;
+    readonly refY: SVGAnimatedLength;
+    setOrientToAngle(angle: SVGAngle): void;
+    setOrientToAuto(): void;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMarkerElement: {
+    prototype: SVGMarkerElement;
+    new(): SVGMarkerElement;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+}
+
+interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly maskContentUnits: SVGAnimatedEnumeration;
+    readonly maskUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMaskElement: {
+    prototype: SVGMaskElement;
+    new(): SVGMaskElement;
+}
+
+interface SVGMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    flipX(): SVGMatrix;
+    flipY(): SVGMatrix;
+    inverse(): SVGMatrix;
+    multiply(secondMatrix: SVGMatrix): SVGMatrix;
+    rotate(angle: number): SVGMatrix;
+    rotateFromVector(x: number, y: number): SVGMatrix;
+    scale(scaleFactor: number): SVGMatrix;
+    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
+    skewX(angle: number): SVGMatrix;
+    skewY(angle: number): SVGMatrix;
+    translate(x: number, y: number): SVGMatrix;
+}
+
+declare var SVGMatrix: {
+    prototype: SVGMatrix;
+    new(): SVGMatrix;
+}
+
+interface SVGMetadataElement extends SVGElement {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMetadataElement: {
+    prototype: SVGMetadataElement;
+    new(): SVGMetadataElement;
+}
+
+interface SVGNumber {
+    value: number;
+}
+
+declare var SVGNumber: {
+    prototype: SVGNumber;
+    new(): SVGNumber;
+}
+
+interface SVGNumberList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGNumber): SVGNumber;
+    clear(): void;
+    getItem(index: number): SVGNumber;
+    initialize(newItem: SVGNumber): SVGNumber;
+    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
+    removeItem(index: number): SVGNumber;
+    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
+}
+
+declare var SVGNumberList: {
+    prototype: SVGNumberList;
+    new(): SVGNumberList;
+}
+
+interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
+    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
+    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
+    createSVGPathSegClosePath(): SVGPathSegClosePath;
+    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
+    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
+    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
+    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
+    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
+    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
+    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
+    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
+    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
+    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
+    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
+    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
+    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
+    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
+    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
+    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
+    getPathSegAtLength(distance: number): number;
+    getPointAtLength(distance: number): SVGPoint;
+    getTotalLength(): number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPathElement: {
+    prototype: SVGPathElement;
+    new(): SVGPathElement;
+}
+
+interface SVGPathSeg {
+    readonly pathSegType: number;
+    readonly pathSegTypeAsLetter: string;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+declare var SVGPathSeg: {
+    prototype: SVGPathSeg;
+    new(): SVGPathSeg;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+interface SVGPathSegArcAbs extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcAbs: {
+    prototype: SVGPathSegArcAbs;
+    new(): SVGPathSegArcAbs;
+}
+
+interface SVGPathSegArcRel extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcRel: {
+    prototype: SVGPathSegArcRel;
+    new(): SVGPathSegArcRel;
+}
+
+interface SVGPathSegClosePath extends SVGPathSeg {
+}
+
+declare var SVGPathSegClosePath: {
+    prototype: SVGPathSegClosePath;
+    new(): SVGPathSegClosePath;
+}
+
+interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicAbs: {
+    prototype: SVGPathSegCurvetoCubicAbs;
+    new(): SVGPathSegCurvetoCubicAbs;
+}
+
+interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicRel: {
+    prototype: SVGPathSegCurvetoCubicRel;
+    new(): SVGPathSegCurvetoCubicRel;
+}
+
+interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothAbs: {
+    prototype: SVGPathSegCurvetoCubicSmoothAbs;
+    new(): SVGPathSegCurvetoCubicSmoothAbs;
+}
+
+interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothRel: {
+    prototype: SVGPathSegCurvetoCubicSmoothRel;
+    new(): SVGPathSegCurvetoCubicSmoothRel;
+}
+
+interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticAbs: {
+    prototype: SVGPathSegCurvetoQuadraticAbs;
+    new(): SVGPathSegCurvetoQuadraticAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticRel: {
+    prototype: SVGPathSegCurvetoQuadraticRel;
+    new(): SVGPathSegCurvetoQuadraticRel;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
+    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothRel: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
+    new(): SVGPathSegCurvetoQuadraticSmoothRel;
+}
+
+interface SVGPathSegLinetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoAbs: {
+    prototype: SVGPathSegLinetoAbs;
+    new(): SVGPathSegLinetoAbs;
+}
+
+interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalAbs: {
+    prototype: SVGPathSegLinetoHorizontalAbs;
+    new(): SVGPathSegLinetoHorizontalAbs;
+}
+
+interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalRel: {
+    prototype: SVGPathSegLinetoHorizontalRel;
+    new(): SVGPathSegLinetoHorizontalRel;
+}
+
+interface SVGPathSegLinetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoRel: {
+    prototype: SVGPathSegLinetoRel;
+    new(): SVGPathSegLinetoRel;
+}
+
+interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalAbs: {
+    prototype: SVGPathSegLinetoVerticalAbs;
+    new(): SVGPathSegLinetoVerticalAbs;
+}
+
+interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalRel: {
+    prototype: SVGPathSegLinetoVerticalRel;
+    new(): SVGPathSegLinetoVerticalRel;
+}
+
+interface SVGPathSegList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPathSeg): SVGPathSeg;
+    clear(): void;
+    getItem(index: number): SVGPathSeg;
+    initialize(newItem: SVGPathSeg): SVGPathSeg;
+    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
+    removeItem(index: number): SVGPathSeg;
+    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
+}
+
+declare var SVGPathSegList: {
+    prototype: SVGPathSegList;
+    new(): SVGPathSegList;
+}
+
+interface SVGPathSegMovetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoAbs: {
+    prototype: SVGPathSegMovetoAbs;
+    new(): SVGPathSegMovetoAbs;
+}
+
+interface SVGPathSegMovetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoRel: {
+    prototype: SVGPathSegMovetoRel;
+    new(): SVGPathSegMovetoRel;
+}
+
+interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly patternContentUnits: SVGAnimatedEnumeration;
+    readonly patternTransform: SVGAnimatedTransformList;
+    readonly patternUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPatternElement: {
+    prototype: SVGPatternElement;
+    new(): SVGPatternElement;
+}
+
+interface SVGPoint {
+    x: number;
+    y: number;
+    matrixTransform(matrix: SVGMatrix): SVGPoint;
+}
+
+declare var SVGPoint: {
+    prototype: SVGPoint;
+    new(): SVGPoint;
+}
+
+interface SVGPointList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPoint): SVGPoint;
+    clear(): void;
+    getItem(index: number): SVGPoint;
+    initialize(newItem: SVGPoint): SVGPoint;
+    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
+    removeItem(index: number): SVGPoint;
+    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
+}
+
+declare var SVGPointList: {
+    prototype: SVGPointList;
+    new(): SVGPointList;
+}
+
+interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolygonElement: {
+    prototype: SVGPolygonElement;
+    new(): SVGPolygonElement;
+}
+
+interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolylineElement: {
+    prototype: SVGPolylineElement;
+    new(): SVGPolylineElement;
+}
+
+interface SVGPreserveAspectRatio {
+    align: number;
+    meetOrSlice: number;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+declare var SVGPreserveAspectRatio: {
+    prototype: SVGPreserveAspectRatio;
+    new(): SVGPreserveAspectRatio;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+interface SVGRadialGradientElement extends SVGGradientElement {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly fx: SVGAnimatedLength;
+    readonly fy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+}
+
+declare var SVGRadialGradientElement: {
+    prototype: SVGRadialGradientElement;
+    new(): SVGRadialGradientElement;
+}
+
+interface SVGRect {
+    height: number;
+    width: number;
+    x: number;
+    y: number;
+}
+
+declare var SVGRect: {
+    prototype: SVGRect;
+    new(): SVGRect;
+}
+
+interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGRectElement: {
+    prototype: SVGRectElement;
+    new(): SVGRectElement;
+}
+
+interface SVGSVGElementEventMap extends SVGElementEventMap {
+    "SVGAbort": Event;
+    "SVGError": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "SVGUnload": Event;
+    "SVGZoom": SVGZoomEvent;
+}
+
+interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    contentScriptType: string;
+    contentStyleType: string;
+    currentScale: number;
+    readonly currentTranslate: SVGPoint;
+    readonly height: SVGAnimatedLength;
+    onabort: (this: SVGSVGElement, ev: Event) => any;
+    onerror: (this: SVGSVGElement, ev: Event) => any;
+    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
+    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
+    onunload: (this: SVGSVGElement, ev: Event) => any;
+    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
+    readonly pixelUnitToMillimeterX: number;
+    readonly pixelUnitToMillimeterY: number;
+    readonly screenPixelToMillimeterX: number;
+    readonly screenPixelToMillimeterY: number;
+    readonly viewport: SVGRect;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
+    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
+    createSVGAngle(): SVGAngle;
+    createSVGLength(): SVGLength;
+    createSVGMatrix(): SVGMatrix;
+    createSVGNumber(): SVGNumber;
+    createSVGPoint(): SVGPoint;
+    createSVGRect(): SVGRect;
+    createSVGTransform(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    deselectAll(): void;
+    forceRedraw(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getCurrentTime(): number;
+    getElementById(elementId: string): Element;
+    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    pauseAnimations(): void;
+    setCurrentTime(seconds: number): void;
+    suspendRedraw(maxWaitMilliseconds: number): number;
+    unpauseAnimations(): void;
+    unsuspendRedraw(suspendHandleID: number): void;
+    unsuspendRedrawAll(): void;
+    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSVGElement: {
+    prototype: SVGSVGElement;
+    new(): SVGSVGElement;
+}
+
+interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGScriptElement: {
+    prototype: SVGScriptElement;
+    new(): SVGScriptElement;
+}
+
+interface SVGStopElement extends SVGElement, SVGStylable {
+    readonly offset: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStopElement: {
+    prototype: SVGStopElement;
+    new(): SVGStopElement;
+}
+
+interface SVGStringList {
+    readonly numberOfItems: number;
+    appendItem(newItem: string): string;
+    clear(): void;
+    getItem(index: number): string;
+    initialize(newItem: string): string;
+    insertItemBefore(newItem: string, index: number): string;
+    removeItem(index: number): string;
+    replaceItem(newItem: string, index: number): string;
+}
+
+declare var SVGStringList: {
+    prototype: SVGStringList;
+    new(): SVGStringList;
+}
+
+interface SVGStyleElement extends SVGElement, SVGLangSpace {
+    disabled: boolean;
+    media: string;
+    title: string;
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStyleElement: {
+    prototype: SVGStyleElement;
+    new(): SVGStyleElement;
+}
+
+interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSwitchElement: {
+    prototype: SVGSwitchElement;
+    new(): SVGSwitchElement;
+}
+
+interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSymbolElement: {
+    prototype: SVGSymbolElement;
+    new(): SVGSymbolElement;
+}
+
+interface SVGTSpanElement extends SVGTextPositioningElement {
+}
+
+declare var SVGTSpanElement: {
+    prototype: SVGTSpanElement;
+    new(): SVGTSpanElement;
+}
+
+interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
+    readonly lengthAdjust: SVGAnimatedEnumeration;
+    readonly textLength: SVGAnimatedLength;
+    getCharNumAtPosition(point: SVGPoint): number;
+    getComputedTextLength(): number;
+    getEndPositionOfChar(charnum: number): SVGPoint;
+    getExtentOfChar(charnum: number): SVGRect;
+    getNumberOfChars(): number;
+    getRotationOfChar(charnum: number): number;
+    getStartPositionOfChar(charnum: number): SVGPoint;
+    getSubStringLength(charnum: number, nchars: number): number;
+    selectSubString(charnum: number, nchars: number): void;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTextContentElement: {
+    prototype: SVGTextContentElement;
+    new(): SVGTextContentElement;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+}
+
+interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
+}
+
+declare var SVGTextElement: {
+    prototype: SVGTextElement;
+    new(): SVGTextElement;
+}
+
+interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
+    readonly method: SVGAnimatedEnumeration;
+    readonly spacing: SVGAnimatedEnumeration;
+    readonly startOffset: SVGAnimatedLength;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+declare var SVGTextPathElement: {
+    prototype: SVGTextPathElement;
+    new(): SVGTextPathElement;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+interface SVGTextPositioningElement extends SVGTextContentElement {
+    readonly dx: SVGAnimatedLengthList;
+    readonly dy: SVGAnimatedLengthList;
+    readonly rotate: SVGAnimatedNumberList;
+    readonly x: SVGAnimatedLengthList;
+    readonly y: SVGAnimatedLengthList;
+}
+
+declare var SVGTextPositioningElement: {
+    prototype: SVGTextPositioningElement;
+    new(): SVGTextPositioningElement;
+}
+
+interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTitleElement: {
+    prototype: SVGTitleElement;
+    new(): SVGTitleElement;
+}
+
+interface SVGTransform {
+    readonly angle: number;
+    readonly matrix: SVGMatrix;
+    readonly type: number;
+    setMatrix(matrix: SVGMatrix): void;
+    setRotate(angle: number, cx: number, cy: number): void;
+    setScale(sx: number, sy: number): void;
+    setSkewX(angle: number): void;
+    setSkewY(angle: number): void;
+    setTranslate(tx: number, ty: number): void;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+declare var SVGTransform: {
+    prototype: SVGTransform;
+    new(): SVGTransform;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+interface SVGTransformList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGTransform): SVGTransform;
+    clear(): void;
+    consolidate(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    getItem(index: number): SVGTransform;
+    initialize(newItem: SVGTransform): SVGTransform;
+    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
+    removeItem(index: number): SVGTransform;
+    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
+}
+
+declare var SVGTransformList: {
+    prototype: SVGTransformList;
+    new(): SVGTransformList;
+}
+
+interface SVGUnitTypes {
+    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
+    readonly SVG_UNIT_TYPE_UNKNOWN: number;
+    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
+}
+declare var SVGUnitTypes: SVGUnitTypes;
+
+interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly animatedInstanceRoot: SVGElementInstance;
+    readonly height: SVGAnimatedLength;
+    readonly instanceRoot: SVGElementInstance;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGUseElement: {
+    prototype: SVGUseElement;
+    new(): SVGUseElement;
+}
+
+interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    readonly viewTarget: SVGStringList;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGViewElement: {
+    prototype: SVGViewElement;
+    new(): SVGViewElement;
+}
+
+interface SVGZoomAndPan {
+    readonly zoomAndPan: number;
+}
+
+declare var SVGZoomAndPan: {
+    readonly SVG_ZOOMANDPAN_DISABLE: number;
+    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
+    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
+}
+
+interface SVGZoomEvent extends UIEvent {
+    readonly newScale: number;
+    readonly newTranslate: SVGPoint;
+    readonly previousScale: number;
+    readonly previousTranslate: SVGPoint;
+    readonly zoomRectScreen: SVGRect;
+}
+
+declare var SVGZoomEvent: {
+    prototype: SVGZoomEvent;
+    new(): SVGZoomEvent;
+}
+
+interface ScreenEventMap {
+    "MSOrientationChange": Event;
+}
+
+interface Screen extends EventTarget {
+    readonly availHeight: number;
+    readonly availWidth: number;
+    bufferDepth: number;
+    readonly colorDepth: number;
+    readonly deviceXDPI: number;
+    readonly deviceYDPI: number;
+    readonly fontSmoothingEnabled: boolean;
+    readonly height: number;
+    readonly logicalXDPI: number;
+    readonly logicalYDPI: number;
+    readonly msOrientation: string;
+    onmsorientationchange: (this: Screen, ev: Event) => any;
+    readonly pixelDepth: number;
+    readonly systemXDPI: number;
+    readonly systemYDPI: number;
+    readonly width: number;
+    msLockOrientation(orientations: string | string[]): boolean;
+    msUnlockOrientation(): void;
+    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Screen: {
+    prototype: Screen;
+    new(): Screen;
+}
+
+interface ScriptNotifyEvent extends Event {
+    readonly callingUri: string;
+    readonly value: string;
+}
+
+declare var ScriptNotifyEvent: {
+    prototype: ScriptNotifyEvent;
+    new(): ScriptNotifyEvent;
+}
+
+interface ScriptProcessorNodeEventMap {
+    "audioprocess": AudioProcessingEvent;
+}
+
+interface ScriptProcessorNode extends AudioNode {
+    readonly bufferSize: number;
+    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
+    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ScriptProcessorNode: {
+    prototype: ScriptProcessorNode;
+    new(): ScriptProcessorNode;
+}
+
+interface Selection {
+    readonly anchorNode: Node;
+    readonly anchorOffset: number;
+    readonly focusNode: Node;
+    readonly focusOffset: number;
+    readonly isCollapsed: boolean;
+    readonly rangeCount: number;
+    readonly type: string;
+    addRange(range: Range): void;
+    collapse(parentNode: Node, offset: number): void;
+    collapseToEnd(): void;
+    collapseToStart(): void;
+    containsNode(node: Node, partlyContained: boolean): boolean;
+    deleteFromDocument(): void;
+    empty(): void;
+    extend(newNode: Node, offset: number): void;
+    getRangeAt(index: number): Range;
+    removeAllRanges(): void;
+    removeRange(range: Range): void;
+    selectAllChildren(parentNode: Node): void;
+    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
+    toString(): string;
+}
+
+declare var Selection: {
+    prototype: Selection;
+    new(): Selection;
+}
+
+interface SourceBuffer extends EventTarget {
+    appendWindowEnd: number;
+    appendWindowStart: number;
+    readonly audioTracks: AudioTrackList;
+    readonly buffered: TimeRanges;
+    mode: string;
+    timestampOffset: number;
+    readonly updating: boolean;
+    readonly videoTracks: VideoTrackList;
+    abort(): void;
+    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
+    appendStream(stream: MSStream, maxSize?: number): void;
+    remove(start: number, end: number): void;
+}
+
+declare var SourceBuffer: {
+    prototype: SourceBuffer;
+    new(): SourceBuffer;
+}
+
+interface SourceBufferList extends EventTarget {
+    readonly length: number;
+    item(index: number): SourceBuffer;
+    [index: number]: SourceBuffer;
+}
+
+declare var SourceBufferList: {
+    prototype: SourceBufferList;
+    new(): SourceBufferList;
+}
+
+interface StereoPannerNode extends AudioNode {
+    readonly pan: AudioParam;
+}
+
+declare var StereoPannerNode: {
+    prototype: StereoPannerNode;
+    new(): StereoPannerNode;
+}
+
+interface Storage {
+    readonly length: number;
+    clear(): void;
+    getItem(key: string): string | null;
+    key(index: number): string | null;
+    removeItem(key: string): void;
+    setItem(key: string, data: string): void;
+    [key: string]: any;
+    [index: number]: string;
+}
+
+declare var Storage: {
+    prototype: Storage;
+    new(): Storage;
+}
+
+interface StorageEvent extends Event {
+    readonly url: string;
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    storageArea?: Storage;
+}
+
+declare var StorageEvent: {
+    prototype: StorageEvent;
+    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
+}
+
+interface StyleMedia {
+    readonly type: string;
+    matchMedium(mediaquery: string): boolean;
+}
+
+declare var StyleMedia: {
+    prototype: StyleMedia;
+    new(): StyleMedia;
+}
+
+interface StyleSheet {
+    disabled: boolean;
+    readonly href: string;
+    readonly media: MediaList;
+    readonly ownerNode: Node;
+    readonly parentStyleSheet: StyleSheet;
+    readonly title: string;
+    readonly type: string;
+}
+
+declare var StyleSheet: {
+    prototype: StyleSheet;
+    new(): StyleSheet;
+}
+
+interface StyleSheetList {
+    readonly length: number;
+    item(index?: number): StyleSheet;
+    [index: number]: StyleSheet;
+}
+
+declare var StyleSheetList: {
+    prototype: StyleSheetList;
+    new(): StyleSheetList;
+}
+
+interface StyleSheetPageList {
+    readonly length: number;
+    item(index: number): CSSPageRule;
+    [index: number]: CSSPageRule;
+}
+
+declare var StyleSheetPageList: {
+    prototype: StyleSheetPageList;
+    new(): StyleSheetPageList;
+}
+
+interface SubtleCrypto {
+    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
+    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
+    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
+    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
+    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
+    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
+    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
+    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
+    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
+    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
+    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
+    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
+}
+
+declare var SubtleCrypto: {
+    prototype: SubtleCrypto;
+    new(): SubtleCrypto;
+}
+
+interface Text extends CharacterData {
+    readonly wholeText: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    splitText(offset: number): Text;
+}
+
+declare var Text: {
+    prototype: Text;
+    new(): Text;
+}
+
+interface TextEvent extends UIEvent {
+    readonly data: string;
+    readonly inputMethod: number;
+    readonly locale: string;
+    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+declare var TextEvent: {
+    prototype: TextEvent;
+    new(): TextEvent;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+interface TextMetrics {
+    readonly width: number;
+}
+
+declare var TextMetrics: {
+    prototype: TextMetrics;
+    new(): TextMetrics;
+}
+
+interface TextTrackEventMap {
+    "cuechange": Event;
+    "error": ErrorEvent;
+    "load": Event;
+}
+
+interface TextTrack extends EventTarget {
+    readonly activeCues: TextTrackCueList;
+    readonly cues: TextTrackCueList;
+    readonly inBandMetadataTrackDispatchType: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly language: string;
+    mode: any;
+    oncuechange: (this: TextTrack, ev: Event) => any;
+    onerror: (this: TextTrack, ev: ErrorEvent) => any;
+    onload: (this: TextTrack, ev: Event) => any;
+    readonly readyState: number;
+    addCue(cue: TextTrackCue): void;
+    removeCue(cue: TextTrackCue): void;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrack: {
+    prototype: TextTrack;
+    new(): TextTrack;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+}
+
+interface TextTrackCueEventMap {
+    "enter": Event;
+    "exit": Event;
+}
+
+interface TextTrackCue extends EventTarget {
+    endTime: number;
+    id: string;
+    onenter: (this: TextTrackCue, ev: Event) => any;
+    onexit: (this: TextTrackCue, ev: Event) => any;
+    pauseOnExit: boolean;
+    startTime: number;
+    text: string;
+    readonly track: TextTrack;
+    getCueAsHTML(): DocumentFragment;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrackCue: {
+    prototype: TextTrackCue;
+    new(startTime: number, endTime: number, text: string): TextTrackCue;
+}
+
+interface TextTrackCueList {
+    readonly length: number;
+    getCueById(id: string): TextTrackCue;
+    item(index: number): TextTrackCue;
+    [index: number]: TextTrackCue;
+}
+
+declare var TextTrackCueList: {
+    prototype: TextTrackCueList;
+    new(): TextTrackCueList;
+}
+
+interface TextTrackListEventMap {
+    "addtrack": TrackEvent;
+}
+
+interface TextTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
+    item(index: number): TextTrack;
+    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: TextTrack;
+}
+
+declare var TextTrackList: {
+    prototype: TextTrackList;
+    new(): TextTrackList;
+}
+
+interface TimeRanges {
+    readonly length: number;
+    end(index: number): number;
+    start(index: number): number;
+}
+
+declare var TimeRanges: {
+    prototype: TimeRanges;
+    new(): TimeRanges;
+}
+
+interface Touch {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly identifier: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly target: EventTarget;
+}
+
+declare var Touch: {
+    prototype: Touch;
+    new(): Touch;
+}
+
+interface TouchEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly changedTouches: TouchList;
+    readonly ctrlKey: boolean;
+    readonly metaKey: boolean;
+    readonly shiftKey: boolean;
+    readonly targetTouches: TouchList;
+    readonly touches: TouchList;
+}
+
+declare var TouchEvent: {
+    prototype: TouchEvent;
+    new(): TouchEvent;
+}
+
+interface TouchList {
+    readonly length: number;
+    item(index: number): Touch | null;
+    [index: number]: Touch;
+}
+
+declare var TouchList: {
+    prototype: TouchList;
+    new(): TouchList;
+}
+
+interface TrackEvent extends Event {
+    readonly track: any;
+}
+
+declare var TrackEvent: {
+    prototype: TrackEvent;
+    new(): TrackEvent;
+}
+
+interface TransitionEvent extends Event {
+    readonly elapsedTime: number;
+    readonly propertyName: string;
+    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var TransitionEvent: {
+    prototype: TransitionEvent;
+    new(): TransitionEvent;
+}
+
+interface TreeWalker {
+    currentNode: Node;
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    firstChild(): Node;
+    lastChild(): Node;
+    nextNode(): Node;
+    nextSibling(): Node;
+    parentNode(): Node;
+    previousNode(): Node;
+    previousSibling(): Node;
+}
+
+declare var TreeWalker: {
+    prototype: TreeWalker;
+    new(): TreeWalker;
+}
+
+interface UIEvent extends Event {
+    readonly detail: number;
+    readonly view: Window;
+    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
+}
+
+declare var UIEvent: {
+    prototype: UIEvent;
+    new(type: string, eventInitDict?: UIEventInit): UIEvent;
+}
+
+interface URL {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    password: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    username: string;
+    toString(): string;
+}
+
+declare var URL: {
+    prototype: URL;
+    new(url: string, base?: string): URL;
+    createObjectURL(object: any, options?: ObjectURLOptions): string;
+    revokeObjectURL(url: string): void;
+}
+
+interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
+    readonly mediaType: string;
+}
+
+declare var UnviewableContentIdentifiedEvent: {
+    prototype: UnviewableContentIdentifiedEvent;
+    new(): UnviewableContentIdentifiedEvent;
+}
+
+interface ValidityState {
+    readonly badInput: boolean;
+    readonly customError: boolean;
+    readonly patternMismatch: boolean;
+    readonly rangeOverflow: boolean;
+    readonly rangeUnderflow: boolean;
+    readonly stepMismatch: boolean;
+    readonly tooLong: boolean;
+    readonly typeMismatch: boolean;
+    readonly valid: boolean;
+    readonly valueMissing: boolean;
+}
+
+declare var ValidityState: {
+    prototype: ValidityState;
+    new(): ValidityState;
+}
+
+interface VideoPlaybackQuality {
+    readonly corruptedVideoFrames: number;
+    readonly creationTime: number;
+    readonly droppedVideoFrames: number;
+    readonly totalFrameDelay: number;
+    readonly totalVideoFrames: number;
+}
+
+declare var VideoPlaybackQuality: {
+    prototype: VideoPlaybackQuality;
+    new(): VideoPlaybackQuality;
+}
+
+interface VideoTrack {
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    selected: boolean;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var VideoTrack: {
+    prototype: VideoTrack;
+    new(): VideoTrack;
+}
+
+interface VideoTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface VideoTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    onchange: (this: VideoTrackList, ev: Event) => any;
+    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    readonly selectedIndex: number;
+    getTrackById(id: string): VideoTrack | null;
+    item(index: number): VideoTrack;
+    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: VideoTrack;
+}
+
+declare var VideoTrackList: {
+    prototype: VideoTrackList;
+    new(): VideoTrackList;
+}
+
+interface WEBGL_compressed_texture_s3tc {
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+declare var WEBGL_compressed_texture_s3tc: {
+    prototype: WEBGL_compressed_texture_s3tc;
+    new(): WEBGL_compressed_texture_s3tc;
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+interface WEBGL_debug_renderer_info {
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+declare var WEBGL_debug_renderer_info: {
+    prototype: WEBGL_debug_renderer_info;
+    new(): WEBGL_debug_renderer_info;
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+interface WEBGL_depth_texture {
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+declare var WEBGL_depth_texture: {
+    prototype: WEBGL_depth_texture;
+    new(): WEBGL_depth_texture;
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+interface WaveShaperNode extends AudioNode {
+    curve: Float32Array | null;
+    oversample: string;
+}
+
+declare var WaveShaperNode: {
+    prototype: WaveShaperNode;
+    new(): WaveShaperNode;
+}
+
+interface WebGLActiveInfo {
+    readonly name: string;
+    readonly size: number;
+    readonly type: number;
+}
+
+declare var WebGLActiveInfo: {
+    prototype: WebGLActiveInfo;
+    new(): WebGLActiveInfo;
+}
+
+interface WebGLBuffer extends WebGLObject {
+}
+
+declare var WebGLBuffer: {
+    prototype: WebGLBuffer;
+    new(): WebGLBuffer;
+}
+
+interface WebGLContextEvent extends Event {
+    readonly statusMessage: string;
+}
+
+declare var WebGLContextEvent: {
+    prototype: WebGLContextEvent;
+    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
+}
+
+interface WebGLFramebuffer extends WebGLObject {
+}
+
+declare var WebGLFramebuffer: {
+    prototype: WebGLFramebuffer;
+    new(): WebGLFramebuffer;
+}
+
+interface WebGLObject {
+}
+
+declare var WebGLObject: {
+    prototype: WebGLObject;
+    new(): WebGLObject;
+}
+
+interface WebGLProgram extends WebGLObject {
+}
+
+declare var WebGLProgram: {
+    prototype: WebGLProgram;
+    new(): WebGLProgram;
+}
+
+interface WebGLRenderbuffer extends WebGLObject {
+}
+
+declare var WebGLRenderbuffer: {
+    prototype: WebGLRenderbuffer;
+    new(): WebGLRenderbuffer;
+}
+
+interface WebGLRenderingContext {
+    readonly canvas: HTMLCanvasElement;
+    readonly drawingBufferHeight: number;
+    readonly drawingBufferWidth: number;
+    activeTexture(texture: number): void;
+    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
+    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
+    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
+    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
+    bindTexture(target: number, texture: WebGLTexture | null): void;
+    blendColor(red: number, green: number, blue: number, alpha: number): void;
+    blendEquation(mode: number): void;
+    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
+    blendFunc(sfactor: number, dfactor: number): void;
+    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
+    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
+    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
+    checkFramebufferStatus(target: number): number;
+    clear(mask: number): void;
+    clearColor(red: number, green: number, blue: number, alpha: number): void;
+    clearDepth(depth: number): void;
+    clearStencil(s: number): void;
+    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
+    compileShader(shader: WebGLShader | null): void;
+    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
+    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
+    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
+    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
+    createBuffer(): WebGLBuffer | null;
+    createFramebuffer(): WebGLFramebuffer | null;
+    createProgram(): WebGLProgram | null;
+    createRenderbuffer(): WebGLRenderbuffer | null;
+    createShader(type: number): WebGLShader | null;
+    createTexture(): WebGLTexture | null;
+    cullFace(mode: number): void;
+    deleteBuffer(buffer: WebGLBuffer | null): void;
+    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
+    deleteProgram(program: WebGLProgram | null): void;
+    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
+    deleteShader(shader: WebGLShader | null): void;
+    deleteTexture(texture: WebGLTexture | null): void;
+    depthFunc(func: number): void;
+    depthMask(flag: boolean): void;
+    depthRange(zNear: number, zFar: number): void;
+    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    disable(cap: number): void;
+    disableVertexAttribArray(index: number): void;
+    drawArrays(mode: number, first: number, count: number): void;
+    drawElements(mode: number, count: number, type: number, offset: number): 
void;
+    enable(cap: number): void;
+    enableVertexAttribArray(index: number): void;
+    finish(): void;
+    flush(): void;
+    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
+    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
+    frontFace(mode: number): void;
+    generateMipmap(target: number): void;
+    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
+    getAttribLocation(program: WebGLProgram | null, name: string): number;
+    getBufferParameter(target: number, pname: number): any;
+    getContextAttributes(): WebGLContextAttributes;
+    getError(): number;
+    getExtension(name: string): any;
+    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
+    getParameter(pname: number): any;
+    getProgramInfoLog(program: WebGLProgram | null): string | null;
+    getProgramParameter(program: WebGLProgram | null, pname: number): any;
+    getRenderbufferParameter(target: number, pname: number): any;
+    getShaderInfoLog(shader: WebGLShader | null): string | null;
+    getShaderParameter(shader: WebGLShader | null, pname: number): any;
+    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
+    getShaderSource(shader: WebGLShader | null): string | null;
+    getSupportedExtensions(): string[] | null;
+    getTexParameter(target: number, pname: number): any;
+    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
+    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
+    getVertexAttrib(index: number, pname: number): any;
+    getVertexAttribOffset(index: number, pname: number): number;
+    hint(target: number, mode: number): void;
+    isBuffer(buffer: WebGLBuffer | null): boolean;
+    isContextLost(): boolean;
+    isEnabled(cap: number): boolean;
+    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
+    isProgram(program: WebGLProgram | null): boolean;
+    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
+    isShader(shader: WebGLShader | null): boolean;
+    isTexture(texture: WebGLTexture | null): boolean;
+    lineWidth(width: number): void;
+    linkProgram(program: WebGLProgram | null): void;
+    pixelStorei(pname: number, param: number): void;
+    polygonOffset(factor: number, units: number): void;
+    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
+    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
+    sampleCoverage(value: number, invert: boolean): void;
+    scissor(x: number, y: number, width: number, height: number): void;
+    shaderSource(shader: WebGLShader | null, source: string): void;
+    stencilFunc(func: number, ref: number, mask: number): void;
+    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
+    stencilMask(mask: number): void;
+    stencilMaskSeparate(face: number, mask: number): void;
+    stencilOp(fail: number, zfail: number, zpass: number): void;
+    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
+    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
+    texParameterf(target: number, pname: number, param: number): void;
+    texParameteri(target: number, pname: number, param: number): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
+    uniform1f(location: WebGLUniformLocation | null, x: number): void;
+    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform1i(location: WebGLUniformLocation | null, x: number): void;
+    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    useProgram(program: WebGLProgram | null): void;
+    validateProgram(program: WebGLProgram | null): void;
+    vertexAttrib1f(indx: number, x: number): void;
+    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib2f(indx: number, x: number, y: number): void;
+    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
+    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
+    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
+    viewport(x: number, y: number, width: number, height: number): void;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+declare var WebGLRenderingContext: {
+    prototype: WebGLRenderingContext;
+    new(): WebGLRenderingContext;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+interface WebGLShader extends WebGLObject {
+}
+
+declare var WebGLShader: {
+    prototype: WebGLShader;
+    new(): WebGLShader;
+}
+
+interface WebGLShaderPrecisionFormat {
+    readonly precision: number;
+    readonly rangeMax: number;
+    readonly rangeMin: number;
+}
+
+declare var WebGLShaderPrecisionFormat: {
+    prototype: WebGLShaderPrecisionFormat;
+    new(): WebGLShaderPrecisionFormat;
+}
+
+interface WebGLTexture extends WebGLObject {
+}
+
+declare var WebGLTexture: {
+    prototype: WebGLTexture;
+    new(): WebGLTexture;
+}
+
+interface WebGLUniformLocation {
+}
+
+declare var WebGLUniformLocation: {
+    prototype: WebGLUniformLocation;
+    new(): WebGLUniformLocation;
+}
+
+interface WebKitCSSMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    m11: number;
+    m12: number;
+    m13: number;
+    m14: number;
+    m21: number;
+    m22: number;
+    m23: number;
+    m24: number;
+    m31: number;
+    m32: number;
+    m33: number;
+    m34: number;
+    m41: number;
+    m42: number;
+    m43: number;
+    m44: number;
+    inverse(): WebKitCSSMatrix;
+    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
+    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
+    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
+    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
+    setMatrixValue(value: string): void;
+    skewX(angle: number): WebKitCSSMatrix;
+    skewY(angle: number): WebKitCSSMatrix;
+    toString(): string;
+    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
+}
+
+declare var WebKitCSSMatrix: {
+    prototype: WebKitCSSMatrix;
+    new(text?: string): WebKitCSSMatrix;
+}
+
+interface WebKitPoint {
+    x: number;
+    y: number;
+}
+
+declare var WebKitPoint: {
+    prototype: WebKitPoint;
+    new(x?: number, y?: number): WebKitPoint;
+}
+
+interface WebSocketEventMap {
+    "close": CloseEvent;
+    "error": ErrorEvent;
+    "message": MessageEvent;
+    "open": Event;
+}
+
+interface WebSocket extends EventTarget {
+    binaryType: string;
+    readonly bufferedAmount: number;
+    readonly extensions: string;
+    onclose: (this: WebSocket, ev: CloseEvent) => any;
+    onerror: (this: WebSocket, ev: ErrorEvent) => any;
+    onmessage: (this: WebSocket, ev: MessageEvent) => any;
+    onopen: (this: WebSocket, ev: Event) => any;
+    readonly protocol: string;
+    readonly readyState: number;
+    readonly url: string;
+    close(code?: number, reason?: string): void;
+    send(data: any): void;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var WebSocket: {
+    prototype: WebSocket;
+    new(url: string, protocols?: string | string[]): WebSocket;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+}
+
+interface WheelEvent extends MouseEvent {
+    readonly deltaMode: number;
+    readonly deltaX: number;
+    readonly deltaY: number;
+    readonly deltaZ: number;
+    readonly wheelDelta: number;
+    readonly wheelDeltaX: number;
+    readonly wheelDeltaY: number;
+    getCurrentPoint(element: Element): void;
+    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+declare var WheelEvent: {
+    prototype: WheelEvent;
+    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+interface WindowEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "compassneedscalibration": Event;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "devicelight": DeviceLightEvent;
+    "devicemotion": DeviceMotionEvent;
+    "deviceorientation": DeviceOrientationEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "message": MessageEvent;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "popstate": PopStateEvent;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "stalled": Event;
+    "storage": StorageEvent;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "unload": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
+    readonly applicationCache: ApplicationCache;
+    readonly clientInformation: Navigator;
+    readonly closed: boolean;
+    readonly crypto: Crypto;
+    defaultStatus: string;
+    readonly devicePixelRatio: number;
+    readonly doNotTrack: string;
+    readonly document: Document;
+    event: Event | undefined;
+    readonly external: External;
+    readonly frameElement: Element;
+    readonly frames: Window;
+    readonly history: History;
+    readonly innerHeight: number;
+    readonly innerWidth: number;
+    readonly length: number;
+    readonly location: Location;
+    readonly locationbar: BarProp;
+    readonly menubar: BarProp;
+    readonly msCredentials: MSCredentials;
+    name: string;
+    readonly navigator: Navigator;
+    offscreenBuffering: string | boolean;
+    onabort: (this: Window, ev: UIEvent) => any;
+    onafterprint: (this: Window, ev: Event) => any;
+    onbeforeprint: (this: Window, ev: Event) => any;
+    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+    onblur: (this: Window, ev: FocusEvent) => any;
+    oncanplay: (this: Window, ev: Event) => any;
+    oncanplaythrough: (this: Window, ev: Event) => any;
+    onchange: (this: Window, ev: Event) => any;
+    onclick: (this: Window, ev: MouseEvent) => any;
+    oncompassneedscalibration: (this: Window, ev: Event) => any;
+    oncontextmenu: (this: Window, ev: PointerEvent) => any;
+    ondblclick: (this: Window, ev: MouseEvent) => any;
+    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
+    ondrag: (this: Window, ev: DragEvent) => any;
+    ondragend: (this: Window, ev: DragEvent) => any;
+    ondragenter: (this: Window, ev: DragEvent) => any;
+    ondragleave: (this: Window, ev: DragEvent) => any;
+    ondragover: (this: Window, ev: DragEvent) => any;
+    ondragstart: (this: Window, ev: DragEvent) => any;
+    ondrop: (this: Window, ev: DragEvent) => any;
+    ondurationchange: (this: Window, ev: Event) => any;
+    onemptied: (this: Window, ev: Event) => any;
+    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+    onerror: ErrorEventHandler;
+    onfocus: (this: Window, ev: FocusEvent) => any;
+    onhashchange: (this: Window, ev: HashChangeEvent) => any;
+    oninput: (this: Window, ev: Event) => any;
+    oninvalid: (this: Window, ev: Event) => any;
+    onkeydown: (this: Window, ev: KeyboardEvent) => any;
+    onkeypress: (this: Window, ev: KeyboardEvent) => any;
+    onkeyup: (this: Window, ev: KeyboardEvent) => any;
+    onload: (this: Window, ev: Event) => any;
+    onloadeddata: (this: Window, ev: Event) => any;
+    onloadedmetadata: (this: Window, ev: Event) => any;
+    onloadstart: (this: Window, ev: Event) => any;
+    onmessage: (this: Window, ev: MessageEvent) => any;
+    onmousedown: (this: Window, ev: MouseEvent) => any;
+    onmouseenter: (this: Window, ev: MouseEvent) => any;
+    onmouseleave: (this: Window, ev: MouseEvent) => any;
+    onmousemove: (this: Window, ev: MouseEvent) => any;
+    onmouseout: (this: Window, ev: MouseEvent) => any;
+    onmouseover: (this: Window, ev: MouseEvent) => any;
+    onmouseup: (this: Window, ev: MouseEvent) => any;
+    onmousewheel: (this: Window, ev: WheelEvent) => any;
+    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+    onoffline: (this: Window, ev: Event) => any;
+    ononline: (this: Window, ev: Event) => any;
+    onorientationchange: (this: Window, ev: Event) => any;
+    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+    onpause: (this: Window, ev: Event) => any;
+    onplay: (this: Window, ev: Event) => any;
+    onplaying: (this: Window, ev: Event) => any;
+    onpopstate: (this: Window, ev: PopStateEvent) => any;
+    onprogress: (this: Window, ev: ProgressEvent) => any;
+    onratechange: (this: Window, ev: Event) => any;
+    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+    onreset: (this: Window, ev: Event) => any;
+    onresize: (this: Window, ev: UIEvent) => any;
+    onscroll: (this: Window, ev: UIEvent) => any;
+    onseeked: (this: Window, ev: Event) => any;
+    onseeking: (this: Window, ev: Event) => any;
+    onselect: (this: Window, ev: UIEvent) => any;
+    onstalled: (this: Window, ev: Event) => any;
+    onstorage: (this: Window, ev: StorageEvent) => any;
+    onsubmit: (this: Window, ev: Event) => any;
+    onsuspend: (this: Window, ev: Event) => any;
+    ontimeupdate: (this: Window, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onunload: (this: Window, ev: Event) => any;
+    onvolumechange: (this: Window, ev: Event) => any;
+    onwaiting: (this: Window, ev: Event) => any;
+    opener: any;
+    orientation: string | number;
+    readonly outerHeight: number;
+    readonly outerWidth: number;
+    readonly pageXOffset: number;
+    readonly pageYOffset: number;
+    readonly parent: Window;
+    readonly performance: Performance;
+    readonly personalbar: BarProp;
+    readonly screen: Screen;
+    readonly screenLeft: number;
+    readonly screenTop: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly scrollX: number;
+    readonly scrollY: number;
+    readonly scrollbars: BarProp;
+    readonly self: Window;
+    status: string;
+    readonly statusbar: BarProp;
+    readonly styleMedia: StyleMedia;
+    readonly toolbar: BarProp;
+    readonly top: Window;
+    readonly window: Window;
+    URL: typeof URL;
+    Blob: typeof Blob;
+    alert(message?: any): void;
+    blur(): void;
+    cancelAnimationFrame(handle: number): void;
+    captureEvents(): void;
+    close(): void;
+    confirm(message?: string): boolean;
+    focus(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
+    getSelection(): Selection;
+    matchMedia(mediaQuery: string): MediaQueryList;
+    moveBy(x?: number, y?: number): void;
+    moveTo(x?: number, y?: number): void;
+    msWriteProfilerMark(profilerMarkName: string): void;
+    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
+    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
+    print(): void;
+    prompt(message?: string, _default?: string): string | null;
+    releaseEvents(): void;
+    requestAnimationFrame(callback: FrameRequestCallback): number;
+    resizeBy(x?: number, y?: number): void;
+    resizeTo(x?: number, y?: number): void;
+    scroll(x?: number, y?: number): void;
+    scrollBy(x?: number, y?: number): void;
+    scrollTo(x?: number, y?: number): void;
+    webkitCancelAnimationFrame(handle: number): void;
+    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
+    scroll(options?: ScrollToOptions): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollBy(options?: ScrollToOptions): void;
+    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Window: {
+    prototype: Window;
+    new(): Window;
+}
+
+interface WorkerEventMap extends AbstractWorkerEventMap {
+    "message": MessageEvent;
+}
+
+interface Worker extends EventTarget, AbstractWorker {
+    onmessage: (this: Worker, ev: MessageEvent) => any;
+    postMessage(message: any, ports?: any): void;
+    terminate(): void;
+    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Worker: {
+    prototype: Worker;
+    new(stringUrl: string): Worker;
+}
+
+interface XMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLDocument: {
+    prototype: XMLDocument;
+    new(): XMLDocument;
+}
+
+interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
+    "readystatechange": Event;
+}
+
+interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
+    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
+    readonly readyState: number;
+    readonly response: any;
+    readonly responseText: string;
+    responseType: string;
+    readonly responseXML: any;
+    readonly status: number;
+    readonly statusText: string;
+    timeout: number;
+    readonly upload: XMLHttpRequestUpload;
+    withCredentials: boolean;
+    msCaching?: string;
+    readonly responseURL: string;
+    abort(): void;
+    getAllResponseHeaders(): string;
+    getResponseHeader(header: string): string | null;
+    msCachingEnabled(): boolean;
+    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
+    overrideMimeType(mime: string): void;
+    send(data?: Document): void;
+    send(data?: string): void;
+    send(data?: any): void;
+    setRequestHeader(header: string, value: string): void;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequest: {
+    prototype: XMLHttpRequest;
+    new(): XMLHttpRequest;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    create(): XMLHttpRequest;
+}
+
+interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequestUpload: {
+    prototype: XMLHttpRequestUpload;
+    new(): XMLHttpRequestUpload;
+}
+
+interface XMLSerializer {
+    serializeToString(target: Node): string;
+}
+
+declare var XMLSerializer: {
+    prototype: XMLSerializer;
+    new(): XMLSerializer;
+}
+
+interface XPathEvaluator {
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver?: Node): XPathNSResolver;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+}
+
+declare var XPathEvaluator: {
+    prototype: XPathEvaluator;
+    new(): XPathEvaluator;
+}
+
+interface XPathExpression {
+    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
+}
+
+declare var XPathExpression: {
+    prototype: XPathExpression;
+    new(): XPathExpression;
+}
+
+interface XPathNSResolver {
+    lookupNamespaceURI(prefix: string): string;
+}
+
+declare var XPathNSResolver: {
+    prototype: XPathNSResolver;
+    new(): XPathNSResolver;
+}
+
+interface XPathResult {
+    readonly booleanValue: boolean;
+    readonly invalidIteratorState: boolean;
+    readonly numberValue: number;
+    readonly resultType: number;
+    readonly singleNodeValue: Node;
+    readonly snapshotLength: number;
+    readonly stringValue: string;
+    iterateNext(): Node;
+    snapshotItem(index: number): Node;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+declare var XPathResult: {
+    prototype: XPathResult;
+    new(): XPathResult;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+interface XSLTProcessor {
+    clearParameters(): void;
+    getParameter(namespaceURI: string, localName: string): any;
+    importStylesheet(style: Node): void;
+    removeParameter(namespaceURI: string, localName: string): void;
+    reset(): void;
+    setParameter(namespaceURI: string, localName: string, value: any): void;
+    transformToDocument(source: Node): Document;
+    transformToFragment(source: Node, document: Document): DocumentFragment;
+}
+
+declare var XSLTProcessor: {
+    prototype: XSLTProcessor;
+    new(): XSLTProcessor;
+}
+
+interface AbstractWorkerEventMap {
+    "error": ErrorEvent;
+}
+
+interface AbstractWorker {
+    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
+    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface CanvasPathMethods {
+    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
+    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
+    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
+    closePath(): void;
+    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+    lineTo(x: number, y: number): void;
+    moveTo(x: number, y: number): void;
+    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+    rect(x: number, y: number, w: number, h: number): void;
+}
+
+interface ChildNode {
+    remove(): void;
+}
+
+interface DOML2DeprecatedColorProperty {
+    color: string;
+}
+
+interface DOML2DeprecatedSizeProperty {
+    size: number;
+}
+
+interface DocumentEvent {
+    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
+    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
+    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
+    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
+    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
+    createEvent(eventInterface:"CloseEvent"): CloseEvent;
+    createEvent(eventInterface:"CommandEvent"): CommandEvent;
+    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
+    createEvent(eventInterface:"CustomEvent"): CustomEvent;
+    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
+    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:"GamepadEvent"): GamepadEvent;
+    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
+    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
+    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
+    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
+    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
+    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
+    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
+    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
+    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
+    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
+    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
+    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
+    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
+    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
+    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
+    createEvent(eventInterface:"MessageEvent"): MessageEvent;
+    createEvent(eventInterface:"MouseEvent"): MouseEvent;
+    createEvent(eventInterface:"MouseEvents"): MouseEvent;
+    createEvent(eventInterface:"MutationEvent"): MutationEvent;
+    createEvent(eventInterface:"MutationEvents"): MutationEvent;
+    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
+    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
+    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
+    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
+    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
+    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
+    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
+    createEvent(eventInterface:"PointerEvent"): PointerEvent;
+    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
+    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
+    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
+    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
+    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
+    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
+    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
+    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
+    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
+    createEvent(eventInterface:"StorageEvent"): StorageEvent;
+    createEvent(eventInterface:"TextEvent"): TextEvent;
+    createEvent(eventInterface:"TouchEvent"): TouchEvent;
+    createEvent(eventInterface:"TrackEvent"): TrackEvent;
+    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
+    createEvent(eventInterface:"UIEvent"): UIEvent;
+    createEvent(eventInterface:"UIEvents"): UIEvent;
+    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
+    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
+    createEvent(eventInterface:"WheelEvent"): WheelEvent;
+    createEvent(eventInterface: string): Event;
+}
+
+interface ElementTraversal {
+    readonly childElementCount: number;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly nextElementSibling: Element;
+    readonly previousElementSibling: Element;
+}
+
+interface GetSVGDocument {
+    getSVGDocument(): Document;
+}
+
+interface GlobalEventHandlersEventMap {
+    "pointercancel": PointerEvent;
+    "pointerdown": PointerEvent;
+    "pointerenter": PointerEvent;
+    "pointerleave": PointerEvent;
+    "pointermove": PointerEvent;
+    "pointerout": PointerEvent;
+    "pointerover": PointerEvent;
+    "pointerup": PointerEvent;
+    "wheel": WheelEvent;
+}
+
+interface GlobalEventHandlers {
+    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
+    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
+      */
+    ch: string;
+    /**
+      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
+      */
+    chOff: string;
+    /**
+      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
+      */
+    vAlign: string;
+}
+
+interface IDBEnvironment {
+    readonly indexedDB: IDBFactory;
+}
+
+interface LinkStyle {
+    readonly sheet: StyleSheet;
+}
+
+interface MSBaseReaderEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+}
+
+interface MSBaseReader {
+    onabort: (this: MSBaseReader, ev: Event) => any;
+    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
+    onload: (this: MSBaseReader, ev: Event) => any;
+    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
+    onloadstart: (this: MSBaseReader, ev: Event) => any;
+    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    abort(): void;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface MSFileSaver {
+    msSaveBlob(blob: any, defaultName?: string): boolean;
+    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
+}
+
+interface MSNavigatorDoNotTrack {
+    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
+    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
+    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
+    removeWebWideTrackingException(args: ExceptionInformation): void;
+    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
+    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
+}
+
+interface NavigatorContentUtils {
+}
+
+interface NavigatorGeolocation {
+    readonly geolocation: Geolocation;
+}
+
+interface NavigatorID {
+    readonly appName: string;
+    readonly appVersion: string;
+    readonly platform: string;
+    readonly product: string;
+    readonly productSub: string;
+    readonly userAgent: string;
+    readonly vendor: string;
+    readonly vendorSub: string;
+}
+
+interface NavigatorOnLine {
+    readonly onLine: boolean;
+}
+
+interface NavigatorStorageUtils {
+}
+
+interface NavigatorUserMedia {
+    readonly mediaDevices: MediaDevices;
+    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
+}
+
+interface NodeSelector {
+    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
+    querySelector(selectors: string): Element | null;
+    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
+    querySelectorAll(selectors: string): NodeListOf<Element>;
+}
+
+interface RandomSource {
+    getRandomValues(array: ArrayBufferView): ArrayBufferView;
+}
+
+interface SVGAnimatedPathData {
+    readonly pathSegList: SVGPathSegList;
+}
+
+interface SVGAnimatedPoints {
+    readonly animatedPoints: SVGPointList;
+    readonly points: SVGPointList;
+}
+
+interface SVGExternalResourcesRequired {
+    readonly externalResourcesRequired: SVGAnimatedBoolean;
+}
+
+interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
+    readonly height: SVGAnimatedLength;
+    readonly result: SVGAnimatedString;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+}
+
+interface SVGFitToViewBox {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly viewBox: SVGAnimatedRect;
+}
+
+interface SVGLangSpace {
+    xmllang: string;
+    xmlspace: string;
+}
+
+interface SVGLocatable {
+    readonly farthestViewportElement: SVGElement;
+    readonly nearestViewportElement: SVGElement;
+    getBBox(): SVGRect;
+    getCTM(): SVGMatrix;
+    getScreenCTM(): SVGMatrix;
+    getTransformToElement(element: SVGElement): SVGMatrix;
+}
+
+interface SVGStylable {
+    className: any;
+    readonly style: CSSStyleDeclaration;
+}
+
+interface SVGTests {
+    readonly requiredExtensions: SVGStringList;
+    readonly requiredFeatures: SVGStringList;
+    readonly systemLanguage: SVGStringList;
+    hasExtension(extension: string): boolean;
+}
+
+interface SVGTransformable extends SVGLocatable {
+    readonly transform: SVGAnimatedTransformList;
+}
+
+interface SVGURIReference {
+    readonly href: SVGAnimatedString;
+}
+
+interface WindowBase64 {
+    atob(encodedString: string): string;
+    btoa(rawString: string): string;
+}
+
+interface WindowConsole {
+    readonly console: Console;
+}
+
+interface WindowLocalStorage {
+    readonly localStorage: Storage;
+}
+
+interface WindowSessionStorage {
+    readonly sessionStorage: Storage;
+}
+
+interface WindowTimers extends Object, WindowTimersExtension {
+    clearInterval(handle: number): void;
+    clearTimeout(handle: number): void;
+    setInterval(handler: (...args: any[]) => void, timeout: number): number;
+    setInterval(handler: any, timeout?: any, ...args: any[]): number;
+    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
+    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
+}
+
+interface WindowTimersExtension {
+    clearImmediate(handle: number): void;
+    setImmediate(handler: (...args: any[]) => void): number;
+    setImmediate(handler: any, ...args: any[]): number;
+}
+
+interface XMLHttpRequestEventTargetEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+    "timeout": ProgressEvent;
+}
+
+interface XMLHttpRequestEventTarget {
+    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
+    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface StorageEventInit extends EventInit {
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    url: string;
+    storageArea?: Storage;
+}
+
+interface Canvas2DContextAttributes {
+    alpha?: boolean;
+    willReadFrequently?: boolean;
+    storage?: boolean;
+    [attribute: string]: boolean | string | undefined;
+}
+
+interface NodeListOf<TNode extends Node> extends NodeList {
+    length: number;
+    item(index: number): TNode;
+    [index: number]: TNode;
+}
+
+interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
+    item(index: number): T;
+    namedItem(name: string): T;
+    [index: number]: T;
+}
+
+interface BlobPropertyBag {
+    type?: string;
+    endings?: string;
+}
+
+interface FilePropertyBag {
+    type?: string;
+    lastModified?: number;
+}
+
+interface EventListenerObject {
+    handleEvent(evt: Event): void;
+}
+
+interface MessageEventInit extends EventInit {
+    data?: any;
+    origin?: string;
+    lastEventId?: string;
+    channel?: string;
+    source?: any;
+    ports?: MessagePort[];
+}
+
+interface ProgressEventInit extends EventInit {
+    lengthComputable?: boolean;
+    loaded?: number;
+    total?: number;
+}
+
+interface ScrollOptions {
+    behavior?: ScrollBehavior;
+}
+
+interface ScrollToOptions extends ScrollOptions {
+    left?: number;
+    top?: number;
+}
+
+interface ScrollIntoViewOptions extends ScrollOptions {
+    block?: ScrollLogicalPosition;
+    inline?: ScrollLogicalPosition;
+}
+
+interface ClipboardEventInit extends EventInit {
+    data?: string;
+    dataType?: string;
+}
+
+interface IDBArrayKey extends Array<IDBValidKey> {
+}
+
+interface RsaKeyGenParams extends Algorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyGenParams extends RsaKeyGenParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaKeyAlgorithm extends KeyAlgorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaHashedImportParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaPssParams {
+    saltLength: number;
+}
+
+interface RsaOaepParams extends Algorithm {
+    label?: BufferSource;
+}
+
+interface EcdsaParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface EcKeyGenParams extends Algorithm {
+    namedCurve: string;
+}
+
+interface EcKeyAlgorithm extends KeyAlgorithm {
+    typedCurve: string;
+}
+
+interface EcKeyImportParams {
+    namedCurve: string;
+}
+
+interface EcdhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface AesCtrParams extends Algorithm {
+    counter: BufferSource;
+    length: number;
+}
+
+interface AesKeyAlgorithm extends KeyAlgorithm {
+    length: number;
+}
+
+interface AesKeyGenParams extends Algorithm {
+    length: number;
+}
+
+interface AesDerivedKeyParams extends Algorithm {
+    length: number;
+}
+
+interface AesCbcParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface AesCmacParams extends Algorithm {
+    length: number;
+}
+
+interface AesGcmParams extends Algorithm {
+    iv: BufferSource;
+    additionalData?: BufferSource;
+    tagLength?: number;
+}
+
+interface AesCfbParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface HmacImportParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface HmacKeyAlgorithm extends KeyAlgorithm {
+    hash: AlgorithmIdentifier;
+    length: number;
+}
+
+interface HmacKeyGenParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface DhKeyGenParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyAlgorithm extends KeyAlgorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface DhImportKeyParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface ConcatParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    algorithmId: Uint8Array;
+    partyUInfo: Uint8Array;
+    partyVInfo: Uint8Array;
+    publicInfo?: Uint8Array;
+    privateInfo?: Uint8Array;
+}
+
+interface HkdfCtrParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    label: BufferSource;
+    context: BufferSource;
+}
+
+interface Pbkdf2Params extends Algorithm {
+    salt: BufferSource;
+    iterations: number;
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaOtherPrimesInfo {
+    r: string;
+    d: string;
+    t: string;
+}
+
+interface JsonWebKey {
+    kty: string;
+    use?: string;
+    key_ops?: string[];
+    alg?: string;
+    kid?: string;
+    x5u?: string;
+    x5c?: string;
+    x5t?: string;
+    ext?: boolean;
+    crv?: string;
+    x?: string;
+    y?: string;
+    d?: string;
+    n?: string;
+    e?: string;
+    p?: string;
+    q?: string;
+    dp?: string;
+    dq?: string;
+    qi?: string;
+    oth?: RsaOtherPrimesInfo[];
+    k?: string;
+}
+
+interface ParentNode {
+    readonly children: HTMLCollection;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly childElementCount: number;
+}
+
+interface DocumentOrShadowRoot {
+    readonly activeElement: Element | null;
+    readonly stylesheets: StyleSheetList;
+    getSelection(): Selection | null;
+    elementFromPoint(x: number, y: number): Element | null;
+    elementsFromPoint(x: number, y: number): Element[];
+}
+
+interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
+    readonly host: Element;
+    innerHTML: string;
+}
+
+interface ShadowRootInit {
+    mode: 'open'|'closed';
+    delegatesFocus?: boolean;
+}
+
+interface HTMLSlotElement extends HTMLElement {
+    name: string;
+    assignedNodes(options?: AssignedNodesOptions): Node[];
+}
+
+interface AssignedNodesOptions {
+    flatten?: boolean;
+}
+
+declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
+
+interface ErrorEventHandler {
+    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
+}
+interface PositionCallback {
+    (position: Position): void;
+}
+interface PositionErrorCallback {
+    (error: PositionError): void;
+}
+interface MediaQueryListListener {
+    (mql: MediaQueryList): void;
+}
+interface MSLaunchUriCallback {
+    (): void;
+}
+interface FrameRequestCallback {
+    (time: number): void;
+}
+interface MSUnsafeFunctionCallback {
+    (): any;
+}
+interface MSExecAtPriorityFunctionCallback {
+    (...args: any[]): any;
+}
+interface MutationCallback {
+    (mutations: MutationRecord[], observer: MutationObserver): void;
+}
+interface DecodeSuccessCallback {
+    (decodedData: AudioBuffer): void;
+}
+interface DecodeErrorCallback {
+    (error: DOMException): void;
+}
+interface FunctionStringCallback {
+    (data: string): void;
+}
+interface NavigatorUserMediaSuccessCallback {
+    (stream: MediaStream): void;
+}
+interface NavigatorUserMediaErrorCallback {
+    (error: MediaStreamError): void;
+}
+interface ForEachCallback {
+    (keyId: any, status: string): void;
+}
+interface HTMLElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "audio": HTMLAudioElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "del": HTMLModElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "embed": HTMLEmbedElement;
+    "fieldset": HTMLFieldSetElement;
+    "font": HTMLFontElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "h1": HTMLHeadingElement;
+    "h2": HTMLHeadingElement;
+    "h3": HTMLHeadingElement;
+    "h4": HTMLHeadingElement;
+    "h5": HTMLHeadingElement;
+    "h6": HTMLHeadingElement;
+    "head": HTMLHeadElement;
+    "hr": HTMLHRElement;
+    "html": HTMLHtmlElement;
+    "iframe": HTMLIFrameElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "marquee": HTMLMarqueeElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "meter": HTMLMeterElement;
+    "nextid": HTMLUnknownElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "picture": HTMLPictureElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "script": HTMLScriptElement;
+    "select": HTMLSelectElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "style": HTMLStyleElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "ul": HTMLUListElement;
+    "video": HTMLVideoElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "abbr": HTMLElement;
+    "acronym": HTMLElement;
+    "address": HTMLElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "article": HTMLElement;
+    "aside": HTMLElement;
+    "audio": HTMLAudioElement;
+    "b": HTMLElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "bdo": HTMLElement;
+    "big": HTMLElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "center": HTMLElement;
+    "circle": SVGCircleElement;
+    "cite": HTMLElement;
+    "clippath": SVGClipPathElement;
+    "code": HTMLElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "dd": HTMLElement;
+    "defs": SVGDefsElement;
+    "del": HTMLModElement;
+    "desc": SVGDescElement;
+    "dfn": HTMLElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "dt": HTMLElement;
+    "ellipse": SVGEllipseElement;
+    "em": HTMLElement;
+    "embed": HTMLEmbedElement;
+    "feblend": SVGFEBlendElement;
+    "fecolormatrix": SVGFEColorMatrixElement;
+    "fecomponenttransfer": SVGFEComponentTransferElement;
+    "fecomposite": SVGFECompositeElement;
+    "feconvolvematrix": SVGFEConvolveMatrixElement;
+    "fediffuselighting": SVGFEDiffuseLightingElement;
+    "fedisplacementmap": SVGFEDisplacementMapElement;
+    "fedistantlight": SVGFEDistantLightElement;
+    "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;
+    "fieldset": HTMLFieldSetElement;
+    "figcaption": HTMLElement;
+    "figure": HTMLElement;
+    "filter": SVGFilterElement;
+    "font": HTMLFontElement;
+    "footer": HTMLElement;
+    "foreignobject": SVGForeignObjectElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "g": SVGGElement;
+    "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;
+    "image": SVGImageElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "kbd": HTMLElement;
+    "keygen": HTMLElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "line": SVGLineElement;
+    "lineargradient": SVGLinearGradientElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "mark": HTMLElement;
+    "marker": SVGMarkerElement;
+    "marquee": HTMLMarqueeElement;
+    "mask": SVGMaskElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "metadata": SVGMetadataElement;
+    "meter": HTMLMeterElement;
+    "nav": HTMLElement;
+    "nextid": HTMLUnknownElement;
+    "nobr": HTMLElement;
+    "noframes": HTMLElement;
+    "noscript": HTMLElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "path": SVGPathElement;
+    "pattern": SVGPatternElement;
+    "picture": HTMLPictureElement;
+    "plaintext": HTMLElement;
+    "polygon": SVGPolygonElement;
+    "polyline": SVGPolylineElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "radialgradient": SVGRadialGradientElement;
+    "rect": SVGRectElement;
+    "rt": HTMLElement;
+    "ruby": HTMLElement;
+    "s": HTMLElement;
+    "samp": HTMLElement;
+    "script": HTMLScriptElement;
+    "section": HTMLElement;
+    "select": HTMLSelectElement;
+    "small": HTMLElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "stop": SVGStopElement;
+    "strike": HTMLElement;
+    "strong": HTMLElement;
+    "style": HTMLStyleElement;
+    "sub": HTMLElement;
+    "sup": HTMLElement;
+    "svg": SVGSVGElement;
+    "switch": SVGSwitchElement;
+    "symbol": SVGSymbolElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "text": SVGTextElement;
+    "textpath": SVGTextPathElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "tspan": SVGTSpanElement;
+    "tt": HTMLElement;
+    "u": HTMLElement;
+    "ul": HTMLUListElement;
+    "use": SVGUseElement;
+    "var": HTMLElement;
+    "video": HTMLVideoElement;
+    "view": SVGViewElement;
+    "wbr": HTMLElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementListTagNameMap {
+    "a": NodeListOf<HTMLAnchorElement>;
+    "abbr": NodeListOf<HTMLElement>;
+    "acronym": NodeListOf<HTMLElement>;
+    "address": NodeListOf<HTMLElement>;
+    "applet": NodeListOf<HTMLAppletElement>;
+    "area": NodeListOf<HTMLAreaElement>;
+    "article": NodeListOf<HTMLElement>;
+    "aside": NodeListOf<HTMLElement>;
+    "audio": NodeListOf<HTMLAudioElement>;
+    "b": NodeListOf<HTMLElement>;
+    "base": NodeListOf<HTMLBaseElement>;
+    "basefont": NodeListOf<HTMLBaseFontElement>;
+    "bdo": NodeListOf<HTMLElement>;
+    "big": NodeListOf<HTMLElement>;
+    "blockquote": NodeListOf<HTMLQuoteElement>;
+    "body": NodeListOf<HTMLBodyElement>;
+    "br": NodeListOf<HTMLBRElement>;
+    "button": NodeListOf<HTMLButtonElement>;
+    "canvas": NodeListOf<HTMLCanvasElement>;
+    "caption": NodeListOf<HTMLTableCaptionElement>;
+    "center": NodeListOf<HTMLElement>;
+    "circle": NodeListOf<SVGCircleElement>;
+    "cite": NodeListOf<HTMLElement>;
+    "clippath": NodeListOf<SVGClipPathElement>;
+    "code": NodeListOf<HTMLElement>;
+    "col": NodeListOf<HTMLTableColElement>;
+    "colgroup": NodeListOf<HTMLTableColElement>;
+    "datalist": NodeListOf<HTMLDataListElement>;
+    "dd": NodeListOf<HTMLElement>;
+    "defs": NodeListOf<SVGDefsElement>;
+    "del": NodeListOf<HTMLModElement>;
+    "desc": NodeListOf<SVGDescElement>;
+    "dfn": NodeListOf<HTMLElement>;
+    "dir": NodeListOf<HTMLDirectoryElement>;
+    "div": NodeListOf<HTMLDivElement>;
+    "dl": NodeListOf<HTMLDListElement>;
+    "dt": NodeListOf<HTMLElement>;
+    "ellipse": NodeListOf<SVGEllipseElement>;
+    "em": NodeListOf<HTMLElement>;
+    "embed": NodeListOf<HTMLEmbedElement>;
+    "feblend": NodeListOf<SVGFEBlendElement>;
+    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
+    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
+    "fecomposite": NodeListOf<SVGFECompositeElement>;
+    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
+    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
+    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
+    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
+    "feflood": NodeListOf<SVGFEFloodElement>;
+    "fefunca": NodeListOf<SVGFEFuncAElement>;
+    "fefuncb": NodeListOf<SVGFEFuncBElement>;
+    "fefuncg": NodeListOf<SVGFEFuncGElement>;
+    "fefuncr": NodeListOf<SVGFEFuncRElement>;
+    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
+    "feimage": NodeListOf<SVGFEImageElement>;
+    "femerge": NodeListOf<SVGFEMergeElement>;
+    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
+    "femorphology": NodeListOf<SVGFEMorphologyElement>;
+    "feoffset": NodeListOf<SVGFEOffsetElement>;
+    "fepointlight": NodeListOf<SVGFEPointLightElement>;
+    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
+    "fespotlight": NodeListOf<SVGFESpotLightElement>;
+    "fetile": NodeListOf<SVGFETileElement>;
+    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
+    "fieldset": NodeListOf<HTMLFieldSetElement>;
+    "figcaption": NodeListOf<HTMLElement>;
+    "figure": NodeListOf<HTMLElement>;
+    "filter": NodeListOf<SVGFilterElement>;
+    "font": NodeListOf<HTMLFontElement>;
+    "footer": NodeListOf<HTMLElement>;
+    "foreignobject": NodeListOf<SVGForeignObjectElement>;
+    "form": NodeListOf<HTMLFormElement>;
+    "frame": NodeListOf<HTMLFrameElement>;
+    "frameset": NodeListOf<HTMLFrameSetElement>;
+    "g": NodeListOf<SVGGElement>;
+    "h1": NodeListOf<HTMLHeadingElement>;
+    "h2": NodeListOf<HTMLHeadingElement>;
+    "h3": NodeListOf<HTMLHeadingElement>;
+    "h4": NodeListOf<HTMLHeadingElement>;
+    "h5": NodeListOf<HTMLHeadingElement>;
+    "h6": NodeListOf<HTMLHeadingElement>;
+    "head": NodeListOf<HTMLHeadElement>;
+    "header": NodeListOf<HTMLElement>;
+    "hgroup": NodeListOf<HTMLElement>;
+    "hr": NodeListOf<HTMLHRElement>;
+    "html": NodeListOf<HTMLHtmlElement>;
+    "i": NodeListOf<HTMLElement>;
+    "iframe": NodeListOf<HTMLIFrameElement>;
+    "image": NodeListOf<SVGImageElement>;
+    "img": NodeListOf<HTMLImageElement>;
+    "input": NodeListOf<HTMLInputElement>;
+    "ins": NodeListOf<HTMLModElement>;
+    "isindex": NodeListOf<HTMLUnknownElement>;
+    "kbd": NodeListOf<HTMLElement>;
+    "keygen": NodeListOf<HTMLElement>;
+    "label": NodeListOf<HTMLLabelElement>;
+    "legend": NodeListOf<HTMLLegendElement>;
+    "li": NodeListOf<HTMLLIElement>;
+    "line": NodeListOf<SVGLineElement>;
+    "lineargradient": NodeListOf<SVGLinearGradientElement>;
+    "link": NodeListOf<HTMLLinkElement>;
+    "listing": NodeListOf<HTMLPreElement>;
+    "map": NodeListOf<HTMLMapElement>;
+    "mark": NodeListOf<HTMLElement>;
+    "marker": NodeListOf<SVGMarkerElement>;
+    "marquee": NodeListOf<HTMLMarqueeElement>;
+    "mask": NodeListOf<SVGMaskElement>;
+    "menu": NodeListOf<HTMLMenuElement>;
+    "meta": NodeListOf<HTMLMetaElement>;
+    "metadata": NodeListOf<SVGMetadataElement>;
+    "meter": NodeListOf<HTMLMeterElement>;
+    "nav": NodeListOf<HTMLElement>;
+    "nextid": NodeListOf<HTMLUnknownElement>;
+    "nobr": NodeListOf<HTMLElement>;
+    "noframes": NodeListOf<HTMLElement>;
+    "noscript": NodeListOf<HTMLElement>;
+    "object": NodeListOf<HTMLObjectElement>;
+    "ol": NodeListOf<HTMLOListElement>;
+    "optgroup": NodeListOf<HTMLOptGroupElement>;
+    "option": NodeListOf<HTMLOptionElement>;
+    "p": NodeListOf<HTMLParagraphElement>;
+    "param": NodeListOf<HTMLParamElement>;
+    "path": NodeListOf<SVGPathElement>;
+    "pattern": NodeListOf<SVGPatternElement>;
+    "picture": NodeListOf<HTMLPictureElement>;
+    "plaintext": NodeListOf<HTMLElement>;
+    "polygon": NodeListOf<SVGPolygonElement>;
+    "polyline": NodeListOf<SVGPolylineElement>;
+    "pre": NodeListOf<HTMLPreElement>;
+    "progress": NodeListOf<HTMLProgressElement>;
+    "q": NodeListOf<HTMLQuoteElement>;
+    "radialgradient": NodeListOf<SVGRadialGradientElement>;
+    "rect": NodeListOf<SVGRectElement>;
+    "rt": NodeListOf<HTMLElement>;
+    "ruby": NodeListOf<HTMLElement>;
+    "s": NodeListOf<HTMLElement>;
+    "samp": NodeListOf<HTMLElement>;
+    "script": NodeListOf<HTMLScriptElement>;
+    "section": NodeListOf<HTMLElement>;
+    "select": NodeListOf<HTMLSelectElement>;
+    "small": NodeListOf<HTMLElement>;
+    "source": NodeListOf<HTMLSourceElement>;
+    "span": NodeListOf<HTMLSpanElement>;
+    "stop": NodeListOf<SVGStopElement>;
+    "strike": NodeListOf<HTMLElement>;
+    "strong": NodeListOf<HTMLElement>;
+    "style": NodeListOf<HTMLStyleElement>;
+    "sub": NodeListOf<HTMLElement>;
+    "sup": NodeListOf<HTMLElement>;
+    "svg": NodeListOf<SVGSVGElement>;
+    "switch": NodeListOf<SVGSwitchElement>;
+    "symbol": NodeListOf<SVGSymbolElement>;
+    "table": NodeListOf<HTMLTableElement>;
+    "tbody": NodeListOf<HTMLTableSectionElement>;
+    "td": NodeListOf<HTMLTableDataCellElement>;
+    "template": NodeListOf<HTMLTemplateElement>;
+    "text": NodeListOf<SVGTextElement>;
+    "textpath": NodeListOf<SVGTextPathElement>;
+    "textarea": NodeListOf<HTMLTextAreaElement>;
+    "tfoot": NodeListOf<HTMLTableSectionElement>;
+    "th": NodeListOf<HTMLTableHeaderCellElement>;
+    "thead": NodeListOf<HTMLTableSectionElement>;
+    "title": NodeListOf<HTMLTitleElement>;
+    "tr": NodeListOf<HTMLTableRowElement>;
+    "track": NodeListOf<HTMLTrackElement>;
+    "tspan": NodeListOf<SVGTSpanElement>;
+    "tt": NodeListOf<HTMLElement>;
+    "u": NodeListOf<HTMLElement>;
+    "ul": NodeListOf<HTMLUListElement>;
+    "use": NodeListOf<SVGUseElement>;
+    "var": NodeListOf<HTMLElement>;
+    "video": NodeListOf<HTMLVideoElement>;
+    "view": NodeListOf<SVGViewElement>;
+    "wbr": NodeListOf<HTMLElement>;
+    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
+    "xmp": NodeListOf<HTMLPreElement>;
+}
+
+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; };
+declare var applicationCache: ApplicationCache;
+declare var clientInformation: Navigator;
+declare var closed: boolean;
+declare var crypto: Crypto;
+declare var defaultStatus: string;
+declare var devicePixelRatio: number;
+declare var doNotTrack: string;
+declare var document: Document;
+declare var event: Event | undefined;
+declare var external: External;
+declare var frameElement: Element;
+declare var frames: Window;
+declare var history: History;
+declare var innerHeight: number;
+declare var innerWidth: number;
+declare var length: number;
+declare var location: Location;
+declare var locationbar: BarProp;
+declare var menubar: BarProp;
+declare var msCredentials: MSCredentials;
+declare const name: never;
+declare var navigator: Navigator;
+declare var offscreenBuffering: string | boolean;
+declare var onabort: (this: Window, ev: UIEvent) => any;
+declare var onafterprint: (this: Window, ev: Event) => any;
+declare var onbeforeprint: (this: Window, ev: Event) => any;
+declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+declare var onblur: (this: Window, ev: FocusEvent) => any;
+declare var oncanplay: (this: Window, ev: Event) => any;
+declare var oncanplaythrough: (this: Window, ev: Event) => any;
+declare var onchange: (this: Window, ev: Event) => any;
+declare var onclick: (this: Window, ev: MouseEvent) => any;
+declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
+declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
+declare var ondblclick: (this: Window, ev: MouseEvent) => any;
+declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
+declare var ondrag: (this: Window, ev: DragEvent) => any;
+declare var ondragend: (this: Window, ev: DragEvent) => any;
+declare var ondragenter: (this: Window, ev: DragEvent) => any;
+declare var ondragleave: (this: Window, ev: DragEvent) => any;
+declare var ondragover: (this: Window, ev: DragEvent) => any;
+declare var ondragstart: (this: Window, ev: DragEvent) => any;
+declare var ondrop: (this: Window, ev: DragEvent) => any;
+declare var ondurationchange: (this: Window, ev: Event) => any;
+declare var onemptied: (this: Window, ev: Event) => any;
+declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+declare var onerror: ErrorEventHandler;
+declare var onfocus: (this: Window, ev: FocusEvent) => any;
+declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
+declare var oninput: (this: Window, ev: Event) => any;
+declare var oninvalid: (this: Window, ev: Event) => any;
+declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
+declare var onload: (this: Window, ev: Event) => any;
+declare var onloadeddata: (this: Window, ev: Event) => any;
+declare var onloadedmetadata: (this: Window, ev: Event) => any;
+declare var onloadstart: (this: Window, ev: Event) => any;
+declare var onmessage: (this: Window, ev: MessageEvent) => any;
+declare var onmousedown: (this: Window, ev: MouseEvent) => any;
+declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
+declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
+declare var onmousemove: (this: Window, ev: MouseEvent) => any;
+declare var onmouseout: (this: Window, ev: MouseEvent) => any;
+declare var onmouseover: (this: Window, ev: MouseEvent) => any;
+declare var onmouseup: (this: Window, ev: MouseEvent) => any;
+declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
+declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+declare var onoffline: (this: Window, ev: Event) => any;
+declare var ononline: (this: Window, ev: Event) => any;
+declare var onorientationchange: (this: Window, ev: Event) => any;
+declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpause: (this: Window, ev: Event) => any;
+declare var onplay: (this: Window, ev: Event) => any;
+declare var onplaying: (this: Window, ev: Event) => any;
+declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
+declare var onprogress: (this: Window, ev: ProgressEvent) => any;
+declare var onratechange: (this: Window, ev: Event) => any;
+declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+declare var onreset: (this: Window, ev: Event) => any;
+declare var onresize: (this: Window, ev: UIEvent) => any;
+declare var onscroll: (this: Window, ev: UIEvent) => any;
+declare var onseeked: (this: Window, ev: Event) => any;
+declare var onseeking: (this: Window, ev: Event) => any;
+declare var onselect: (this: Window, ev: UIEvent) => any;
+declare var onstalled: (this: Window, ev: Event) => any;
+declare var onstorage: (this: Window, ev: StorageEvent) => any;
+declare var onsubmit: (this: Window, ev: Event) => any;
+declare var onsuspend: (this: Window, ev: Event) => any;
+declare var ontimeupdate: (this: Window, ev: Event) => any;
+declare var ontouchcancel: (ev: TouchEvent) => any;
+declare var ontouchend: (ev: TouchEvent) => any;
+declare var ontouchmove: (ev: TouchEvent) => any;
+declare var ontouchstart: (ev: TouchEvent) => any;
+declare var onunload: (this: Window, ev: Event) => any;
+declare var onvolumechange: (this: Window, ev: Event) => any;
+declare var onwaiting: (this: Window, ev: Event) => any;
+declare var opener: any;
+declare var orientation: string | number;
+declare var outerHeight: number;
+declare var outerWidth: number;
+declare var pageXOffset: number;
+declare var pageYOffset: number;
+declare var parent: Window;
+declare var performance: Performance;
+declare var personalbar: BarProp;
+declare var screen: Screen;
+declare var screenLeft: number;
+declare var screenTop: number;
+declare var screenX: number;
+declare var screenY: number;
+declare var scrollX: number;
+declare var scrollY: number;
+declare var scrollbars: BarProp;
+declare var self: Window;
+declare var status: string;
+declare var statusbar: BarProp;
+declare var styleMedia: StyleMedia;
+declare var toolbar: BarProp;
+declare var top: Window;
+declare var window: Window;
+declare function alert(message?: any): void;
+declare function blur(): void;
+declare function cancelAnimationFrame(handle: number): void;
+declare function captureEvents(): void;
+declare function close(): void;
+declare function confirm(message?: string): boolean;
+declare function focus(): void;
+declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
+declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
+declare function getSelection(): Selection;
+declare function matchMedia(mediaQuery: string): MediaQueryList;
+declare function moveBy(x?: number, y?: number): void;
+declare function moveTo(x?: number, y?: number): void;
+declare function msWriteProfilerMark(profilerMarkName: string): void;
+declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
+declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
+declare function print(): void;
+declare function prompt(message?: string, _default?: string): string | null;
+declare function releaseEvents(): void;
+declare function requestAnimationFrame(callback: FrameRequestCallback): number;
+declare function resizeBy(x?: number, y?: number): void;
+declare function resizeTo(x?: number, y?: number): void;
+declare function scroll(x?: number, y?: number): void;
+declare function scrollBy(x?: number, y?: number): void;
+declare function scrollTo(x?: number, y?: number): void;
+declare function webkitCancelAnimationFrame(handle: number): void;
+declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
+declare function scroll(options?: ScrollToOptions): void;
+declare function scrollTo(options?: ScrollToOptions): void;
+declare function scrollBy(options?: ScrollToOptions): void;
+declare function toString(): string;
+declare function dispatchEvent(evt: Event): boolean;
+declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+declare function clearInterval(handle: number): void;
+declare function clearTimeout(handle: number): void;
+declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function clearImmediate(handle: number): void;
+declare function setImmediate(handler: (...args: any[]) => void): number;
+declare function setImmediate(handler: any, ...args: any[]): number;
+declare var sessionStorage: Storage;
+declare var localStorage: Storage;
+declare var console: Console;
+declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
+declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
+declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
+declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
+declare var onpointermove: (this: Window, ev: PointerEvent) => any;
+declare var onpointerout: (this: Window, ev: PointerEvent) => any;
+declare var onpointerover: (this: Window, ev: PointerEvent) => any;
+declare var onpointerup: (this: Window, ev: PointerEvent) => any;
+declare var onwheel: (this: Window, ev: WheelEvent) => any;
+declare var indexedDB: IDBFactory;
+declare function atob(encodedString: string): string;
+declare function btoa(rawString: string): string;
+declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
+declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+type AAGUID = string;
+type AlgorithmIdentifier = string | Algorithm;
+type ConstrainBoolean = boolean | ConstrainBooleanParameters;
+type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
+type ConstrainDouble = number | ConstrainDoubleRange;
+type ConstrainLong = number | ConstrainLongRange;
+type CryptoOperationData = ArrayBufferView;
+type GLbitfield = number;
+type GLboolean = boolean;
+type GLbyte = number;
+type GLclampf = number;
+type GLenum = number;
+type GLfloat = number;
+type GLint = number;
+type GLintptr = number;
+type GLshort = number;
+type GLsizei = number;
+type GLsizeiptr = number;
+type GLubyte = number;
+type GLuint = number;
+type GLushort = number;
+type IDBKeyPath = string;
+type KeyFormat = string;
+type KeyType = string;
+type KeyUsage = string;
+type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
+type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
+type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
+type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
+type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
+type payloadtype = number;
+type ScrollBehavior = "auto" | "instant" | "smooth";
+type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
+type IDBValidKey = number | string | Date | IDBArrayKey;
+type BufferSource = ArrayBuffer | ArrayBufferView;
+type MouseWheelEvent = WheelEvent;
 type ScrollRestoration = "auto" | "manual";
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.dom.iterable.d.ts 
b/node_modules/typescript/lib/lib.dom.iterable.d.ts
index 2b62054..7557e4d 100644
--- a/node_modules/typescript/lib/lib.dom.iterable.d.ts
+++ b/node_modules/typescript/lib/lib.dom.iterable.d.ts
@@ -1,33 +1,33 @@
-/*! 
*****************************************************************************
-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 path="lib.dom.d.ts" />
-
-interface DOMTokenList {
-    [Symbol.iterator](): IterableIterator<string>;
-}
-
-interface NodeList {
-    [Symbol.iterator](): IterableIterator<Node>
-}
-
-interface NodeListOf<TNode extends Node> {
-    [Symbol.iterator](): IterableIterator<TNode>
-}
+/*! 
*****************************************************************************
+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 path="lib.dom.d.ts" />
+
+interface DOMTokenList {
+    [Symbol.iterator](): IterableIterator<string>;
+}
+
+interface NodeList {
+    [Symbol.iterator](): IterableIterator<Node>
+}
+
+interface NodeListOf<TNode extends Node> {
+    [Symbol.iterator](): IterableIterator<TNode>
+}
diff --git a/node_modules/typescript/lib/lib.es2015.collection.d.ts 
b/node_modules/typescript/lib/lib.es2015.collection.d.ts
index eabd631..9f4a23f 100644
--- a/node_modules/typescript/lib/lib.es2015.collection.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.collection.d.ts
@@ -1,92 +1,92 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-interface Map<K, V> {
-    clear(): void;
-    delete(key: K): boolean;
-    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: 
any): void;
-    get(key: K): V | undefined;
-    has(key: K): boolean;
-    set(key: K, value?: V): this;
-    readonly size: number;
-}
-
-interface MapConstructor {
-    new (): Map<any, any>;
-    new <K, V>(entries?: [K, V][]): 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, V> {
-    delete(key: K): boolean;
-    get(key: K): V | undefined;
-    has(key: K): boolean;
-    set(key: K, value?: V): this;
-}
-
-interface WeakMapConstructor {
-    new (): WeakMap<any, any>;
-    new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
-    readonly prototype: WeakMap<any, any>;
-}
-declare var WeakMap: WeakMapConstructor;
-
-interface Set<T> {
-    add(value: T): this;
-    clear(): void;
-    delete(value: T): boolean;
-    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: 
any): void;
-    has(value: T): boolean;
-    readonly size: number;
-}
-
-interface SetConstructor {
-    new (): Set<any>;
-    new <T>(values?: T[]): 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> {
-    add(value: T): this;
-    delete(value: T): boolean;
-    has(value: T): boolean;
-}
-
-interface WeakSetConstructor {
-    new (): WeakSet<any>;
-    new <T>(values?: T[]): WeakSet<T>;
-    readonly prototype: WeakSet<any>;
-}
-declare var WeakSet: WeakSetConstructor;
+
+interface Map<K, V> {
+    clear(): void;
+    delete(key: K): boolean;
+    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: 
any): void;
+    get(key: K): V | undefined;
+    has(key: K): boolean;
+    set(key: K, value?: V): this;
+    readonly size: number;
+}
+
+interface MapConstructor {
+    new (): Map<any, any>;
+    new <K, V>(entries?: [K, V][]): 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, V> {
+    delete(key: K): boolean;
+    get(key: K): V | undefined;
+    has(key: K): boolean;
+    set(key: K, value?: V): this;
+}
+
+interface WeakMapConstructor {
+    new (): WeakMap<any, any>;
+    new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
+    readonly prototype: WeakMap<any, any>;
+}
+declare var WeakMap: WeakMapConstructor;
+
+interface Set<T> {
+    add(value: T): this;
+    clear(): void;
+    delete(value: T): boolean;
+    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: 
any): void;
+    has(value: T): boolean;
+    readonly size: number;
+}
+
+interface SetConstructor {
+    new (): Set<any>;
+    new <T>(values?: T[]): 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> {
+    add(value: T): this;
+    delete(value: T): boolean;
+    has(value: T): boolean;
+}
+
+interface WeakSetConstructor {
+    new (): WeakSet<any>;
+    new <T>(values?: T[]): WeakSet<T>;
+    readonly prototype: WeakSet<any>;
+}
+declare var WeakSet: WeakSetConstructor;
diff --git a/node_modules/typescript/lib/lib.es2015.core.d.ts 
b/node_modules/typescript/lib/lib.es2015.core.d.ts
index 499d0de..7f03aae 100644
--- a/node_modules/typescript/lib/lib.es2015.core.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.core.d.ts
@@ -1,544 +1,544 @@
-/*! 
*****************************************************************************
-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 PropertyKey = string | number | symbol;
-
-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(predicate: (value: T, index: number, obj: Array<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
-
-    /**
-      * Returns the this object after filling the section identified by start 
and end with value
-      * @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;
-}
-
-interface ArrayConstructor {
-    /**
-      * Creates an array from an array-like 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): Array<U>;
-
-
-    /**
-      * Creates an array from an array-like object.
-      * @param arrayLike An array-like object to convert to an array.
-      */
-    from<T>(arrayLike: ArrayLike<T>): Array<T>;
-
-    /**
-      * 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[]): Array<T>;
-}
-
-interface DateConstructor {
-    new (value: 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) 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: number): boolean;
-
-    /**
-      * Returns true if the value passed is an integer, false otherwise.
-      * @param number A numeric value.
-      */
-    isInteger(number: number): 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: number): boolean;
-
-    /**
-      * Returns true if the value passed is a safe integer.
-      * @param number A numeric value.
-      */
-    isSafeInteger(number: number): 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 s A string to convert into a number.
-      * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
-      * 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 Object {
-    /**
-      * Determines whether an object has a property with the specified name.
-      * @param v A property name.
-      */
-    hasOwnProperty(v: PropertyKey): boolean
-
-    /**
-      * Determines whether a specified property is enumerable.
-      * @param v A property name.
-      */
-    propertyIsEnumerable(v: PropertyKey): boolean;
-}
-
-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, 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, 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, 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: any, ...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 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: 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, propertyKey: PropertyKey): 
PropertyDescriptor;
-
-    /**
-      * 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(o: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): 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(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
-}
-
-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, flags?: string): RegExp;
-    (pattern: RegExp, 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,
-      * T is 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
-      * @param name
-      */
-    anchor(name: string): string;
-
-    /** Returns a <big> HTML element */
-    big(): string;
-
-    /** Returns a <blink> HTML element */
-    blink(): string;
-
-    /** Returns a <b> HTML element */
-    bold(): string;
-
-    /** Returns a <tt> HTML element */
-    fixed(): string
-
-    /** Returns a <font> HTML element and sets the color attribute value */
-    fontcolor(color: string): string
-
-    /** Returns a <font> HTML element and sets the size attribute value */
-    fontsize(size: number): string;
-
-    /** Returns a <font> HTML element and sets the size attribute value */
-    fontsize(size: string): string;
-
-    /** Returns an <i> HTML element */
-    italics(): string;
-
-    /** Returns an <a> HTML element and sets the href attribute value */
-    link(url: string): string;
-
-    /** Returns a <small> HTML element */
-    small(): string;
-
-    /** Returns a <strike> HTML element */
-    strike(): string;
-
-    /** Returns a <sub> HTML element */
-    sub(): string;
-
-    /** Returns a <sup> HTML element */
-    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 intended for use 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.
-      * @param template A well-formed template string call site representation.
-      * @param substitutions A set of substitution values.
-      */
-    raw(template: TemplateStringsArray, ...substitutions: any[]): string;
-}
+/*! 
*****************************************************************************
+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 PropertyKey = string | number | symbol;
+
+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(predicate: (value: T, index: number, obj: Array<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
+
+    /**
+      * Returns the this object after filling the section identified by start 
and end with value
+      * @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;
+}
+
+interface ArrayConstructor {
+    /**
+      * Creates an array from an array-like 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): Array<U>;
+
+
+    /**
+      * Creates an array from an array-like object.
+      * @param arrayLike An array-like object to convert to an array.
+      */
+    from<T>(arrayLike: ArrayLike<T>): Array<T>;
+
+    /**
+      * 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[]): Array<T>;
+}
+
+interface DateConstructor {
+    new (value: 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) 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: number): boolean;
+
+    /**
+      * Returns true if the value passed is an integer, false otherwise.
+      * @param number A numeric value.
+      */
+    isInteger(number: number): 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: number): boolean;
+
+    /**
+      * Returns true if the value passed is a safe integer.
+      * @param number A numeric value.
+      */
+    isSafeInteger(number: number): 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 s A string to convert into a number.
+      * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
+      * 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 Object {
+    /**
+      * Determines whether an object has a property with the specified name.
+      * @param v A property name.
+      */
+    hasOwnProperty(v: PropertyKey): boolean
+
+    /**
+      * Determines whether a specified property is enumerable.
+      * @param v A property name.
+      */
+    propertyIsEnumerable(v: PropertyKey): boolean;
+}
+
+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, 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, 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, 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: any, ...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 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: 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, propertyKey: PropertyKey): 
PropertyDescriptor;
+
+    /**
+      * 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(o: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): 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(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
+}
+
+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, flags?: string): RegExp;
+    (pattern: RegExp, 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,
+      * T is 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
+      * @param name
+      */
+    anchor(name: string): string;
+
+    /** Returns a <big> HTML element */
+    big(): string;
+
+    /** Returns a <blink> HTML element */
+    blink(): string;
+
+    /** Returns a <b> HTML element */
+    bold(): string;
+
+    /** Returns a <tt> HTML element */
+    fixed(): string
+
+    /** Returns a <font> HTML element and sets the color attribute value */
+    fontcolor(color: string): string
+
+    /** Returns a <font> HTML element and sets the size attribute value */
+    fontsize(size: number): string;
+
+    /** Returns a <font> HTML element and sets the size attribute value */
+    fontsize(size: string): string;
+
+    /** Returns an <i> HTML element */
+    italics(): string;
+
+    /** Returns an <a> HTML element and sets the href attribute value */
+    link(url: string): string;
+
+    /** Returns a <small> HTML element */
+    small(): string;
+
+    /** Returns a <strike> HTML element */
+    strike(): string;
+
+    /** Returns a <sub> HTML element */
+    sub(): string;
+
+    /** Returns a <sup> HTML element */
+    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 intended for use 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.
+      * @param template A well-formed template string call site representation.
+      * @param substitutions A set of substitution values.
+      */
+    raw(template: TemplateStringsArray, ...substitutions: any[]): string;
+}
diff --git a/node_modules/typescript/lib/lib.es2015.d.ts 
b/node_modules/typescript/lib/lib.es2015.d.ts
index ff5c555..a536e9c 100644
--- a/node_modules/typescript/lib/lib.es2015.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.d.ts
@@ -1,30 +1,30 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-/// <reference path="lib.es2015.core.d.ts" />
-/// <reference path="lib.es2015.collection.d.ts" />
-/// <reference path="lib.es2015.generator.d.ts" />
-/// <reference path="lib.es2015.iterable.d.ts" />
-/// <reference path="lib.es2015.promise.d.ts" />
-/// <reference path="lib.es2015.proxy.d.ts" />
-/// <reference path="lib.es2015.reflect.d.ts" />
-/// <reference path="lib.es2015.symbol.d.ts" />
-/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
+
+/// <reference path="lib.es2015.core.d.ts" />
+/// <reference path="lib.es2015.collection.d.ts" />
+/// <reference path="lib.es2015.generator.d.ts" />
+/// <reference path="lib.es2015.iterable.d.ts" />
+/// <reference path="lib.es2015.promise.d.ts" />
+/// <reference path="lib.es2015.proxy.d.ts" />
+/// <reference path="lib.es2015.reflect.d.ts" />
+/// <reference path="lib.es2015.symbol.d.ts" />
+/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
 /// <reference path="lib.es5.d.ts" />
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2015.generator.d.ts 
b/node_modules/typescript/lib/lib.es2015.generator.d.ts
index 20d6725..3166063 100644
--- a/node_modules/typescript/lib/lib.es2015.generator.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.generator.d.ts
@@ -1,32 +1,32 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-interface GeneratorFunction extends Function { }
-
-interface GeneratorFunctionConstructor {
-    /**
-      * Creates a new Generator function.
-      * @param args A list of arguments the function accepts.
-      */
-    new (...args: string[]): GeneratorFunction;
-    (...args: string[]): GeneratorFunction;
-    readonly prototype: GeneratorFunction;
-}
-declare var GeneratorFunction: GeneratorFunctionConstructor;
+
+interface GeneratorFunction extends Function { }
+
+interface GeneratorFunctionConstructor {
+    /**
+      * Creates a new Generator function.
+      * @param args A list of arguments the function accepts.
+      */
+    new (...args: string[]): GeneratorFunction;
+    (...args: string[]): GeneratorFunction;
+    readonly prototype: GeneratorFunction;
+}
+declare var GeneratorFunction: GeneratorFunctionConstructor;
diff --git a/node_modules/typescript/lib/lib.es2015.iterable.d.ts 
b/node_modules/typescript/lib/lib.es2015.iterable.d.ts
index cb92cb4..02c72a5 100644
--- a/node_modules/typescript/lib/lib.es2015.iterable.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.iterable.d.ts
@@ -1,465 +1,465 @@
-/*! 
*****************************************************************************
-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 path="lib.es2015.symbol.d.ts" />
-
-interface SymbolConstructor {
-    /** 
-      * A method that returns the default iterator for an object. Called by 
the semantics of the 
-      * for-of statement.
-      */
-    readonly iterator: symbol;
-}
-
-interface IteratorResult<T> {
-    done: boolean;
-    value: T;
-}
-
-interface Iterator<T> {
-    next(value?: any): IteratorResult<T>;
-    return?(value?: any): IteratorResult<T>;
-    throw?(e?: any): IteratorResult<T>;
-}
-
-interface Iterable<T> {
-    [Symbol.iterator](): Iterator<T>;
-}
-
-interface IterableIterator<T> extends Iterator<T> {
-    [Symbol.iterator](): IterableIterator<T>;
-}
-
-interface Array<T> {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<T>;
-
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, T]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<T>;
-}
-
-interface ArrayConstructor {
-    /**
-      * 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>, mapfn: (v: T, k: number) => U, thisArg?: 
any): Array<U>;
-    
-    /**
-      * Creates an array from an iterable object.
-      * @param iterable An iterable object to convert to an array.
-      */
-    from<T>(iterable: Iterable<T>): Array<T>;
-}
-
-interface ReadonlyArray<T> {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<T>;
-
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, T]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<T>;
-}
-
-interface IArguments {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<any>;
-}
-
-interface Map<K, V> {
-    [Symbol.iterator](): IterableIterator<[K,V]>;
-    entries(): IterableIterator<[K, V]>;
-    keys(): IterableIterator<K>;
-    values(): IterableIterator<V>;
-}
-
-interface MapConstructor {
-    new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
-}
-
-interface WeakMap<K, V> { }
-
-interface WeakMapConstructor {
-    new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
-}
-
-interface Set<T> {
-    [Symbol.iterator](): IterableIterator<T>;
-    entries(): IterableIterator<[T, T]>;
-    keys(): IterableIterator<T>;
-    values(): IterableIterator<T>;
-}
-
-interface SetConstructor {
-    new <T>(iterable: Iterable<T>): Set<T>;
-}
-
-interface WeakSet<T> { }
-
-interface WeakSetConstructor {
-    new <T>(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 array of Promises.
-     * @returns A new Promise.
-     */
-    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
-    
-    /**
-     * 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>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
-}
-
-declare namespace Reflect {
-    function enumerate(target: any): IterableIterator<any>;
-}
-
-interface String {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<string>;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int8ArrayConstructor {
-    new (elements: Iterable<number>): Int8Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint8ArrayConstructor {
-    new (elements: Iterable<number>): Uint8Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint8ClampedArrayConstructor {
-    new (elements: Iterable<number>): Uint8ClampedArray;
-
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int16ArrayConstructor {
-    new (elements: Iterable<number>): Int16Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint16ArrayConstructor {
-    new (elements: Iterable<number>): Uint16Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int32ArrayConstructor {
-    new (elements: Iterable<number>): Int32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint32ArrayConstructor {
-    new (elements: Iterable<number>): Uint32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Float32ArrayConstructor {
-    new (elements: Iterable<number>): Float32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Float64ArrayConstructor {
-    new (elements: Iterable<number>): Float64Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
+/*! 
*****************************************************************************
+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 path="lib.es2015.symbol.d.ts" />
+
+interface SymbolConstructor {
+    /** 
+      * A method that returns the default iterator for an object. Called by 
the semantics of the 
+      * for-of statement.
+      */
+    readonly iterator: symbol;
+}
+
+interface IteratorResult<T> {
+    done: boolean;
+    value: T;
+}
+
+interface Iterator<T> {
+    next(value?: any): IteratorResult<T>;
+    return?(value?: any): IteratorResult<T>;
+    throw?(e?: any): IteratorResult<T>;
+}
+
+interface Iterable<T> {
+    [Symbol.iterator](): Iterator<T>;
+}
+
+interface IterableIterator<T> extends Iterator<T> {
+    [Symbol.iterator](): IterableIterator<T>;
+}
+
+interface Array<T> {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<T>;
+
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, T]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<T>;
+}
+
+interface ArrayConstructor {
+    /**
+      * 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>, mapfn: (v: T, k: number) => U, thisArg?: 
any): Array<U>;
+    
+    /**
+      * Creates an array from an iterable object.
+      * @param iterable An iterable object to convert to an array.
+      */
+    from<T>(iterable: Iterable<T>): Array<T>;
+}
+
+interface ReadonlyArray<T> {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<T>;
+
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, T]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<T>;
+}
+
+interface IArguments {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<any>;
+}
+
+interface Map<K, V> {
+    [Symbol.iterator](): IterableIterator<[K,V]>;
+    entries(): IterableIterator<[K, V]>;
+    keys(): IterableIterator<K>;
+    values(): IterableIterator<V>;
+}
+
+interface MapConstructor {
+    new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
+}
+
+interface WeakMap<K, V> { }
+
+interface WeakMapConstructor {
+    new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
+}
+
+interface Set<T> {
+    [Symbol.iterator](): IterableIterator<T>;
+    entries(): IterableIterator<[T, T]>;
+    keys(): IterableIterator<T>;
+    values(): IterableIterator<T>;
+}
+
+interface SetConstructor {
+    new <T>(iterable: Iterable<T>): Set<T>;
+}
+
+interface WeakSet<T> { }
+
+interface WeakSetConstructor {
+    new <T>(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 array of Promises.
+     * @returns A new Promise.
+     */
+    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
+    
+    /**
+     * 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>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
+}
+
+declare namespace Reflect {
+    function enumerate(target: any): IterableIterator<any>;
+}
+
+interface String {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<string>;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int8ArrayConstructor {
+    new (elements: Iterable<number>): Int8Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint8ArrayConstructor {
+    new (elements: Iterable<number>): Uint8Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint8ClampedArrayConstructor {
+    new (elements: Iterable<number>): Uint8ClampedArray;
+
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int16ArrayConstructor {
+    new (elements: Iterable<number>): Int16Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint16ArrayConstructor {
+    new (elements: Iterable<number>): Uint16Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int32ArrayConstructor {
+    new (elements: Iterable<number>): Int32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint32ArrayConstructor {
+    new (elements: Iterable<number>): Uint32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Float32ArrayConstructor {
+    new (elements: Iterable<number>): Float32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Float64ArrayConstructor {
+    new (elements: Iterable<number>): Float64Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
 }
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2015.promise.d.ts 
b/node_modules/typescript/lib/lib.es2015.promise.d.ts
index 02352da..99df926 100644
--- a/node_modules/typescript/lib/lib.es2015.promise.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.promise.d.ts
@@ -1,274 +1,274 @@
-/*! 
*****************************************************************************
-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 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(onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null, 
onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): 
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<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined 
| null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T 
| TResult>;
-
-    /**
-     * 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<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, 
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | 
null): Promise<TResult>;
-
-    /**
-     * 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, TResult2>(onfulfilled: (value: T) => TResult1 | 
PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | 
PromiseLike<TResult2>): 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(onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): Promise<T>;
-
-    /**
-     * 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>(onrejected: (reason: any) => TResult | 
PromiseLike<TResult>): Promise<T | TResult>;
-}
-
-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 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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike 
<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, 
T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, 
T8, T9]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, 
T3, T4, T5, T6, T7]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
-
-    /**
-     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
-
-    /**
-     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<[T1, T2, T3]>;
-
-    /**
-     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<[T1, T2]>;
-
-    /**
-     * 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>(values: (T | PromiseLike<T>)[]): Promise<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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | 
PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | 
PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | 
PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | 
T7 | T8 | T9>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 
| T3 | T4 | T5 | T6 | T7>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
-
-    /**
-     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
-
-    /**
-     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<T1 | T2 | T3>;
-
-    /**
-     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<T1 | T2>;
-
-    /**
-     * 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>(values: (T | PromiseLike<T>)[]): Promise<T>;
-
-    /**
-     * Creates a new rejected promise for the provided reason.
-     * @param reason The reason the promise was rejected.
-     * @returns A new rejected Promise.
-     */
-    reject(reason: any): Promise<never>;
-
-    /**
-     * Creates a new rejected promise for the provided reason.
-     * @param reason The reason the promise was rejected.
-     * @returns A new rejected Promise.
-     */
-    reject<T>(reason: any): Promise<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<T>;
-
-    /**
-     * Creates a new resolved promise .
-     * @returns A resolved promise.
-     */
-    resolve(): Promise<void>;
-}
-
+/*! 
*****************************************************************************
+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 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(onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null, 
onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): 
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<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined 
| null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T 
| TResult>;
+
+    /**
+     * 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<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, 
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | 
null): Promise<TResult>;
+
+    /**
+     * 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, TResult2>(onfulfilled: (value: T) => TResult1 | 
PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | 
PromiseLike<TResult2>): 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(onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): Promise<T>;
+
+    /**
+     * 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>(onrejected: (reason: any) => TResult | 
PromiseLike<TResult>): Promise<T | TResult>;
+}
+
+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 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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike 
<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, 
T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, 
T8, T9]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, 
T3, T4, T5, T6, T7]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
+
+    /**
+     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
+
+    /**
+     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<[T1, T2, T3]>;
+
+    /**
+     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<[T1, T2]>;
+
+    /**
+     * 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>(values: (T | PromiseLike<T>)[]): Promise<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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | 
PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | 
PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | 
PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | 
T7 | T8 | T9>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 
| T3 | T4 | T5 | T6 | T7>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
+
+    /**
+     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
+
+    /**
+     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<T1 | T2 | T3>;
+
+    /**
+     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<T1 | T2>;
+
+    /**
+     * 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>(values: (T | PromiseLike<T>)[]): Promise<T>;
+
+    /**
+     * Creates a new rejected promise for the provided reason.
+     * @param reason The reason the promise was rejected.
+     * @returns A new rejected Promise.
+     */
+    reject(reason: any): Promise<never>;
+
+    /**
+     * Creates a new rejected promise for the provided reason.
+     * @param reason The reason the promise was rejected.
+     * @returns A new rejected Promise.
+     */
+    reject<T>(reason: any): Promise<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<T>;
+
+    /**
+     * Creates a new resolved promise .
+     * @returns A resolved promise.
+     */
+    resolve(): Promise<void>;
+}
+
 declare var Promise: PromiseConstructor;
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2015.proxy.d.ts 
b/node_modules/typescript/lib/lib.es2015.proxy.d.ts
index 6f01f10..d935cdf 100644
--- a/node_modules/typescript/lib/lib.es2015.proxy.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.proxy.d.ts
@@ -1,42 +1,42 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-interface ProxyHandler<T> {
-    getPrototypeOf? (target: T): {} | null;
-    setPrototypeOf? (target: T, v: any): boolean;
-    isExtensible? (target: T): boolean;
-    preventExtensions? (target: T): boolean;
-    getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
-    has? (target: T, p: PropertyKey): boolean;
-    get? (target: T, p: PropertyKey, receiver: any): any;
-    set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
-    deleteProperty? (target: T, p: PropertyKey): boolean;
-    defineProperty? (target: T, p: PropertyKey, attributes: 
PropertyDescriptor): boolean;
-    enumerate? (target: T): PropertyKey[];
-    ownKeys? (target: T): PropertyKey[];
-    apply? (target: T, thisArg: any, argArray?: any): any;
-    construct? (target: T, argArray: any, newTarget?: any): {};
-}
-
-interface ProxyConstructor {
-    revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () 
=> void; };
-    new <T>(target: T, handler: ProxyHandler<T>): T
-}
-declare var Proxy: ProxyConstructor;
+
+interface ProxyHandler<T> {
+    getPrototypeOf? (target: T): {} | null;
+    setPrototypeOf? (target: T, v: any): boolean;
+    isExtensible? (target: T): boolean;
+    preventExtensions? (target: T): boolean;
+    getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
+    has? (target: T, p: PropertyKey): boolean;
+    get? (target: T, p: PropertyKey, receiver: any): any;
+    set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
+    deleteProperty? (target: T, p: PropertyKey): boolean;
+    defineProperty? (target: T, p: PropertyKey, attributes: 
PropertyDescriptor): boolean;
+    enumerate? (target: T): PropertyKey[];
+    ownKeys? (target: T): PropertyKey[];
+    apply? (target: T, thisArg: any, argArray?: any): any;
+    construct? (target: T, argArray: any, newTarget?: any): {};
+}
+
+interface ProxyConstructor {
+    revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () 
=> void; };
+    new <T>(target: T, handler: ProxyHandler<T>): T
+}
+declare var Proxy: ProxyConstructor;
diff --git a/node_modules/typescript/lib/lib.es2015.reflect.d.ts 
b/node_modules/typescript/lib/lib.es2015.reflect.d.ts
index b6a6853..53a0871 100644
--- a/node_modules/typescript/lib/lib.es2015.reflect.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.reflect.d.ts
@@ -1,35 +1,35 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-declare namespace Reflect {
-    function apply(target: Function, thisArgument: any, argumentsList: 
ArrayLike<any>): any;
-    function construct(target: Function, argumentsList: ArrayLike<any>, 
newTarget?: any): any;
-    function defineProperty(target: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): boolean;
-    function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
-    function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
-    function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): 
PropertyDescriptor;
-    function getPrototypeOf(target: any): any;
-    function has(target: any, propertyKey: PropertyKey): boolean;
-    function isExtensible(target: any): boolean;
-    function ownKeys(target: any): Array<PropertyKey>;
-    function preventExtensions(target: any): boolean;
-    function set(target: any, propertyKey: PropertyKey, value: any, receiver?: 
any): boolean;
-    function setPrototypeOf(target: any, proto: any): boolean;
+
+declare namespace Reflect {
+    function apply(target: Function, thisArgument: any, argumentsList: 
ArrayLike<any>): any;
+    function construct(target: Function, argumentsList: ArrayLike<any>, 
newTarget?: any): any;
+    function defineProperty(target: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): boolean;
+    function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
+    function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
+    function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): 
PropertyDescriptor;
+    function getPrototypeOf(target: any): any;
+    function has(target: any, propertyKey: PropertyKey): boolean;
+    function isExtensible(target: any): boolean;
+    function ownKeys(target: any): Array<PropertyKey>;
+    function preventExtensions(target: any): boolean;
+    function set(target: any, propertyKey: PropertyKey, value: any, receiver?: 
any): boolean;
+    function setPrototypeOf(target: any, proto: any): boolean;
 }
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2015.symbol.d.ts 
b/node_modules/typescript/lib/lib.es2015.symbol.d.ts
index c0474ae..3776a44 100644
--- a/node_modules/typescript/lib/lib.es2015.symbol.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.symbol.d.ts
@@ -1,56 +1,56 @@
-/*! 
*****************************************************************************
-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 {
-    /** Returns a string representation of an object. */
-    toString(): string;
-
-    /** Returns the primitive value of the specified object. */
-    valueOf(): Object;
-}
-
-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;
-}
-
+/*! 
*****************************************************************************
+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 {
+    /** Returns a string representation of an object. */
+    toString(): string;
+
+    /** Returns the primitive value of the specified object. */
+    valueOf(): Object;
+}
+
+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;
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts 
b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
index 42299fe..e95f324 100644
--- a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
+++ b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
@@ -1,347 +1,347 @@
-/*! 
*****************************************************************************
-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 path="lib.es2015.symbol.d.ts" />
-
-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: symbol;
-
-    /** 
-      * A Boolean value that if true indicates that an object should flatten 
to its array elements
-      * by Array.prototype.concat.
-      */
-    readonly isConcatSpreadable: symbol;
-
-    /**
-      * A regular expression method that matches the regular expression 
against a string. Called 
-      * by the String.prototype.match method. 
-      */
-    readonly match: symbol;
-
-    /** 
-      * A regular expression method that replaces matched substrings of a 
string. Called by the 
-      * String.prototype.replace method.
-      */
-    readonly replace: 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: symbol;
-
-    /** 
-      * A function valued property that is the constructor function that is 
used to create 
-      * derived objects.
-      */
-    readonly species: 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: symbol;
-
-    /** 
-      * A method that converts an object to a corresponding primitive value.
-      * Called by the ToPrimitive abstract operation.
-      */
-    readonly toPrimitive: 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: symbol;
-
-    /**
-      * An Object whose own property names are property names that are 
excluded from the 'with'
-      * environment bindings of the associated objects.
-      */
-    readonly unscopables: symbol;
-}
-
-interface Symbol {
-    readonly [Symbol.toStringTag]: "Symbol";
-}
-
-interface Array<T> {
-    /**
-     * Returns an object whose properties have the value 'true'
-     * when they will be absent when used in a 'with' statement.
-     */
-    [Symbol.unscopables](): {
-        copyWithin: boolean;
-        entries: boolean;
-        fill: boolean;
-        find: boolean;
-        findIndex: boolean;
-        keys: boolean;
-        values: 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]: "Map";
-}
-
-interface WeakMap<K, V>{
-    readonly [Symbol.toStringTag]: "WeakMap";
-}
-
-interface Set<T> {
-    readonly [Symbol.toStringTag]: "Set";
-}
-
-interface WeakSet<T> {
-    readonly [Symbol.toStringTag]: "WeakSet";
-}
-
-interface JSON {
-    readonly [Symbol.toStringTag]: "JSON";
-}
-
-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 extends Function {
-    readonly [Symbol.toStringTag]: "GeneratorFunction";
-}
-
-interface Math {
-    readonly [Symbol.toStringTag]: "Math";
-}
-
-interface Promise<T> {
-    readonly [Symbol.toStringTag]: "Promise";
-}
-
-interface PromiseConstructor {
-    readonly [Symbol.species]: Function;
-}
-
-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 {
-    [Symbol.species](): RegExpConstructor;
-}
-
-interface String {
-    /**
-      * Matches a string an object that supports being matched against, and 
returns an array containing the results of that search.
-      * @param matcher An object that supports being matched against.
-      */
-    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; 
}): RegExpMatchArray | null;
-
-    /**
-      * 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 replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    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[];
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "ArrayBuffer";
-}
-
-interface DataView {
-    readonly [Symbol.toStringTag]: "DataView";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int8Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "UInt8Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint8ClampedArray";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int16Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint16Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Float32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Float64Array";
+/*! 
*****************************************************************************
+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 path="lib.es2015.symbol.d.ts" />
+
+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: symbol;
+
+    /** 
+      * A Boolean value that if true indicates that an object should flatten 
to its array elements
+      * by Array.prototype.concat.
+      */
+    readonly isConcatSpreadable: symbol;
+
+    /**
+      * A regular expression method that matches the regular expression 
against a string. Called 
+      * by the String.prototype.match method. 
+      */
+    readonly match: symbol;
+
+    /** 
+      * A regular expression method that replaces matched substrings of a 
string. Called by the 
+      * String.prototype.replace method.
+      */
+    readonly replace: 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: symbol;
+
+    /** 
+      * A function valued property that is the constructor function that is 
used to create 
+      * derived objects.
+      */
+    readonly species: 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: symbol;
+
+    /** 
+      * A method that converts an object to a corresponding primitive value.
+      * Called by the ToPrimitive abstract operation.
+      */
+    readonly toPrimitive: 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: symbol;
+
+    /**
+      * An Object whose own property names are property names that are 
excluded from the 'with'
+      * environment bindings of the associated objects.
+      */
+    readonly unscopables: symbol;
+}
+
+interface Symbol {
+    readonly [Symbol.toStringTag]: "Symbol";
+}
+
+interface Array<T> {
+    /**
+     * Returns an object whose properties have the value 'true'
+     * when they will be absent when used in a 'with' statement.
+     */
+    [Symbol.unscopables](): {
+        copyWithin: boolean;
+        entries: boolean;
+        fill: boolean;
+        find: boolean;
+        findIndex: boolean;
+        keys: boolean;
+        values: 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]: "Map";
+}
+
+interface WeakMap<K, V>{
+    readonly [Symbol.toStringTag]: "WeakMap";
+}
+
+interface Set<T> {
+    readonly [Symbol.toStringTag]: "Set";
+}
+
+interface WeakSet<T> {
+    readonly [Symbol.toStringTag]: "WeakSet";
+}
+
+interface JSON {
+    readonly [Symbol.toStringTag]: "JSON";
+}
+
+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 extends Function {
+    readonly [Symbol.toStringTag]: "GeneratorFunction";
+}
+
+interface Math {
+    readonly [Symbol.toStringTag]: "Math";
+}
+
+interface Promise<T> {
+    readonly [Symbol.toStringTag]: "Promise";
+}
+
+interface PromiseConstructor {
+    readonly [Symbol.species]: Function;
+}
+
+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 {
+    [Symbol.species](): RegExpConstructor;
+}
+
+interface String {
+    /**
+      * Matches a string an object that supports being matched against, and 
returns an array containing the results of that search.
+      * @param matcher An object that supports being matched against.
+      */
+    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; 
}): RegExpMatchArray | null;
+
+    /**
+      * 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 replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    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[];
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "ArrayBuffer";
+}
+
+interface DataView {
+    readonly [Symbol.toStringTag]: "DataView";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int8Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "UInt8Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint8ClampedArray";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int16Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint16Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Float32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Float64Array";
 }
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2016.array.include.d.ts 
b/node_modules/typescript/lib/lib.es2016.array.include.d.ts
index 42b95c4..f2e8029 100644
--- a/node_modules/typescript/lib/lib.es2016.array.include.d.ts
+++ b/node_modules/typescript/lib/lib.es2016.array.include.d.ts
@@ -1,109 +1,118 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 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 Int8Array {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 {
-    /**
-      * 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 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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 {
+    /**
+      * 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;
 }
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2016.d.ts 
b/node_modules/typescript/lib/lib.es2016.d.ts
index 5921e06..50fdffa 100644
--- a/node_modules/typescript/lib/lib.es2016.d.ts
+++ b/node_modules/typescript/lib/lib.es2016.d.ts
@@ -1,22 +1,22 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-/// <reference path="lib.es2015.d.ts" />
+
+/// <reference path="lib.es2015.d.ts" />
 /// <reference path="lib.es2016.array.include.d.ts" />
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es2017.d.ts 
b/node_modules/typescript/lib/lib.es2017.d.ts
index 94c75a1..91d11bc 100644
--- a/node_modules/typescript/lib/lib.es2017.d.ts
+++ b/node_modules/typescript/lib/lib.es2017.d.ts
@@ -1,24 +1,24 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 no-default-lib="true"/>
 
-/// <reference path="lib.es2016.d.ts" />
-/// <reference path="lib.es2017.object.d.ts" />
-/// <reference path="lib.es2017.sharedmemory.d.ts" />
-/// <reference path="lib.es2017.string.d.ts" />
+
+/// <reference path="lib.es2016.d.ts" />
+/// <reference path="lib.es2017.object.d.ts" />
+/// <reference path="lib.es2017.sharedmemory.d.ts" />
+/// <reference path="lib.es2017.string.d.ts" />
diff --git a/node_modules/typescript/lib/lib.es2017.object.d.ts 
b/node_modules/typescript/lib/lib.es2017.object.d.ts
index dc38068..2e4e673 100644
--- a/node_modules/typescript/lib/lib.es2017.object.d.ts
+++ b/node_modules/typescript/lib/lib.es2017.object.d.ts
@@ -1,34 +1,45 @@
-/*! 
*****************************************************************************
-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 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 }): T[];
-    values(o: any): any[];
-    /**
-      * Returns an array of key/values of the enumerable 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 extends { [key: string]: any }, K extends keyof T>(o: T): [keyof 
T, T[K]][];
-    entries(o: any): [string, any][];
-}
+/*! 
*****************************************************************************
+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 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 }): T[];
+
+    /**
+      * Returns an array of values of the enumerable 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): any[];
+
+    /**
+      * Returns an array of key/values of the enumerable 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 }): [string, T][];
+
+    /**
+      * Returns an array of key/values of the enumerable 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: any): [string, any][];
+}
diff --git a/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts 
b/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts
index c59e125..656caae 100644
--- a/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts
+++ b/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts
@@ -1,47 +1,47 @@
-/*! 
*****************************************************************************
-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 path="lib.es2015.symbol.d.ts" />
-/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
-
-interface SharedArrayBuffer {
-    /**
-      * Read-only. The length of the ArrayBuffer (in bytes).
-      */
-    readonly byteLength: number;
-
-    /*
-     * The SharedArrayBuffer constructor's length property whose value is 1.
-     */
-    length: number;
-    /**
-      * Returns a section of an SharedArrayBuffer.
-      */ 
-    slice(begin:number, end?:number): SharedArrayBuffer;
-    readonly [Symbol.species]: SharedArrayBuffer;
-    readonly [Symbol.toStringTag]: "SharedArrayBuffer";
-}
-
-interface SharedArrayBufferConstructor {
-    readonly prototype: SharedArrayBuffer;
-    new (byteLength: number): SharedArrayBuffer;
-}
-
+/*! 
*****************************************************************************
+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 path="lib.es2015.symbol.d.ts" />
+/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
+
+interface SharedArrayBuffer {
+    /**
+      * Read-only. The length of the ArrayBuffer (in bytes).
+      */
+    readonly byteLength: number;
+
+    /*
+     * The SharedArrayBuffer constructor's length property whose value is 1.
+     */
+    length: number;
+    /**
+      * Returns a section of an SharedArrayBuffer.
+      */ 
+    slice(begin:number, end?:number): SharedArrayBuffer;
+    readonly [Symbol.species]: SharedArrayBuffer;
+    readonly [Symbol.toStringTag]: "SharedArrayBuffer";
+}
+
+interface SharedArrayBufferConstructor {
+    readonly prototype: SharedArrayBuffer;
+    new (byteLength: number): SharedArrayBuffer;
+}
+
 declare var SharedArrayBuffer: SharedArrayBufferConstructor;
\ No newline at end of file
diff --git a/node_modules/typescript/lib/lib.es5.d.ts 
b/node_modules/typescript/lib/lib.es5.d.ts
index 8e8b3b1..4d48fed 100644
--- a/node_modules/typescript/lib/lib.es5.d.ts
+++ b/node_modules/typescript/lib/lib.es5.d.ts
@@ -1,4195 +1,4195 @@
-/*! 
*****************************************************************************
-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"/>
-
-
-/////////////////////////////
-/// ECMAScript APIs
-/////////////////////////////
-
-declare const NaN: number;
-declare const 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 s A string to convert into a number.
-  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
-  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
-  * All other strings are considered decimal.
-  */
-declare function parseInt(s: 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 encoded 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 encoded URI component.
-  */
-declare function encodeURIComponent(uriComponent: string): string;
-
-interface PropertyDescriptor {
-    configurable?: boolean;
-    enumerable?: boolean;
-    value?: any;
-    writable?: boolean;
-    get? (): any;
-    set? (v: any): void;
-}
-
-interface PropertyDescriptorMap {
-    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
-
-    /**
-      * 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 null prototype.
-      * @param o Object to use as a prototype. May be null
-      */
-    create(o: 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
-      */
-    create<T>(o: T): T;
-
-    /**
-      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
-
-    /**
-      * 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(o: any, properties: PropertyDescriptorMap): any;
-
-    /**
-      * 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 o Object on which to lock the attributes.
-      */
-    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
-}
-
-/**
-  * Provides functionality common to all JavaScript objects.
-  */
-declare const 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 const Function: FunctionConstructor;
-
-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): RegExpMatchArray | null;
-
-    /**
-      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
-      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
-      */
-    match(regexp: RegExp): RegExpMatchArray | null;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: string, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: RegExp, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: 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): number;
-
-    /**
-      * Finds the first substring match in a regular expression search.
-      * @param regexp The regular expression pattern and applicable flags.
-      */
-    search(regexp: 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, limit?: number): string[];
-
-    /**
-      * Split a string into substrings using the specified separator and 
return them as an array.
-      * @param separator A Regular Express 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: 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(): 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(): 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.
-      * @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 const String: StringConstructor;
-
-interface Boolean {
-    /** Returns the primitive value of the specified object. */
-    valueOf(): boolean;
-}
-
-interface BooleanConstructor {
-    new (value?: any): Boolean;
-    (value?: any): boolean;
-    readonly prototype: Boolean;
-}
-
-declare const 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 const Number: NumberConstructor;
-
-interface TemplateStringsArray extends ReadonlyArray<string> {
-    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
-      * @param x The value to be rounded to the nearest number.
-      */
-    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 const 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;
-    /** Gets the time value in milliseconds. */
-    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
-    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): Date;
-    new (value: string): Date;
-    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
-      * @param date The date as an number between 1 and 31.
-      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
-      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
-      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
-      * @param ms An number from 0 to 999 that specifies the milliseconds.
-      */
-    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
-    now(): number;
-}
-
-declare const Date: DateConstructor;
-
-interface RegExpMatchArray extends Array<string> {
-    index?: number;
-    input?: string;
-}
-
-interface RegExpExecArray extends Array<string> {
-    index: number;
-    input: 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
-    compile(): this;
-}
-
-interface RegExpConstructor {
-    new (pattern: RegExp): RegExp;
-    new (pattern: string, flags?: string): RegExp;
-    (pattern: RegExp): RegExp;
-    (pattern: string, flags?: string): RegExp;
-    readonly prototype: RegExp;
-
-    // Non-standard extensions
-    $1: string;
-    $2: string;
-    $3: string;
-    $4: string;
-    $5: string;
-    $6: string;
-    $7: string;
-    $8: string;
-    $9: string;
-    lastMatch: string;
-}
-
-declare const RegExp: RegExpConstructor;
-
-interface Error {
-    name: string;
-    message: string;
-    stack?: string;
-}
-
-interface ErrorConstructor {
-    new (message?: string): Error;
-    (message?: string): Error;
-    readonly prototype: Error;
-}
-
-declare const Error: ErrorConstructor;
-
-interface EvalError extends Error {
-}
-
-interface EvalErrorConstructor {
-    new (message?: string): EvalError;
-    (message?: string): EvalError;
-    readonly prototype: EvalError;
-}
-
-declare const EvalError: EvalErrorConstructor;
-
-interface RangeError extends Error {
-}
-
-interface RangeErrorConstructor {
-    new (message?: string): RangeError;
-    (message?: string): RangeError;
-    readonly prototype: RangeError;
-}
-
-declare const RangeError: RangeErrorConstructor;
-
-interface ReferenceError extends Error {
-}
-
-interface ReferenceErrorConstructor {
-    new (message?: string): ReferenceError;
-    (message?: string): ReferenceError;
-    readonly prototype: ReferenceError;
-}
-
-declare const ReferenceError: ReferenceErrorConstructor;
-
-interface SyntaxError extends Error {
-}
-
-interface SyntaxErrorConstructor {
-    new (message?: string): SyntaxError;
-    (message?: string): SyntaxError;
-    readonly prototype: SyntaxError;
-}
-
-declare const SyntaxError: SyntaxErrorConstructor;
-
-interface TypeError extends Error {
-}
-
-interface TypeErrorConstructor {
-    new (message?: string): TypeError;
-    (message?: string): TypeError;
-    readonly prototype: TypeError;
-}
-
-declare const TypeError: TypeErrorConstructor;
-
-interface URIError extends Error {
-}
-
-interface URIErrorConstructor {
-    new (message?: string): URIError;
-    (message?: string): URIError;
-    readonly prototype: URIError;
-}
-
-declare const 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.
-      */
-    parse(text: string, reviver?: (key: any, 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.
-      */
-    stringify(value: any, replacer?: (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 a 
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.
-      */
-    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 const 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;
-    toLocaleString(): string;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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.
-      */
-    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
-    /**
-     * Returns the elements of an array that meet the condition specified in a 
callback function.
-     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-     */
-    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
-    /**
-      * Returns the elements of an array that meet the condition specified in 
a callback function.
-      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
-
-    readonly [n: number]: T;
-}
-
-interface Array<T> {
-    /**
-      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
-      */
-    length: number;
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-    toLocaleString(): string;
-    /**
-      * Appends new elements to an array, and returns the new length of the 
array.
-      * @param items New elements of the Array.
-      */
-    push(...items: T[]): number;
-    /**
-      * Removes the last element from an array and returns it.
-      */
-    pop(): T | undefined;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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;
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): T[];
-    /**
-      * Removes the first element from an array and returns it.
-      */
-    shift(): T | undefined;
-    /**
-      * 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): T[];
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
-      */
-    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.
-      */
-    splice(start: 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.
-      * @param items Elements to insert into the array in place of the deleted 
elements.
-      */
-    splice(start: number, deleteCount: number, ...items: T[]): T[];
-    /**
-      * Inserts new elements at the start of an 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.
-      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
-    /**
-      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
-    /**
-      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
-    /**
-      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
-    readonly prototype: Array<any>;
-}
-
-declare const Array: ArrayConstructor;
-
-interface TypedPropertyDescriptor<T> {
-    enumerable?: boolean;
-    configurable?: boolean;
-    writable?: boolean;
-    value?: T;
-    get?: () => T;
-    set?: (value: T) => void;
-}
-
-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, parameterIndex: number) => 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(
-        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
-        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
-
-    /**
-     * 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<TResult>(
-        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
-        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
-
-    /**
-     * 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, TResult2>(
-        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
-        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
-}
-
-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 readonly
- */
-type Readonly<T> = {
-    readonly [P in keyof T]: T[P];
-};
-
-/**
- * From T pick a set of properties 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 string, T> = {
-    [P in K]: T;
-}
-
-/**
-  * 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;
-}
-
-interface ArrayBufferConstructor {
-    readonly prototype: ArrayBuffer;
-    new (byteLength: number): ArrayBuffer;
-    isView(arg: any): arg is ArrayBufferView;
-}
-declare const ArrayBuffer: ArrayBufferConstructor;
-
-interface ArrayBufferView {
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    buffer: ArrayBuffer;
-
-    /**
-      * The length in bytes of the array.
-      */
-    byteLength: number;
-
-    /**
-      * The offset in bytes of the array.
-      */
-    byteOffset: number;
-}
-
-interface DataView {
-    readonly buffer: ArrayBuffer;
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-endian value should be written.
-      */
-    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
-}
-
-interface DataViewConstructor {
-    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-interface Int8ArrayConstructor {
-    readonly prototype: Int8Array;
-    new (length: number): Int8Array;
-    new (array: ArrayLike<number>): Int8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ArrayConstructor {
-    readonly prototype: Uint8Array;
-    new (length: number): Uint8Array;
-    new (array: ArrayLike<number>): Uint8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8ClampedArray;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ClampedArrayConstructor {
-    readonly prototype: Uint8ClampedArray;
-    new (length: number): Uint8ClampedArray;
-    new (array: ArrayLike<number>): Uint8ClampedArray;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int16ArrayConstructor {
-    readonly prototype: Int16Array;
-    new (length: number): Int16Array;
-    new (array: ArrayLike<number>): Int16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint16ArrayConstructor {
-    readonly prototype: Uint16Array;
-    new (length: number): Uint16Array;
-    new (array: ArrayLike<number>): Uint16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int32ArrayConstructor {
-    readonly prototype: Int32Array;
-    new (length: number): Int32Array;
-    new (array: ArrayLike<number>): Int32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint32ArrayConstructor {
-    readonly prototype: Uint32Array;
-    new (length: number): Uint32Array;
-    new (array: ArrayLike<number>): Uint32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float32ArrayConstructor {
-    readonly prototype: Float32Array;
-    new (length: number): Float32Array;
-    new (array: ArrayLike<number>): Float32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float64Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float64Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float64ArrayConstructor {
-    readonly prototype: Float64Array;
-    new (length: number): Float64Array;
-    new (array: ArrayLike<number>): Float64Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
-}
-declare const Float64Array: Float64ArrayConstructor;
-
-/////////////////////////////
-/// ECMAScript Internationalization API
-/////////////////////////////
-
-declare module Intl {
-    interface CollatorOptions {
-        usage?: string;
-        localeMatcher?: string;
-        numeric?: boolean;
-        caseFirst?: string;
-        sensitivity?: string;
-        ignorePunctuation?: boolean;
-    }
-
-    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;
-    }
-    var Collator: {
-        new (locales?: string | string[], options?: CollatorOptions): Collator;
-        (locales?: string | string[], options?: CollatorOptions): Collator;
-        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
-    }
-
-    interface NumberFormatOptions {
-        localeMatcher?: string;
-        style?: string;
-        currency?: string;
-        currencyDisplay?: string;
-        useGrouping?: boolean;
-        minimumIntegerDigits?: number;
-        minimumFractionDigits?: number;
-        maximumFractionDigits?: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-    }
-
-    interface ResolvedNumberFormatOptions {
-        locale: string;
-        numberingSystem: string;
-        style: string;
-        currency?: string;
-        currencyDisplay?: string;
-        minimumIntegerDigits: number;
-        minimumFractionDigits: number;
-        maximumFractionDigits: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-        useGrouping: boolean;
-    }
-
-    interface NumberFormat {
-        format(value: number): string;
-        resolvedOptions(): ResolvedNumberFormatOptions;
-    }
-    var NumberFormat: {
-        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
-    }
-
-    interface DateTimeFormatOptions {
-        localeMatcher?: string;
-        weekday?: string;
-        era?: string;
-        year?: string;
-        month?: string;
-        day?: string;
-        hour?: string;
-        minute?: string;
-        second?: string;
-        timeZoneName?: string;
-        formatMatcher?: string;
-        hour12?: boolean;
-        timeZone?: string;
-    }
-
-    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;
-    }
-    var DateTimeFormat: {
-        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
-    }
-}
-
-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;
-}
+/*! 
*****************************************************************************
+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"/>
+
+
+/////////////////////////////
+/// ECMAScript APIs
+/////////////////////////////
+
+declare const NaN: number;
+declare const 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 s A string to convert into a number.
+  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
+  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
+  * All other strings are considered decimal.
+  */
+declare function parseInt(s: 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 encoded 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 encoded URI component.
+  */
+declare function encodeURIComponent(uriComponent: string): string;
+
+interface PropertyDescriptor {
+    configurable?: boolean;
+    enumerable?: boolean;
+    value?: any;
+    writable?: boolean;
+    get? (): any;
+    set? (v: any): void;
+}
+
+interface PropertyDescriptorMap {
+    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
+
+    /**
+      * 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 null prototype.
+      * @param o Object to use as a prototype. May be null
+      */
+    create(o: 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
+      */
+    create<T>(o: T): T;
+
+    /**
+      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
+
+    /**
+      * 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(o: any, properties: PropertyDescriptorMap): any;
+
+    /**
+      * 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 o Object on which to lock the attributes.
+      */
+    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
+}
+
+/**
+  * Provides functionality common to all JavaScript objects.
+  */
+declare const 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 const Function: FunctionConstructor;
+
+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): RegExpMatchArray | null;
+
+    /**
+      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
+      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
+      */
+    match(regexp: RegExp): RegExpMatchArray | null;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: string, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: RegExp, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: 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): number;
+
+    /**
+      * Finds the first substring match in a regular expression search.
+      * @param regexp The regular expression pattern and applicable flags.
+      */
+    search(regexp: 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, limit?: number): string[];
+
+    /**
+      * Split a string into substrings using the specified separator and 
return them as an array.
+      * @param separator A Regular Express 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: 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(): 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(): 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.
+      * @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 const String: StringConstructor;
+
+interface Boolean {
+    /** Returns the primitive value of the specified object. */
+    valueOf(): boolean;
+}
+
+interface BooleanConstructor {
+    new (value?: any): Boolean;
+    (value?: any): boolean;
+    readonly prototype: Boolean;
+}
+
+declare const 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 const Number: NumberConstructor;
+
+interface TemplateStringsArray extends ReadonlyArray<string> {
+    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
+      * @param x The value to be rounded to the nearest number.
+      */
+    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 const 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;
+    /** Gets the time value in milliseconds. */
+    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
+    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): Date;
+    new (value: string): Date;
+    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
+      * @param date The date as an number between 1 and 31.
+      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
+      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
+      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
+      * @param ms An number from 0 to 999 that specifies the milliseconds.
+      */
+    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
+    now(): number;
+}
+
+declare const Date: DateConstructor;
+
+interface RegExpMatchArray extends Array<string> {
+    index?: number;
+    input?: string;
+}
+
+interface RegExpExecArray extends Array<string> {
+    index: number;
+    input: 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
+    compile(): this;
+}
+
+interface RegExpConstructor {
+    new (pattern: RegExp): RegExp;
+    new (pattern: string, flags?: string): RegExp;
+    (pattern: RegExp): RegExp;
+    (pattern: string, flags?: string): RegExp;
+    readonly prototype: RegExp;
+
+    // Non-standard extensions
+    $1: string;
+    $2: string;
+    $3: string;
+    $4: string;
+    $5: string;
+    $6: string;
+    $7: string;
+    $8: string;
+    $9: string;
+    lastMatch: string;
+}
+
+declare const RegExp: RegExpConstructor;
+
+interface Error {
+    name: string;
+    message: string;
+    stack?: string;
+}
+
+interface ErrorConstructor {
+    new (message?: string): Error;
+    (message?: string): Error;
+    readonly prototype: Error;
+}
+
+declare const Error: ErrorConstructor;
+
+interface EvalError extends Error {
+}
+
+interface EvalErrorConstructor {
+    new (message?: string): EvalError;
+    (message?: string): EvalError;
+    readonly prototype: EvalError;
+}
+
+declare const EvalError: EvalErrorConstructor;
+
+interface RangeError extends Error {
+}
+
+interface RangeErrorConstructor {
+    new (message?: string): RangeError;
+    (message?: string): RangeError;
+    readonly prototype: RangeError;
+}
+
+declare const RangeError: RangeErrorConstructor;
+
+interface ReferenceError extends Error {
+}
+
+interface ReferenceErrorConstructor {
+    new (message?: string): ReferenceError;
+    (message?: string): ReferenceError;
+    readonly prototype: ReferenceError;
+}
+
+declare const ReferenceError: ReferenceErrorConstructor;
+
+interface SyntaxError extends Error {
+}
+
+interface SyntaxErrorConstructor {
+    new (message?: string): SyntaxError;
+    (message?: string): SyntaxError;
+    readonly prototype: SyntaxError;
+}
+
+declare const SyntaxError: SyntaxErrorConstructor;
+
+interface TypeError extends Error {
+}
+
+interface TypeErrorConstructor {
+    new (message?: string): TypeError;
+    (message?: string): TypeError;
+    readonly prototype: TypeError;
+}
+
+declare const TypeError: TypeErrorConstructor;
+
+interface URIError extends Error {
+}
+
+interface URIErrorConstructor {
+    new (message?: string): URIError;
+    (message?: string): URIError;
+    readonly prototype: URIError;
+}
+
+declare const 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.
+      */
+    parse(text: string, reviver?: (key: any, 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.
+      */
+    stringify(value: any, replacer?: (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 a 
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.
+      */
+    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 const 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;
+    toLocaleString(): string;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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.
+      */
+    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
+    /**
+     * Returns the elements of an array that meet the condition specified in a 
callback function.
+     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+     */
+    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
+    /**
+      * Returns the elements of an array that meet the condition specified in 
a callback function.
+      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
+
+    readonly [n: number]: T;
+}
+
+interface Array<T> {
+    /**
+      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
+      */
+    length: number;
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+    toLocaleString(): string;
+    /**
+      * Appends new elements to an array, and returns the new length of the 
array.
+      * @param items New elements of the Array.
+      */
+    push(...items: T[]): number;
+    /**
+      * Removes the last element from an array and returns it.
+      */
+    pop(): T | undefined;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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;
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): T[];
+    /**
+      * Removes the first element from an array and returns it.
+      */
+    shift(): T | undefined;
+    /**
+      * 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): T[];
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
+      */
+    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.
+      */
+    splice(start: 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.
+      * @param items Elements to insert into the array in place of the deleted 
elements.
+      */
+    splice(start: number, deleteCount: number, ...items: T[]): T[];
+    /**
+      * Inserts new elements at the start of an 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.
+      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
+    /**
+      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
+    /**
+      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
+    /**
+      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
+    readonly prototype: Array<any>;
+}
+
+declare const Array: ArrayConstructor;
+
+interface TypedPropertyDescriptor<T> {
+    enumerable?: boolean;
+    configurable?: boolean;
+    writable?: boolean;
+    value?: T;
+    get?: () => T;
+    set?: (value: T) => void;
+}
+
+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, parameterIndex: number) => 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(
+        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
+        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
+
+    /**
+     * 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<TResult>(
+        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
+        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
+
+    /**
+     * 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, TResult2>(
+        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
+        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
+}
+
+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 readonly
+ */
+type Readonly<T> = {
+    readonly [P in keyof T]: T[P];
+};
+
+/**
+ * From T pick a set of properties 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 string, T> = {
+    [P in K]: T;
+}
+
+/**
+  * 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;
+}
+
+interface ArrayBufferConstructor {
+    readonly prototype: ArrayBuffer;
+    new (byteLength: number): ArrayBuffer;
+    isView(arg: any): arg is ArrayBufferView;
+}
+declare const ArrayBuffer: ArrayBufferConstructor;
+
+interface ArrayBufferView {
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    buffer: ArrayBuffer;
+
+    /**
+      * The length in bytes of the array.
+      */
+    byteLength: number;
+
+    /**
+      * The offset in bytes of the array.
+      */
+    byteOffset: number;
+}
+
+interface DataView {
+    readonly buffer: ArrayBuffer;
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-endian value should be written.
+      */
+    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
+}
+
+interface DataViewConstructor {
+    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+interface Int8ArrayConstructor {
+    readonly prototype: Int8Array;
+    new (length: number): Int8Array;
+    new (array: ArrayLike<number>): Int8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ArrayConstructor {
+    readonly prototype: Uint8Array;
+    new (length: number): Uint8Array;
+    new (array: ArrayLike<number>): Uint8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8ClampedArray;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ClampedArrayConstructor {
+    readonly prototype: Uint8ClampedArray;
+    new (length: number): Uint8ClampedArray;
+    new (array: ArrayLike<number>): Uint8ClampedArray;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int16ArrayConstructor {
+    readonly prototype: Int16Array;
+    new (length: number): Int16Array;
+    new (array: ArrayLike<number>): Int16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint16ArrayConstructor {
+    readonly prototype: Uint16Array;
+    new (length: number): Uint16Array;
+    new (array: ArrayLike<number>): Uint16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int32ArrayConstructor {
+    readonly prototype: Int32Array;
+    new (length: number): Int32Array;
+    new (array: ArrayLike<number>): Int32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint32ArrayConstructor {
+    readonly prototype: Uint32Array;
+    new (length: number): Uint32Array;
+    new (array: ArrayLike<number>): Uint32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float32ArrayConstructor {
+    readonly prototype: Float32Array;
+    new (length: number): Float32Array;
+    new (array: ArrayLike<number>): Float32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float64Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float64Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float64ArrayConstructor {
+    readonly prototype: Float64Array;
+    new (length: number): Float64Array;
+    new (array: ArrayLike<number>): Float64Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
+}
+declare const Float64Array: Float64ArrayConstructor;
+
+/////////////////////////////
+/// ECMAScript Internationalization API
+/////////////////////////////
+
+declare module Intl {
+    interface CollatorOptions {
+        usage?: string;
+        localeMatcher?: string;
+        numeric?: boolean;
+        caseFirst?: string;
+        sensitivity?: string;
+        ignorePunctuation?: boolean;
+    }
+
+    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;
+    }
+    var Collator: {
+        new (locales?: string | string[], options?: CollatorOptions): Collator;
+        (locales?: string | string[], options?: CollatorOptions): Collator;
+        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
+    }
+
+    interface NumberFormatOptions {
+        localeMatcher?: string;
+        style?: string;
+        currency?: string;
+        currencyDisplay?: string;
+        useGrouping?: boolean;
+        minimumIntegerDigits?: number;
+        minimumFractionDigits?: number;
+        maximumFractionDigits?: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+    }
+
+    interface ResolvedNumberFormatOptions {
+        locale: string;
+        numberingSystem: string;
+        style: string;
+        currency?: string;
+        currencyDisplay?: string;
+        minimumIntegerDigits: number;
+        minimumFractionDigits: number;
+        maximumFractionDigits: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+        useGrouping: boolean;
+    }
+
+    interface NumberFormat {
+        format(value: number): string;
+        resolvedOptions(): ResolvedNumberFormatOptions;
+    }
+    var NumberFormat: {
+        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
+    }
+
+    interface DateTimeFormatOptions {
+        localeMatcher?: string;
+        weekday?: string;
+        era?: string;
+        year?: string;
+        month?: string;
+        day?: string;
+        hour?: string;
+        minute?: string;
+        second?: string;
+        timeZoneName?: string;
+        formatMatcher?: string;
+        hour12?: boolean;
+        timeZone?: string;
+    }
+
+    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;
+    }
+    var DateTimeFormat: {
+        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
+    }
+}
+
+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;
+}
diff --git a/node_modules/typescript/lib/lib.es6.d.ts 
b/node_modules/typescript/lib/lib.es6.d.ts
index e2b9565..9530bf7 100644
--- a/node_modules/typescript/lib/lib.es6.d.ts
+++ b/node_modules/typescript/lib/lib.es6.d.ts
@@ -1,19950 +1,19950 @@
-/*! 
*****************************************************************************
-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"/>
-
-
-/////////////////////////////
-/// ECMAScript APIs
-/////////////////////////////
-
-declare const NaN: number;
-declare const 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 s A string to convert into a number.
-  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
-  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
-  * All other strings are considered decimal.
-  */
-declare function parseInt(s: 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 encoded 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 encoded URI component.
-  */
-declare function encodeURIComponent(uriComponent: string): string;
-
-interface PropertyDescriptor {
-    configurable?: boolean;
-    enumerable?: boolean;
-    value?: any;
-    writable?: boolean;
-    get? (): any;
-    set? (v: any): void;
-}
-
-interface PropertyDescriptorMap {
-    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
-
-    /**
-      * 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 null prototype.
-      * @param o Object to use as a prototype. May be null
-      */
-    create(o: 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
-      */
-    create<T>(o: T): T;
-
-    /**
-      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
-
-    /**
-      * 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(o: any, properties: PropertyDescriptorMap): any;
-
-    /**
-      * 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 o Object on which to lock the attributes.
-      */
-    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
-}
-
-/**
-  * Provides functionality common to all JavaScript objects.
-  */
-declare const 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 const Function: FunctionConstructor;
-
-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): RegExpMatchArray | null;
-
-    /**
-      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
-      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
-      */
-    match(regexp: RegExp): RegExpMatchArray | null;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: string, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A string that represents the regular expression.
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
-      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    replace(searchValue: RegExp, replaceValue: string): string;
-
-    /**
-      * Replaces text in a string, using a regular expression or search string.
-      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
-      * @param replacer A function that returns the replacement text.
-      */
-    replace(searchValue: 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): number;
-
-    /**
-      * Finds the first substring match in a regular expression search.
-      * @param regexp The regular expression pattern and applicable flags.
-      */
-    search(regexp: 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, limit?: number): string[];
-
-    /**
-      * Split a string into substrings using the specified separator and 
return them as an array.
-      * @param separator A Regular Express 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: 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(): 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(): 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.
-      * @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 const String: StringConstructor;
-
-interface Boolean {
-    /** Returns the primitive value of the specified object. */
-    valueOf(): boolean;
-}
-
-interface BooleanConstructor {
-    new (value?: any): Boolean;
-    (value?: any): boolean;
-    readonly prototype: Boolean;
-}
-
-declare const 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 const Number: NumberConstructor;
-
-interface TemplateStringsArray extends ReadonlyArray<string> {
-    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
-      * @param x The value to be rounded to the nearest number.
-      */
-    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 const 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;
-    /** Gets the time value in milliseconds. */
-    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
-    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): Date;
-    new (value: string): Date;
-    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
-      * @param date The date as an number between 1 and 31.
-      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
-      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
-      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
-      * @param ms An number from 0 to 999 that specifies the milliseconds.
-      */
-    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
-    now(): number;
-}
-
-declare const Date: DateConstructor;
-
-interface RegExpMatchArray extends Array<string> {
-    index?: number;
-    input?: string;
-}
-
-interface RegExpExecArray extends Array<string> {
-    index: number;
-    input: 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
-    compile(): this;
-}
-
-interface RegExpConstructor {
-    new (pattern: RegExp): RegExp;
-    new (pattern: string, flags?: string): RegExp;
-    (pattern: RegExp): RegExp;
-    (pattern: string, flags?: string): RegExp;
-    readonly prototype: RegExp;
-
-    // Non-standard extensions
-    $1: string;
-    $2: string;
-    $3: string;
-    $4: string;
-    $5: string;
-    $6: string;
-    $7: string;
-    $8: string;
-    $9: string;
-    lastMatch: string;
-}
-
-declare const RegExp: RegExpConstructor;
-
-interface Error {
-    name: string;
-    message: string;
-    stack?: string;
-}
-
-interface ErrorConstructor {
-    new (message?: string): Error;
-    (message?: string): Error;
-    readonly prototype: Error;
-}
-
-declare const Error: ErrorConstructor;
-
-interface EvalError extends Error {
-}
-
-interface EvalErrorConstructor {
-    new (message?: string): EvalError;
-    (message?: string): EvalError;
-    readonly prototype: EvalError;
-}
-
-declare const EvalError: EvalErrorConstructor;
-
-interface RangeError extends Error {
-}
-
-interface RangeErrorConstructor {
-    new (message?: string): RangeError;
-    (message?: string): RangeError;
-    readonly prototype: RangeError;
-}
-
-declare const RangeError: RangeErrorConstructor;
-
-interface ReferenceError extends Error {
-}
-
-interface ReferenceErrorConstructor {
-    new (message?: string): ReferenceError;
-    (message?: string): ReferenceError;
-    readonly prototype: ReferenceError;
-}
-
-declare const ReferenceError: ReferenceErrorConstructor;
-
-interface SyntaxError extends Error {
-}
-
-interface SyntaxErrorConstructor {
-    new (message?: string): SyntaxError;
-    (message?: string): SyntaxError;
-    readonly prototype: SyntaxError;
-}
-
-declare const SyntaxError: SyntaxErrorConstructor;
-
-interface TypeError extends Error {
-}
-
-interface TypeErrorConstructor {
-    new (message?: string): TypeError;
-    (message?: string): TypeError;
-    readonly prototype: TypeError;
-}
-
-declare const TypeError: TypeErrorConstructor;
-
-interface URIError extends Error {
-}
-
-interface URIErrorConstructor {
-    new (message?: string): URIError;
-    (message?: string): URIError;
-    readonly prototype: URIError;
-}
-
-declare const 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.
-      */
-    parse(text: string, reviver?: (key: any, 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.
-      */
-    stringify(value: any, replacer?: (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 a 
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.
-      */
-    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 const 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;
-    toLocaleString(): string;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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.
-      */
-    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
-    /**
-     * Returns the elements of an array that meet the condition specified in a 
callback function.
-     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-     */
-    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
-    /**
-      * Returns the elements of an array that meet the condition specified in 
a callback function.
-      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
-
-    readonly [n: number]: T;
-}
-
-interface Array<T> {
-    /**
-      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
-      */
-    length: number;
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-    toLocaleString(): string;
-    /**
-      * Appends new elements to an array, and returns the new length of the 
array.
-      * @param items New elements of the Array.
-      */
-    push(...items: T[]): number;
-    /**
-      * Removes the last element from an array and returns it.
-      */
-    pop(): T | undefined;
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: T[][]): T[];
-    /**
-      * Combines two or more arrays.
-      * @param items Additional items to add to the end of array1.
-      */
-    concat(...items: (T | 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;
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): T[];
-    /**
-      * Removes the first element from an array and returns it.
-      */
-    shift(): T | undefined;
-    /**
-      * 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): T[];
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
-      */
-    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.
-      */
-    splice(start: 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.
-      * @param items Elements to insert into the array in place of the deleted 
elements.
-      */
-    splice(start: number, deleteCount: number, ...items: T[]): T[];
-    /**
-      * Inserts new elements at the start of an 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.
-      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
-      */
-    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
-      */
-    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
-    /**
-      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
-    /**
-      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
-    /**
-      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
-    readonly prototype: Array<any>;
-}
-
-declare const Array: ArrayConstructor;
-
-interface TypedPropertyDescriptor<T> {
-    enumerable?: boolean;
-    configurable?: boolean;
-    writable?: boolean;
-    value?: T;
-    get?: () => T;
-    set?: (value: T) => void;
-}
-
-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, parameterIndex: number) => 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(
-        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
-        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
-        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
-
-    /**
-     * 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<TResult>(
-        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
-        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
-
-    /**
-     * 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, TResult2>(
-        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
-        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
-}
-
-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 readonly
- */
-type Readonly<T> = {
-    readonly [P in keyof T]: T[P];
-};
-
-/**
- * From T pick a set of properties 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 string, T> = {
-    [P in K]: T;
-}
-
-/**
-  * 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;
-}
-
-interface ArrayBufferConstructor {
-    readonly prototype: ArrayBuffer;
-    new (byteLength: number): ArrayBuffer;
-    isView(arg: any): arg is ArrayBufferView;
-}
-declare const ArrayBuffer: ArrayBufferConstructor;
-
-interface ArrayBufferView {
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    buffer: ArrayBuffer;
-
-    /**
-      * The length in bytes of the array.
-      */
-    byteLength: number;
-
-    /**
-      * The offset in bytes of the array.
-      */
-    byteOffset: number;
-}
-
-interface DataView {
-    readonly buffer: ArrayBuffer;
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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.
-      */
-    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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-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,
-      * otherwise a little-endian value should be written.
-      */
-    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
-}
-
-interface DataViewConstructor {
-    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
-
-    /**
-      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-interface Int8ArrayConstructor {
-    readonly prototype: Int8Array;
-    new (length: number): Int8Array;
-    new (array: ArrayLike<number>): Int8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
-
-    /**
-      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint8Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ArrayConstructor {
-    readonly prototype: Uint8Array;
-    new (length: number): Uint8Array;
-    new (array: ArrayLike<number>): Uint8Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
-
-    /**
-      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint8ClampedArray;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint8ClampedArrayConstructor {
-    readonly prototype: Uint8ClampedArray;
-    new (length: number): Uint8ClampedArray;
-    new (array: ArrayLike<number>): Uint8ClampedArray;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
-
-    /**
-      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int16ArrayConstructor {
-    readonly prototype: Int16Array;
-    new (length: number): Int16Array;
-    new (array: ArrayLike<number>): Int16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
-
-    /**
-      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint16Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint16Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint16ArrayConstructor {
-    readonly prototype: Uint16Array;
-    new (length: number): Uint16Array;
-    new (array: ArrayLike<number>): Uint16Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
-
-    /**
-      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Int32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Int32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Int32ArrayConstructor {
-    readonly prototype: Int32Array;
-    new (length: number): Int32Array;
-    new (array: ArrayLike<number>): Int32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
-
-    /**
-      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Uint32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Uint32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Uint32ArrayConstructor {
-    readonly prototype: Uint32Array;
-    new (length: number): Uint32Array;
-    new (array: ArrayLike<number>): Uint32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
-
-    /**
-      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float32Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float32Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float32ArrayConstructor {
-    readonly prototype: Float32Array;
-    new (length: number): Float32Array;
-    new (array: ArrayLike<number>): Float32Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
-
-}
-declare const 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 {
-    /**
-      * The size in bytes of each element in the array.
-      */
-    readonly BYTES_PER_ELEMENT: number;
-
-    /**
-      * The ArrayBuffer instance referenced by the array.
-      */
-    readonly buffer: ArrayBuffer;
-
-    /**
-      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
-      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
-      * or until the end of 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.
-      */
-    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-        * Returns the this object after filling the section identified by 
start and end with value
-        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
-      */
-    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
-
-    /**
-      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
-
-    /**
-      * Reverses the elements in an Array.
-      */
-    reverse(): Float64Array;
-
-    /**
-      * Sets a value or an array of values.
-      * @param index The index of the location to set.
-      * @param value The value to set.
-      */
-    set(index: number, value: number): void;
-
-    /**
-      * 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.
-      */
-    slice(start?: number, end?: number): Float64Array;
-
-    /**
-      * Determines whether the specified callback function returns true for 
any element of an array.
-      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
-      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
-      * the end of 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.
-      */
-    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
-
-    /**
-      * Sorts an array.
-      * @param compareFn The name of the function used to determine the order 
of the elements. If
-      * omitted, the elements are sorted in ascending, ASCII character order.
-      */
-    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;
-
-    /**
-      * Converts a number to a string by using the current locale.
-      */
-    toLocaleString(): string;
-
-    /**
-      * Returns a string representation of an array.
-      */
-    toString(): string;
-
-    [index: number]: number;
-}
-
-interface Float64ArrayConstructor {
-    readonly prototype: Float64Array;
-    new (length: number): Float64Array;
-    new (array: ArrayLike<number>): Float64Array;
-    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
-
-    /**
-      * 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;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
-}
-declare const Float64Array: Float64ArrayConstructor;
-
-/////////////////////////////
-/// ECMAScript Internationalization API
-/////////////////////////////
-
-declare module Intl {
-    interface CollatorOptions {
-        usage?: string;
-        localeMatcher?: string;
-        numeric?: boolean;
-        caseFirst?: string;
-        sensitivity?: string;
-        ignorePunctuation?: boolean;
-    }
-
-    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;
-    }
-    var Collator: {
-        new (locales?: string | string[], options?: CollatorOptions): Collator;
-        (locales?: string | string[], options?: CollatorOptions): Collator;
-        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
-    }
-
-    interface NumberFormatOptions {
-        localeMatcher?: string;
-        style?: string;
-        currency?: string;
-        currencyDisplay?: string;
-        useGrouping?: boolean;
-        minimumIntegerDigits?: number;
-        minimumFractionDigits?: number;
-        maximumFractionDigits?: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-    }
-
-    interface ResolvedNumberFormatOptions {
-        locale: string;
-        numberingSystem: string;
-        style: string;
-        currency?: string;
-        currencyDisplay?: string;
-        minimumIntegerDigits: number;
-        minimumFractionDigits: number;
-        maximumFractionDigits: number;
-        minimumSignificantDigits?: number;
-        maximumSignificantDigits?: number;
-        useGrouping: boolean;
-    }
-
-    interface NumberFormat {
-        format(value: number): string;
-        resolvedOptions(): ResolvedNumberFormatOptions;
-    }
-    var NumberFormat: {
-        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
-    }
-
-    interface DateTimeFormatOptions {
-        localeMatcher?: string;
-        weekday?: string;
-        era?: string;
-        year?: string;
-        month?: string;
-        day?: string;
-        hour?: string;
-        minute?: string;
-        second?: string;
-        timeZoneName?: string;
-        formatMatcher?: string;
-        hour12?: boolean;
-        timeZone?: string;
-    }
-
-    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;
-    }
-    var DateTimeFormat: {
-        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
-        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
-    }
-}
-
-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;
-}
-
-
-declare type PropertyKey = string | number | symbol;
-
-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(predicate: (value: T, index: number, obj: Array<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
-
-    /**
-      * Returns the this object after filling the section identified by start 
and end with value
-      * @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;
-}
-
-interface ArrayConstructor {
-    /**
-      * Creates an array from an array-like 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): Array<U>;
-
-
-    /**
-      * Creates an array from an array-like object.
-      * @param arrayLike An array-like object to convert to an array.
-      */
-    from<T>(arrayLike: ArrayLike<T>): Array<T>;
-
-    /**
-      * 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[]): Array<T>;
-}
-
-interface DateConstructor {
-    new (value: 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) 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: number): boolean;
-
-    /**
-      * Returns true if the value passed is an integer, false otherwise.
-      * @param number A numeric value.
-      */
-    isInteger(number: number): 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: number): boolean;
-
-    /**
-      * Returns true if the value passed is a safe integer.
-      * @param number A numeric value.
-      */
-    isSafeInteger(number: number): 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 s A string to convert into a number.
-      * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
-      * 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 Object {
-    /**
-      * Determines whether an object has a property with the specified name.
-      * @param v A property name.
-      */
-    hasOwnProperty(v: PropertyKey): boolean
-
-    /**
-      * Determines whether a specified property is enumerable.
-      * @param v A property name.
-      */
-    propertyIsEnumerable(v: PropertyKey): boolean;
-}
-
-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, 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, 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, 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: any, ...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 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: 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, propertyKey: PropertyKey): 
PropertyDescriptor;
-
-    /**
-      * 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(o: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): 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(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
-}
-
-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, flags?: string): RegExp;
-    (pattern: RegExp, 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,
-      * T is 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
-      * @param name
-      */
-    anchor(name: string): string;
-
-    /** Returns a <big> HTML element */
-    big(): string;
-
-    /** Returns a <blink> HTML element */
-    blink(): string;
-
-    /** Returns a <b> HTML element */
-    bold(): string;
-
-    /** Returns a <tt> HTML element */
-    fixed(): string
-
-    /** Returns a <font> HTML element and sets the color attribute value */
-    fontcolor(color: string): string
-
-    /** Returns a <font> HTML element and sets the size attribute value */
-    fontsize(size: number): string;
-
-    /** Returns a <font> HTML element and sets the size attribute value */
-    fontsize(size: string): string;
-
-    /** Returns an <i> HTML element */
-    italics(): string;
-
-    /** Returns an <a> HTML element and sets the href attribute value */
-    link(url: string): string;
-
-    /** Returns a <small> HTML element */
-    small(): string;
-
-    /** Returns a <strike> HTML element */
-    strike(): string;
-
-    /** Returns a <sub> HTML element */
-    sub(): string;
-
-    /** Returns a <sup> HTML element */
-    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 intended for use 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.
-      * @param template A well-formed template string call site representation.
-      * @param substitutions A set of substitution values.
-      */
-    raw(template: TemplateStringsArray, ...substitutions: any[]): string;
-}
-
-
-interface Map<K, V> {
-    clear(): void;
-    delete(key: K): boolean;
-    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: 
any): void;
-    get(key: K): V | undefined;
-    has(key: K): boolean;
-    set(key: K, value?: V): this;
-    readonly size: number;
-}
-
-interface MapConstructor {
-    new (): Map<any, any>;
-    new <K, V>(entries?: [K, V][]): 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, V> {
-    delete(key: K): boolean;
-    get(key: K): V | undefined;
-    has(key: K): boolean;
-    set(key: K, value?: V): this;
-}
-
-interface WeakMapConstructor {
-    new (): WeakMap<any, any>;
-    new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
-    readonly prototype: WeakMap<any, any>;
-}
-declare var WeakMap: WeakMapConstructor;
-
-interface Set<T> {
-    add(value: T): this;
-    clear(): void;
-    delete(value: T): boolean;
-    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: 
any): void;
-    has(value: T): boolean;
-    readonly size: number;
-}
-
-interface SetConstructor {
-    new (): Set<any>;
-    new <T>(values?: T[]): 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> {
-    add(value: T): this;
-    delete(value: T): boolean;
-    has(value: T): boolean;
-}
-
-interface WeakSetConstructor {
-    new (): WeakSet<any>;
-    new <T>(values?: T[]): WeakSet<T>;
-    readonly prototype: WeakSet<any>;
-}
-declare var WeakSet: WeakSetConstructor;
-
-
-interface GeneratorFunction extends Function { }
-
-interface GeneratorFunctionConstructor {
-    /**
-      * Creates a new Generator function.
-      * @param args A list of arguments the function accepts.
-      */
-    new (...args: string[]): GeneratorFunction;
-    (...args: string[]): GeneratorFunction;
-    readonly prototype: GeneratorFunction;
-}
-declare var GeneratorFunction: GeneratorFunctionConstructor;
-
-
-/// <reference path="lib.es2015.symbol.d.ts" />
-
-interface SymbolConstructor {
-    /** 
-      * A method that returns the default iterator for an object. Called by 
the semantics of the 
-      * for-of statement.
-      */
-    readonly iterator: symbol;
-}
-
-interface IteratorResult<T> {
-    done: boolean;
-    value: T;
-}
-
-interface Iterator<T> {
-    next(value?: any): IteratorResult<T>;
-    return?(value?: any): IteratorResult<T>;
-    throw?(e?: any): IteratorResult<T>;
-}
-
-interface Iterable<T> {
-    [Symbol.iterator](): Iterator<T>;
-}
-
-interface IterableIterator<T> extends Iterator<T> {
-    [Symbol.iterator](): IterableIterator<T>;
-}
-
-interface Array<T> {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<T>;
-
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, T]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<T>;
-}
-
-interface ArrayConstructor {
-    /**
-      * 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>, mapfn: (v: T, k: number) => U, thisArg?: 
any): Array<U>;
-    
-    /**
-      * Creates an array from an iterable object.
-      * @param iterable An iterable object to convert to an array.
-      */
-    from<T>(iterable: Iterable<T>): Array<T>;
-}
-
-interface ReadonlyArray<T> {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<T>;
-
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, T]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<T>;
-}
-
-interface IArguments {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<any>;
-}
-
-interface Map<K, V> {
-    [Symbol.iterator](): IterableIterator<[K,V]>;
-    entries(): IterableIterator<[K, V]>;
-    keys(): IterableIterator<K>;
-    values(): IterableIterator<V>;
-}
-
-interface MapConstructor {
-    new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
-}
-
-interface WeakMap<K, V> { }
-
-interface WeakMapConstructor {
-    new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
-}
-
-interface Set<T> {
-    [Symbol.iterator](): IterableIterator<T>;
-    entries(): IterableIterator<[T, T]>;
-    keys(): IterableIterator<T>;
-    values(): IterableIterator<T>;
-}
-
-interface SetConstructor {
-    new <T>(iterable: Iterable<T>): Set<T>;
-}
-
-interface WeakSet<T> { }
-
-interface WeakSetConstructor {
-    new <T>(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 array of Promises.
-     * @returns A new Promise.
-     */
-    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
-    
-    /**
-     * 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>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
-}
-
-declare namespace Reflect {
-    function enumerate(target: any): IterableIterator<any>;
-}
-
-interface String {
-    /** Iterator */
-    [Symbol.iterator](): IterableIterator<string>;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int8ArrayConstructor {
-    new (elements: Iterable<number>): Int8Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint8ArrayConstructor {
-    new (elements: Iterable<number>): Uint8Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint8ClampedArrayConstructor {
-    new (elements: Iterable<number>): Uint8ClampedArray;
-
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int16ArrayConstructor {
-    new (elements: Iterable<number>): Int16Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint16ArrayConstructor {
-    new (elements: Iterable<number>): Uint16Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Int32ArrayConstructor {
-    new (elements: Iterable<number>): Int32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Uint32ArrayConstructor {
-    new (elements: Iterable<number>): Uint32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Float32ArrayConstructor {
-    new (elements: Iterable<number>): Float32Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
-}
-
-/**
-  * 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 {
-    [Symbol.iterator](): IterableIterator<number>;
-    /** 
-      * Returns an array of key, value pairs for every entry in the array
-      */
-    entries(): IterableIterator<[number, number]>;
-    /** 
-      * Returns an list of keys in the array
-      */
-    keys(): IterableIterator<number>;
-    /** 
-      * Returns an list of values in the array
-      */
-    values(): IterableIterator<number>;
-}
-
-interface Float64ArrayConstructor {
-    new (elements: Iterable<number>): Float64Array;
-
-    /**
-      * Creates an array from an array-like or iterable object.
-      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
-}
-
-/**
- * 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(onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null, 
onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): 
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<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined 
| null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T 
| TResult>;
-
-    /**
-     * 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<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, 
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | 
null): Promise<TResult>;
-
-    /**
-     * 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, TResult2>(onfulfilled: (value: T) => TResult1 | 
PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | 
PromiseLike<TResult2>): 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(onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): Promise<T>;
-
-    /**
-     * 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>(onrejected: (reason: any) => TResult | 
PromiseLike<TResult>): Promise<T | TResult>;
-}
-
-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 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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike 
<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, 
T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, 
T8, T9]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, 
T3, T4, T5, T6, T7]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
-
-    /**
-     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
-
-    /**
-     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<[T1, T2, T3]>;
-
-    /**
-     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<[T1, T2]>;
-
-    /**
-     * 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>(values: (T | PromiseLike<T>)[]): Promise<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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | 
PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | 
PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | 
PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | 
T7 | T8 | T9>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 
| T3 | T4 | T5 | T6 | T7>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
-
-    /**
-     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
-
-    /**
-     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
-
-    /**
-     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<T1 | T2 | T3>;
-
-    /**
-     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<T1 | T2>;
-
-    /**
-     * 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>(values: (T | PromiseLike<T>)[]): Promise<T>;
-
-    /**
-     * Creates a new rejected promise for the provided reason.
-     * @param reason The reason the promise was rejected.
-     * @returns A new rejected Promise.
-     */
-    reject(reason: any): Promise<never>;
-
-    /**
-     * Creates a new rejected promise for the provided reason.
-     * @param reason The reason the promise was rejected.
-     * @returns A new rejected Promise.
-     */
-    reject<T>(reason: any): Promise<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<T>;
-
-    /**
-     * Creates a new resolved promise .
-     * @returns A resolved promise.
-     */
-    resolve(): Promise<void>;
-}
-
+/*! 
*****************************************************************************
+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"/>
+
+
+/////////////////////////////
+/// ECMAScript APIs
+/////////////////////////////
+
+declare const NaN: number;
+declare const 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 s A string to convert into a number.
+  * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
+  * If this argument is not supplied, strings with a prefix of '0x' are 
considered hexadecimal.
+  * All other strings are considered decimal.
+  */
+declare function parseInt(s: 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 encoded 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 encoded URI component.
+  */
+declare function encodeURIComponent(uriComponent: string): string;
+
+interface PropertyDescriptor {
+    configurable?: boolean;
+    enumerable?: boolean;
+    value?: any;
+    writable?: boolean;
+    get? (): any;
+    set? (v: any): void;
+}
+
+interface PropertyDescriptorMap {
+    [s: string]: 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: string): 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: string): 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: string): PropertyDescriptor;
+
+    /**
+      * 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 null prototype.
+      * @param o Object to use as a prototype. May be null
+      */
+    create(o: 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
+      */
+    create<T>(o: T): T;
+
+    /**
+      * 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: any, properties: PropertyDescriptorMap): 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(o: any, p: string, attributes: PropertyDescriptor): any;
+
+    /**
+      * 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(o: any, properties: PropertyDescriptorMap): any;
+
+    /**
+      * 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 o Object on which to lock the attributes.
+      */
+    freeze<T>(a: T[]): ReadonlyArray<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 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>(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 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: any): string[];
+}
+
+/**
+  * Provides functionality common to all JavaScript objects.
+  */
+declare const 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 const Function: FunctionConstructor;
+
+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): RegExpMatchArray | null;
+
+    /**
+      * Matches a string with a regular expression, and returns an array 
containing the results of that search.
+      * @param regexp A regular expression object that contains the regular 
expression pattern and applicable flags.
+      */
+    match(regexp: RegExp): RegExpMatchArray | null;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: string, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A string that represents the regular expression.
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: string, replacer: (substring: string, ...args: any[]) 
=> string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags.
+      * @param replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    replace(searchValue: RegExp, replaceValue: string): string;
+
+    /**
+      * Replaces text in a string, using a regular expression or search string.
+      * @param searchValue A Regular Expression object containing the regular 
expression pattern and applicable flags
+      * @param replacer A function that returns the replacement text.
+      */
+    replace(searchValue: 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): number;
+
+    /**
+      * Finds the first substring match in a regular expression search.
+      * @param regexp The regular expression pattern and applicable flags.
+      */
+    search(regexp: 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, limit?: number): string[];
+
+    /**
+      * Split a string into substrings using the specified separator and 
return them as an array.
+      * @param separator A Regular Express 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: 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(): 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(): 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.
+      * @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 const String: StringConstructor;
+
+interface Boolean {
+    /** Returns the primitive value of the specified object. */
+    valueOf(): boolean;
+}
+
+interface BooleanConstructor {
+    new (value?: any): Boolean;
+    (value?: any): boolean;
+    readonly prototype: Boolean;
+}
+
+declare const 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 const Number: NumberConstructor;
+
+interface TemplateStringsArray extends ReadonlyArray<string> {
+    readonly raw: ReadonlyArray<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) from the X axis to a 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 number 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 number 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 number.
+      * @param x The value to be rounded to the nearest number.
+      */
+    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 const 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;
+    /** Gets the time value in milliseconds. */
+    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 the time on the local computer 
and Universal Coordinated Time (UTC). */
+    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): Date;
+    new (value: string): Date;
+    new (year: number, month: 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 month The month as an number between 0 and 11 (January to 
December).
+      * @param date The date as an number between 1 and 31.
+      * @param hours Must be supplied if minutes is supplied. An number from 0 
to 23 (midnight to 11pm) that specifies the hour.
+      * @param minutes Must be supplied if seconds is supplied. An number from 
0 to 59 that specifies the minutes.
+      * @param seconds Must be supplied if milliseconds is supplied. An number 
from 0 to 59 that specifies the seconds.
+      * @param ms An number from 0 to 999 that specifies the milliseconds.
+      */
+    UTC(year: number, month: number, date?: number, hours?: number, minutes?: 
number, seconds?: number, ms?: number): number;
+    now(): number;
+}
+
+declare const Date: DateConstructor;
+
+interface RegExpMatchArray extends Array<string> {
+    index?: number;
+    input?: string;
+}
+
+interface RegExpExecArray extends Array<string> {
+    index: number;
+    input: 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
+    compile(): this;
+}
+
+interface RegExpConstructor {
+    new (pattern: RegExp): RegExp;
+    new (pattern: string, flags?: string): RegExp;
+    (pattern: RegExp): RegExp;
+    (pattern: string, flags?: string): RegExp;
+    readonly prototype: RegExp;
+
+    // Non-standard extensions
+    $1: string;
+    $2: string;
+    $3: string;
+    $4: string;
+    $5: string;
+    $6: string;
+    $7: string;
+    $8: string;
+    $9: string;
+    lastMatch: string;
+}
+
+declare const RegExp: RegExpConstructor;
+
+interface Error {
+    name: string;
+    message: string;
+    stack?: string;
+}
+
+interface ErrorConstructor {
+    new (message?: string): Error;
+    (message?: string): Error;
+    readonly prototype: Error;
+}
+
+declare const Error: ErrorConstructor;
+
+interface EvalError extends Error {
+}
+
+interface EvalErrorConstructor {
+    new (message?: string): EvalError;
+    (message?: string): EvalError;
+    readonly prototype: EvalError;
+}
+
+declare const EvalError: EvalErrorConstructor;
+
+interface RangeError extends Error {
+}
+
+interface RangeErrorConstructor {
+    new (message?: string): RangeError;
+    (message?: string): RangeError;
+    readonly prototype: RangeError;
+}
+
+declare const RangeError: RangeErrorConstructor;
+
+interface ReferenceError extends Error {
+}
+
+interface ReferenceErrorConstructor {
+    new (message?: string): ReferenceError;
+    (message?: string): ReferenceError;
+    readonly prototype: ReferenceError;
+}
+
+declare const ReferenceError: ReferenceErrorConstructor;
+
+interface SyntaxError extends Error {
+}
+
+interface SyntaxErrorConstructor {
+    new (message?: string): SyntaxError;
+    (message?: string): SyntaxError;
+    readonly prototype: SyntaxError;
+}
+
+declare const SyntaxError: SyntaxErrorConstructor;
+
+interface TypeError extends Error {
+}
+
+interface TypeErrorConstructor {
+    new (message?: string): TypeError;
+    (message?: string): TypeError;
+    readonly prototype: TypeError;
+}
+
+declare const TypeError: TypeErrorConstructor;
+
+interface URIError extends Error {
+}
+
+interface URIErrorConstructor {
+    new (message?: string): URIError;
+    (message?: string): URIError;
+    readonly prototype: URIError;
+}
+
+declare const 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.
+      */
+    parse(text: string, reviver?: (key: any, 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.
+      */
+    stringify(value: any, replacer?: (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 a 
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.
+      */
+    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 const 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;
+    toLocaleString(): string;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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.
+      */
+    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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
boolean, 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: ReadonlyArray<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: ReadonlyArray<T>) => 
U, thisArg?: any): U[];
+    /**
+     * Returns the elements of an array that meet the condition specified in a 
callback function.
+     * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+     */
+    filter<S extends T>(callbackfn: (value: T, index: number, array: 
ReadonlyArray<T>) => value is S, thisArg?: any): S[];
+    /**
+      * Returns the elements of an array that meet the condition specified in 
a callback function.
+      * @param callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => 
any, 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<T>) => U, initialValue: U): U;
+
+    readonly [n: number]: T;
+}
+
+interface Array<T> {
+    /**
+      * Gets or sets the length of the array. This is a number one higher than 
the highest element defined in an array.
+      */
+    length: number;
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+    toLocaleString(): string;
+    /**
+      * Appends new elements to an array, and returns the new length of the 
array.
+      * @param items New elements of the Array.
+      */
+    push(...items: T[]): number;
+    /**
+      * Removes the last element from an array and returns it.
+      */
+    pop(): T | undefined;
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: T[][]): T[];
+    /**
+      * Combines two or more arrays.
+      * @param items Additional items to add to the end of array1.
+      */
+    concat(...items: (T | 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;
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): T[];
+    /**
+      * Removes the first element from an array and returns it.
+      */
+    shift(): T | undefined;
+    /**
+      * 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): T[];
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If omitted, the elements are sorted in ascending, ASCII 
character order.
+      */
+    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.
+      */
+    splice(start: 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.
+      * @param items Elements to insert into the array in place of the deleted 
elements.
+      */
+    splice(start: number, deleteCount: number, ...items: T[]): T[];
+    /**
+      * Inserts new elements at the start of an 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.
+      * @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 callbackfn A function that accepts up to three arguments. The 
every method calls the callbackfn function for each element in array1 until the 
callbackfn returns false, or until the end of 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.
+      */
+    every(callbackfn: (value: T, index: number, array: T[]) => boolean, 
thisArg?: any): boolean;
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the callbackfn function for each element in array1 until the 
callbackfn returns true, or until the end of 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.
+      */
+    some(callbackfn: (value: T, index: number, array: T[]) => boolean, 
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>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U, U];
+    /**
+      * 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>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: 
T[]) => U, thisArg?: any): [U, U, U, U];
+    /**
+      * 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>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) 
=> U, thisArg?: any): [U, U, U];
+    /**
+      * 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>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => 
U, thisArg?: any): [U, U];
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: T, index: number, array: T[]) => any, 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, 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, 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 Array<any>;
+    readonly prototype: Array<any>;
+}
+
+declare const Array: ArrayConstructor;
+
+interface TypedPropertyDescriptor<T> {
+    enumerable?: boolean;
+    configurable?: boolean;
+    writable?: boolean;
+    value?: T;
+    get?: () => T;
+    set?: (value: T) => void;
+}
+
+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, parameterIndex: number) => 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(
+        onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): 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<TResult>(
+        onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null,
+        onrejected: (reason: any) => TResult | PromiseLike<TResult>): 
PromiseLike<T | TResult>;
+
+    /**
+     * 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<TResult>(
+        onfulfilled: (value: T) => TResult | PromiseLike<TResult>,
+        onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | 
undefined | null): PromiseLike<TResult>;
+
+    /**
+     * 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, TResult2>(
+        onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>,
+        onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): 
PromiseLike<TResult1 | TResult2>;
+}
+
+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 readonly
+ */
+type Readonly<T> = {
+    readonly [P in keyof T]: T[P];
+};
+
+/**
+ * From T pick a set of properties 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 string, T> = {
+    [P in K]: T;
+}
+
+/**
+  * 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;
+}
+
+interface ArrayBufferConstructor {
+    readonly prototype: ArrayBuffer;
+    new (byteLength: number): ArrayBuffer;
+    isView(arg: any): arg is ArrayBufferView;
+}
+declare const ArrayBuffer: ArrayBufferConstructor;
+
+interface ArrayBufferView {
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    buffer: ArrayBuffer;
+
+    /**
+      * The length in bytes of the array.
+      */
+    byteLength: number;
+
+    /**
+      * The offset in bytes of the array.
+      */
+    byteOffset: number;
+}
+
+interface DataView {
+    readonly buffer: ArrayBuffer;
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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.
+      */
+    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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-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,
+      * otherwise a little-endian value should be written.
+      */
+    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
+}
+
+interface DataViewConstructor {
+    new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): 
DataView;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int8Array) => 
any, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int8Array) => 
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: Int8Array) => 
number, thisArg?: any): Int8Array;
+
+    /**
+      * 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => 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: Int8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+interface Int8ArrayConstructor {
+    readonly prototype: Int8Array;
+    new (length: number): Int8Array;
+    new (array: ArrayLike<number>): Int8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint8Array) => 
any, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint8Array) => 
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: Uint8Array) => 
number, thisArg?: any): Uint8Array;
+
+    /**
+      * 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => 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: Uint8Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint8Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ArrayConstructor {
+    readonly prototype: Uint8Array;
+    new (length: number): Uint8Array;
+    new (array: ArrayLike<number>): Uint8Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: 
Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: 
Uint8ClampedArray) => 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: Uint8ClampedArray) 
=> number, thisArg?: any): Uint8ClampedArray;
+
+    /**
+      * 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => 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: Uint8ClampedArray) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint8ClampedArray;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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: Uint8ClampedArray, 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): Uint8ClampedArray;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) 
=> boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint8ClampedArrayConstructor {
+    readonly prototype: Uint8ClampedArray;
+    new (length: number): Uint8ClampedArray;
+    new (array: ArrayLike<number>): Uint8ClampedArray;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint8ClampedArray;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int16Array) => 
any, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int16Array) => 
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: Int16Array) => 
number, thisArg?: any): Int16Array;
+
+    /**
+      * 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => 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: Int16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int16ArrayConstructor {
+    readonly prototype: Int16Array;
+    new (length: number): Int16Array;
+    new (array: ArrayLike<number>): Int16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint16Array) => 
any, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint16Array) => 
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: Uint16Array) => 
number, thisArg?: any): Uint16Array;
+
+    /**
+      * 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => 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: Uint16Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint16Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint16Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint16Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint16ArrayConstructor {
+    readonly prototype: Uint16Array;
+    new (length: number): Uint16Array;
+    new (array: ArrayLike<number>): Uint16Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint16Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Int32Array) => 
any, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Int32Array) => 
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: Int32Array) => 
number, thisArg?: any): Int32Array;
+
+    /**
+      * 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => 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: Int32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Int32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Int32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Int32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Int32ArrayConstructor {
+    readonly prototype: Int32Array;
+    new (length: number): Int32Array;
+    new (array: ArrayLike<number>): Int32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Int32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Uint32Array) => 
any, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Uint32Array) => 
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: Uint32Array) => 
number, thisArg?: any): Uint32Array;
+
+    /**
+      * 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => 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: Uint32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Uint32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Uint32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Uint32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Uint32ArrayConstructor {
+    readonly prototype: Uint32Array;
+    new (length: number): Uint32Array;
+    new (array: ArrayLike<number>): Uint32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Uint32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float32Array) => 
any, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float32Array) => 
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: Float32Array) => 
number, thisArg?: any): Float32Array;
+
+    /**
+      * 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => 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: Float32Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float32Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float32Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float32Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float32ArrayConstructor {
+    readonly prototype: Float32Array;
+    new (length: number): Float32Array;
+    new (array: ArrayLike<number>): Float32Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float32Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
+
+}
+declare const 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 {
+    /**
+      * The size in bytes of each element in the array.
+      */
+    readonly BYTES_PER_ELEMENT: number;
+
+    /**
+      * The ArrayBuffer instance referenced by the array.
+      */
+    readonly buffer: ArrayBuffer;
+
+    /**
+      * 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 callbackfn A function that accepts up to three arguments. The 
every method calls
+      * the callbackfn function for each element in array1 until the 
callbackfn returns false,
+      * or until the end of 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.
+      */
+    every(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+        * Returns the this object after filling the section identified by 
start and end with value
+        * @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 callbackfn A function that accepts up to three arguments. The 
filter 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.
+      */
+    filter(callbackfn: (value: number, index: number, array: Float64Array) => 
any, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Array<number>) => 
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: Array<number>) => 
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: Float64Array) => 
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: Float64Array) => 
number, thisArg?: any): Float64Array;
+
+    /**
+      * 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => 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: Float64Array) => U, initialValue: U): U;
+
+    /**
+      * Reverses the elements in an Array.
+      */
+    reverse(): Float64Array;
+
+    /**
+      * Sets a value or an array of values.
+      * @param index The index of the location to set.
+      * @param value The value to set.
+      */
+    set(index: number, value: number): void;
+
+    /**
+      * 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.
+      */
+    slice(start?: number, end?: number): Float64Array;
+
+    /**
+      * Determines whether the specified callback function returns true for 
any element of an array.
+      * @param callbackfn A function that accepts up to three arguments. The 
some method calls the
+      * callbackfn function for each element in array1 until the callbackfn 
returns true, or until
+      * the end of 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.
+      */
+    some(callbackfn: (value: number, index: number, array: Float64Array) => 
boolean, thisArg?: any): boolean;
+
+    /**
+      * Sorts an array.
+      * @param compareFn The name of the function used to determine the order 
of the elements. If
+      * omitted, the elements are sorted in ascending, ASCII character order.
+      */
+    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;
+
+    /**
+      * Converts a number to a string by using the current locale.
+      */
+    toLocaleString(): string;
+
+    /**
+      * Returns a string representation of an array.
+      */
+    toString(): string;
+
+    [index: number]: number;
+}
+
+interface Float64ArrayConstructor {
+    readonly prototype: Float64Array;
+    new (length: number): Float64Array;
+    new (array: ArrayLike<number>): Float64Array;
+    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): 
Float64Array;
+
+    /**
+      * 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;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
+}
+declare const Float64Array: Float64ArrayConstructor;
+
+/////////////////////////////
+/// ECMAScript Internationalization API
+/////////////////////////////
+
+declare module Intl {
+    interface CollatorOptions {
+        usage?: string;
+        localeMatcher?: string;
+        numeric?: boolean;
+        caseFirst?: string;
+        sensitivity?: string;
+        ignorePunctuation?: boolean;
+    }
+
+    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;
+    }
+    var Collator: {
+        new (locales?: string | string[], options?: CollatorOptions): Collator;
+        (locales?: string | string[], options?: CollatorOptions): Collator;
+        supportedLocalesOf(locales: string | string[], options?: 
CollatorOptions): string[];
+    }
+
+    interface NumberFormatOptions {
+        localeMatcher?: string;
+        style?: string;
+        currency?: string;
+        currencyDisplay?: string;
+        useGrouping?: boolean;
+        minimumIntegerDigits?: number;
+        minimumFractionDigits?: number;
+        maximumFractionDigits?: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+    }
+
+    interface ResolvedNumberFormatOptions {
+        locale: string;
+        numberingSystem: string;
+        style: string;
+        currency?: string;
+        currencyDisplay?: string;
+        minimumIntegerDigits: number;
+        minimumFractionDigits: number;
+        maximumFractionDigits: number;
+        minimumSignificantDigits?: number;
+        maximumSignificantDigits?: number;
+        useGrouping: boolean;
+    }
+
+    interface NumberFormat {
+        format(value: number): string;
+        resolvedOptions(): ResolvedNumberFormatOptions;
+    }
+    var NumberFormat: {
+        new (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        (locales?: string | string[], options?: NumberFormatOptions): 
NumberFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
NumberFormatOptions): string[];
+    }
+
+    interface DateTimeFormatOptions {
+        localeMatcher?: string;
+        weekday?: string;
+        era?: string;
+        year?: string;
+        month?: string;
+        day?: string;
+        hour?: string;
+        minute?: string;
+        second?: string;
+        timeZoneName?: string;
+        formatMatcher?: string;
+        hour12?: boolean;
+        timeZone?: string;
+    }
+
+    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;
+    }
+    var DateTimeFormat: {
+        new (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        (locales?: string | string[], options?: DateTimeFormatOptions): 
DateTimeFormat;
+        supportedLocalesOf(locales: string | string[], options?: 
DateTimeFormatOptions): string[];
+    }
+}
+
+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;
+}
+
+
+declare type PropertyKey = string | number | symbol;
+
+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(predicate: (value: T, index: number, obj: Array<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
+
+    /**
+      * Returns the this object after filling the section identified by start 
and end with value
+      * @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;
+}
+
+interface ArrayConstructor {
+    /**
+      * Creates an array from an array-like 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): Array<U>;
+
+
+    /**
+      * Creates an array from an array-like object.
+      * @param arrayLike An array-like object to convert to an array.
+      */
+    from<T>(arrayLike: ArrayLike<T>): Array<T>;
+
+    /**
+      * 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[]): Array<T>;
+}
+
+interface DateConstructor {
+    new (value: 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) 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: number): boolean;
+
+    /**
+      * Returns true if the value passed is an integer, false otherwise.
+      * @param number A numeric value.
+      */
+    isInteger(number: number): 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: number): boolean;
+
+    /**
+      * Returns true if the value passed is a safe integer.
+      * @param number A numeric value.
+      */
+    isSafeInteger(number: number): 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 s A string to convert into a number.
+      * @param radix A value between 2 and 36 that specifies the base of the 
number in numString.
+      * 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 Object {
+    /**
+      * Determines whether an object has a property with the specified name.
+      * @param v A property name.
+      */
+    hasOwnProperty(v: PropertyKey): boolean
+
+    /**
+      * Determines whether a specified property is enumerable.
+      * @param v A property name.
+      */
+    propertyIsEnumerable(v: PropertyKey): boolean;
+}
+
+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, 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, 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, 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: any, ...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 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: 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, propertyKey: PropertyKey): 
PropertyDescriptor;
+
+    /**
+      * 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(o: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): 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(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, 
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: Array<T>) => boolean, 
thisArg?: any): number;
+}
+
+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, flags?: string): RegExp;
+    (pattern: RegExp, 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,
+      * T is 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
+      * @param name
+      */
+    anchor(name: string): string;
+
+    /** Returns a <big> HTML element */
+    big(): string;
+
+    /** Returns a <blink> HTML element */
+    blink(): string;
+
+    /** Returns a <b> HTML element */
+    bold(): string;
+
+    /** Returns a <tt> HTML element */
+    fixed(): string
+
+    /** Returns a <font> HTML element and sets the color attribute value */
+    fontcolor(color: string): string
+
+    /** Returns a <font> HTML element and sets the size attribute value */
+    fontsize(size: number): string;
+
+    /** Returns a <font> HTML element and sets the size attribute value */
+    fontsize(size: string): string;
+
+    /** Returns an <i> HTML element */
+    italics(): string;
+
+    /** Returns an <a> HTML element and sets the href attribute value */
+    link(url: string): string;
+
+    /** Returns a <small> HTML element */
+    small(): string;
+
+    /** Returns a <strike> HTML element */
+    strike(): string;
+
+    /** Returns a <sub> HTML element */
+    sub(): string;
+
+    /** Returns a <sup> HTML element */
+    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 intended for use 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.
+      * @param template A well-formed template string call site representation.
+      * @param substitutions A set of substitution values.
+      */
+    raw(template: TemplateStringsArray, ...substitutions: any[]): string;
+}
+
+
+interface Map<K, V> {
+    clear(): void;
+    delete(key: K): boolean;
+    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: 
any): void;
+    get(key: K): V | undefined;
+    has(key: K): boolean;
+    set(key: K, value?: V): this;
+    readonly size: number;
+}
+
+interface MapConstructor {
+    new (): Map<any, any>;
+    new <K, V>(entries?: [K, V][]): 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, V> {
+    delete(key: K): boolean;
+    get(key: K): V | undefined;
+    has(key: K): boolean;
+    set(key: K, value?: V): this;
+}
+
+interface WeakMapConstructor {
+    new (): WeakMap<any, any>;
+    new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
+    readonly prototype: WeakMap<any, any>;
+}
+declare var WeakMap: WeakMapConstructor;
+
+interface Set<T> {
+    add(value: T): this;
+    clear(): void;
+    delete(value: T): boolean;
+    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: 
any): void;
+    has(value: T): boolean;
+    readonly size: number;
+}
+
+interface SetConstructor {
+    new (): Set<any>;
+    new <T>(values?: T[]): 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> {
+    add(value: T): this;
+    delete(value: T): boolean;
+    has(value: T): boolean;
+}
+
+interface WeakSetConstructor {
+    new (): WeakSet<any>;
+    new <T>(values?: T[]): WeakSet<T>;
+    readonly prototype: WeakSet<any>;
+}
+declare var WeakSet: WeakSetConstructor;
+
+
+interface GeneratorFunction extends Function { }
+
+interface GeneratorFunctionConstructor {
+    /**
+      * Creates a new Generator function.
+      * @param args A list of arguments the function accepts.
+      */
+    new (...args: string[]): GeneratorFunction;
+    (...args: string[]): GeneratorFunction;
+    readonly prototype: GeneratorFunction;
+}
+declare var GeneratorFunction: GeneratorFunctionConstructor;
+
+
+/// <reference path="lib.es2015.symbol.d.ts" />
+
+interface SymbolConstructor {
+    /** 
+      * A method that returns the default iterator for an object. Called by 
the semantics of the 
+      * for-of statement.
+      */
+    readonly iterator: symbol;
+}
+
+interface IteratorResult<T> {
+    done: boolean;
+    value: T;
+}
+
+interface Iterator<T> {
+    next(value?: any): IteratorResult<T>;
+    return?(value?: any): IteratorResult<T>;
+    throw?(e?: any): IteratorResult<T>;
+}
+
+interface Iterable<T> {
+    [Symbol.iterator](): Iterator<T>;
+}
+
+interface IterableIterator<T> extends Iterator<T> {
+    [Symbol.iterator](): IterableIterator<T>;
+}
+
+interface Array<T> {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<T>;
+
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, T]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<T>;
+}
+
+interface ArrayConstructor {
+    /**
+      * 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>, mapfn: (v: T, k: number) => U, thisArg?: 
any): Array<U>;
+    
+    /**
+      * Creates an array from an iterable object.
+      * @param iterable An iterable object to convert to an array.
+      */
+    from<T>(iterable: Iterable<T>): Array<T>;
+}
+
+interface ReadonlyArray<T> {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<T>;
+
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, T]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<T>;
+}
+
+interface IArguments {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<any>;
+}
+
+interface Map<K, V> {
+    [Symbol.iterator](): IterableIterator<[K,V]>;
+    entries(): IterableIterator<[K, V]>;
+    keys(): IterableIterator<K>;
+    values(): IterableIterator<V>;
+}
+
+interface MapConstructor {
+    new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
+}
+
+interface WeakMap<K, V> { }
+
+interface WeakMapConstructor {
+    new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
+}
+
+interface Set<T> {
+    [Symbol.iterator](): IterableIterator<T>;
+    entries(): IterableIterator<[T, T]>;
+    keys(): IterableIterator<T>;
+    values(): IterableIterator<T>;
+}
+
+interface SetConstructor {
+    new <T>(iterable: Iterable<T>): Set<T>;
+}
+
+interface WeakSet<T> { }
+
+interface WeakSetConstructor {
+    new <T>(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 array of Promises.
+     * @returns A new Promise.
+     */
+    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
+    
+    /**
+     * 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>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
+}
+
+declare namespace Reflect {
+    function enumerate(target: any): IterableIterator<any>;
+}
+
+interface String {
+    /** Iterator */
+    [Symbol.iterator](): IterableIterator<string>;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int8ArrayConstructor {
+    new (elements: Iterable<number>): Int8Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int8Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint8ArrayConstructor {
+    new (elements: Iterable<number>): Uint8Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint8ClampedArrayConstructor {
+    new (elements: Iterable<number>): Uint8ClampedArray;
+
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint8ClampedArray;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int16ArrayConstructor {
+    new (elements: Iterable<number>): Int16Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int16Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint16ArrayConstructor {
+    new (elements: Iterable<number>): Uint16Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint16Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Int32ArrayConstructor {
+    new (elements: Iterable<number>): Int32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Int32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Uint32ArrayConstructor {
+    new (elements: Iterable<number>): Uint32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Uint32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Float32ArrayConstructor {
+    new (elements: Iterable<number>): Float32Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float32Array;
+}
+
+/**
+  * 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 {
+    [Symbol.iterator](): IterableIterator<number>;
+    /** 
+      * Returns an array of key, value pairs for every entry in the array
+      */
+    entries(): IterableIterator<[number, number]>;
+    /** 
+      * Returns an list of keys in the array
+      */
+    keys(): IterableIterator<number>;
+    /** 
+      * Returns an list of values in the array
+      */
+    values(): IterableIterator<number>;
+}
+
+interface Float64ArrayConstructor {
+    new (elements: Iterable<number>): Float64Array;
+
+    /**
+      * Creates an array from an array-like or iterable object.
+      * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => 
number, thisArg?: any): Float64Array;
+}
+
+/**
+ * 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(onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null, 
onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): 
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<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined 
| null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T 
| TResult>;
+
+    /**
+     * 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<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, 
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | 
null): Promise<TResult>;
+
+    /**
+     * 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, TResult2>(onfulfilled: (value: T) => TResult1 | 
PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | 
PromiseLike<TResult2>): 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(onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | 
null): Promise<T>;
+
+    /**
+     * 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>(onrejected: (reason: any) => TResult | 
PromiseLike<TResult>): Promise<T | TResult>;
+}
+
+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 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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike 
<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, 
T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, 
T8, T9]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, 
T3, T4, T5, T6, T7]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | 
PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
+
+    /**
+     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
+
+    /**
+     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<[T1, T2, T3]>;
+
+    /**
+     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<[T1, T2]>;
+
+    /**
+     * 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>(values: (T | PromiseLike<T>)[]): Promise<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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | 
PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | 
PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | 
PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | 
PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 
| PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | 
T7 | T8 | T9>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | 
PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 
| T3 | T4 | T5 | T6 | T7>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
+
+    /**
+     * 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<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | 
PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | 
PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
+
+    /**
+     * 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<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, 
T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
+
+    /**
+     * 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<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | 
PromiseLike<T3>]): Promise<T1 | T2 | T3>;
+
+    /**
+     * 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<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): 
Promise<T1 | T2>;
+
+    /**
+     * 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>(values: (T | PromiseLike<T>)[]): Promise<T>;
+
+    /**
+     * Creates a new rejected promise for the provided reason.
+     * @param reason The reason the promise was rejected.
+     * @returns A new rejected Promise.
+     */
+    reject(reason: any): Promise<never>;
+
+    /**
+     * Creates a new rejected promise for the provided reason.
+     * @param reason The reason the promise was rejected.
+     * @returns A new rejected Promise.
+     */
+    reject<T>(reason: any): Promise<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<T>;
+
+    /**
+     * Creates a new resolved promise .
+     * @returns A resolved promise.
+     */
+    resolve(): Promise<void>;
+}
+
 declare var Promise: PromiseConstructor;
 
-interface ProxyHandler<T> {
-    getPrototypeOf? (target: T): {} | null;
-    setPrototypeOf? (target: T, v: any): boolean;
-    isExtensible? (target: T): boolean;
-    preventExtensions? (target: T): boolean;
-    getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
-    has? (target: T, p: PropertyKey): boolean;
-    get? (target: T, p: PropertyKey, receiver: any): any;
-    set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
-    deleteProperty? (target: T, p: PropertyKey): boolean;
-    defineProperty? (target: T, p: PropertyKey, attributes: 
PropertyDescriptor): boolean;
-    enumerate? (target: T): PropertyKey[];
-    ownKeys? (target: T): PropertyKey[];
-    apply? (target: T, thisArg: any, argArray?: any): any;
-    construct? (target: T, argArray: any, newTarget?: any): {};
-}
-
-interface ProxyConstructor {
-    revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () 
=> void; };
-    new <T>(target: T, handler: ProxyHandler<T>): T
-}
-declare var Proxy: ProxyConstructor;
-
-
-declare namespace Reflect {
-    function apply(target: Function, thisArgument: any, argumentsList: 
ArrayLike<any>): any;
-    function construct(target: Function, argumentsList: ArrayLike<any>, 
newTarget?: any): any;
-    function defineProperty(target: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): boolean;
-    function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
-    function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
-    function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): 
PropertyDescriptor;
-    function getPrototypeOf(target: any): any;
-    function has(target: any, propertyKey: PropertyKey): boolean;
-    function isExtensible(target: any): boolean;
-    function ownKeys(target: any): Array<PropertyKey>;
-    function preventExtensions(target: any): boolean;
-    function set(target: any, propertyKey: PropertyKey, value: any, receiver?: 
any): boolean;
-    function setPrototypeOf(target: any, proto: any): boolean;
-}
-
-interface Symbol {
-    /** Returns a string representation of an object. */
-    toString(): string;
-
-    /** Returns the primitive value of the specified object. */
-    valueOf(): Object;
-}
-
-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;
+interface ProxyHandler<T> {
+    getPrototypeOf? (target: T): {} | null;
+    setPrototypeOf? (target: T, v: any): boolean;
+    isExtensible? (target: T): boolean;
+    preventExtensions? (target: T): boolean;
+    getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
+    has? (target: T, p: PropertyKey): boolean;
+    get? (target: T, p: PropertyKey, receiver: any): any;
+    set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
+    deleteProperty? (target: T, p: PropertyKey): boolean;
+    defineProperty? (target: T, p: PropertyKey, attributes: 
PropertyDescriptor): boolean;
+    enumerate? (target: T): PropertyKey[];
+    ownKeys? (target: T): PropertyKey[];
+    apply? (target: T, thisArg: any, argArray?: any): any;
+    construct? (target: T, argArray: any, newTarget?: any): {};
+}
+
+interface ProxyConstructor {
+    revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () 
=> void; };
+    new <T>(target: T, handler: ProxyHandler<T>): T
+}
+declare var Proxy: ProxyConstructor;
+
+
+declare namespace Reflect {
+    function apply(target: Function, thisArgument: any, argumentsList: 
ArrayLike<any>): any;
+    function construct(target: Function, argumentsList: ArrayLike<any>, 
newTarget?: any): any;
+    function defineProperty(target: any, propertyKey: PropertyKey, attributes: 
PropertyDescriptor): boolean;
+    function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
+    function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
+    function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): 
PropertyDescriptor;
+    function getPrototypeOf(target: any): any;
+    function has(target: any, propertyKey: PropertyKey): boolean;
+    function isExtensible(target: any): boolean;
+    function ownKeys(target: any): Array<PropertyKey>;
+    function preventExtensions(target: any): boolean;
+    function set(target: any, propertyKey: PropertyKey, value: any, receiver?: 
any): boolean;
+    function setPrototypeOf(target: any, proto: any): boolean;
+}
+
+interface Symbol {
+    /** Returns a string representation of an object. */
+    toString(): string;
+
+    /** Returns the primitive value of the specified object. */
+    valueOf(): Object;
+}
+
+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;
+
+/// <reference path="lib.es2015.symbol.d.ts" />
+
+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: symbol;
+
+    /** 
+      * A Boolean value that if true indicates that an object should flatten 
to its array elements
+      * by Array.prototype.concat.
+      */
+    readonly isConcatSpreadable: symbol;
+
+    /**
+      * A regular expression method that matches the regular expression 
against a string. Called 
+      * by the String.prototype.match method. 
+      */
+    readonly match: symbol;
+
+    /** 
+      * A regular expression method that replaces matched substrings of a 
string. Called by the 
+      * String.prototype.replace method.
+      */
+    readonly replace: 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: symbol;
+
+    /** 
+      * A function valued property that is the constructor function that is 
used to create 
+      * derived objects.
+      */
+    readonly species: 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: symbol;
+
+    /** 
+      * A method that converts an object to a corresponding primitive value.
+      * Called by the ToPrimitive abstract operation.
+      */
+    readonly toPrimitive: 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: symbol;
+
+    /**
+      * An Object whose own property names are property names that are 
excluded from the 'with'
+      * environment bindings of the associated objects.
+      */
+    readonly unscopables: symbol;
+}
+
+interface Symbol {
+    readonly [Symbol.toStringTag]: "Symbol";
+}
+
+interface Array<T> {
+    /**
+     * Returns an object whose properties have the value 'true'
+     * when they will be absent when used in a 'with' statement.
+     */
+    [Symbol.unscopables](): {
+        copyWithin: boolean;
+        entries: boolean;
+        fill: boolean;
+        find: boolean;
+        findIndex: boolean;
+        keys: boolean;
+        values: 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]: "Map";
+}
+
+interface WeakMap<K, V>{
+    readonly [Symbol.toStringTag]: "WeakMap";
+}
+
+interface Set<T> {
+    readonly [Symbol.toStringTag]: "Set";
+}
+
+interface WeakSet<T> {
+    readonly [Symbol.toStringTag]: "WeakSet";
+}
+
+interface JSON {
+    readonly [Symbol.toStringTag]: "JSON";
+}
+
+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 extends Function {
+    readonly [Symbol.toStringTag]: "GeneratorFunction";
+}
+
+interface Math {
+    readonly [Symbol.toStringTag]: "Math";
+}
+
+interface Promise<T> {
+    readonly [Symbol.toStringTag]: "Promise";
+}
+
+interface PromiseConstructor {
+    readonly [Symbol.species]: Function;
+}
+
+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 {
+    [Symbol.species](): RegExpConstructor;
+}
+
+interface String {
+    /**
+      * Matches a string an object that supports being matched against, and 
returns an array containing the results of that search.
+      * @param matcher An object that supports being matched against.
+      */
+    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; 
}): RegExpMatchArray | null;
+
+    /**
+      * 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 replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
+      */
+    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[];
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "ArrayBuffer";
+}
+
+interface DataView {
+    readonly [Symbol.toStringTag]: "DataView";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int8Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "UInt8Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint8ClampedArray";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int16Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint16Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Int32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Uint32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Float32Array";
+}
+
+/**
+  * 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 {
+    readonly [Symbol.toStringTag]: "Float64Array";
+}
+
+
+/////////////////////////////
+/// IE DOM APIs
+/////////////////////////////
+
+interface Algorithm {
+    name: string;
+}
+
+interface AriaRequestEventInit extends EventInit {
+    attributeName?: string;
+    attributeValue?: string;
+}
+
+interface CommandEventInit extends EventInit {
+    commandName?: string;
+    detail?: string;
+}
+
+interface CompositionEventInit extends UIEventInit {
+    data?: string;
+}
+
+interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface ConstrainBooleanParameters {
+    exact?: boolean;
+    ideal?: boolean;
+}
+
+interface ConstrainDOMStringParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface ConstrainDoubleRange extends DoubleRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainLongRange extends LongRange {
+    exact?: number;
+    ideal?: number;
+}
+
+interface ConstrainVideoFacingModeParameters {
+    exact?: string | string[];
+    ideal?: string | string[];
+}
+
+interface CustomEventInit extends EventInit {
+    detail?: any;
+}
+
+interface DeviceAccelerationDict {
+    x?: number;
+    y?: number;
+    z?: number;
+}
+
+interface DeviceLightEventInit extends EventInit {
+    value?: number;
+}
+
+interface DeviceRotationRateDict {
+    alpha?: number;
+    beta?: number;
+    gamma?: number;
+}
+
+interface DoubleRange {
+    max?: number;
+    min?: number;
+}
+
+interface EventInit {
+    scoped?: boolean;
+    bubbles?: boolean;
+    cancelable?: boolean;
+}
+
+interface EventModifierInit extends UIEventInit {
+    ctrlKey?: boolean;
+    shiftKey?: boolean;
+    altKey?: boolean;
+    metaKey?: boolean;
+    modifierAltGraph?: boolean;
+    modifierCapsLock?: boolean;
+    modifierFn?: boolean;
+    modifierFnLock?: boolean;
+    modifierHyper?: boolean;
+    modifierNumLock?: boolean;
+    modifierOS?: boolean;
+    modifierScrollLock?: boolean;
+    modifierSuper?: boolean;
+    modifierSymbol?: boolean;
+    modifierSymbolLock?: boolean;
+}
+
+interface ExceptionInformation {
+    domain?: string;
+}
+
+interface FocusEventInit extends UIEventInit {
+    relatedTarget?: EventTarget;
+}
+
+interface HashChangeEventInit extends EventInit {
+    newURL?: string;
+    oldURL?: string;
+}
+
+interface IDBIndexParameters {
+    multiEntry?: boolean;
+    unique?: boolean;
+}
+
+interface IDBObjectStoreParameters {
+    autoIncrement?: boolean;
+    keyPath?: IDBKeyPath;
+}
+
+interface KeyAlgorithm {
+    name?: string;
+}
+
+interface KeyboardEventInit extends EventModifierInit {
+    code?: string;
+    key?: string;
+    location?: number;
+    repeat?: boolean;
+}
+
+interface LongRange {
+    max?: number;
+    min?: number;
+}
+
+interface MSAccountInfo {
+    rpDisplayName?: string;
+    userDisplayName?: string;
+    accountName?: string;
+    userId?: string;
+    accountImageUri?: string;
+}
+
+interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
+    networkSendQualityEventRatio?: number;
+    networkDelayEventRatio?: number;
+    cpuInsufficientEventRatio?: number;
+    deviceHalfDuplexAECEventRatio?: number;
+    deviceRenderNotFunctioningEventRatio?: number;
+    deviceCaptureNotFunctioningEventRatio?: number;
+    deviceGlitchesEventRatio?: number;
+    deviceLowSNREventRatio?: number;
+    deviceLowSpeechLevelEventRatio?: number;
+    deviceClippingEventRatio?: number;
+    deviceEchoEventRatio?: number;
+    deviceNearEndToEchoRatioEventRatio?: number;
+    deviceRenderZeroVolumeEventRatio?: number;
+    deviceRenderMuteEventRatio?: number;
+    deviceMultipleEndpointsEventCount?: number;
+    deviceHowlingEventCount?: number;
+}
+
+interface MSAudioRecvPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioRecvSignal;
+    packetReorderRatio?: number;
+    packetReorderDepthAvg?: number;
+    packetReorderDepthMax?: number;
+    burstLossLength1?: number;
+    burstLossLength2?: number;
+    burstLossLength3?: number;
+    burstLossLength4?: number;
+    burstLossLength5?: number;
+    burstLossLength6?: number;
+    burstLossLength7?: number;
+    burstLossLength8OrHigher?: number;
+    fecRecvDistance1?: number;
+    fecRecvDistance2?: number;
+    fecRecvDistance3?: number;
+    ratioConcealedSamplesAvg?: number;
+    ratioStretchedSamplesAvg?: number;
+    ratioCompressedSamplesAvg?: number;
+}
+
+interface MSAudioRecvSignal {
+    initialSignalLevelRMS?: number;
+    recvSignalLevelCh1?: number;
+    recvNoiseLevelCh1?: number;
+    renderSignalLevel?: number;
+    renderNoiseLevel?: number;
+    renderLoopbackSignalLevel?: number;
+}
+
+interface MSAudioSendPayload extends MSPayloadBase {
+    samplingRate?: number;
+    signal?: MSAudioSendSignal;
+    audioFECUsed?: boolean;
+    sendMutePercent?: number;
+}
+
+interface MSAudioSendSignal {
+    noiseLevel?: number;
+    sendSignalLevelCh1?: number;
+    sendNoiseLevelCh1?: number;
+}
+
+interface MSConnectivity {
+    iceType?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    relayAddress?: MSRelayAddress;
+}
+
+interface MSCredentialFilter {
+    accept?: MSCredentialSpec[];
+}
+
+interface MSCredentialParameters {
+    type?: string;
+}
+
+interface MSCredentialSpec {
+    type?: string;
+    id?: string;
+}
+
+interface MSDelay {
+    roundTrip?: number;
+    roundTripMax?: number;
+}
+
+interface MSDescription extends RTCStats {
+    connectivity?: MSConnectivity;
+    transport?: string;
+    networkconnectivity?: MSNetworkConnectivityInfo;
+    localAddr?: MSIPAddressInfo;
+    remoteAddr?: MSIPAddressInfo;
+    deviceDevName?: string;
+    reflexiveLocalIPAddr?: MSIPAddressInfo;
+}
+
+interface MSFIDOCredentialParameters extends MSCredentialParameters {
+    algorithm?: string | Algorithm;
+    authenticators?: AAGUID[];
+}
+
+interface MSIPAddressInfo {
+    ipAddr?: string;
+    port?: number;
+    manufacturerMacAddrMask?: string;
+}
+
+interface MSIceWarningFlags {
+    turnTcpTimedOut?: boolean;
+    turnUdpAllocateFailed?: boolean;
+    turnUdpSendFailed?: boolean;
+    turnTcpAllocateFailed?: boolean;
+    turnTcpSendFailed?: boolean;
+    udpLocalConnectivityFailed?: boolean;
+    udpNatConnectivityFailed?: boolean;
+    udpRelayConnectivityFailed?: boolean;
+    tcpNatConnectivityFailed?: boolean;
+    tcpRelayConnectivityFailed?: boolean;
+    connCheckMessageIntegrityFailed?: boolean;
+    allocationMessageIntegrityFailed?: boolean;
+    connCheckOtherError?: boolean;
+    turnAuthUnknownUsernameError?: boolean;
+    noRelayServersConfigured?: boolean;
+    multipleRelayServersAttempted?: boolean;
+    portRangeExhausted?: boolean;
+    alternateServerReceived?: boolean;
+    pseudoTLSFailure?: boolean;
+    turnTurnTcpConnectivityFailed?: boolean;
+    useCandidateChecksFailed?: boolean;
+    fipsAllocationFailure?: boolean;
+}
+
+interface MSJitter {
+    interArrival?: number;
+    interArrivalMax?: number;
+    interArrivalSD?: number;
+}
+
+interface MSLocalClientEventBase extends RTCStats {
+    networkReceiveQualityEventRatio?: number;
+    networkBandwidthLowEventRatio?: number;
+}
+
+interface MSNetwork extends RTCStats {
+    jitter?: MSJitter;
+    delay?: MSDelay;
+    packetLoss?: MSPacketLoss;
+    utilization?: MSUtilization;
+}
+
+interface MSNetworkConnectivityInfo {
+    vpn?: boolean;
+    linkspeed?: number;
+    networkConnectionDetails?: string;
+}
+
+interface MSNetworkInterfaceType {
+    interfaceTypeEthernet?: boolean;
+    interfaceTypeWireless?: boolean;
+    interfaceTypePPP?: boolean;
+    interfaceTypeTunnel?: boolean;
+    interfaceTypeWWAN?: boolean;
+}
+
+interface MSOutboundNetwork extends MSNetwork {
+    appliedBandwidthLimit?: number;
+}
+
+interface MSPacketLoss {
+    lossRate?: number;
+    lossRateMax?: number;
+}
+
+interface MSPayloadBase extends RTCStats {
+    payloadDescription?: string;
+}
+
+interface MSRelayAddress {
+    relayAddress?: string;
+    port?: number;
+}
+
+interface MSSignatureParameters {
+    userPrompt?: string;
+}
+
+interface MSTransportDiagnosticsStats extends RTCStats {
+    baseAddress?: string;
+    localAddress?: string;
+    localSite?: string;
+    networkName?: string;
+    remoteAddress?: string;
+    remoteSite?: string;
+    localMR?: string;
+    remoteMR?: string;
+    iceWarningFlags?: MSIceWarningFlags;
+    portRangeMin?: number;
+    portRangeMax?: number;
+    localMRTCPPort?: number;
+    remoteMRTCPPort?: number;
+    stunVer?: number;
+    numConsentReqSent?: number;
+    numConsentReqReceived?: number;
+    numConsentRespSent?: number;
+    numConsentRespReceived?: number;
+    interfaces?: MSNetworkInterfaceType;
+    baseInterface?: MSNetworkInterfaceType;
+    protocol?: string;
+    localInterface?: MSNetworkInterfaceType;
+    localAddrType?: string;
+    remoteAddrType?: string;
+    iceRole?: string;
+    rtpRtcpMux?: boolean;
+    allocationTimeInMs?: number;
+    msRtcEngineVersion?: string;
+}
+
+interface MSUtilization {
+    packets?: number;
+    bandwidthEstimation?: number;
+    bandwidthEstimationMin?: number;
+    bandwidthEstimationMax?: number;
+    bandwidthEstimationStdDev?: number;
+    bandwidthEstimationAvg?: number;
+}
+
+interface MSVideoPayload extends MSPayloadBase {
+    resoluton?: string;
+    videoBitRateAvg?: number;
+    videoBitRateMax?: number;
+    videoFrameRateAvg?: number;
+    videoPacketLossRate?: number;
+    durationSeconds?: number;
+}
+
+interface MSVideoRecvPayload extends MSVideoPayload {
+    videoFrameLossRate?: number;
+    recvCodecType?: string;
+    recvResolutionWidth?: number;
+    recvResolutionHeight?: number;
+    videoResolutions?: MSVideoResolutionDistribution;
+    recvFrameRateAverage?: number;
+    recvBitRateMaximum?: number;
+    recvBitRateAverage?: number;
+    recvVideoStreamsMax?: number;
+    recvVideoStreamsMin?: number;
+    recvVideoStreamsMode?: number;
+    videoPostFECPLR?: number;
+    lowBitRateCallPercent?: number;
+    lowFrameRateCallPercent?: number;
+    reorderBufferTotalPackets?: number;
+    recvReorderBufferReorderedPackets?: number;
+    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
+    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
+    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
+    recvReorderBufferPacketsDroppedDueToTimeout?: number;
+    recvFpsHarmonicAverage?: number;
+    recvNumResSwitches?: number;
+}
+
+interface MSVideoResolutionDistribution {
+    cifQuality?: number;
+    vgaQuality?: number;
+    h720Quality?: number;
+    h1080Quality?: number;
+    h1440Quality?: number;
+    h2160Quality?: number;
+}
+
+interface MSVideoSendPayload extends MSVideoPayload {
+    sendFrameRateAverage?: number;
+    sendBitRateMaximum?: number;
+    sendBitRateAverage?: number;
+    sendVideoStreamsMax?: number;
+    sendResolutionWidth?: number;
+    sendResolutionHeight?: number;
+}
+
+interface MediaEncryptedEventInit extends EventInit {
+    initDataType?: string;
+    initData?: ArrayBuffer;
+}
+
+interface MediaKeyMessageEventInit extends EventInit {
+    messageType?: string;
+    message?: ArrayBuffer;
+}
+
+interface MediaKeySystemConfiguration {
+    initDataTypes?: string[];
+    audioCapabilities?: MediaKeySystemMediaCapability[];
+    videoCapabilities?: MediaKeySystemMediaCapability[];
+    distinctiveIdentifier?: string;
+    persistentState?: string;
+}
+
+interface MediaKeySystemMediaCapability {
+    contentType?: string;
+    robustness?: string;
+}
+
+interface MediaStreamConstraints {
+    video?: boolean | MediaTrackConstraints;
+    audio?: boolean | MediaTrackConstraints;
+}
+
+interface MediaStreamErrorEventInit extends EventInit {
+    error?: MediaStreamError;
+}
+
+interface MediaStreamTrackEventInit extends EventInit {
+    track?: MediaStreamTrack;
+}
+
+interface MediaTrackCapabilities {
+    width?: number | LongRange;
+    height?: number | LongRange;
+    aspectRatio?: number | DoubleRange;
+    frameRate?: number | DoubleRange;
+    facingMode?: string;
+    volume?: number | DoubleRange;
+    sampleRate?: number | LongRange;
+    sampleSize?: number | LongRange;
+    echoCancellation?: boolean[];
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackConstraintSet {
+    width?: number | ConstrainLongRange;
+    height?: number | ConstrainLongRange;
+    aspectRatio?: number | ConstrainDoubleRange;
+    frameRate?: number | ConstrainDoubleRange;
+    facingMode?: string | string[] | ConstrainDOMStringParameters;
+    volume?: number | ConstrainDoubleRange;
+    sampleRate?: number | ConstrainLongRange;
+    sampleSize?: number | ConstrainLongRange;
+    echoCancelation?: boolean | ConstrainBooleanParameters;
+    deviceId?: string | string[] | ConstrainDOMStringParameters;
+    groupId?: string | string[] | ConstrainDOMStringParameters;
+}
+
+interface MediaTrackConstraints extends MediaTrackConstraintSet {
+    advanced?: MediaTrackConstraintSet[];
+}
+
+interface MediaTrackSettings {
+    width?: number;
+    height?: number;
+    aspectRatio?: number;
+    frameRate?: number;
+    facingMode?: string;
+    volume?: number;
+    sampleRate?: number;
+    sampleSize?: number;
+    echoCancellation?: boolean;
+    deviceId?: string;
+    groupId?: string;
+}
+
+interface MediaTrackSupportedConstraints {
+    width?: boolean;
+    height?: boolean;
+    aspectRatio?: boolean;
+    frameRate?: boolean;
+    facingMode?: boolean;
+    volume?: boolean;
+    sampleRate?: boolean;
+    sampleSize?: boolean;
+    echoCancellation?: boolean;
+    deviceId?: boolean;
+    groupId?: boolean;
+}
+
+interface MouseEventInit extends EventModifierInit {
+    screenX?: number;
+    screenY?: number;
+    clientX?: number;
+    clientY?: number;
+    button?: number;
+    buttons?: number;
+    relatedTarget?: EventTarget;
+}
+
+interface MsZoomToOptions {
+    contentX?: number;
+    contentY?: number;
+    viewportX?: string;
+    viewportY?: string;
+    scaleFactor?: number;
+    animate?: string;
+}
+
+interface MutationObserverInit {
+    childList?: boolean;
+    attributes?: boolean;
+    characterData?: boolean;
+    subtree?: boolean;
+    attributeOldValue?: boolean;
+    characterDataOldValue?: boolean;
+    attributeFilter?: string[];
+}
+
+interface ObjectURLOptions {
+    oneTimeOnly?: boolean;
+}
+
+interface PeriodicWaveConstraints {
+    disableNormalization?: boolean;
+}
+
+interface PointerEventInit extends MouseEventInit {
+    pointerId?: number;
+    width?: number;
+    height?: number;
+    pressure?: number;
+    tiltX?: number;
+    tiltY?: number;
+    pointerType?: string;
+    isPrimary?: boolean;
+}
+
+interface PositionOptions {
+    enableHighAccuracy?: boolean;
+    timeout?: number;
+    maximumAge?: number;
+}
+
+interface RTCDTMFToneChangeEventInit extends EventInit {
+    tone?: string;
+}
+
+interface RTCDtlsFingerprint {
+    algorithm?: string;
+    value?: string;
+}
+
+interface RTCDtlsParameters {
+    role?: string;
+    fingerprints?: RTCDtlsFingerprint[];
+}
+
+interface RTCIceCandidate {
+    foundation?: string;
+    priority?: number;
+    ip?: string;
+    protocol?: string;
+    port?: number;
+    type?: string;
+    tcpType?: string;
+    relatedAddress?: string;
+    relatedPort?: number;
+}
+
+interface RTCIceCandidateAttributes extends RTCStats {
+    ipAddress?: string;
+    portNumber?: number;
+    transport?: string;
+    candidateType?: string;
+    priority?: number;
+    addressSourceUrl?: string;
+}
+
+interface RTCIceCandidateComplete {
+}
+
+interface RTCIceCandidatePair {
+    local?: RTCIceCandidate;
+    remote?: RTCIceCandidate;
+}
+
+interface RTCIceCandidatePairStats extends RTCStats {
+    transportId?: string;
+    localCandidateId?: string;
+    remoteCandidateId?: string;
+    state?: string;
+    priority?: number;
+    nominated?: boolean;
+    writable?: boolean;
+    readable?: boolean;
+    bytesSent?: number;
+    bytesReceived?: number;
+    roundTripTime?: number;
+    availableOutgoingBitrate?: number;
+    availableIncomingBitrate?: number;
+}
+
+interface RTCIceGatherOptions {
+    gatherPolicy?: string;
+    iceservers?: RTCIceServer[];
+}
+
+interface RTCIceParameters {
+    usernameFragment?: string;
+    password?: string;
+}
+
+interface RTCIceServer {
+    urls?: any;
+    username?: string;
+    credential?: string;
+}
+
+interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsReceived?: number;
+    bytesReceived?: number;
+    packetsLost?: number;
+    jitter?: number;
+    fractionLost?: number;
+}
+
+interface RTCMediaStreamTrackStats extends RTCStats {
+    trackIdentifier?: string;
+    remoteSource?: boolean;
+    ssrcIds?: string[];
+    frameWidth?: number;
+    frameHeight?: number;
+    framesPerSecond?: number;
+    framesSent?: number;
+    framesReceived?: number;
+    framesDecoded?: number;
+    framesDropped?: number;
+    framesCorrupted?: number;
+    audioLevel?: number;
+    echoReturnLoss?: number;
+    echoReturnLossEnhancement?: number;
+}
+
+interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
+    packetsSent?: number;
+    bytesSent?: number;
+    targetBitrate?: number;
+    roundTripTime?: number;
+}
+
+interface RTCRTPStreamStats extends RTCStats {
+    ssrc?: string;
+    associateStatsId?: string;
+    isRemote?: boolean;
+    mediaTrackId?: string;
+    transportId?: string;
+    codecId?: string;
+    firCount?: number;
+    pliCount?: number;
+    nackCount?: number;
+    sliCount?: number;
+}
+
+interface RTCRtcpFeedback {
+    type?: string;
+    parameter?: string;
+}
+
+interface RTCRtcpParameters {
+    ssrc?: number;
+    cname?: string;
+    reducedSize?: boolean;
+    mux?: boolean;
+}
+
+interface RTCRtpCapabilities {
+    codecs?: RTCRtpCodecCapability[];
+    headerExtensions?: RTCRtpHeaderExtension[];
+    fecMechanisms?: string[];
+}
+
+interface RTCRtpCodecCapability {
+    name?: string;
+    kind?: string;
+    clockRate?: number;
+    preferredPayloadType?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+    options?: any;
+    maxTemporalLayers?: number;
+    maxSpatialLayers?: number;
+    svcMultiStreamSupport?: boolean;
+}
+
+interface RTCRtpCodecParameters {
+    name?: string;
+    payloadType?: any;
+    clockRate?: number;
+    maxptime?: number;
+    numChannels?: number;
+    rtcpFeedback?: RTCRtcpFeedback[];
+    parameters?: any;
+}
+
+interface RTCRtpContributingSource {
+    timestamp?: number;
+    csrc?: number;
+    audioLevel?: number;
+}
+
+interface RTCRtpEncodingParameters {
+    ssrc?: number;
+    codecPayloadType?: number;
+    fec?: RTCRtpFecParameters;
+    rtx?: RTCRtpRtxParameters;
+    priority?: number;
+    maxBitrate?: number;
+    minQuality?: number;
+    framerateBias?: number;
+    resolutionScale?: number;
+    framerateScale?: number;
+    active?: boolean;
+    encodingId?: string;
+    dependencyEncodingIds?: string[];
+    ssrcRange?: RTCSsrcRange;
+}
+
+interface RTCRtpFecParameters {
+    ssrc?: number;
+    mechanism?: string;
+}
+
+interface RTCRtpHeaderExtension {
+    kind?: string;
+    uri?: string;
+    preferredId?: number;
+    preferredEncrypt?: boolean;
+}
+
+interface RTCRtpHeaderExtensionParameters {
+    uri?: string;
+    id?: number;
+    encrypt?: boolean;
+}
+
+interface RTCRtpParameters {
+    muxId?: string;
+    codecs?: RTCRtpCodecParameters[];
+    headerExtensions?: RTCRtpHeaderExtensionParameters[];
+    encodings?: RTCRtpEncodingParameters[];
+    rtcp?: RTCRtcpParameters;
+}
+
+interface RTCRtpRtxParameters {
+    ssrc?: number;
+}
+
+interface RTCRtpUnhandled {
+    ssrc?: number;
+    payloadType?: number;
+    muxId?: string;
+}
+
+interface RTCSrtpKeyParam {
+    keyMethod?: string;
+    keySalt?: string;
+    lifetime?: string;
+    mkiValue?: number;
+    mkiLength?: number;
+}
+
+interface RTCSrtpSdesParameters {
+    tag?: number;
+    cryptoSuite?: string;
+    keyParams?: RTCSrtpKeyParam[];
+    sessionParams?: string[];
+}
+
+interface RTCSsrcRange {
+    min?: number;
+    max?: number;
+}
+
+interface RTCStats {
+    timestamp?: number;
+    type?: string;
+    id?: string;
+    msType?: string;
+}
+
+interface RTCStatsReport {
+}
+
+interface RTCTransportStats extends RTCStats {
+    bytesSent?: number;
+    bytesReceived?: number;
+    rtcpTransportStatsId?: string;
+    activeConnection?: boolean;
+    selectedCandidatePairId?: string;
+    localCertificateId?: string;
+    remoteCertificateId?: string;
+}
+
+interface StoreExceptionsInformation extends ExceptionInformation {
+    siteName?: string;
+    explanationString?: string;
+    detailURI?: string;
+}
+
+interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
+    arrayOfDomainStrings?: string[];
+}
+
+interface UIEventInit extends EventInit {
+    view?: Window;
+    detail?: number;
+}
+
+interface WebGLContextAttributes {
+    failIfMajorPerformanceCaveat?: boolean;
+    alpha?: boolean;
+    depth?: boolean;
+    stencil?: boolean;
+    antialias?: boolean;
+    premultipliedAlpha?: boolean;
+    preserveDrawingBuffer?: boolean;
+}
+
+interface WebGLContextEventInit extends EventInit {
+    statusMessage?: string;
+}
+
+interface WheelEventInit extends MouseEventInit {
+    deltaX?: number;
+    deltaY?: number;
+    deltaZ?: number;
+    deltaMode?: number;
+}
+
+interface EventListener {
+    (evt: Event): void;
+}
+
+interface ANGLE_instanced_arrays {
+    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
+    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
+    vertexAttribDivisorANGLE(index: number, divisor: number): void;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+declare var ANGLE_instanced_arrays: {
+    prototype: ANGLE_instanced_arrays;
+    new(): ANGLE_instanced_arrays;
+    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+}
+
+interface AnalyserNode extends AudioNode {
+    fftSize: number;
+    readonly frequencyBinCount: number;
+    maxDecibels: number;
+    minDecibels: number;
+    smoothingTimeConstant: number;
+    getByteFrequencyData(array: Uint8Array): void;
+    getByteTimeDomainData(array: Uint8Array): void;
+    getFloatFrequencyData(array: Float32Array): void;
+    getFloatTimeDomainData(array: Float32Array): void;
+}
+
+declare var AnalyserNode: {
+    prototype: AnalyserNode;
+    new(): AnalyserNode;
+}
+
+interface AnimationEvent extends Event {
+    readonly animationName: string;
+    readonly elapsedTime: number;
+    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var AnimationEvent: {
+    prototype: AnimationEvent;
+    new(): AnimationEvent;
+}
+
+interface ApplicationCacheEventMap {
+    "cached": Event;
+    "checking": Event;
+    "downloading": Event;
+    "error": ErrorEvent;
+    "noupdate": Event;
+    "obsolete": Event;
+    "progress": ProgressEvent;
+    "updateready": Event;
+}
+
+interface ApplicationCache extends EventTarget {
+    oncached: (this: ApplicationCache, ev: Event) => any;
+    onchecking: (this: ApplicationCache, ev: Event) => any;
+    ondownloading: (this: ApplicationCache, ev: Event) => any;
+    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
+    onnoupdate: (this: ApplicationCache, ev: Event) => any;
+    onobsolete: (this: ApplicationCache, ev: Event) => any;
+    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
+    onupdateready: (this: ApplicationCache, ev: Event) => any;
+    readonly status: number;
+    abort(): void;
+    swapCache(): void;
+    update(): void;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ApplicationCache: {
+    prototype: ApplicationCache;
+    new(): ApplicationCache;
+    readonly CHECKING: number;
+    readonly DOWNLOADING: number;
+    readonly IDLE: number;
+    readonly OBSOLETE: number;
+    readonly UNCACHED: number;
+    readonly UPDATEREADY: number;
+}
+
+interface AriaRequestEvent extends Event {
+    readonly attributeName: string;
+    attributeValue: string | null;
+}
+
+declare var AriaRequestEvent: {
+    prototype: AriaRequestEvent;
+    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
+}
+
+interface Attr extends Node {
+    readonly name: string;
+    readonly ownerElement: Element;
+    readonly prefix: string | null;
+    readonly specified: boolean;
+    value: string;
+}
+
+declare var Attr: {
+    prototype: Attr;
+    new(): Attr;
+}
+
+interface AudioBuffer {
+    readonly duration: number;
+    readonly length: number;
+    readonly numberOfChannels: number;
+    readonly sampleRate: number;
+    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    getChannelData(channel: number): Float32Array;
+}
+
+declare var AudioBuffer: {
+    prototype: AudioBuffer;
+    new(): AudioBuffer;
+}
+
+interface AudioBufferSourceNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface AudioBufferSourceNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    readonly detune: AudioParam;
+    loop: boolean;
+    loopEnd: number;
+    loopStart: number;
+    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
+    readonly playbackRate: AudioParam;
+    start(when?: number, offset?: number, duration?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var AudioBufferSourceNode: {
+    prototype: AudioBufferSourceNode;
+    new(): AudioBufferSourceNode;
+}
+
+interface AudioContext extends EventTarget {
+    readonly currentTime: number;
+    readonly destination: AudioDestinationNode;
+    readonly listener: AudioListener;
+    readonly sampleRate: number;
+    state: string;
+    createAnalyser(): AnalyserNode;
+    createBiquadFilter(): BiquadFilterNode;
+    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
+    createBufferSource(): AudioBufferSourceNode;
+    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
+    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
+    createConvolver(): ConvolverNode;
+    createDelay(maxDelayTime?: number): DelayNode;
+    createDynamicsCompressor(): DynamicsCompressorNode;
+    createGain(): GainNode;
+    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
+    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
+    createOscillator(): OscillatorNode;
+    createPanner(): PannerNode;
+    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
+    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
+    createStereoPanner(): StereoPannerNode;
+    createWaveShaper(): WaveShaperNode;
+    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
+}
+
+declare var AudioContext: {
+    prototype: AudioContext;
+    new(): AudioContext;
+}
+
+interface AudioDestinationNode extends AudioNode {
+    readonly maxChannelCount: number;
+}
+
+declare var AudioDestinationNode: {
+    prototype: AudioDestinationNode;
+    new(): AudioDestinationNode;
+}
+
+interface AudioListener {
+    dopplerFactor: number;
+    speedOfSound: number;
+    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var AudioListener: {
+    prototype: AudioListener;
+    new(): AudioListener;
+}
+
+interface AudioNode extends EventTarget {
+    channelCount: number;
+    channelCountMode: string;
+    channelInterpretation: string;
+    readonly context: AudioContext;
+    readonly numberOfInputs: number;
+    readonly numberOfOutputs: number;
+    connect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(output?: number): void;
+    disconnect(destination: AudioNode, output?: number, input?: number): void;
+    disconnect(destination: AudioParam, output?: number): void;
+}
+
+declare var AudioNode: {
+    prototype: AudioNode;
+    new(): AudioNode;
+}
+
+interface AudioParam {
+    readonly defaultValue: number;
+    value: number;
+    cancelScheduledValues(startTime: number): void;
+    exponentialRampToValueAtTime(value: number, endTime: number): void;
+    linearRampToValueAtTime(value: number, endTime: number): void;
+    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
+    setValueAtTime(value: number, startTime: number): void;
+    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
+}
+
+declare var AudioParam: {
+    prototype: AudioParam;
+    new(): AudioParam;
+}
+
+interface AudioProcessingEvent extends Event {
+    readonly inputBuffer: AudioBuffer;
+    readonly outputBuffer: AudioBuffer;
+    readonly playbackTime: number;
+}
+
+declare var AudioProcessingEvent: {
+    prototype: AudioProcessingEvent;
+    new(): AudioProcessingEvent;
+}
+
+interface AudioTrack {
+    enabled: boolean;
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var AudioTrack: {
+    prototype: AudioTrack;
+    new(): AudioTrack;
+}
+
+interface AudioTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface AudioTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    onchange: (this: AudioTrackList, ev: Event) => any;
+    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
+    getTrackById(id: string): AudioTrack | null;
+    item(index: number): AudioTrack;
+    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: AudioTrack;
+}
+
+declare var AudioTrackList: {
+    prototype: AudioTrackList;
+    new(): AudioTrackList;
+}
+
+interface BarProp {
+    readonly visible: boolean;
+}
+
+declare var BarProp: {
+    prototype: BarProp;
+    new(): BarProp;
+}
+
+interface BeforeUnloadEvent extends Event {
+    returnValue: any;
+}
+
+declare var BeforeUnloadEvent: {
+    prototype: BeforeUnloadEvent;
+    new(): BeforeUnloadEvent;
+}
+
+interface BiquadFilterNode extends AudioNode {
+    readonly Q: AudioParam;
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    readonly gain: AudioParam;
+    type: string;
+    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
+}
+
+declare var BiquadFilterNode: {
+    prototype: BiquadFilterNode;
+    new(): BiquadFilterNode;
+}
+
+interface Blob {
+    readonly size: number;
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+    slice(start?: number, end?: number, contentType?: string): Blob;
+}
+
+declare var Blob: {
+    prototype: Blob;
+    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
+}
+
+interface CDATASection extends Text {
+}
+
+declare var CDATASection: {
+    prototype: CDATASection;
+    new(): CDATASection;
+}
+
+interface CSS {
+    supports(property: string, value?: string): boolean;
+}
+declare var CSS: CSS;
+
+interface CSSConditionRule extends CSSGroupingRule {
+    conditionText: string;
+}
+
+declare var CSSConditionRule: {
+    prototype: CSSConditionRule;
+    new(): CSSConditionRule;
+}
+
+interface CSSFontFaceRule extends CSSRule {
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSFontFaceRule: {
+    prototype: CSSFontFaceRule;
+    new(): CSSFontFaceRule;
+}
+
+interface CSSGroupingRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    deleteRule(index: number): void;
+    insertRule(rule: string, index: number): number;
+}
+
+declare var CSSGroupingRule: {
+    prototype: CSSGroupingRule;
+    new(): CSSGroupingRule;
+}
+
+interface CSSImportRule extends CSSRule {
+    readonly href: string;
+    readonly media: MediaList;
+    readonly styleSheet: CSSStyleSheet;
+}
+
+declare var CSSImportRule: {
+    prototype: CSSImportRule;
+    new(): CSSImportRule;
+}
+
+interface CSSKeyframeRule extends CSSRule {
+    keyText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSKeyframeRule: {
+    prototype: CSSKeyframeRule;
+    new(): CSSKeyframeRule;
+}
+
+interface CSSKeyframesRule extends CSSRule {
+    readonly cssRules: CSSRuleList;
+    name: string;
+    appendRule(rule: string): void;
+    deleteRule(rule: string): void;
+    findRule(rule: string): CSSKeyframeRule;
+}
+
+declare var CSSKeyframesRule: {
+    prototype: CSSKeyframesRule;
+    new(): CSSKeyframesRule;
+}
+
+interface CSSMediaRule extends CSSConditionRule {
+    readonly media: MediaList;
+}
+
+declare var CSSMediaRule: {
+    prototype: CSSMediaRule;
+    new(): CSSMediaRule;
+}
+
+interface CSSNamespaceRule extends CSSRule {
+    readonly namespaceURI: string;
+    readonly prefix: string;
+}
+
+declare var CSSNamespaceRule: {
+    prototype: CSSNamespaceRule;
+    new(): CSSNamespaceRule;
+}
+
+interface CSSPageRule extends CSSRule {
+    readonly pseudoClass: string;
+    readonly selector: string;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSPageRule: {
+    prototype: CSSPageRule;
+    new(): CSSPageRule;
+}
+
+interface CSSRule {
+    cssText: string;
+    readonly parentRule: CSSRule;
+    readonly parentStyleSheet: CSSStyleSheet;
+    readonly type: number;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+declare var CSSRule: {
+    prototype: CSSRule;
+    new(): CSSRule;
+    readonly CHARSET_RULE: number;
+    readonly FONT_FACE_RULE: number;
+    readonly IMPORT_RULE: number;
+    readonly KEYFRAMES_RULE: number;
+    readonly KEYFRAME_RULE: number;
+    readonly MEDIA_RULE: number;
+    readonly NAMESPACE_RULE: number;
+    readonly PAGE_RULE: number;
+    readonly STYLE_RULE: number;
+    readonly SUPPORTS_RULE: number;
+    readonly UNKNOWN_RULE: number;
+    readonly VIEWPORT_RULE: number;
+}
+
+interface CSSRuleList {
+    readonly length: number;
+    item(index: number): CSSRule;
+    [index: number]: CSSRule;
+}
+
+declare var CSSRuleList: {
+    prototype: CSSRuleList;
+    new(): CSSRuleList;
+}
+
+interface CSSStyleDeclaration {
+    alignContent: string | null;
+    alignItems: string | null;
+    alignSelf: string | null;
+    alignmentBaseline: string | null;
+    animation: string | null;
+    animationDelay: string | null;
+    animationDirection: string | null;
+    animationDuration: string | null;
+    animationFillMode: string | null;
+    animationIterationCount: string | null;
+    animationName: string | null;
+    animationPlayState: string | null;
+    animationTimingFunction: string | null;
+    backfaceVisibility: string | null;
+    background: string | null;
+    backgroundAttachment: string | null;
+    backgroundClip: string | null;
+    backgroundColor: string | null;
+    backgroundImage: string | null;
+    backgroundOrigin: string | null;
+    backgroundPosition: string | null;
+    backgroundPositionX: string | null;
+    backgroundPositionY: string | null;
+    backgroundRepeat: string | null;
+    backgroundSize: string | null;
+    baselineShift: string | null;
+    border: string | null;
+    borderBottom: string | null;
+    borderBottomColor: string | null;
+    borderBottomLeftRadius: string | null;
+    borderBottomRightRadius: string | null;
+    borderBottomStyle: string | null;
+    borderBottomWidth: string | null;
+    borderCollapse: string | null;
+    borderColor: string | null;
+    borderImage: string | null;
+    borderImageOutset: string | null;
+    borderImageRepeat: string | null;
+    borderImageSlice: string | null;
+    borderImageSource: string | null;
+    borderImageWidth: string | null;
+    borderLeft: string | null;
+    borderLeftColor: string | null;
+    borderLeftStyle: string | null;
+    borderLeftWidth: string | null;
+    borderRadius: string | null;
+    borderRight: string | null;
+    borderRightColor: string | null;
+    borderRightStyle: string | null;
+    borderRightWidth: string | null;
+    borderSpacing: string | null;
+    borderStyle: string | null;
+    borderTop: string | null;
+    borderTopColor: string | null;
+    borderTopLeftRadius: string | null;
+    borderTopRightRadius: string | null;
+    borderTopStyle: string | null;
+    borderTopWidth: string | null;
+    borderWidth: string | null;
+    bottom: string | null;
+    boxShadow: string | null;
+    boxSizing: string | null;
+    breakAfter: string | null;
+    breakBefore: string | null;
+    breakInside: string | null;
+    captionSide: string | null;
+    clear: string | null;
+    clip: string | null;
+    clipPath: string | null;
+    clipRule: string | null;
+    color: string | null;
+    colorInterpolationFilters: string | null;
+    columnCount: any;
+    columnFill: string | null;
+    columnGap: any;
+    columnRule: string | null;
+    columnRuleColor: any;
+    columnRuleStyle: string | null;
+    columnRuleWidth: any;
+    columnSpan: string | null;
+    columnWidth: any;
+    columns: string | null;
+    content: string | null;
+    counterIncrement: string | null;
+    counterReset: string | null;
+    cssFloat: string | null;
+    cssText: string;
+    cursor: string | null;
+    direction: string | null;
+    display: string | null;
+    dominantBaseline: string | null;
+    emptyCells: string | null;
+    enableBackground: string | null;
+    fill: string | null;
+    fillOpacity: string | null;
+    fillRule: string | null;
+    filter: string | null;
+    flex: string | null;
+    flexBasis: string | null;
+    flexDirection: string | null;
+    flexFlow: string | null;
+    flexGrow: string | null;
+    flexShrink: string | null;
+    flexWrap: string | null;
+    floodColor: string | null;
+    floodOpacity: string | null;
+    font: string | null;
+    fontFamily: string | null;
+    fontFeatureSettings: string | null;
+    fontSize: string | null;
+    fontSizeAdjust: string | null;
+    fontStretch: string | null;
+    fontStyle: string | null;
+    fontVariant: string | null;
+    fontWeight: string | null;
+    glyphOrientationHorizontal: string | null;
+    glyphOrientationVertical: string | null;
+    height: string | null;
+    imeMode: string | null;
+    justifyContent: string | null;
+    kerning: string | null;
+    left: string | null;
+    readonly length: number;
+    letterSpacing: string | null;
+    lightingColor: string | null;
+    lineHeight: string | null;
+    listStyle: string | null;
+    listStyleImage: string | null;
+    listStylePosition: string | null;
+    listStyleType: string | null;
+    margin: string | null;
+    marginBottom: string | null;
+    marginLeft: string | null;
+    marginRight: string | null;
+    marginTop: string | null;
+    marker: string | null;
+    markerEnd: string | null;
+    markerMid: string | null;
+    markerStart: string | null;
+    mask: string | null;
+    maxHeight: string | null;
+    maxWidth: string | null;
+    minHeight: string | null;
+    minWidth: string | null;
+    msContentZoomChaining: string | null;
+    msContentZoomLimit: string | null;
+    msContentZoomLimitMax: any;
+    msContentZoomLimitMin: any;
+    msContentZoomSnap: string | null;
+    msContentZoomSnapPoints: string | null;
+    msContentZoomSnapType: string | null;
+    msContentZooming: string | null;
+    msFlowFrom: string | null;
+    msFlowInto: string | null;
+    msFontFeatureSettings: string | null;
+    msGridColumn: any;
+    msGridColumnAlign: string | null;
+    msGridColumnSpan: any;
+    msGridColumns: string | null;
+    msGridRow: any;
+    msGridRowAlign: string | null;
+    msGridRowSpan: any;
+    msGridRows: string | null;
+    msHighContrastAdjust: string | null;
+    msHyphenateLimitChars: string | null;
+    msHyphenateLimitLines: any;
+    msHyphenateLimitZone: any;
+    msHyphens: string | null;
+    msImeAlign: string | null;
+    msOverflowStyle: string | null;
+    msScrollChaining: string | null;
+    msScrollLimit: string | null;
+    msScrollLimitXMax: any;
+    msScrollLimitXMin: any;
+    msScrollLimitYMax: any;
+    msScrollLimitYMin: any;
+    msScrollRails: string | null;
+    msScrollSnapPointsX: string | null;
+    msScrollSnapPointsY: string | null;
+    msScrollSnapType: string | null;
+    msScrollSnapX: string | null;
+    msScrollSnapY: string | null;
+    msScrollTranslation: string | null;
+    msTextCombineHorizontal: string | null;
+    msTextSizeAdjust: any;
+    msTouchAction: string | null;
+    msTouchSelect: string | null;
+    msUserSelect: string | null;
+    msWrapFlow: string;
+    msWrapMargin: any;
+    msWrapThrough: string;
+    opacity: string | null;
+    order: string | null;
+    orphans: string | null;
+    outline: string | null;
+    outlineColor: string | null;
+    outlineStyle: string | null;
+    outlineWidth: string | null;
+    overflow: string | null;
+    overflowX: string | null;
+    overflowY: string | null;
+    padding: string | null;
+    paddingBottom: string | null;
+    paddingLeft: string | null;
+    paddingRight: string | null;
+    paddingTop: string | null;
+    pageBreakAfter: string | null;
+    pageBreakBefore: string | null;
+    pageBreakInside: string | null;
+    readonly parentRule: CSSRule;
+    perspective: string | null;
+    perspectiveOrigin: string | null;
+    pointerEvents: string | null;
+    position: string | null;
+    quotes: string | null;
+    right: string | null;
+    rubyAlign: string | null;
+    rubyOverhang: string | null;
+    rubyPosition: string | null;
+    stopColor: string | null;
+    stopOpacity: string | null;
+    stroke: string | null;
+    strokeDasharray: string | null;
+    strokeDashoffset: string | null;
+    strokeLinecap: string | null;
+    strokeLinejoin: string | null;
+    strokeMiterlimit: string | null;
+    strokeOpacity: string | null;
+    strokeWidth: string | null;
+    tableLayout: string | null;
+    textAlign: string | null;
+    textAlignLast: string | null;
+    textAnchor: string | null;
+    textDecoration: string | null;
+    textIndent: string | null;
+    textJustify: string | null;
+    textKashida: string | null;
+    textKashidaSpace: string | null;
+    textOverflow: string | null;
+    textShadow: string | null;
+    textTransform: string | null;
+    textUnderlinePosition: string | null;
+    top: string | null;
+    touchAction: string | null;
+    transform: string | null;
+    transformOrigin: string | null;
+    transformStyle: string | null;
+    transition: string | null;
+    transitionDelay: string | null;
+    transitionDuration: string | null;
+    transitionProperty: string | null;
+    transitionTimingFunction: string | null;
+    unicodeBidi: string | null;
+    verticalAlign: string | null;
+    visibility: string | null;
+    webkitAlignContent: string | null;
+    webkitAlignItems: string | null;
+    webkitAlignSelf: string | null;
+    webkitAnimation: string | null;
+    webkitAnimationDelay: string | null;
+    webkitAnimationDirection: string | null;
+    webkitAnimationDuration: string | null;
+    webkitAnimationFillMode: string | null;
+    webkitAnimationIterationCount: string | null;
+    webkitAnimationName: string | null;
+    webkitAnimationPlayState: string | null;
+    webkitAnimationTimingFunction: string | null;
+    webkitAppearance: string | null;
+    webkitBackfaceVisibility: string | null;
+    webkitBackgroundClip: string | null;
+    webkitBackgroundOrigin: string | null;
+    webkitBackgroundSize: string | null;
+    webkitBorderBottomLeftRadius: string | null;
+    webkitBorderBottomRightRadius: string | null;
+    webkitBorderImage: string | null;
+    webkitBorderRadius: string | null;
+    webkitBorderTopLeftRadius: string | null;
+    webkitBorderTopRightRadius: string | null;
+    webkitBoxAlign: string | null;
+    webkitBoxDirection: string | null;
+    webkitBoxFlex: string | null;
+    webkitBoxOrdinalGroup: string | null;
+    webkitBoxOrient: string | null;
+    webkitBoxPack: string | null;
+    webkitBoxSizing: string | null;
+    webkitColumnBreakAfter: string | null;
+    webkitColumnBreakBefore: string | null;
+    webkitColumnBreakInside: string | null;
+    webkitColumnCount: any;
+    webkitColumnGap: any;
+    webkitColumnRule: string | null;
+    webkitColumnRuleColor: any;
+    webkitColumnRuleStyle: string | null;
+    webkitColumnRuleWidth: any;
+    webkitColumnSpan: string | null;
+    webkitColumnWidth: any;
+    webkitColumns: string | null;
+    webkitFilter: string | null;
+    webkitFlex: string | null;
+    webkitFlexBasis: string | null;
+    webkitFlexDirection: string | null;
+    webkitFlexFlow: string | null;
+    webkitFlexGrow: string | null;
+    webkitFlexShrink: string | null;
+    webkitFlexWrap: string | null;
+    webkitJustifyContent: string | null;
+    webkitOrder: string | null;
+    webkitPerspective: string | null;
+    webkitPerspectiveOrigin: string | null;
+    webkitTapHighlightColor: string | null;
+    webkitTextFillColor: string | null;
+    webkitTextSizeAdjust: any;
+    webkitTransform: string | null;
+    webkitTransformOrigin: string | null;
+    webkitTransformStyle: string | null;
+    webkitTransition: string | null;
+    webkitTransitionDelay: string | null;
+    webkitTransitionDuration: string | null;
+    webkitTransitionProperty: string | null;
+    webkitTransitionTimingFunction: string | null;
+    webkitUserModify: string | null;
+    webkitUserSelect: string | null;
+    webkitWritingMode: string | null;
+    whiteSpace: string | null;
+    widows: string | null;
+    width: string | null;
+    wordBreak: string | null;
+    wordSpacing: string | null;
+    wordWrap: string | null;
+    writingMode: string | null;
+    zIndex: string | null;
+    zoom: string | null;
+    resize: string | null;
+    getPropertyPriority(propertyName: string): string;
+    getPropertyValue(propertyName: string): string;
+    item(index: number): string;
+    removeProperty(propertyName: string): string;
+    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
+    [index: number]: string;
+}
+
+declare var CSSStyleDeclaration: {
+    prototype: CSSStyleDeclaration;
+    new(): CSSStyleDeclaration;
+}
+
+interface CSSStyleRule extends CSSRule {
+    readonly readOnly: boolean;
+    selectorText: string;
+    readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSStyleRule: {
+    prototype: CSSStyleRule;
+    new(): CSSStyleRule;
+}
+
+interface CSSStyleSheet extends StyleSheet {
+    readonly cssRules: CSSRuleList;
+    cssText: string;
+    readonly href: string;
+    readonly id: string;
+    readonly imports: StyleSheetList;
+    readonly isAlternate: boolean;
+    readonly isPrefAlternate: boolean;
+    readonly ownerRule: CSSRule;
+    readonly owningElement: Element;
+    readonly pages: StyleSheetPageList;
+    readonly readOnly: boolean;
+    readonly rules: CSSRuleList;
+    addImport(bstrURL: string, lIndex?: number): number;
+    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
+    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
+    deleteRule(index?: number): void;
+    insertRule(rule: string, index?: number): number;
+    removeImport(lIndex: number): void;
+    removeRule(lIndex: number): void;
+}
+
+declare var CSSStyleSheet: {
+    prototype: CSSStyleSheet;
+    new(): CSSStyleSheet;
+}
+
+interface CSSSupportsRule extends CSSConditionRule {
+}
+
+declare var CSSSupportsRule: {
+    prototype: CSSSupportsRule;
+    new(): CSSSupportsRule;
+}
+
+interface CanvasGradient {
+    addColorStop(offset: number, color: string): void;
+}
+
+declare var CanvasGradient: {
+    prototype: CanvasGradient;
+    new(): CanvasGradient;
+}
+
+interface CanvasPattern {
+    setTransform(matrix: SVGMatrix): void;
+}
+
+declare var CanvasPattern: {
+    prototype: CanvasPattern;
+    new(): CanvasPattern;
+}
+
+interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
+    readonly canvas: HTMLCanvasElement;
+    fillStyle: string | CanvasGradient | CanvasPattern;
+    font: string;
+    globalAlpha: number;
+    globalCompositeOperation: string;
+    lineCap: string;
+    lineDashOffset: number;
+    lineJoin: string;
+    lineWidth: number;
+    miterLimit: number;
+    msFillRule: string;
+    msImageSmoothingEnabled: boolean;
+    shadowBlur: number;
+    shadowColor: string;
+    shadowOffsetX: number;
+    shadowOffsetY: number;
+    strokeStyle: string | CanvasGradient | CanvasPattern;
+    textAlign: string;
+    textBaseline: string;
+    mozImageSmoothingEnabled: boolean;
+    webkitImageSmoothingEnabled: boolean;
+    oImageSmoothingEnabled: boolean;
+    beginPath(): void;
+    clearRect(x: number, y: number, w: number, h: number): void;
+    clip(fillRule?: string): void;
+    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
+    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
+    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
+    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
+    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
+    fill(fillRule?: string): void;
+    fillRect(x: number, y: number, w: number, h: number): void;
+    fillText(text: string, x: number, y: number, maxWidth?: number): void;
+    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+    getLineDash(): number[];
+    isPointInPath(x: number, y: number, fillRule?: string): boolean;
+    measureText(text: string): TextMetrics;
+    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
+    restore(): void;
+    rotate(angle: number): void;
+    save(): void;
+    scale(x: number, y: number): void;
+    setLineDash(segments: number[]): void;
+    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
+    stroke(): void;
+    strokeRect(x: number, y: number, w: number, h: number): void;
+    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
+    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
+    translate(x: number, y: number): void;
+}
+
+declare var CanvasRenderingContext2D: {
+    prototype: CanvasRenderingContext2D;
+    new(): CanvasRenderingContext2D;
+}
+
+interface ChannelMergerNode extends AudioNode {
+}
+
+declare var ChannelMergerNode: {
+    prototype: ChannelMergerNode;
+    new(): ChannelMergerNode;
+}
+
+interface ChannelSplitterNode extends AudioNode {
+}
+
+declare var ChannelSplitterNode: {
+    prototype: ChannelSplitterNode;
+    new(): ChannelSplitterNode;
+}
+
+interface CharacterData extends Node, ChildNode {
+    data: string;
+    readonly length: number;
+    appendData(arg: string): void;
+    deleteData(offset: number, count: number): void;
+    insertData(offset: number, arg: string): void;
+    replaceData(offset: number, count: number, arg: string): void;
+    substringData(offset: number, count: number): string;
+}
+
+declare var CharacterData: {
+    prototype: CharacterData;
+    new(): CharacterData;
+}
+
+interface ClientRect {
+    bottom: number;
+    readonly height: number;
+    left: number;
+    right: number;
+    top: number;
+    readonly width: number;
+}
+
+declare var ClientRect: {
+    prototype: ClientRect;
+    new(): ClientRect;
+}
+
+interface ClientRectList {
+    readonly length: number;
+    item(index: number): ClientRect;
+    [index: number]: ClientRect;
+}
+
+declare var ClientRectList: {
+    prototype: ClientRectList;
+    new(): ClientRectList;
+}
+
+interface ClipboardEvent extends Event {
+    readonly clipboardData: DataTransfer;
+}
+
+declare var ClipboardEvent: {
+    prototype: ClipboardEvent;
+    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+}
+
+interface CloseEvent extends Event {
+    readonly code: number;
+    readonly reason: string;
+    readonly wasClean: boolean;
+    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
+}
+
+declare var CloseEvent: {
+    prototype: CloseEvent;
+    new(): CloseEvent;
+}
+
+interface CommandEvent extends Event {
+    readonly commandName: string;
+    readonly detail: string | null;
+}
+
+declare var CommandEvent: {
+    prototype: CommandEvent;
+    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
+}
+
+interface Comment extends CharacterData {
+    text: string;
+}
+
+declare var Comment: {
+    prototype: Comment;
+    new(): Comment;
+}
+
+interface CompositionEvent extends UIEvent {
+    readonly data: string;
+    readonly locale: string;
+    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
+}
+
+declare var CompositionEvent: {
+    prototype: CompositionEvent;
+    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
+}
+
+interface Console {
+    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
+    clear(): void;
+    count(countTitle?: string): void;
+    debug(message?: string, ...optionalParams: any[]): void;
+    dir(value?: any, ...optionalParams: any[]): void;
+    dirxml(value: any): void;
+    error(message?: any, ...optionalParams: any[]): void;
+    exception(message?: string, ...optionalParams: any[]): void;
+    group(groupTitle?: string): void;
+    groupCollapsed(groupTitle?: string): void;
+    groupEnd(): void;
+    info(message?: any, ...optionalParams: any[]): void;
+    log(message?: any, ...optionalParams: any[]): void;
+    msIsIndependentlyComposed(element: Element): boolean;
+    profile(reportName?: string): void;
+    profileEnd(): void;
+    select(element: Element): void;
+    table(...data: any[]): void;
+    time(timerName?: string): void;
+    timeEnd(timerName?: string): void;
+    trace(message?: any, ...optionalParams: any[]): void;
+    warn(message?: any, ...optionalParams: any[]): void;
+}
+
+declare var Console: {
+    prototype: Console;
+    new(): Console;
+}
+
+interface ConvolverNode extends AudioNode {
+    buffer: AudioBuffer | null;
+    normalize: boolean;
+}
+
+declare var ConvolverNode: {
+    prototype: ConvolverNode;
+    new(): ConvolverNode;
+}
+
+interface Coordinates {
+    readonly accuracy: number;
+    readonly altitude: number | null;
+    readonly altitudeAccuracy: number | null;
+    readonly heading: number | null;
+    readonly latitude: number;
+    readonly longitude: number;
+    readonly speed: number | null;
+}
+
+declare var Coordinates: {
+    prototype: Coordinates;
+    new(): Coordinates;
+}
+
+interface Crypto extends Object, RandomSource {
+    readonly subtle: SubtleCrypto;
+}
+
+declare var Crypto: {
+    prototype: Crypto;
+    new(): Crypto;
+}
+
+interface CryptoKey {
+    readonly algorithm: KeyAlgorithm;
+    readonly extractable: boolean;
+    readonly type: string;
+    readonly usages: string[];
+}
+
+declare var CryptoKey: {
+    prototype: CryptoKey;
+    new(): CryptoKey;
+}
+
+interface CryptoKeyPair {
+    privateKey: CryptoKey;
+    publicKey: CryptoKey;
+}
+
+declare var CryptoKeyPair: {
+    prototype: CryptoKeyPair;
+    new(): CryptoKeyPair;
+}
+
+interface CustomEvent extends Event {
+    readonly detail: any;
+    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
+}
+
+declare var CustomEvent: {
+    prototype: CustomEvent;
+    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
+}
+
+interface DOMError {
+    readonly name: string;
+    toString(): string;
+}
+
+declare var DOMError: {
+    prototype: DOMError;
+    new(): DOMError;
+}
+
+interface DOMException {
+    readonly code: number;
+    readonly message: string;
+    readonly name: string;
+    toString(): string;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+declare var DOMException: {
+    prototype: DOMException;
+    new(): DOMException;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+interface DOMImplementation {
+    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
+    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
+    createHTMLDocument(title: string): Document;
+    hasFeature(feature: string | null, version: string | null): boolean;
+}
+
+declare var DOMImplementation: {
+    prototype: DOMImplementation;
+    new(): DOMImplementation;
+}
+
+interface DOMParser {
+    parseFromString(source: string, mimeType: string): Document;
+}
+
+declare var DOMParser: {
+    prototype: DOMParser;
+    new(): DOMParser;
+}
+
+interface DOMSettableTokenList extends DOMTokenList {
+    value: string;
+}
+
+declare var DOMSettableTokenList: {
+    prototype: DOMSettableTokenList;
+    new(): DOMSettableTokenList;
+}
+
+interface DOMStringList {
+    readonly length: number;
+    contains(str: string): boolean;
+    item(index: number): string | null;
+    [index: number]: string;
+}
+
+declare var DOMStringList: {
+    prototype: DOMStringList;
+    new(): DOMStringList;
+}
+
+interface DOMStringMap {
+    [name: string]: string;
+}
+
+declare var DOMStringMap: {
+    prototype: DOMStringMap;
+    new(): DOMStringMap;
+}
+
+interface DOMTokenList {
+    readonly length: number;
+    add(...token: string[]): void;
+    contains(token: string): boolean;
+    item(index: number): string;
+    remove(...token: string[]): void;
+    toString(): string;
+    toggle(token: string, force?: boolean): boolean;
+    [index: number]: string;
+}
+
+declare var DOMTokenList: {
+    prototype: DOMTokenList;
+    new(): DOMTokenList;
+}
+
+interface DataCue extends TextTrackCue {
+    data: ArrayBuffer;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var DataCue: {
+    prototype: DataCue;
+    new(): DataCue;
+}
+
+interface DataTransfer {
+    dropEffect: string;
+    effectAllowed: string;
+    readonly files: FileList;
+    readonly items: DataTransferItemList;
+    readonly types: string[];
+    clearData(format?: string): boolean;
+    getData(format: string): string;
+    setData(format: string, data: string): boolean;
+}
+
+declare var DataTransfer: {
+    prototype: DataTransfer;
+    new(): DataTransfer;
+}
+
+interface DataTransferItem {
+    readonly kind: string;
+    readonly type: string;
+    getAsFile(): File | null;
+    getAsString(_callback: FunctionStringCallback | null): void;
+}
+
+declare var DataTransferItem: {
+    prototype: DataTransferItem;
+    new(): DataTransferItem;
+}
+
+interface DataTransferItemList {
+    readonly length: number;
+    add(data: File): DataTransferItem | null;
+    clear(): void;
+    item(index: number): DataTransferItem;
+    remove(index: number): void;
+    [index: number]: DataTransferItem;
+}
+
+declare var DataTransferItemList: {
+    prototype: DataTransferItemList;
+    new(): DataTransferItemList;
+}
+
+interface DeferredPermissionRequest {
+    readonly id: number;
+    readonly type: string;
+    readonly uri: string;
+    allow(): void;
+    deny(): void;
+}
+
+declare var DeferredPermissionRequest: {
+    prototype: DeferredPermissionRequest;
+    new(): DeferredPermissionRequest;
+}
+
+interface DelayNode extends AudioNode {
+    readonly delayTime: AudioParam;
+}
+
+declare var DelayNode: {
+    prototype: DelayNode;
+    new(): DelayNode;
+}
+
+interface DeviceAcceleration {
+    readonly x: number | null;
+    readonly y: number | null;
+    readonly z: number | null;
+}
+
+declare var DeviceAcceleration: {
+    prototype: DeviceAcceleration;
+    new(): DeviceAcceleration;
+}
+
+interface DeviceLightEvent extends Event {
+    readonly value: number;
+}
+
+declare var DeviceLightEvent: {
+    prototype: DeviceLightEvent;
+    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
+}
+
+interface DeviceMotionEvent extends Event {
+    readonly acceleration: DeviceAcceleration | null;
+    readonly accelerationIncludingGravity: DeviceAcceleration | null;
+    readonly interval: number | null;
+    readonly rotationRate: DeviceRotationRate | null;
+    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
+}
+
+declare var DeviceMotionEvent: {
+    prototype: DeviceMotionEvent;
+    new(): DeviceMotionEvent;
+}
+
+interface DeviceOrientationEvent extends Event {
+    readonly absolute: boolean;
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
+}
+
+declare var DeviceOrientationEvent: {
+    prototype: DeviceOrientationEvent;
+    new(): DeviceOrientationEvent;
+}
+
+interface DeviceRotationRate {
+    readonly alpha: number | null;
+    readonly beta: number | null;
+    readonly gamma: number | null;
+}
+
+declare var DeviceRotationRate: {
+    prototype: DeviceRotationRate;
+    new(): DeviceRotationRate;
+}
+
+interface DocumentEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforedeactivate": UIEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "fullscreenchange": Event;
+    "fullscreenerror": Event;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "mssitemodejumplistitemremoved": MSSiteModeEvent;
+    "msthumbnailclick": MSSiteModeEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "pointerlockchange": Event;
+    "pointerlockerror": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectionchange": Event;
+    "selectstart": Event;
+    "stalled": Event;
+    "stop": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "volumechange": Event;
+    "waiting": Event;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
+    /**
+      * Sets or gets the URL for the current document. 
+      */
+    readonly URL: string;
+    /**
+      * Gets the URL for the document, stripped of any character encoding.
+      */
+    readonly URLUnencoded: string;
+    /**
+      * Gets the object that has the focus when the parent document has focus.
+      */
+    readonly activeElement: Element;
+    /**
+      * Sets or gets the color of all active links in the document.
+      */
+    alinkColor: string;
+    /**
+      * Returns a reference to the collection of elements contained by the 
object.
+      */
+    readonly all: HTMLAllCollection;
+    /**
+      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
+      */
+    anchors: HTMLCollectionOf<HTMLAnchorElement>;
+    /**
+      * Retrieves a collection of all applet objects in the document.
+      */
+    applets: HTMLCollectionOf<HTMLAppletElement>;
+    /**
+      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
+      */
+    bgColor: string;
+    /**
+      * Specifies the beginning and end of the document body.
+      */
+    body: HTMLElement;
+    readonly characterSet: string;
+    /**
+      * Gets or sets the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
+      */
+    readonly compatMode: string;
+    cookie: string;
+    readonly currentScript: HTMLScriptElement | SVGScriptElement;
+    /**
+      * Gets the default character set from the current regional language 
settings.
+      */
+    readonly defaultCharset: string;
+    readonly defaultView: Window;
+    /**
+      * Sets or gets a value that indicates whether the document can be edited.
+      */
+    designMode: string;
+    /**
+      * Sets or retrieves a value that indicates the reading order of the 
object. 
+      */
+    dir: string;
+    /**
+      * Gets an object representing the document type declaration associated 
with the current document. 
+      */
+    readonly doctype: DocumentType;
+    /**
+      * Gets a reference to the root node of the document. 
+      */
+    documentElement: HTMLElement;
+    /**
+      * Sets or gets the security domain of the document. 
+      */
+    domain: string;
+    /**
+      * Retrieves a collection of all embed objects in the document.
+      */
+    embeds: HTMLCollectionOf<HTMLEmbedElement>;
+    /**
+      * Sets or gets the foreground (text) color of the document.
+      */
+    fgColor: string;
+    /**
+      * Retrieves a collection, in source order, of all form objects in the 
document.
+      */
+    forms: HTMLCollectionOf<HTMLFormElement>;
+    readonly fullscreenElement: Element | null;
+    readonly fullscreenEnabled: boolean;
+    readonly head: HTMLHeadElement;
+    readonly hidden: boolean;
+    /**
+      * Retrieves a collection, in source order, of img objects in the 
document.
+      */
+    images: HTMLCollectionOf<HTMLImageElement>;
+    /**
+      * Gets the implementation object of the current document. 
+      */
+    readonly implementation: DOMImplementation;
+    /**
+      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
+      */
+    readonly inputEncoding: string | null;
+    /**
+      * Gets the date that the page was last modified, if the page supplies 
one. 
+      */
+    readonly lastModified: string;
+    /**
+      * Sets or gets the color of the document links. 
+      */
+    linkColor: string;
+    /**
+      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
+      */
+    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
+    /**
+      * Contains information about the current URL. 
+      */
+    readonly location: Location;
+    msCSSOMElementFloatMetrics: boolean;
+    msCapsLockWarningOff: boolean;
+    /**
+      * Fires when the user aborts the download.
+      * @param ev The event.
+      */
+    onabort: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the object is set as the active element.
+      * @param ev The event.
+      */
+    onactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the object is set as the active element.
+      * @param ev The event.
+      */
+    onbeforeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
+      * @param ev The event.
+      */
+    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
+    /** 
+      * Fires when the object loses the input focus. 
+      * @param ev The focus event.
+      */
+    onblur: (this: Document, ev: FocusEvent) => any;
+    /**
+      * Occurs when playback is possible, but would require further buffering. 
+      * @param ev The event.
+      */
+    oncanplay: (this: Document, ev: Event) => any;
+    oncanplaythrough: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the contents of the object or selection have changed. 
+      * @param ev The event.
+      */
+    onchange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the left mouse button on the object
+      * @param ev The mouse event.
+      */
+    onclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
+      * @param ev The mouse event.
+      */
+    oncontextmenu: (this: Document, ev: PointerEvent) => any;
+    /**
+      * Fires when the user double-clicks the object.
+      * @param ev The mouse event.
+      */
+    ondblclick: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
+      * @param ev The UI Event
+      */
+    ondeactivate: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires on the source object continuously during a drag operation.
+      * @param ev The event.
+      */
+    ondrag: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
+      * @param ev The event.
+      */
+    ondragend: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target element when the user drags the object to a valid 
drop target.
+      * @param ev The drag event.
+      */
+    ondragenter: (this: Document, ev: DragEvent) => any;
+    /** 
+      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
+      * @param ev The drag event.
+      */
+    ondragleave: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
+      * @param ev The event.
+      */
+    ondragover: (this: Document, ev: DragEvent) => any;
+    /**
+      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
+      * @param ev The event.
+      */
+    ondragstart: (this: Document, ev: DragEvent) => any;
+    ondrop: (this: Document, ev: DragEvent) => any;
+    /**
+      * Occurs when the duration attribute is updated. 
+      * @param ev The event.
+      */
+    ondurationchange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the media element is reset to its initial state. 
+      * @param ev The event.
+      */
+    onemptied: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the end of playback is reached. 
+      * @param ev The event
+      */
+    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
+    /**
+      * Fires when an error occurs during object loading.
+      * @param ev The event.
+      */
+    onerror: (this: Document, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus. 
+      * @param ev The event.
+      */
+    onfocus: (this: Document, ev: FocusEvent) => any;
+    onfullscreenchange: (this: Document, ev: Event) => any;
+    onfullscreenerror: (this: Document, ev: Event) => any;
+    oninput: (this: Document, ev: Event) => any;
+    oninvalid: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user presses a key.
+      * @param ev The keyboard event
+      */
+    onkeydown: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user presses an alphanumeric key.
+      * @param ev The event.
+      */
+    onkeypress: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires when the user releases a key.
+      * @param ev The keyboard event
+      */
+    onkeyup: (this: Document, ev: KeyboardEvent) => any;
+    /**
+      * Fires immediately after the browser loads the object. 
+      * @param ev The event.
+      */
+    onload: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when media data is loaded at the current playback position. 
+      * @param ev The event.
+      */
+    onloadeddata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the duration and dimensions of the media have been 
determined.
+      * @param ev The event.
+      */
+    onloadedmetadata: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when Internet Explorer begins looking for media data. 
+      * @param ev The event.
+      */
+    onloadstart: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the object with either mouse button. 
+      * @param ev The mouse event.
+      */
+    onmousedown: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse over the object. 
+      * @param ev The mouse event.
+      */
+    onmousemove: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseout: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user moves the mouse pointer into the object.
+      * @param ev The mouse event.
+      */
+    onmouseover: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the user releases a mouse button while the mouse is over 
the object. 
+      * @param ev The mouse event.
+      */
+    onmouseup: (this: Document, ev: MouseEvent) => any;
+    /**
+      * Fires when the wheel button is rotated. 
+      * @param ev The mouse event
+      */
+    onmousewheel: (this: Document, ev: WheelEvent) => any;
+    onmscontentzoom: (this: Document, ev: UIEvent) => any;
+    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
+    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
+    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
+    /**
+      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
+      * @param ev The event.
+      */
+    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
+    /**
+      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
+      * @param ev The event.
+      */
+    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
+    /**
+      * Occurs when playback is paused.
+      * @param ev The event.
+      */
+    onpause: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the play method is requested. 
+      * @param ev The event.
+      */
+    onplay: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the audio or video has started playing. 
+      * @param ev The event.
+      */
+    onplaying: (this: Document, ev: Event) => any;
+    onpointerlockchange: (this: Document, ev: Event) => any;
+    onpointerlockerror: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate progress while downloading media data. 
+      * @param ev The event.
+      */
+    onprogress: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Occurs when the playback rate is increased or decreased. 
+      * @param ev The event.
+      */
+    onratechange: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the state of the object has changed.
+      * @param ev The event
+      */
+    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
+    /**
+      * Fires when the user resets a form. 
+      * @param ev The event.
+      */
+    onreset: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
+      * @param ev The event.
+      */
+    onscroll: (this: Document, ev: UIEvent) => any;
+    /**
+      * Occurs when the seek operation ends. 
+      * @param ev The event.
+      */
+    onseeked: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the current playback position is moved. 
+      * @param ev The event.
+      */
+    onseeking: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the current selection changes.
+      * @param ev The event.
+      */
+    onselect: (this: Document, ev: UIEvent) => any;
+    /**
+      * Fires when the selection state of a document changes.
+      * @param ev The event.
+      */
+    onselectionchange: (this: Document, ev: Event) => any;
+    onselectstart: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when the download has stopped. 
+      * @param ev The event.
+      */
+    onstalled: (this: Document, ev: Event) => any;
+    /**
+      * Fires when the user clicks the Stop button or leaves the Web page.
+      * @param ev The event.
+      */
+    onstop: (this: Document, ev: Event) => any;
+    onsubmit: (this: Document, ev: Event) => any;
+    /**
+      * Occurs if the load operation has been intentionally halted. 
+      * @param ev The event.
+      */
+    onsuspend: (this: Document, ev: Event) => any;
+    /**
+      * Occurs to indicate the current playback position.
+      * @param ev The event.
+      */
+    ontimeupdate: (this: Document, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    /**
+      * Occurs when the volume is changed, or playback is muted or unmuted.
+      * @param ev The event.
+      */
+    onvolumechange: (this: Document, ev: Event) => any;
+    /**
+      * Occurs when playback stops because the next frame of a video resource 
is not available. 
+      * @param ev The event.
+      */
+    onwaiting: (this: Document, ev: Event) => any;
+    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
+    plugins: HTMLCollectionOf<HTMLEmbedElement>;
+    readonly pointerLockElement: Element;
+    /**
+      * Retrieves a value that indicates the current state of the object.
+      */
+    readonly readyState: string;
+    /**
+      * Gets the URL of the location that referred the user to the current 
page.
+      */
+    readonly referrer: string;
+    /**
+      * Gets the root svg element in the document hierarchy.
+      */
+    readonly rootElement: SVGSVGElement;
+    /**
+      * Retrieves a collection of all script objects in the document.
+      */
+    scripts: HTMLCollectionOf<HTMLScriptElement>;
+    readonly scrollingElement: Element | null;
+    /**
+      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
+      */
+    readonly styleSheets: StyleSheetList;
+    /**
+      * Contains the title of the document.
+      */
+    title: string;
+    readonly visibilityState: string;
+    /** 
+      * Sets or gets the color of the links that the user has visited.
+      */
+    vlinkColor: string;
+    readonly webkitCurrentFullScreenElement: Element | null;
+    readonly webkitFullscreenElement: Element | null;
+    readonly webkitFullscreenEnabled: boolean;
+    readonly webkitIsFullScreen: boolean;
+    readonly xmlEncoding: string | null;
+    xmlStandalone: boolean;
+    /**
+      * Gets or sets the version attribute specified in the declaration of an 
XML document.
+      */
+    xmlVersion: string | null;
+    adoptNode(source: Node): Node;
+    captureEvents(): void;
+    caretRangeFromPoint(x: number, y: number): Range;
+    clear(): void;
+    /**
+      * Closes an output stream and forces the sent data to display.
+      */
+    close(): void;
+    /**
+      * Creates an attribute object with a specified name.
+      * @param name String that sets the attribute object's name.
+      */
+    createAttribute(name: string): Attr;
+    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
+    createCDATASection(data: string): CDATASection;
+    /**
+      * Creates a comment object with the specified data.
+      * @param data Sets the comment object's data.
+      */
+    createComment(data: string): Comment;
+    /**
+      * Creates a new document.
+      */
+    createDocumentFragment(): DocumentFragment;
+    /**
+      * Creates an instance of the element for the specified tag.
+      * @param tagName The name of an element.
+      */
+    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
+    createElement(tagName: string): HTMLElement;
+    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
+    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
+    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver: Node): XPathNSResolver;
+    /**
+      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list
+      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
+    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
+    /**
+      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
+      */
+    createRange(): Range;
+    /**
+      * Creates a text string from the specified value. 
+      * @param data String that specifies the nodeValue property of the text 
node.
+      */
+    createTextNode(data: string): Text;
+    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
+    createTouchList(...touches: Touch[]): TouchList;
+    /**
+      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
+      * @param root The root element or node to start traversing on.
+      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
+      * @param filter A custom NodeFilter function to use.
+      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
+      */
+    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
+    /**
+      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
+      * @param x The x-offset
+      * @param y The y-offset
+      */
+    elementFromPoint(x: number, y: number): Element;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+    /**
+      * Executes a command on the current document, current selection, or the 
given range.
+      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
+      * @param showUI Display the user interface, defaults to false.
+      * @param value Value to assign.
+      */
+    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
+    /**
+      * Displays help information for the given command identifier.
+      * @param commandId Displays help information for the given command 
identifier.
+      */
+    execCommandShowHelp(commandId: string): boolean;
+    exitFullscreen(): void;
+    exitPointerLock(): void;
+    /**
+      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
+      */
+    focus(): void;
+    /**
+      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
+      * @param elementId String that specifies the ID value. Case-insensitive.
+      */
+    getElementById(elementId: string): HTMLElement | null;
+    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
+    /**
+      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
+      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
+      */
+    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
+    /**
+      * Retrieves a collection of objects based on the specified element name.
+      * @param name Specifies the name of an element.
+      */
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(tagname: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    /**
+      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
+      */
+    getSelection(): Selection;
+    /**
+      * Gets a value indicating whether the object currently has focus.
+      */
+    hasFocus(): boolean;
+    importNode(importedNode: Node, deep: boolean): Node;
+    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
+    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
+    /**
+      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
+      * @param url Specifies a MIME type for the document.
+      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
+      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
+      */
+    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
+    /** 
+      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandEnabled(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandIndeterm(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates the current state of the 
command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandState(commandId: string): boolean;
+    /**
+      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
+      * @param commandId Specifies a command identifier.
+      */
+    queryCommandSupported(commandId: string): boolean;
+    /**
+      * Retrieves the string associated with a command.
+      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
+      */
+    queryCommandText(commandId: string): string;
+    /**
+      * Returns the current value of the document, range, or current selection 
for the given command.
+      * @param commandId String that specifies a command identifier.
+      */
+    queryCommandValue(commandId: string): string;
+    releaseEvents(): void;
+    /**
+      * Allows updating the print settings for the page.
+      */
+    updateSettings(): void;
+    webkitCancelFullScreen(): void;
+    webkitExitFullscreen(): void;
+    /**
+      * Writes one or more HTML expressions to a document in the specified 
window. 
+      * @param content Specifies the text and HTML tags to write.
+      */
+    write(...content: string[]): void;
+    /**
+      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
+      * @param content The text and HTML tags to write.
+      */
+    writeln(...content: string[]): void;
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Document: {
+    prototype: Document;
+    new(): Document;
+}
+
+interface DocumentFragment extends Node, NodeSelector, ParentNode {
+}
+
+declare var DocumentFragment: {
+    prototype: DocumentFragment;
+    new(): DocumentFragment;
+}
+
+interface DocumentType extends Node, ChildNode {
+    readonly entities: NamedNodeMap;
+    readonly internalSubset: string | null;
+    readonly name: string;
+    readonly notations: NamedNodeMap;
+    readonly publicId: string | null;
+    readonly systemId: string | null;
+}
+
+declare var DocumentType: {
+    prototype: DocumentType;
+    new(): DocumentType;
+}
+
+interface DragEvent extends MouseEvent {
+    readonly dataTransfer: DataTransfer;
+    initDragEvent(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, dataTransferArg: DataTransfer): void;
+    msConvertURL(file: File, targetType: string, targetURL?: string): void;
+}
+
+declare var DragEvent: {
+    prototype: DragEvent;
+    new(): DragEvent;
+}
+
+interface DynamicsCompressorNode extends AudioNode {
+    readonly attack: AudioParam;
+    readonly knee: AudioParam;
+    readonly ratio: AudioParam;
+    readonly reduction: AudioParam;
+    readonly release: AudioParam;
+    readonly threshold: AudioParam;
+}
+
+declare var DynamicsCompressorNode: {
+    prototype: DynamicsCompressorNode;
+    new(): DynamicsCompressorNode;
+}
+
+interface EXT_frag_depth {
+}
+
+declare var EXT_frag_depth: {
+    prototype: EXT_frag_depth;
+    new(): EXT_frag_depth;
+}
+
+interface EXT_texture_filter_anisotropic {
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+declare var EXT_texture_filter_anisotropic: {
+    prototype: EXT_texture_filter_anisotropic;
+    new(): EXT_texture_filter_anisotropic;
+    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+interface ElementEventMap extends GlobalEventHandlersEventMap {
+    "ariarequest": AriaRequestEvent;
+    "command": CommandEvent;
+    "gotpointercapture": PointerEvent;
+    "lostpointercapture": PointerEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSGotPointerCapture": MSPointerEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSLostPointerCapture": MSPointerEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "touchcancel": TouchEvent;
+    "touchend": TouchEvent;
+    "touchmove": TouchEvent;
+    "touchstart": TouchEvent;
+    "webkitfullscreenchange": Event;
+    "webkitfullscreenerror": Event;
+}
+
+interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
+    readonly classList: DOMTokenList;
+    className: string;
+    readonly clientHeight: number;
+    readonly clientLeft: number;
+    readonly clientTop: number;
+    readonly clientWidth: number;
+    id: string;
+    msContentZoomFactor: number;
+    readonly msRegionOverflow: string;
+    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
+    oncommand: (this: Element, ev: CommandEvent) => any;
+    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
+    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
+    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
+    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
+    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
+    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
+    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
+    readonly prefix: string | null;
+    readonly scrollHeight: number;
+    scrollLeft: number;
+    scrollTop: number;
+    readonly scrollWidth: number;
+    readonly tagName: string;
+    innerHTML: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    slot: string;
+    readonly shadowRoot: ShadowRoot | null;
+    getAttribute(name: string): string | null;
+    getAttributeNS(namespaceURI: string, localName: string): string;
+    getAttributeNode(name: string): Attr;
+    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
+    getElementsByTagName(name: string): NodeListOf<Element>;
+    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: string, localName: string): 
HTMLCollectionOf<Element>;
+    hasAttribute(name: string): boolean;
+    hasAttributeNS(namespaceURI: string, localName: string): boolean;
+    msGetRegionContent(): MSRangeCollection;
+    msGetUntransformedBounds(): ClientRect;
+    msMatchesSelector(selectors: string): boolean;
+    msReleasePointerCapture(pointerId: number): void;
+    msSetPointerCapture(pointerId: number): void;
+    msZoomTo(args: MsZoomToOptions): void;
+    releasePointerCapture(pointerId: number): void;
+    removeAttribute(name?: string): void;
+    removeAttributeNS(namespaceURI: string, localName: string): void;
+    removeAttributeNode(oldAttr: Attr): Attr;
+    requestFullscreen(): void;
+    requestPointerLock(): void;
+    setAttribute(name: string, value: string): void;
+    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
+    setAttributeNode(newAttr: Attr): Attr;
+    setAttributeNodeNS(newAttr: Attr): Attr;
+    setPointerCapture(pointerId: number): void;
+    webkitMatchesSelector(selectors: string): boolean;
+    webkitRequestFullScreen(): void;
+    webkitRequestFullscreen(): void;
+    getElementsByClassName(classNames: string): NodeListOf<Element>;
+    matches(selector: string): boolean;
+    closest(selector: string): Element | null;
+    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
+    scroll(options?: ScrollToOptions): void;
+    scroll(x: number, y: number): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollTo(x: number, y: number): void;
+    scrollBy(options?: ScrollToOptions): void;
+    scrollBy(x: number, y: number): void;
+    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
+    insertAdjacentHTML(where: string, html: string): void;
+    insertAdjacentText(where: string, text: string): void;
+    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
+    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Element: {
+    prototype: Element;
+    new(): Element;
+}
+
+interface ErrorEvent extends Event {
+    readonly colno: number;
+    readonly error: any;
+    readonly filename: string;
+    readonly lineno: number;
+    readonly message: string;
+    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
+}
+
+declare var ErrorEvent: {
+    prototype: ErrorEvent;
+    new(): ErrorEvent;
+}
+
+interface Event {
+    readonly bubbles: boolean;
+    cancelBubble: boolean;
+    readonly cancelable: boolean;
+    readonly currentTarget: EventTarget;
+    readonly defaultPrevented: boolean;
+    readonly eventPhase: number;
+    readonly isTrusted: boolean;
+    returnValue: boolean;
+    readonly srcElement: Element | null;
+    readonly target: EventTarget;
+    readonly timeStamp: number;
+    readonly type: string;
+    readonly scoped: boolean;
+    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
+    preventDefault(): void;
+    stopImmediatePropagation(): void;
+    stopPropagation(): void;
+    deepPath(): EventTarget[];
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+declare var Event: {
+    prototype: Event;
+    new(type: string, eventInitDict?: EventInit): Event;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+interface EventTarget {
+    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    dispatchEvent(evt: Event): boolean;
+    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var EventTarget: {
+    prototype: EventTarget;
+    new(): EventTarget;
+}
+
+interface External {
+}
+
+declare var External: {
+    prototype: External;
+    new(): External;
+}
+
+interface File extends Blob {
+    readonly lastModifiedDate: any;
+    readonly name: string;
+    readonly webkitRelativePath: string;
+}
+
+declare var File: {
+    prototype: File;
+    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
+}
+
+interface FileList {
+    readonly length: number;
+    item(index: number): File;
+    [index: number]: File;
+}
+
+declare var FileList: {
+    prototype: FileList;
+    new(): FileList;
+}
+
+interface FileReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(blob: Blob): void;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): void;
+    readAsText(blob: Blob, encoding?: string): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var FileReader: {
+    prototype: FileReader;
+    new(): FileReader;
+}
+
+interface FocusEvent extends UIEvent {
+    readonly relatedTarget: EventTarget;
+    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
+}
+
+declare var FocusEvent: {
+    prototype: FocusEvent;
+    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
+}
+
+interface FormData {
+    append(name: any, value: any, blobName?: string): void;
+}
+
+declare var FormData: {
+    prototype: FormData;
+    new (form?: HTMLFormElement): FormData;
+}
+
+interface GainNode extends AudioNode {
+    readonly gain: AudioParam;
+}
+
+declare var GainNode: {
+    prototype: GainNode;
+    new(): GainNode;
+}
+
+interface Gamepad {
+    readonly axes: number[];
+    readonly buttons: GamepadButton[];
+    readonly connected: boolean;
+    readonly id: string;
+    readonly index: number;
+    readonly mapping: string;
+    readonly timestamp: number;
+}
+
+declare var Gamepad: {
+    prototype: Gamepad;
+    new(): Gamepad;
+}
+
+interface GamepadButton {
+    readonly pressed: boolean;
+    readonly value: number;
+}
+
+declare var GamepadButton: {
+    prototype: GamepadButton;
+    new(): GamepadButton;
+}
+
+interface GamepadEvent extends Event {
+    readonly gamepad: Gamepad;
+}
+
+declare var GamepadEvent: {
+    prototype: GamepadEvent;
+    new(): GamepadEvent;
+}
+
+interface Geolocation {
+    clearWatch(watchId: number): void;
+    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
+    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
+}
+
+declare var Geolocation: {
+    prototype: Geolocation;
+    new(): Geolocation;
+}
+
+interface HTMLAllCollection extends HTMLCollection {
+    namedItem(name: string): Element;
+}
+
+declare var HTMLAllCollection: {
+    prototype: HTMLAllCollection;
+    new(): HTMLAllCollection;
+}
+
+interface HTMLAnchorElement extends HTMLElement {
+    Methods: string;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Contains the anchor portion of the URL including the hash sign (#).
+      */
+    hash: string;
+    /**
+      * Contains the hostname and port values of the URL.
+      */
+    host: string;
+    /**
+      * Contains the hostname of a URL.
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    readonly mimeType: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    readonly nameProp: string;
+    /**
+      * Contains the pathname of the URL.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Contains the protocol of the URL.
+      */
+    protocol: string;
+    readonly protocolLong: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    type: string;
+    urn: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAnchorElement: {
+    prototype: HTMLAnchorElement;
+    new(): HTMLAnchorElement;
+}
+
+interface HTMLAppletElement extends HTMLElement {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
+      */
+    declare: boolean;
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    name: string;
+    object: string | null;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    vspace: number;
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAppletElement: {
+    prototype: HTMLAppletElement;
+    new(): HTMLAppletElement;
+}
+
+interface HTMLAreaElement extends HTMLElement {
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Sets or retrieves the coordinates of the object.
+      */
+    coords: string;
+    download: string;
+    /**
+      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
+      */
+    hash: string;
+    /**
+      * Sets or retrieves the hostname and port number of the location or URL.
+      */
+    host: string;
+    /**
+      * Sets or retrieves the host name part of the location or URL. 
+      */
+    hostname: string;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or gets whether clicks in this region cause action.
+      */
+    noHref: boolean;
+    /**
+      * Sets or retrieves the file name or path specified by the object.
+      */
+    pathname: string;
+    /**
+      * Sets or retrieves the port number associated with a URL.
+      */
+    port: string;
+    /**
+      * Sets or retrieves the protocol portion of a URL.
+      */
+    protocol: string;
+    rel: string;
+    /**
+      * Sets or retrieves the substring of the href property that follows the 
question mark.
+      */
+    search: string;
+    /**
+      * Sets or retrieves the shape of the object.
+      */
+    shape: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /** 
+      * Returns a string representation of an object.
+      */
+    toString(): string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAreaElement: {
+    prototype: HTMLAreaElement;
+    new(): HTMLAreaElement;
+}
+
+interface HTMLAreasCollection extends HTMLCollection {
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Removes an element from the collection.
+      */
+    remove(index?: number): void;
+}
+
+declare var HTMLAreasCollection: {
+    prototype: HTMLAreasCollection;
+    new(): HTMLAreasCollection;
+}
+
+interface HTMLAudioElement extends HTMLMediaElement {
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAudioElement: {
+    prototype: HTMLAudioElement;
+    new(): HTMLAudioElement;
+}
+
+interface HTMLBRElement extends HTMLElement {
+    /**
+      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
+      */
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBRElement: {
+    prototype: HTMLBRElement;
+    new(): HTMLBRElement;
+}
+
+interface HTMLBaseElement extends HTMLElement {
+    /**
+      * Gets or sets the baseline URL on which relative links are based.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseElement: {
+    prototype: HTMLBaseElement;
+    new(): HTMLBaseElement;
+}
+
+interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    /**
+      * Sets or retrieves the font size of the object.
+      */
+    size: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseFontElement: {
+    prototype: HTMLBaseFontElement;
+    new(): HTMLBaseFontElement;
+}
+
+interface HTMLBodyElementEventMap extends HTMLElementEventMap {
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "popstate": PopStateEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLBodyElement extends HTMLElement {
+    aLink: any;
+    background: string;
+    bgColor: any;
+    bgProperties: string;
+    link: any;
+    noWrap: boolean;
+    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
+    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLBodyElement, ev: Event) => any;
+    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLBodyElement, ev: Event) => any;
+    ononline: (this: HTMLBodyElement, ev: Event) => any;
+    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
+    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
+    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLBodyElement, ev: Event) => any;
+    text: any;
+    vLink: any;
+    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBodyElement: {
+    prototype: HTMLBodyElement;
+    new(): HTMLBodyElement;
+}
+
+interface HTMLButtonElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /** 
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    status: any;
+    /**
+      * Gets the classification and default behavior of the button.
+      */
+    type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /** 
+      * Sets or retrieves the default or selected value of the control.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLButtonElement: {
+    prototype: HTMLButtonElement;
+    new(): HTMLButtonElement;
+}
+
+interface HTMLCanvasElement extends HTMLElement {
+    /**
+      * Gets or sets the height of a canvas element on a document.
+      */
+    height: number;
+    /**
+      * Gets or sets the width of a canvas element on a document.
+      */
+    width: number;
+    /**
+      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
+      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
+      */
+    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
+    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
+    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
+    /**
+      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
+      */
+    msToBlob(): Blob;
+    /**
+      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
+      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
+      */
+    toDataURL(type?: string, ...args: any[]): string;
+    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLCanvasElement: {
+    prototype: HTMLCanvasElement;
+    new(): HTMLCanvasElement;
+}
+
+interface HTMLCollection {
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Retrieves an object from various collections.
+      */
+    item(index: number): Element;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      */
+    namedItem(name: string): Element;
+    [index: number]: Element;
+}
+
+declare var HTMLCollection: {
+    prototype: HTMLCollection;
+    new(): HTMLCollection;
+}
+
+interface HTMLDListElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDListElement: {
+    prototype: HTMLDListElement;
+    new(): HTMLDListElement;
+}
+
+interface HTMLDataListElement extends HTMLElement {
+    options: HTMLCollectionOf<HTMLOptionElement>;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDataListElement: {
+    prototype: HTMLDataListElement;
+    new(): HTMLDataListElement;
+}
+
+interface HTMLDirectoryElement extends HTMLElement {
+    compact: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDirectoryElement: {
+    prototype: HTMLDirectoryElement;
+    new(): HTMLDirectoryElement;
+}
+
+interface HTMLDivElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDivElement: {
+    prototype: HTMLDivElement;
+    new(): HTMLDivElement;
+}
+
+interface HTMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDocument: {
+    prototype: HTMLDocument;
+    new(): HTMLDocument;
+}
+
+interface HTMLElementEventMap extends ElementEventMap {
+    "abort": UIEvent;
+    "activate": UIEvent;
+    "beforeactivate": UIEvent;
+    "beforecopy": ClipboardEvent;
+    "beforecut": ClipboardEvent;
+    "beforedeactivate": UIEvent;
+    "beforepaste": ClipboardEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "contextmenu": PointerEvent;
+    "copy": ClipboardEvent;
+    "cuechange": Event;
+    "cut": ClipboardEvent;
+    "dblclick": MouseEvent;
+    "deactivate": UIEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSContentZoom": UIEvent;
+    "MSManipulationStateChanged": MSManipulationEvent;
+    "paste": ClipboardEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "reset": Event;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "selectstart": Event;
+    "stalled": Event;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface HTMLElement extends Element {
+    accessKey: string;
+    readonly children: HTMLCollection;
+    contentEditable: string;
+    readonly dataset: DOMStringMap;
+    dir: string;
+    draggable: boolean;
+    hidden: boolean;
+    hideFocus: boolean;
+    innerHTML: string;
+    innerText: string;
+    readonly isContentEditable: boolean;
+    lang: string;
+    readonly offsetHeight: number;
+    readonly offsetLeft: number;
+    readonly offsetParent: Element;
+    readonly offsetTop: number;
+    readonly offsetWidth: number;
+    onabort: (this: HTMLElement, ev: UIEvent) => any;
+    onactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onblur: (this: HTMLElement, ev: FocusEvent) => any;
+    oncanplay: (this: HTMLElement, ev: Event) => any;
+    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
+    onchange: (this: HTMLElement, ev: Event) => any;
+    onclick: (this: HTMLElement, ev: MouseEvent) => any;
+    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
+    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+    oncuechange: (this: HTMLElement, ev: Event) => any;
+    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
+    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
+    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
+    ondrag: (this: HTMLElement, ev: DragEvent) => any;
+    ondragend: (this: HTMLElement, ev: DragEvent) => any;
+    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
+    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
+    ondragover: (this: HTMLElement, ev: DragEvent) => any;
+    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
+    ondrop: (this: HTMLElement, ev: DragEvent) => any;
+    ondurationchange: (this: HTMLElement, ev: Event) => any;
+    onemptied: (this: HTMLElement, ev: Event) => any;
+    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
+    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
+    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
+    oninput: (this: HTMLElement, ev: Event) => any;
+    oninvalid: (this: HTMLElement, ev: Event) => any;
+    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
+    onload: (this: HTMLElement, ev: Event) => any;
+    onloadeddata: (this: HTMLElement, ev: Event) => any;
+    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
+    onloadstart: (this: HTMLElement, ev: Event) => any;
+    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
+    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
+    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
+    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
+    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
+    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+    onpause: (this: HTMLElement, ev: Event) => any;
+    onplay: (this: HTMLElement, ev: Event) => any;
+    onplaying: (this: HTMLElement, ev: Event) => any;
+    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
+    onratechange: (this: HTMLElement, ev: Event) => any;
+    onreset: (this: HTMLElement, ev: Event) => any;
+    onscroll: (this: HTMLElement, ev: UIEvent) => any;
+    onseeked: (this: HTMLElement, ev: Event) => any;
+    onseeking: (this: HTMLElement, ev: Event) => any;
+    onselect: (this: HTMLElement, ev: UIEvent) => any;
+    onselectstart: (this: HTMLElement, ev: Event) => any;
+    onstalled: (this: HTMLElement, ev: Event) => any;
+    onsubmit: (this: HTMLElement, ev: Event) => any;
+    onsuspend: (this: HTMLElement, ev: Event) => any;
+    ontimeupdate: (this: HTMLElement, ev: Event) => any;
+    onvolumechange: (this: HTMLElement, ev: Event) => any;
+    onwaiting: (this: HTMLElement, ev: Event) => any;
+    outerHTML: string;
+    outerText: string;
+    spellcheck: boolean;
+    readonly style: CSSStyleDeclaration;
+    tabIndex: number;
+    title: string;
+    blur(): void;
+    click(): void;
+    dragDrop(): boolean;
+    focus(): void;
+    msGetInputContext(): MSInputMethodContext;
+    setActive(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLElement: {
+    prototype: HTMLElement;
+    new(): HTMLElement;
+}
+
+interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hidden: any;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the palette used for the embedded document.
+      */
+    readonly palette: string;
+    /**
+      * Retrieves the URL of the plug-in used to view an embedded document.
+      */
+    readonly pluginspage: string;
+    readonly readyState: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the height and width units of the embed object.
+      */
+    units: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLEmbedElement: {
+    prototype: HTMLEmbedElement;
+    new(): HTMLEmbedElement;
+}
+
+interface HTMLFieldSetElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFieldSetElement: {
+    prototype: HTMLFieldSetElement;
+    new(): HTMLFieldSetElement;
+}
+
+interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves the current typeface family.
+      */
+    face: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFontElement: {
+    prototype: HTMLFontElement;
+    new(): HTMLFontElement;
+}
+
+interface HTMLFormElement extends HTMLElement {
+    /**
+      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
+      */
+    acceptCharset: string;
+    /**
+      * Sets or retrieves the URL to which the form content is sent for 
processing.
+      */
+    action: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Retrieves a collection, in source order, of all controls in a given 
form.
+      */
+    readonly elements: HTMLCollection;
+    /**
+      * Sets or retrieves the MIME encoding for the form.
+      */
+    encoding: string;
+    /**
+      * Sets or retrieves the encoding type for the form.
+      */
+    enctype: string;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    readonly length: number;
+    /**
+      * Sets or retrieves how to send the form data to the server.
+      */
+    method: string;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Designates a form that is not validated when submitted.
+      */
+    noValidate: boolean;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a form object or an object from an elements collection.
+      */
+    namedItem(name: string): any;
+    /**
+      * Fires when the user resets a form.
+      */
+    reset(): void;
+    /**
+      * Fires when a FORM is about to be submitted.
+      */
+    submit(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLFormElement: {
+    prototype: HTMLFormElement;
+    new(): HTMLFormElement;
+}
+
+interface HTMLFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string | number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLFrameElement, ev: Event) => any;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string | number;
+    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameElement: {
+    prototype: HTMLFrameElement;
+    new(): HTMLFrameElement;
+}
+
+interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "error": ErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "load": Event;
+    "message": MessageEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "resize": UIEvent;
+    "storage": StorageEvent;
+    "unload": Event;
+}
+
+interface HTMLFrameSetElement extends HTMLElement {
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object.
+      */
+    borderColor: any;
+    /**
+      * Sets or retrieves the frame widths of the object.
+      */
+    cols: string;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    name: string;
+    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
+    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
+    /**
+      * Fires when the object loses the input focus.
+      */
+    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
+    /**
+      * Fires when the object receives focus.
+      */
+    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
+    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
+    onload: (this: HTMLFrameSetElement, ev: Event) => any;
+    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
+    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
+    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
+    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
+    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
+    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
+    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
+    /**
+      * Sets or retrieves the frame heights of the object.
+      */
+    rows: string;
+    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLFrameSetElement: {
+    prototype: HTMLFrameSetElement;
+    new(): HTMLFrameSetElement;
+}
+
+interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
+      */
+    noShade: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHRElement: {
+    prototype: HTMLHRElement;
+    new(): HTMLHRElement;
+}
+
+interface HTMLHeadElement extends HTMLElement {
+    profile: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadElement: {
+    prototype: HTMLHeadElement;
+    new(): HTMLHeadElement;
+}
+
+interface HTMLHeadingElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHeadingElement: {
+    prototype: HTMLHeadingElement;
+    new(): HTMLHeadingElement;
+}
+
+interface HTMLHtmlElement extends HTMLElement {
+    /**
+      * Sets or retrieves the DTD version that governs the current document.
+      */
+    version: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHtmlElement: {
+    prototype: HTMLHtmlElement;
+    new(): HTMLHtmlElement;
+}
+
+interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
+    "load": Event;
+}
+
+interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    allowFullscreen: boolean;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Retrieves the object of the specified.
+      */
+    readonly contentWindow: Window;
+    /**
+      * Sets or retrieves whether to display a border for the frame.
+      */
+    frameBorder: string;
+    /**
+      * Sets or retrieves the amount of additional space between the frames.
+      */
+    frameSpacing: any;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the horizontal margin for the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves a URI to a long description of the object.
+      */
+    longDesc: string;
+    /**
+      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
+      */
+    marginHeight: string;
+    /**
+      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
+      */
+    marginWidth: string;
+    /**
+      * Sets or retrieves the frame name.
+      */
+    name: string;
+    /**
+      * Sets or retrieves whether the user can resize the frame.
+      */
+    noResize: boolean;
+    /**
+      * Raised when the object has been completely received from the server.
+      */
+    onload: (this: HTMLIFrameElement, ev: Event) => any;
+    readonly sandbox: DOMSettableTokenList;
+    /**
+      * Sets or retrieves whether the frame can be scrolled.
+      */
+    scrolling: string;
+    /**
+      * Sets or retrieves a URL to be loaded by the object.
+      */
+    src: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLIFrameElement: {
+    prototype: HTMLIFrameElement;
+    new(): HTMLIFrameElement;
+}
+
+interface HTMLImageElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies the properties of a border drawn around an object.
+      */
+    border: string;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    crossOrigin: string;
+    readonly currentSrc: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: number;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    /**
+      * Sets or retrieves whether the image is a server-side image map.
+      */
+    isMap: boolean;
+    /**
+      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
+      */
+    longDesc: string;
+    lowsrc: string;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * The original height of the image resource before sizing.
+      */
+    readonly naturalHeight: number;
+    /**
+      * The original width of the image resource before sizing.
+      */
+    readonly naturalWidth: number;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: number;
+    readonly x: number;
+    readonly y: number;
+    msGetAsCastingSource(): any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLImageElement: {
+    prototype: HTMLImageElement;
+    new(): HTMLImageElement;
+    create(): HTMLImageElement;
+}
+
+interface HTMLInputElement extends HTMLElement {
+    /**
+      * Sets or retrieves a comma-separated list of content types.
+      */
+    accept: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Specifies whether autocomplete is applied to an editable text field.
+      */
+    autocomplete: string;
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    checked: boolean;
+    /**
+      * Retrieves whether the object is fully loaded.
+      */
+    readonly complete: boolean;
+    /**
+      * Sets or retrieves the state of the check box or radio button.
+      */
+    defaultChecked: boolean;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Returns a FileList object on a file type input object.
+      */
+    readonly files: FileList | null;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
+      */
+    formAction: string;
+    /**
+      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
+      */
+    formEnctype: string;
+    /**
+      * Overrides the submit method attribute previously specified on a form 
element.
+      */
+    formMethod: string;
+    /**
+      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
+      */
+    formNoValidate: string;
+    /**
+      * Overrides the target attribute on a form element.
+      */
+    formTarget: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    hspace: number;
+    indeterminate: boolean;
+    /**
+      * Specifies the ID of a pre-defined datalist of options for an input 
element.
+      */
+    readonly list: HTMLElement;
+    /**
+      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
+      */
+    max: string;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
+      */
+    min: string;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a string containing a regular expression that the user's 
input must match.
+      */
+    pattern: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    selectionDirection: string;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    size: number;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    status: boolean;
+    /**
+      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
+      */
+    step: string;
+    /**
+      * Returns the content type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Returns the value of the data at the cursor's current position.
+      */
+    value: string;
+    valueAsDate: Date;
+    /**
+      * Returns the input field value as a number.
+      */
+    valueAsNumber: number;
+    /**
+      * Sets or retrieves the vertical margin for the object.
+      */
+    vspace: number;
+    webkitdirectory: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Makes the selection equal to the current object.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start?: number, end?: number, direction?: string): void;
+    /**
+      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
+      * @param n Value to decrement the value by.
+      */
+    stepDown(n?: number): void;
+    /**
+      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
+      * @param n Value to increment the value by.
+      */
+    stepUp(n?: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLInputElement: {
+    prototype: HTMLInputElement;
+    new(): HTMLInputElement;
+}
+
+interface HTMLLIElement extends HTMLElement {
+    type: string;
+    /**
+      * Sets or retrieves the value of a list item.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLIElement: {
+    prototype: HTMLLIElement;
+    new(): HTMLLIElement;
+}
+
+interface HTMLLabelElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the object to which the given label object is 
assigned.
+      */
+    htmlFor: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLabelElement: {
+    prototype: HTMLLabelElement;
+    new(): HTMLLabelElement;
+}
+
+interface HTMLLegendElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    align: string;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLegendElement: {
+    prototype: HTMLLegendElement;
+    new(): HTMLLegendElement;
+}
+
+interface HTMLLinkElement extends HTMLElement, LinkStyle {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    disabled: boolean;
+    /**
+      * Sets or retrieves a destination URL or an anchor point.
+      */
+    href: string;
+    /**
+      * Sets or retrieves the language code of the object.
+      */
+    hreflang: string;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rel: string;
+    /**
+      * Sets or retrieves the relationship between the object and the 
destination of the link.
+      */
+    rev: string;
+    /**
+      * Sets or retrieves the window or frame at which to target content.
+      */
+    target: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    import?: Document;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLLinkElement: {
+    prototype: HTMLLinkElement;
+    new(): HTMLLinkElement;
+}
+
+interface HTMLMapElement extends HTMLElement {
+    /**
+      * Retrieves a collection of the area objects defined for the given map 
object.
+      */
+    readonly areas: HTMLAreasCollection;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMapElement: {
+    prototype: HTMLMapElement;
+    new(): HTMLMapElement;
+}
+
+interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
+    "bounce": Event;
+    "finish": Event;
+    "start": Event;
+}
+
+interface HTMLMarqueeElement extends HTMLElement {
+    behavior: string;
+    bgColor: any;
+    direction: string;
+    height: string;
+    hspace: number;
+    loop: number;
+    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
+    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
+    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
+    scrollAmount: number;
+    scrollDelay: number;
+    trueSpeed: boolean;
+    vspace: number;
+    width: string;
+    start(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMarqueeElement: {
+    prototype: HTMLMarqueeElement;
+    new(): HTMLMarqueeElement;
+}
+
+interface HTMLMediaElementEventMap extends HTMLElementEventMap {
+    "encrypted": MediaEncryptedEvent;
+    "msneedkey": MSMediaKeyNeededEvent;
+}
+
+interface HTMLMediaElement extends HTMLElement {
+    /**
+      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
+      */
+    readonly audioTracks: AudioTrackList;
+    /**
+      * Gets or sets a value that indicates whether to start playing the media 
automatically.
+      */
+    autoplay: boolean;
+    /**
+      * Gets a collection of buffered time ranges.
+      */
+    readonly buffered: TimeRanges;
+    /**
+      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
+      */
+    controls: boolean;
+    crossOrigin: string;
+    /**
+      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
+      */
+    readonly currentSrc: string;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    currentTime: number;
+    defaultMuted: boolean;
+    /**
+      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
+      */
+    defaultPlaybackRate: number;
+    /**
+      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
+      */
+    readonly duration: number;
+    /**
+      * Gets information about whether the playback has ended or not.
+      */
+    readonly ended: boolean;
+    /**
+      * Returns an object representing the current error state of the audio or 
video element.
+      */
+    readonly error: MediaError;
+    /**
+      * Gets or sets a flag to specify whether playback should restart after 
it completes.
+      */
+    loop: boolean;
+    readonly mediaKeys: MediaKeys | null;
+    /**
+      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
+      */
+    msAudioCategory: string;
+    /**
+      * Specifies the output device id that the audio will be sent to.
+      */
+    msAudioDeviceType: string;
+    readonly msGraphicsTrustStatus: MSGraphicsTrust;
+    /**
+      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
+      */
+    readonly msKeys: MSMediaKeys;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Specifies whether or not to enable low-latency playback on the media 
element.
+      */
+    msRealTime: boolean;
+    /**
+      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
+      */
+    muted: boolean;
+    /**
+      * Gets the current network activity for the element.
+      */
+    readonly networkState: number;
+    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
+    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
+    /**
+      * Gets a flag that specifies whether playback is paused.
+      */
+    readonly paused: boolean;
+    /**
+      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
+      */
+    playbackRate: number;
+    /**
+      * Gets TimeRanges for the current media resource that has been played.
+      */
+    readonly played: TimeRanges;
+    /**
+      * Gets or sets the current playback position, in seconds.
+      */
+    preload: string;
+    readyState: number;
+    /**
+      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
+      */
+    readonly seekable: TimeRanges;
+    /**
+      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
+      */
+    readonly seeking: boolean;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcObject: MediaStream | null;
+    readonly textTracks: TextTrackList;
+    readonly videoTracks: VideoTrackList;
+    /**
+      * Gets or sets the volume level for audio portions of the media element.
+      */
+    volume: number;
+    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
+    /**
+      * Returns a string that specifies whether the client can play a given 
media resource type.
+      */
+    canPlayType(type: string): string;
+    /**
+      * Resets the audio or video object and loads a new media resource.
+      */
+    load(): void;
+    /**
+      * Clears all effects from the media pipeline.
+      */
+    msClearEffects(): void;
+    msGetAsCastingSource(): any;
+    /**
+      * Inserts the specified audio effect into media pipeline.
+      */
+    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
+    /**
+      * Specifies the media protection manager for a given media pipeline.
+      */
+    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
+    /**
+      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
+      */
+    pause(): void;
+    /**
+      * Loads and starts playback of a media resource.
+      */
+    play(): void;
+    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMediaElement: {
+    prototype: HTMLMediaElement;
+    new(): HTMLMediaElement;
+    readonly HAVE_CURRENT_DATA: number;
+    readonly HAVE_ENOUGH_DATA: number;
+    readonly HAVE_FUTURE_DATA: number;
+    readonly HAVE_METADATA: number;
+    readonly HAVE_NOTHING: number;
+    readonly NETWORK_EMPTY: number;
+    readonly NETWORK_IDLE: number;
+    readonly NETWORK_LOADING: number;
+    readonly NETWORK_NO_SOURCE: number;
+}
+
+interface HTMLMenuElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMenuElement: {
+    prototype: HTMLMenuElement;
+    new(): HTMLMenuElement;
+}
+
+interface HTMLMetaElement extends HTMLElement {
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Gets or sets meta-information to associate with httpEquiv or name.
+      */
+    content: string;
+    /**
+      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
+      */
+    httpEquiv: string;
+    /**
+      * Sets or retrieves the value specified in the content attribute of the 
meta object.
+      */
+    name: string;
+    /**
+      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
+      */
+    scheme: string;
+    /**
+      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
+      */
+    url: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMetaElement: {
+    prototype: HTMLMetaElement;
+    new(): HTMLMetaElement;
+}
+
+interface HTMLMeterElement extends HTMLElement {
+    high: number;
+    low: number;
+    max: number;
+    min: number;
+    optimum: number;
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLMeterElement: {
+    prototype: HTMLMeterElement;
+    new(): HTMLMeterElement;
+}
+
+interface HTMLModElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    /**
+      * Sets or retrieves the date and time of a modification to the object.
+      */
+    dateTime: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLModElement: {
+    prototype: HTMLModElement;
+    new(): HTMLModElement;
+}
+
+interface HTMLOListElement extends HTMLElement {
+    compact: boolean;
+    /**
+      * The starting number.
+      */
+    start: number;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOListElement: {
+    prototype: HTMLOListElement;
+    new(): HTMLOListElement;
+}
+
+interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
+    /**
+      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
+      */
+    readonly BaseHref: string;
+    align: string;
+    /**
+      * Sets or retrieves a text alternative to the graphic.
+      */
+    alt: string;
+    /**
+      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
+      */
+    altHtml: string;
+    /**
+      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
+      */
+    archive: string;
+    border: string;
+    /**
+      * Sets or retrieves the URL of the file containing the compiled Java 
class.
+      */
+    code: string;
+    /**
+      * Sets or retrieves the URL of the component.
+      */
+    codeBase: string;
+    /**
+      * Sets or retrieves the Internet media type for the code associated with 
the object.
+      */
+    codeType: string;
+    /**
+      * Retrieves the document object of the page or frame.
+      */
+    readonly contentDocument: Document;
+    /**
+      * Sets or retrieves the URL that references the data of the object.
+      */
+    data: string;
+    declare: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: string;
+    hspace: number;
+    /**
+      * Gets or sets whether the DLNA PlayTo device is available.
+      */
+    msPlayToDisabled: boolean;
+    /**
+      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
+      */
+    msPlayToPreferredSourceUri: string;
+    /**
+      * Gets or sets the primary DLNA PlayTo device.
+      */
+    msPlayToPrimary: boolean;
+    /**
+      * Gets the source associated with the media element for use by the 
PlayToManager.
+      */
+    readonly msPlayToSource: any;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Retrieves the contained object.
+      */
+    readonly object: any;
+    readonly readyState: number;
+    /**
+      * Sets or retrieves a message to be displayed while an object is loading.
+      */
+    standby: string;
+    /**
+      * Sets or retrieves the MIME type of the object.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
+      */
+    useMap: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    vspace: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLObjectElement: {
+    prototype: HTMLObjectElement;
+    new(): HTMLObjectElement;
+}
+
+interface HTMLOptGroupElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    readonly text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptGroupElement: {
+    prototype: HTMLOptGroupElement;
+    new(): HTMLOptGroupElement;
+}
+
+interface HTMLOptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the status of an option.
+      */
+    defaultSelected: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the ordinal position of an option in a list box.
+      */
+    readonly index: number;
+    /**
+      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
+      */
+    label: string;
+    /**
+      * Sets or retrieves whether the option in the list box is the default 
item.
+      */
+    selected: boolean;
+    /**
+      * Sets or retrieves the text string specified by the option tag.
+      */
+    text: string;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLOptionElement: {
+    prototype: HTMLOptionElement;
+    new(): HTMLOptionElement;
+    create(): HTMLOptionElement;
+}
+
+interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
+    length: number;
+    selectedIndex: number;
+    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
+    remove(index: number): void;
+}
+
+declare var HTMLOptionsCollection: {
+    prototype: HTMLOptionsCollection;
+    new(): HTMLOptionsCollection;
+}
+
+interface HTMLParagraphElement extends HTMLElement {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text. 
+      */
+    align: string;
+    clear: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParagraphElement: {
+    prototype: HTMLParagraphElement;
+    new(): HTMLParagraphElement;
+}
+
+interface HTMLParamElement extends HTMLElement {
+    /**
+      * Sets or retrieves the name of an input parameter for an element.
+      */
+    name: string;
+    /**
+      * Sets or retrieves the content type of the resource designated by the 
value attribute.
+      */
+    type: string;
+    /**
+      * Sets or retrieves the value of an input parameter for an element.
+      */
+    value: string;
+    /**
+      * Sets or retrieves the data type of the value attribute.
+      */
+    valueType: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLParamElement: {
+    prototype: HTMLParamElement;
+    new(): HTMLParamElement;
+}
+
+interface HTMLPictureElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPictureElement: {
+    prototype: HTMLPictureElement;
+    new(): HTMLPictureElement;
+}
+
+interface HTMLPreElement extends HTMLElement {
+    /**
+      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
+      */
+    width: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLPreElement: {
+    prototype: HTMLPreElement;
+    new(): HTMLPreElement;
+}
+
+interface HTMLProgressElement extends HTMLElement {
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Defines the maximum, or "done" value for a progress element.
+      */
+    max: number;
+    /**
+      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
+      */
+    readonly position: number;
+    /**
+      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
+      */
+    value: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLProgressElement: {
+    prototype: HTMLProgressElement;
+    new(): HTMLProgressElement;
+}
+
+interface HTMLQuoteElement extends HTMLElement {
+    /**
+      * Sets or retrieves reference information about the object.
+      */
+    cite: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLQuoteElement: {
+    prototype: HTMLQuoteElement;
+    new(): HTMLQuoteElement;
+}
+
+interface HTMLScriptElement extends HTMLElement {
+    async: boolean;
+    /**
+      * Sets or retrieves the character set used to encode the object.
+      */
+    charset: string;
+    /**
+      * Sets or retrieves the status of the script.
+      */
+    defer: boolean;
+    /**
+      * Sets or retrieves the event for which the script is written. 
+      */
+    event: string;
+    /** 
+      * Sets or retrieves the object that is bound to the event script.
+      */
+    htmlFor: string;
+    /**
+      * Retrieves the URL to an external file that contains the source code or 
data.
+      */
+    src: string;
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    /**
+      * Sets or retrieves the MIME type for the associated scripting engine.
+      */
+    type: string;
+    integrity: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLScriptElement: {
+    prototype: HTMLScriptElement;
+    new(): HTMLScriptElement;
+}
+
+interface HTMLSelectElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in. 
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the number of objects in a collection.
+      */
+    length: number;
+    /**
+      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
+      */
+    multiple: boolean;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    readonly options: HTMLOptionsCollection;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the index of the selected option in a select object.
+      */
+    selectedIndex: number;
+    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
+    /**
+      * Sets or retrieves the number of rows in the list box. 
+      */
+    size: number;
+    /**
+      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Adds an element to the areas, controlRange, or options collection.
+      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
+      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
+      */
+    add(element: HTMLElement, before?: HTMLElement | number): void;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
+      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
+      */
+    item(name?: any, index?: any): any;
+    /**
+      * Retrieves a select object or an object from an options collection.
+      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
+      */
+    namedItem(name: string): any;
+    /**
+      * Removes an element from the collection.
+      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
+      */
+    remove(index?: number): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [name: string]: any;
+}
+
+declare var HTMLSelectElement: {
+    prototype: HTMLSelectElement;
+    new(): HTMLSelectElement;
+}
+
+interface HTMLSourceElement extends HTMLElement {
+    /**
+      * Gets or sets the intended media type of the media source.
+     */
+    media: string;
+    msKeySystem: string;
+    sizes: string;
+    /**
+      * The address or URL of the a media resource that is to be considered.
+      */
+    src: string;
+    srcset: string;
+    /**
+     * Gets or sets the MIME type of a media resource.
+     */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSourceElement: {
+    prototype: HTMLSourceElement;
+    new(): HTMLSourceElement;
+}
+
+interface HTMLSpanElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLSpanElement: {
+    prototype: HTMLSpanElement;
+    new(): HTMLSpanElement;
+}
+
+interface HTMLStyleElement extends HTMLElement, LinkStyle {
+    disabled: boolean;
+    /**
+      * Sets or retrieves the media type.
+      */
+    media: string;
+    /**
+      * Retrieves the CSS language in which the style sheet is written.
+      */
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLStyleElement: {
+    prototype: HTMLStyleElement;
+    new(): HTMLStyleElement;
+}
+
+interface HTMLTableCaptionElement extends HTMLElement {
+    /**
+      * Sets or retrieves the alignment of the caption or legend.
+      */
+    align: string;
+    /**
+      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
+      */
+    vAlign: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCaptionElement: {
+    prototype: HTMLTableCaptionElement;
+    new(): HTMLTableCaptionElement;
+}
+
+interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves abbreviated text for the object.
+      */
+    abbr: string;
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    /**
+      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
+      */
+    axis: string;
+    bgColor: any;
+    /**
+      * Retrieves the position of the object in the cells collection of a row.
+      */
+    readonly cellIndex: number;
+    /**
+      * Sets or retrieves the number columns in the table that the object 
should span.
+      */
+    colSpan: number;
+    /**
+      * Sets or retrieves a list of header cells that provide information for 
the object.
+      */
+    headers: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves whether the browser automatically performs wordwrap.
+      */
+    noWrap: boolean;
+    /**
+      * Sets or retrieves how many rows in a table the cell should span.
+      */
+    rowSpan: number;
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableCellElement: {
+    prototype: HTMLTableCellElement;
+    new(): HTMLTableCellElement;
+}
+
+interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves the alignment of the object relative to the display 
or table.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of columns in the group.
+      */
+    span: number;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: any;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableColElement: {
+    prototype: HTMLTableColElement;
+    new(): HTMLTableColElement;
+}
+
+interface HTMLTableDataCellElement extends HTMLTableCellElement {
+}
+
+declare var HTMLTableDataCellElement: {
+    prototype: HTMLTableDataCellElement;
+    new(): HTMLTableDataCellElement;
+}
+
+interface HTMLTableElement extends HTMLElement {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Sets or retrieves the width of the border to draw around the object.
+      */
+    border: string;
+    /**
+      * Sets or retrieves the border color of the object. 
+      */
+    borderColor: any;
+    /**
+      * Retrieves the caption object of a table.
+      */
+    caption: HTMLTableCaptionElement;
+    /**
+      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
+      */
+    cellPadding: string;
+    /**
+      * Sets or retrieves the amount of space between cells in a table.
+      */
+    cellSpacing: string;
+    /**
+      * Sets or retrieves the number of columns in the table.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the way the border frame around the table is 
displayed.
+      */
+    frame: string;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Sets or retrieves which dividing lines (inner borders) are displayed.
+      */
+    rules: string;
+    /**
+      * Sets or retrieves a description and/or structure of the object.
+      */
+    summary: string;
+    /**
+      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
+      */
+    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
+    /**
+      * Retrieves the tFoot object of the table.
+      */
+    tFoot: HTMLTableSectionElement;
+    /**
+      * Retrieves the tHead object of the table.
+      */
+    tHead: HTMLTableSectionElement;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    width: string;
+    /**
+      * Creates an empty caption element in the table.
+      */
+    createCaption(): HTMLTableCaptionElement;
+    /**
+      * Creates an empty tBody element in the table.
+      */
+    createTBody(): HTMLTableSectionElement;
+    /**
+      * Creates an empty tFoot element in the table.
+      */
+    createTFoot(): HTMLTableSectionElement;
+    /**
+      * Returns the tHead element object if successful, or null otherwise.
+      */
+    createTHead(): HTMLTableSectionElement;
+    /**
+      * Deletes the caption element and its contents from the table.
+      */
+    deleteCaption(): void;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Deletes the tFoot element and its contents from the table.
+      */
+    deleteTFoot(): void;
+    /**
+      * Deletes the tHead element and its contents from the table.
+      */
+    deleteTHead(): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableElement: {
+    prototype: HTMLTableElement;
+    new(): HTMLTableElement;
+}
+
+interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
+    /**
+      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
+      */
+    scope: string;
+}
+
+declare var HTMLTableHeaderCellElement: {
+    prototype: HTMLTableHeaderCellElement;
+    new(): HTMLTableHeaderCellElement;
+}
+
+interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves how the object is aligned with adjacent text.
+      */
+    align: string;
+    bgColor: any;
+    /**
+      * Retrieves a collection of all cells in the table row.
+      */
+    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
+    /**
+      * Sets or retrieves the height of the object.
+      */
+    height: any;
+    /**
+      * Retrieves the position of the object in the rows collection for the 
table.
+      */
+    readonly rowIndex: number;
+    /**
+      * Retrieves the position of the object in the collection.
+      */
+    readonly sectionRowIndex: number;
+    /**
+      * Removes the specified cell from the table row, as well as from the 
cells collection.
+      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
+      */
+    deleteCell(index?: number): void;
+    /**
+      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
+      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
+      */
+    insertCell(index?: number): HTMLTableDataCellElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableRowElement: {
+    prototype: HTMLTableRowElement;
+    new(): HTMLTableRowElement;
+}
+
+interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that indicates the table alignment.
+      */
+    align: string;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: HTMLCollectionOf<HTMLTableRowElement>;
+    /**
+      * Removes the specified row (tr) from the element and from the rows 
collection.
+      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
+      */
+    deleteRow(index?: number): void;
+    /**
+      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
+      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
+      */
+    insertRow(index?: number): HTMLTableRowElement;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTableSectionElement: {
+    prototype: HTMLTableSectionElement;
+    new(): HTMLTableSectionElement;
+}
+
+interface HTMLTemplateElement extends HTMLElement {
+    readonly content: DocumentFragment;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTemplateElement: {
+    prototype: HTMLTemplateElement;
+    new(): HTMLTemplateElement;
+}
+
+interface HTMLTextAreaElement extends HTMLElement {
+    /**
+      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
+      */
+    autofocus: boolean;
+    /**
+      * Sets or retrieves the width of the object.
+      */
+    cols: number;
+    /**
+      * Sets or retrieves the initial contents of the object.
+      */
+    defaultValue: string;
+    disabled: boolean;
+    /**
+      * Retrieves a reference to the form that the object is embedded in.
+      */
+    readonly form: HTMLFormElement;
+    /**
+      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
+      */
+    maxLength: number;
+    /**
+      * Sets or retrieves the name of the object.
+      */
+    name: string;
+    /**
+      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
+      */
+    placeholder: string;
+    /**
+      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
+      */
+    readOnly: boolean;
+    /**
+      * When present, marks an element that can't be submitted without a value.
+      */
+    required: boolean;
+    /**
+      * Sets or retrieves the number of horizontal rows contained in the 
object.
+      */
+    rows: number;
+    /**
+      * Gets or sets the end position or offset of a text selection.
+      */
+    selectionEnd: number;
+    /**
+      * Gets or sets the starting position or offset of a text selection.
+      */
+    selectionStart: number;
+    /**
+      * Sets or retrieves the value indicating whether the control is selected.
+      */
+    status: any;
+    /**
+      * Retrieves the type of control.
+      */
+    readonly type: string;
+    /**
+      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
+      */
+    readonly validationMessage: string;
+    /**
+      * Returns a  ValidityState object that represents the validity states of 
an element.
+      */
+    readonly validity: ValidityState;
+    /**
+      * Retrieves or sets the text in the entry field of the textArea element.
+      */
+    value: string;
+    /**
+      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
+      */
+    readonly willValidate: boolean;
+    /**
+      * Sets or retrieves how to handle wordwrapping in the object.
+      */
+    wrap: string;
+    minLength: number;
+    /**
+      * Returns whether a form will validate when it is submitted, without 
having to submit it.
+      */
+    checkValidity(): boolean;
+    /**
+      * Highlights the input area of a form element.
+      */
+    select(): void;
+    /**
+      * Sets a custom error message that is displayed when a form is submitted.
+      * @param error Sets a custom error message that is displayed when a form 
is submitted.
+      */
+    setCustomValidity(error: string): void;
+    /**
+      * Sets the start and end positions of a selection in a text field.
+      * @param start The offset into the text field for the start of the 
selection.
+      * @param end The offset into the text field for the end of the selection.
+      */
+    setSelectionRange(start: number, end: number): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTextAreaElement: {
+    prototype: HTMLTextAreaElement;
+    new(): HTMLTextAreaElement;
+}
+
+interface HTMLTitleElement extends HTMLElement {
+    /**
+      * Retrieves or sets the text of the object as a string. 
+      */
+    text: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTitleElement: {
+    prototype: HTMLTitleElement;
+    new(): HTMLTitleElement;
+}
+
+interface HTMLTrackElement extends HTMLElement {
+    default: boolean;
+    kind: string;
+    label: string;
+    readonly readyState: number;
+    src: string;
+    srclang: string;
+    readonly track: TextTrack;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLTrackElement: {
+    prototype: HTMLTrackElement;
+    new(): HTMLTrackElement;
+    readonly ERROR: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+}
+
+interface HTMLUListElement extends HTMLElement {
+    compact: boolean;
+    type: string;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUListElement: {
+    prototype: HTMLUListElement;
+    new(): HTMLUListElement;
+}
+
+interface HTMLUnknownElement extends HTMLElement {
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLUnknownElement: {
+    prototype: HTMLUnknownElement;
+    new(): HTMLUnknownElement;
+}
+
+interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
+    "MSVideoFormatChanged": Event;
+    "MSVideoFrameStepCompleted": Event;
+    "MSVideoOptimalLayoutChanged": Event;
+}
+
+interface HTMLVideoElement extends HTMLMediaElement {
+    /**
+      * Gets or sets the height of the video element.
+      */
+    height: number;
+    msHorizontalMirror: boolean;
+    readonly msIsLayoutOptimalForPlayback: boolean;
+    readonly msIsStereo3D: boolean;
+    msStereo3DPackingMode: string;
+    msStereo3DRenderMode: string;
+    msZoom: boolean;
+    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
+    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
+    /**
+      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
+      */
+    poster: string;
+    /**
+      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoHeight: number;
+    /**
+      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
+      */
+    readonly videoWidth: number;
+    readonly webkitDisplayingFullscreen: boolean;
+    readonly webkitSupportsFullscreen: boolean;
+    /**
+      * Gets or sets the width of the video element.
+      */
+    width: number;
+    getVideoPlaybackQuality(): VideoPlaybackQuality;
+    msFrameStep(forward: boolean): void;
+    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
+    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
+    webkitEnterFullScreen(): void;
+    webkitEnterFullscreen(): void;
+    webkitExitFullScreen(): void;
+    webkitExitFullscreen(): void;
+    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLVideoElement: {
+    prototype: HTMLVideoElement;
+    new(): HTMLVideoElement;
+}
+
+interface HashChangeEvent extends Event {
+    readonly newURL: string | null;
+    readonly oldURL: string | null;
+}
+
+declare var HashChangeEvent: {
+    prototype: HashChangeEvent;
+    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
+}
+
+interface History {
+    readonly length: number;
+    readonly state: any;
+    scrollRestoration: ScrollRestoration;
+    back(): void;
+    forward(): void;
+    go(delta?: number): void;
+    pushState(data: any, title: string, url?: string | null): void;
+    replaceState(data: any, title: string, url?: string | null): void;
+}
+
+declare var History: {
+    prototype: History;
+    new(): History;
+}
+
+interface IDBCursor {
+    readonly direction: string;
+    key: IDBKeyRange | IDBValidKey;
+    readonly primaryKey: any;
+    source: IDBObjectStore | IDBIndex;
+    advance(count: number): void;
+    continue(key?: IDBKeyRange | IDBValidKey): void;
+    delete(): IDBRequest;
+    update(value: any): IDBRequest;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+declare var IDBCursor: {
+    prototype: IDBCursor;
+    new(): IDBCursor;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+interface IDBCursorWithValue extends IDBCursor {
+    readonly value: any;
+}
+
+declare var IDBCursorWithValue: {
+    prototype: IDBCursorWithValue;
+    new(): IDBCursorWithValue;
+}
+
+interface IDBDatabaseEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBDatabase extends EventTarget {
+    readonly name: string;
+    readonly objectStoreNames: DOMStringList;
+    onabort: (this: IDBDatabase, ev: Event) => any;
+    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
+    version: number;
+    onversionchange: (ev: IDBVersionChangeEvent) => any;
+    close(): void;
+    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
+    deleteObjectStore(name: string): void;
+    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
+    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
+    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBDatabase: {
+    prototype: IDBDatabase;
+    new(): IDBDatabase;
+}
+
+interface IDBFactory {
+    cmp(first: any, second: any): number;
+    deleteDatabase(name: string): IDBOpenDBRequest;
+    open(name: string, version?: number): IDBOpenDBRequest;
+}
+
+declare var IDBFactory: {
+    prototype: IDBFactory;
+    new(): IDBFactory;
+}
+
+interface IDBIndex {
+    keyPath: string | string[];
+    readonly name: string;
+    readonly objectStore: IDBObjectStore;
+    readonly unique: boolean;
+    multiEntry: boolean;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+}
+
+declare var IDBIndex: {
+    prototype: IDBIndex;
+    new(): IDBIndex;
+}
+
+interface IDBKeyRange {
+    readonly lower: any;
+    readonly lowerOpen: boolean;
+    readonly upper: any;
+    readonly upperOpen: boolean;
+}
+
+declare var IDBKeyRange: {
+    prototype: IDBKeyRange;
+    new(): IDBKeyRange;
+    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
+    lowerBound(lower: any, open?: boolean): IDBKeyRange;
+    only(value: any): IDBKeyRange;
+    upperBound(upper: any, open?: boolean): IDBKeyRange;
+}
+
+interface IDBObjectStore {
+    readonly indexNames: DOMStringList;
+    keyPath: string | string[];
+    readonly name: string;
+    readonly transaction: IDBTransaction;
+    autoIncrement: boolean;
+    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    clear(): IDBRequest;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
+    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    deleteIndex(indexName: string): void;
+    get(key: any): IDBRequest;
+    index(name: string): IDBIndex;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+}
+
+declare var IDBObjectStore: {
+    prototype: IDBObjectStore;
+    new(): IDBObjectStore;
+}
+
+interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
+    "blocked": Event;
+    "upgradeneeded": IDBVersionChangeEvent;
+}
+
+interface IDBOpenDBRequest extends IDBRequest {
+    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
+    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
+    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBOpenDBRequest: {
+    prototype: IDBOpenDBRequest;
+    new(): IDBOpenDBRequest;
+}
+
+interface IDBRequestEventMap {
+    "error": ErrorEvent;
+    "success": Event;
+}
+
+interface IDBRequest extends EventTarget {
+    readonly error: DOMError;
+    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
+    onsuccess: (this: IDBRequest, ev: Event) => any;
+    readonly readyState: string;
+    readonly result: any;
+    source: IDBObjectStore | IDBIndex | IDBCursor;
+    readonly transaction: IDBTransaction;
+    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBRequest: {
+    prototype: IDBRequest;
+    new(): IDBRequest;
+}
+
+interface IDBTransactionEventMap {
+    "abort": Event;
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBTransaction extends EventTarget {
+    readonly db: IDBDatabase;
+    readonly error: DOMError;
+    readonly mode: string;
+    onabort: (this: IDBTransaction, ev: Event) => any;
+    oncomplete: (this: IDBTransaction, ev: Event) => any;
+    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
+    abort(): void;
+    objectStore(name: string): IDBObjectStore;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBTransaction: {
+    prototype: IDBTransaction;
+    new(): IDBTransaction;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+}
+
+interface IDBVersionChangeEvent extends Event {
+    readonly newVersion: number | null;
+    readonly oldVersion: number;
+}
+
+declare var IDBVersionChangeEvent: {
+    prototype: IDBVersionChangeEvent;
+    new(): IDBVersionChangeEvent;
+}
+
+interface ImageData {
+    data: Uint8ClampedArray;
+    readonly height: number;
+    readonly width: number;
+}
+
+declare var ImageData: {
+    prototype: ImageData;
+    new(width: number, height: number): ImageData;
+    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
+}
+
+interface KeyboardEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly char: string | null;
+    readonly charCode: number;
+    readonly ctrlKey: boolean;
+    readonly key: string;
+    readonly keyCode: number;
+    readonly locale: string;
+    readonly location: number;
+    readonly metaKey: boolean;
+    readonly repeat: boolean;
+    readonly shiftKey: boolean;
+    readonly which: number;
+    readonly code: string;
+    getModifierState(keyArg: string): boolean;
+    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+declare var KeyboardEvent: {
+    prototype: KeyboardEvent;
+    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
+    readonly DOM_KEY_LOCATION_JOYSTICK: number;
+    readonly DOM_KEY_LOCATION_LEFT: number;
+    readonly DOM_KEY_LOCATION_MOBILE: number;
+    readonly DOM_KEY_LOCATION_NUMPAD: number;
+    readonly DOM_KEY_LOCATION_RIGHT: number;
+    readonly DOM_KEY_LOCATION_STANDARD: number;
+}
+
+interface ListeningStateChangedEvent extends Event {
+    readonly label: string;
+    readonly state: string;
+}
+
+declare var ListeningStateChangedEvent: {
+    prototype: ListeningStateChangedEvent;
+    new(): ListeningStateChangedEvent;
+}
+
+interface Location {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    assign(url: string): void;
+    reload(forcedReload?: boolean): void;
+    replace(url: string): void;
+    toString(): string;
+}
+
+declare var Location: {
+    prototype: Location;
+    new(): Location;
+}
+
+interface LongRunningScriptDetectedEvent extends Event {
+    readonly executionTime: number;
+    stopPageScriptExecution: boolean;
+}
+
+declare var LongRunningScriptDetectedEvent: {
+    prototype: LongRunningScriptDetectedEvent;
+    new(): LongRunningScriptDetectedEvent;
+}
+
+interface MSApp {
+    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
+    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
+    createDataPackage(object: any): any;
+    createDataPackageFromSelection(): any;
+    createFileFromStorageFile(storageFile: any): File;
+    createStreamFromInputStream(type: string, inputStream: any): MSStream;
+    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
+    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
+    getCurrentPriority(): string;
+    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
+    getViewId(view: any): any;
+    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
+    pageHandlesAllApplicationActivations(enabled: boolean): void;
+    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
+    terminateApp(exceptionObject: any): void;
+    readonly CURRENT: string;
+    readonly HIGH: string;
+    readonly IDLE: string;
+    readonly NORMAL: string;
+}
+declare var MSApp: MSApp;
+
+interface MSAppAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSAppAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
+    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSAppAsyncOperation: {
+    prototype: MSAppAsyncOperation;
+    new(): MSAppAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+}
+
+interface MSAssertion {
+    readonly id: string;
+    readonly type: string;
+}
+
+declare var MSAssertion: {
+    prototype: MSAssertion;
+    new(): MSAssertion;
+}
+
+interface MSBlobBuilder {
+    append(data: any, endings?: string): void;
+    getBlob(contentType?: string): Blob;
+}
+
+declare var MSBlobBuilder: {
+    prototype: MSBlobBuilder;
+    new(): MSBlobBuilder;
+}
+
+interface MSCredentials {
+    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
+    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
+}
+
+declare var MSCredentials: {
+    prototype: MSCredentials;
+    new(): MSCredentials;
+}
+
+interface MSFIDOCredentialAssertion extends MSAssertion {
+    readonly algorithm: string | Algorithm;
+    readonly attestation: any;
+    readonly publicKey: string;
+    readonly transportHints: string[];
+}
+
+declare var MSFIDOCredentialAssertion: {
+    prototype: MSFIDOCredentialAssertion;
+    new(): MSFIDOCredentialAssertion;
+}
+
+interface MSFIDOSignature {
+    readonly authnrData: string;
+    readonly clientData: string;
+    readonly signature: string;
+}
+
+declare var MSFIDOSignature: {
+    prototype: MSFIDOSignature;
+    new(): MSFIDOSignature;
+}
+
+interface MSFIDOSignatureAssertion extends MSAssertion {
+    readonly signature: MSFIDOSignature;
+}
+
+declare var MSFIDOSignatureAssertion: {
+    prototype: MSFIDOSignatureAssertion;
+    new(): MSFIDOSignatureAssertion;
+}
+
+interface MSGesture {
+    target: Element;
+    addPointer(pointerId: number): void;
+    stop(): void;
+}
+
+declare var MSGesture: {
+    prototype: MSGesture;
+    new(): MSGesture;
+}
+
+interface MSGestureEvent extends UIEvent {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly expansion: number;
+    readonly gestureObject: any;
+    readonly hwTimestamp: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly rotation: number;
+    readonly scale: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly translationX: number;
+    readonly translationY: number;
+    readonly velocityAngular: number;
+    readonly velocityExpansion: number;
+    readonly velocityX: number;
+    readonly velocityY: number;
+    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+declare var MSGestureEvent: {
+    prototype: MSGestureEvent;
+    new(): MSGestureEvent;
+    readonly MSGESTURE_FLAG_BEGIN: number;
+    readonly MSGESTURE_FLAG_CANCEL: number;
+    readonly MSGESTURE_FLAG_END: number;
+    readonly MSGESTURE_FLAG_INERTIA: number;
+    readonly MSGESTURE_FLAG_NONE: number;
+}
+
+interface MSGraphicsTrust {
+    readonly constrictionActive: boolean;
+    readonly status: string;
+}
+
+declare var MSGraphicsTrust: {
+    prototype: MSGraphicsTrust;
+    new(): MSGraphicsTrust;
+}
+
+interface MSHTMLWebViewElement extends HTMLElement {
+    readonly canGoBack: boolean;
+    readonly canGoForward: boolean;
+    readonly containsFullScreenElement: boolean;
+    readonly documentTitle: string;
+    height: number;
+    readonly settings: MSWebViewSettings;
+    src: string;
+    width: number;
+    addWebAllowedObject(name: string, applicationObject: any): void;
+    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
+    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
+    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
+    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
+    getDeferredPermissionRequests(): DeferredPermissionRequest[];
+    goBack(): void;
+    goForward(): void;
+    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
+    navigate(uri: string): void;
+    navigateToLocalStreamUri(source: string, streamResolver: any): void;
+    navigateToString(contents: string): void;
+    navigateWithHttpRequestMessage(requestMessage: any): void;
+    refresh(): void;
+    stop(): void;
+    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSHTMLWebViewElement: {
+    prototype: MSHTMLWebViewElement;
+    new(): MSHTMLWebViewElement;
+}
+
+interface MSInputMethodContextEventMap {
+    "MSCandidateWindowHide": Event;
+    "MSCandidateWindowShow": Event;
+    "MSCandidateWindowUpdate": Event;
+}
+
+interface MSInputMethodContext extends EventTarget {
+    readonly compositionEndOffset: number;
+    readonly compositionStartOffset: number;
+    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
+    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
+    readonly target: HTMLElement;
+    getCandidateWindowClientRect(): ClientRect;
+    getCompositionAlternatives(): string[];
+    hasComposition(): boolean;
+    isCandidateWindowVisible(): boolean;
+    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSInputMethodContext: {
+    prototype: MSInputMethodContext;
+    new(): MSInputMethodContext;
+}
+
+interface MSManipulationEvent extends UIEvent {
+    readonly currentState: number;
+    readonly inertiaDestinationX: number;
+    readonly inertiaDestinationY: number;
+    readonly lastState: number;
+    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+declare var MSManipulationEvent: {
+    prototype: MSManipulationEvent;
+    new(): MSManipulationEvent;
+    readonly MS_MANIPULATION_STATE_ACTIVE: number;
+    readonly MS_MANIPULATION_STATE_CANCELLED: number;
+    readonly MS_MANIPULATION_STATE_COMMITTED: number;
+    readonly MS_MANIPULATION_STATE_DRAGGING: number;
+    readonly MS_MANIPULATION_STATE_INERTIA: number;
+    readonly MS_MANIPULATION_STATE_PRESELECT: number;
+    readonly MS_MANIPULATION_STATE_SELECTING: number;
+    readonly MS_MANIPULATION_STATE_STOPPED: number;
+}
+
+interface MSMediaKeyError {
+    readonly code: number;
+    readonly systemCode: number;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+declare var MSMediaKeyError: {
+    prototype: MSMediaKeyError;
+    new(): MSMediaKeyError;
+    readonly MS_MEDIA_KEYERR_CLIENT: number;
+    readonly MS_MEDIA_KEYERR_DOMAIN: number;
+    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
+    readonly MS_MEDIA_KEYERR_OUTPUT: number;
+    readonly MS_MEDIA_KEYERR_SERVICE: number;
+    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
+}
+
+interface MSMediaKeyMessageEvent extends Event {
+    readonly destinationURL: string | null;
+    readonly message: Uint8Array;
+}
+
+declare var MSMediaKeyMessageEvent: {
+    prototype: MSMediaKeyMessageEvent;
+    new(): MSMediaKeyMessageEvent;
+}
+
+interface MSMediaKeyNeededEvent extends Event {
+    readonly initData: Uint8Array | null;
+}
+
+declare var MSMediaKeyNeededEvent: {
+    prototype: MSMediaKeyNeededEvent;
+    new(): MSMediaKeyNeededEvent;
+}
+
+interface MSMediaKeySession extends EventTarget {
+    readonly error: MSMediaKeyError | null;
+    readonly keySystem: string;
+    readonly sessionId: string;
+    close(): void;
+    update(key: Uint8Array): void;
+}
+
+declare var MSMediaKeySession: {
+    prototype: MSMediaKeySession;
+    new(): MSMediaKeySession;
+}
+
+interface MSMediaKeys {
+    readonly keySystem: string;
+    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
+}
+
+declare var MSMediaKeys: {
+    prototype: MSMediaKeys;
+    new(keySystem: string): MSMediaKeys;
+    isTypeSupported(keySystem: string, type?: string): boolean;
+    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
+}
+
+interface MSPointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var MSPointerEvent: {
+    prototype: MSPointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
+}
+
+interface MSRangeCollection {
+    readonly length: number;
+    item(index: number): Range;
+    [index: number]: Range;
+}
+
+declare var MSRangeCollection: {
+    prototype: MSRangeCollection;
+    new(): MSRangeCollection;
+}
+
+interface MSSiteModeEvent extends Event {
+    readonly actionURL: string;
+    readonly buttonID: number;
+}
+
+declare var MSSiteModeEvent: {
+    prototype: MSSiteModeEvent;
+    new(): MSSiteModeEvent;
+}
+
+interface MSStream {
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+}
+
+declare var MSStream: {
+    prototype: MSStream;
+    new(): MSStream;
+}
+
+interface MSStreamReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(stream: MSStream, size?: number): void;
+    readAsBinaryString(stream: MSStream, size?: number): void;
+    readAsBlob(stream: MSStream, size?: number): void;
+    readAsDataURL(stream: MSStream, size?: number): void;
+    readAsText(stream: MSStream, encoding?: string, size?: number): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSStreamReader: {
+    prototype: MSStreamReader;
+    new(): MSStreamReader;
+}
+
+interface MSWebViewAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSWebViewAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
+    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    readonly target: MSHTMLWebViewElement;
+    readonly type: number;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSWebViewAsyncOperation: {
+    prototype: MSWebViewAsyncOperation;
+    new(): MSWebViewAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
+    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
+    readonly TYPE_INVOKE_SCRIPT: number;
+}
+
+interface MSWebViewSettings {
+    isIndexedDBEnabled: boolean;
+    isJavaScriptEnabled: boolean;
+}
+
+declare var MSWebViewSettings: {
+    prototype: MSWebViewSettings;
+    new(): MSWebViewSettings;
+}
+
+interface MediaDeviceInfo {
+    readonly deviceId: string;
+    readonly groupId: string;
+    readonly kind: string;
+    readonly label: string;
+}
+
+declare var MediaDeviceInfo: {
+    prototype: MediaDeviceInfo;
+    new(): MediaDeviceInfo;
+}
+
+interface MediaDevicesEventMap {
+    "devicechange": Event;
+}
+
+interface MediaDevices extends EventTarget {
+    ondevicechange: (this: MediaDevices, ev: Event) => any;
+    enumerateDevices(): any;
+    getSupportedConstraints(): MediaTrackSupportedConstraints;
+    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
+    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaDevices: {
+    prototype: MediaDevices;
+    new(): MediaDevices;
+}
+
+interface MediaElementAudioSourceNode extends AudioNode {
+}
+
+declare var MediaElementAudioSourceNode: {
+    prototype: MediaElementAudioSourceNode;
+    new(): MediaElementAudioSourceNode;
+}
+
+interface MediaEncryptedEvent extends Event {
+    readonly initData: ArrayBuffer | null;
+    readonly initDataType: string;
+}
+
+declare var MediaEncryptedEvent: {
+    prototype: MediaEncryptedEvent;
+    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
+}
+
+interface MediaError {
+    readonly code: number;
+    readonly msExtendedCode: number;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+declare var MediaError: {
+    prototype: MediaError;
+    new(): MediaError;
+    readonly MEDIA_ERR_ABORTED: number;
+    readonly MEDIA_ERR_DECODE: number;
+    readonly MEDIA_ERR_NETWORK: number;
+    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
+    readonly MS_MEDIA_ERR_ENCRYPTED: number;
+}
+
+interface MediaKeyMessageEvent extends Event {
+    readonly message: ArrayBuffer;
+    readonly messageType: string;
+}
+
+declare var MediaKeyMessageEvent: {
+    prototype: MediaKeyMessageEvent;
+    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
+}
+
+interface MediaKeySession extends EventTarget {
+    readonly closed: PromiseLike<void>;
+    readonly expiration: number;
+    readonly keyStatuses: MediaKeyStatusMap;
+    readonly sessionId: string;
+    close(): PromiseLike<void>;
+    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
+    load(sessionId: string): PromiseLike<boolean>;
+    remove(): PromiseLike<void>;
+    update(response: any): PromiseLike<void>;
+}
+
+declare var MediaKeySession: {
+    prototype: MediaKeySession;
+    new(): MediaKeySession;
+}
+
+interface MediaKeyStatusMap {
+    readonly size: number;
+    forEach(callback: ForEachCallback): void;
+    get(keyId: any): string;
+    has(keyId: any): boolean;
+}
+
+declare var MediaKeyStatusMap: {
+    prototype: MediaKeyStatusMap;
+    new(): MediaKeyStatusMap;
+}
+
+interface MediaKeySystemAccess {
+    readonly keySystem: string;
+    createMediaKeys(): PromiseLike<MediaKeys>;
+    getConfiguration(): MediaKeySystemConfiguration;
+}
+
+declare var MediaKeySystemAccess: {
+    prototype: MediaKeySystemAccess;
+    new(): MediaKeySystemAccess;
+}
+
+interface MediaKeys {
+    createSession(sessionType?: string): MediaKeySession;
+    setServerCertificate(serverCertificate: any): PromiseLike<void>;
+}
+
+declare var MediaKeys: {
+    prototype: MediaKeys;
+    new(): MediaKeys;
+}
+
+interface MediaList {
+    readonly length: number;
+    mediaText: string;
+    appendMedium(newMedium: string): void;
+    deleteMedium(oldMedium: string): void;
+    item(index: number): string;
+    toString(): string;
+    [index: number]: string;
+}
+
+declare var MediaList: {
+    prototype: MediaList;
+    new(): MediaList;
+}
+
+interface MediaQueryList {
+    readonly matches: boolean;
+    readonly media: string;
+    addListener(listener: MediaQueryListListener): void;
+    removeListener(listener: MediaQueryListListener): void;
+}
+
+declare var MediaQueryList: {
+    prototype: MediaQueryList;
+    new(): MediaQueryList;
+}
+
+interface MediaSource extends EventTarget {
+    readonly activeSourceBuffers: SourceBufferList;
+    duration: number;
+    readonly readyState: string;
+    readonly sourceBuffers: SourceBufferList;
+    addSourceBuffer(type: string): SourceBuffer;
+    endOfStream(error?: number): void;
+    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
+}
+
+declare var MediaSource: {
+    prototype: MediaSource;
+    new(): MediaSource;
+    isTypeSupported(type: string): boolean;
+}
+
+interface MediaStreamEventMap {
+    "active": Event;
+    "addtrack": TrackEvent;
+    "inactive": Event;
+    "removetrack": TrackEvent;
+}
+
+interface MediaStream extends EventTarget {
+    readonly active: boolean;
+    readonly id: string;
+    onactive: (this: MediaStream, ev: Event) => any;
+    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
+    oninactive: (this: MediaStream, ev: Event) => any;
+    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
+    addTrack(track: MediaStreamTrack): void;
+    clone(): MediaStream;
+    getAudioTracks(): MediaStreamTrack[];
+    getTrackById(trackId: string): MediaStreamTrack | null;
+    getTracks(): MediaStreamTrack[];
+    getVideoTracks(): MediaStreamTrack[];
+    removeTrack(track: MediaStreamTrack): void;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStream: {
+    prototype: MediaStream;
+    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
+}
+
+interface MediaStreamAudioSourceNode extends AudioNode {
+}
+
+declare var MediaStreamAudioSourceNode: {
+    prototype: MediaStreamAudioSourceNode;
+    new(): MediaStreamAudioSourceNode;
+}
+
+interface MediaStreamError {
+    readonly constraintName: string | null;
+    readonly message: string | null;
+    readonly name: string;
+}
+
+declare var MediaStreamError: {
+    prototype: MediaStreamError;
+    new(): MediaStreamError;
+}
+
+interface MediaStreamErrorEvent extends Event {
+    readonly error: MediaStreamError | null;
+}
+
+declare var MediaStreamErrorEvent: {
+    prototype: MediaStreamErrorEvent;
+    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
+}
+
+interface MediaStreamTrackEventMap {
+    "ended": MediaStreamErrorEvent;
+    "mute": Event;
+    "overconstrained": MediaStreamErrorEvent;
+    "unmute": Event;
+}
+
+interface MediaStreamTrack extends EventTarget {
+    enabled: boolean;
+    readonly id: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly muted: boolean;
+    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
+    onmute: (this: MediaStreamTrack, ev: Event) => any;
+    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
+    onunmute: (this: MediaStreamTrack, ev: Event) => any;
+    readonly readonly: boolean;
+    readonly readyState: string;
+    readonly remote: boolean;
+    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
+    clone(): MediaStreamTrack;
+    getCapabilities(): MediaTrackCapabilities;
+    getConstraints(): MediaTrackConstraints;
+    getSettings(): MediaTrackSettings;
+    stop(): void;
+    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MediaStreamTrack: {
+    prototype: MediaStreamTrack;
+    new(): MediaStreamTrack;
+}
+
+interface MediaStreamTrackEvent extends Event {
+    readonly track: MediaStreamTrack;
+}
+
+declare var MediaStreamTrackEvent: {
+    prototype: MediaStreamTrackEvent;
+    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
+}
+
+interface MessageChannel {
+    readonly port1: MessagePort;
+    readonly port2: MessagePort;
+}
+
+declare var MessageChannel: {
+    prototype: MessageChannel;
+    new(): MessageChannel;
+}
+
+interface MessageEvent extends Event {
+    readonly data: any;
+    readonly origin: string;
+    readonly ports: any;
+    readonly source: Window;
+    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
+}
+
+declare var MessageEvent: {
+    prototype: MessageEvent;
+    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
+}
+
+interface MessagePortEventMap {
+    "message": MessageEvent;
+}
+
+interface MessagePort extends EventTarget {
+    onmessage: (this: MessagePort, ev: MessageEvent) => any;
+    close(): void;
+    postMessage(message?: any, ports?: any): void;
+    start(): void;
+    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MessagePort: {
+    prototype: MessagePort;
+    new(): MessagePort;
+}
+
+interface MimeType {
+    readonly description: string;
+    readonly enabledPlugin: Plugin;
+    readonly suffixes: string;
+    readonly type: string;
+}
+
+declare var MimeType: {
+    prototype: MimeType;
+    new(): MimeType;
+}
+
+interface MimeTypeArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(type: string): Plugin;
+    [index: number]: Plugin;
+}
+
+declare var MimeTypeArray: {
+    prototype: MimeTypeArray;
+    new(): MimeTypeArray;
+}
+
+interface MouseEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly button: number;
+    readonly buttons: number;
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly ctrlKey: boolean;
+    readonly fromElement: Element;
+    readonly layerX: number;
+    readonly layerY: number;
+    readonly metaKey: boolean;
+    readonly movementX: number;
+    readonly movementY: number;
+    readonly offsetX: number;
+    readonly offsetY: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly relatedTarget: EventTarget;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly shiftKey: boolean;
+    readonly toElement: Element;
+    readonly which: number;
+    readonly x: number;
+    readonly y: number;
+    getModifierState(keyArg: string): boolean;
+    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
+}
+
+interface MutationEvent extends Event {
+    readonly attrChange: number;
+    readonly attrName: string;
+    readonly newValue: string;
+    readonly prevValue: string;
+    readonly relatedNode: Node;
+    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+declare var MutationEvent: {
+    prototype: MutationEvent;
+    new(): MutationEvent;
+    readonly ADDITION: number;
+    readonly MODIFICATION: number;
+    readonly REMOVAL: number;
+}
+
+interface MutationObserver {
+    disconnect(): void;
+    observe(target: Node, options: MutationObserverInit): void;
+    takeRecords(): MutationRecord[];
+}
+
+declare var MutationObserver: {
+    prototype: MutationObserver;
+    new(callback: MutationCallback): MutationObserver;
+}
+
+interface MutationRecord {
+    readonly addedNodes: NodeList;
+    readonly attributeName: string | null;
+    readonly attributeNamespace: string | null;
+    readonly nextSibling: Node | null;
+    readonly oldValue: string | null;
+    readonly previousSibling: Node | null;
+    readonly removedNodes: NodeList;
+    readonly target: Node;
+    readonly type: string;
+}
+
+declare var MutationRecord: {
+    prototype: MutationRecord;
+    new(): MutationRecord;
+}
+
+interface NamedNodeMap {
+    readonly length: number;
+    getNamedItem(name: string): Attr;
+    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    item(index: number): Attr;
+    removeNamedItem(name: string): Attr;
+    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
+    setNamedItem(arg: Attr): Attr;
+    setNamedItemNS(arg: Attr): Attr;
+    [index: number]: Attr;
+}
+
+declare var NamedNodeMap: {
+    prototype: NamedNodeMap;
+    new(): NamedNodeMap;
+}
+
+interface NavigationCompletedEvent extends NavigationEvent {
+    readonly isSuccess: boolean;
+    readonly webErrorStatus: number;
+}
+
+declare var NavigationCompletedEvent: {
+    prototype: NavigationCompletedEvent;
+    new(): NavigationCompletedEvent;
+}
+
+interface NavigationEvent extends Event {
+    readonly uri: string;
+}
+
+declare var NavigationEvent: {
+    prototype: NavigationEvent;
+    new(): NavigationEvent;
+}
+
+interface NavigationEventWithReferrer extends NavigationEvent {
+    readonly referer: string;
+}
+
+declare var NavigationEventWithReferrer: {
+    prototype: NavigationEventWithReferrer;
+    new(): NavigationEventWithReferrer;
+}
+
+interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
+    readonly appCodeName: string;
+    readonly cookieEnabled: boolean;
+    readonly language: string;
+    readonly maxTouchPoints: number;
+    readonly mimeTypes: MimeTypeArray;
+    readonly msManipulationViewsEnabled: boolean;
+    readonly msMaxTouchPoints: number;
+    readonly msPointerEnabled: boolean;
+    readonly plugins: PluginArray;
+    readonly pointerEnabled: boolean;
+    readonly webdriver: boolean;
+    readonly hardwareConcurrency: number;
+    getGamepads(): Gamepad[];
+    javaEnabled(): boolean;
+    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
+    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
+    vibrate(pattern: number | number[]): boolean;
+}
+
+declare var Navigator: {
+    prototype: Navigator;
+    new(): Navigator;
+}
+
+interface Node extends EventTarget {
+    readonly attributes: NamedNodeMap;
+    readonly baseURI: string | null;
+    readonly childNodes: NodeList;
+    readonly firstChild: Node | null;
+    readonly lastChild: Node | null;
+    readonly localName: string | null;
+    readonly namespaceURI: string | null;
+    readonly nextSibling: Node | null;
+    readonly nodeName: string;
+    readonly nodeType: number;
+    nodeValue: string | null;
+    readonly ownerDocument: Document;
+    readonly parentElement: HTMLElement | null;
+    readonly parentNode: Node | null;
+    readonly previousSibling: Node | null;
+    textContent: string | null;
+    appendChild(newChild: Node): Node;
+    cloneNode(deep?: boolean): Node;
+    compareDocumentPosition(other: Node): number;
+    contains(child: Node): boolean;
+    hasAttributes(): boolean;
+    hasChildNodes(): boolean;
+    insertBefore(newChild: Node, refChild: Node | null): Node;
+    isDefaultNamespace(namespaceURI: string | null): boolean;
+    isEqualNode(arg: Node): boolean;
+    isSameNode(other: Node): boolean;
+    lookupNamespaceURI(prefix: string | null): string | null;
+    lookupPrefix(namespaceURI: string | null): string | null;
+    normalize(): void;
+    removeChild(oldChild: Node): Node;
+    replaceChild(newChild: Node, oldChild: Node): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+declare var Node: {
+    prototype: Node;
+    new(): Node;
+    readonly ATTRIBUTE_NODE: number;
+    readonly CDATA_SECTION_NODE: number;
+    readonly COMMENT_NODE: number;
+    readonly DOCUMENT_FRAGMENT_NODE: number;
+    readonly DOCUMENT_NODE: number;
+    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
+    readonly DOCUMENT_POSITION_CONTAINS: number;
+    readonly DOCUMENT_POSITION_DISCONNECTED: number;
+    readonly DOCUMENT_POSITION_FOLLOWING: number;
+    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+    readonly DOCUMENT_POSITION_PRECEDING: number;
+    readonly DOCUMENT_TYPE_NODE: number;
+    readonly ELEMENT_NODE: number;
+    readonly ENTITY_NODE: number;
+    readonly ENTITY_REFERENCE_NODE: number;
+    readonly NOTATION_NODE: number;
+    readonly PROCESSING_INSTRUCTION_NODE: number;
+    readonly TEXT_NODE: number;
+}
+
+interface NodeFilter {
+    acceptNode(n: Node): number;
+}
+
+declare var NodeFilter: {
+    readonly FILTER_ACCEPT: number;
+    readonly FILTER_REJECT: number;
+    readonly FILTER_SKIP: number;
+    readonly SHOW_ALL: number;
+    readonly SHOW_ATTRIBUTE: number;
+    readonly SHOW_CDATA_SECTION: number;
+    readonly SHOW_COMMENT: number;
+    readonly SHOW_DOCUMENT: number;
+    readonly SHOW_DOCUMENT_FRAGMENT: number;
+    readonly SHOW_DOCUMENT_TYPE: number;
+    readonly SHOW_ELEMENT: number;
+    readonly SHOW_ENTITY: number;
+    readonly SHOW_ENTITY_REFERENCE: number;
+    readonly SHOW_NOTATION: number;
+    readonly SHOW_PROCESSING_INSTRUCTION: number;
+    readonly SHOW_TEXT: number;
+}
+
+interface NodeIterator {
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    detach(): void;
+    nextNode(): Node;
+    previousNode(): Node;
+}
+
+declare var NodeIterator: {
+    prototype: NodeIterator;
+    new(): NodeIterator;
+}
+
+interface NodeList {
+    readonly length: number;
+    item(index: number): Node;
+    [index: number]: Node;
+}
+
+declare var NodeList: {
+    prototype: NodeList;
+    new(): NodeList;
+}
+
+interface OES_element_index_uint {
+}
+
+declare var OES_element_index_uint: {
+    prototype: OES_element_index_uint;
+    new(): OES_element_index_uint;
+}
+
+interface OES_standard_derivatives {
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+declare var OES_standard_derivatives: {
+    prototype: OES_standard_derivatives;
+    new(): OES_standard_derivatives;
+    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+}
+
+interface OES_texture_float {
+}
+
+declare var OES_texture_float: {
+    prototype: OES_texture_float;
+    new(): OES_texture_float;
+}
+
+interface OES_texture_float_linear {
+}
+
+declare var OES_texture_float_linear: {
+    prototype: OES_texture_float_linear;
+    new(): OES_texture_float_linear;
+}
+
+interface OfflineAudioCompletionEvent extends Event {
+    readonly renderedBuffer: AudioBuffer;
+}
+
+declare var OfflineAudioCompletionEvent: {
+    prototype: OfflineAudioCompletionEvent;
+    new(): OfflineAudioCompletionEvent;
+}
+
+interface OfflineAudioContextEventMap {
+    "complete": Event;
+}
+
+interface OfflineAudioContext extends AudioContext {
+    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
+    startRendering(): PromiseLike<AudioBuffer>;
+    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OfflineAudioContext: {
+    prototype: OfflineAudioContext;
+    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
+}
+
+interface OscillatorNodeEventMap {
+    "ended": MediaStreamErrorEvent;
+}
+
+interface OscillatorNode extends AudioNode {
+    readonly detune: AudioParam;
+    readonly frequency: AudioParam;
+    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
+    type: string;
+    setPeriodicWave(periodicWave: PeriodicWave): void;
+    start(when?: number): void;
+    stop(when?: number): void;
+    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var OscillatorNode: {
+    prototype: OscillatorNode;
+    new(): OscillatorNode;
+}
+
+interface OverflowEvent extends UIEvent {
+    readonly horizontalOverflow: boolean;
+    readonly orient: number;
+    readonly verticalOverflow: boolean;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+declare var OverflowEvent: {
+    prototype: OverflowEvent;
+    new(): OverflowEvent;
+    readonly BOTH: number;
+    readonly HORIZONTAL: number;
+    readonly VERTICAL: number;
+}
+
+interface PageTransitionEvent extends Event {
+    readonly persisted: boolean;
+}
+
+declare var PageTransitionEvent: {
+    prototype: PageTransitionEvent;
+    new(): PageTransitionEvent;
+}
+
+interface PannerNode extends AudioNode {
+    coneInnerAngle: number;
+    coneOuterAngle: number;
+    coneOuterGain: number;
+    distanceModel: string;
+    maxDistance: number;
+    panningModel: string;
+    refDistance: number;
+    rolloffFactor: number;
+    setOrientation(x: number, y: number, z: number): void;
+    setPosition(x: number, y: number, z: number): void;
+    setVelocity(x: number, y: number, z: number): void;
+}
+
+declare var PannerNode: {
+    prototype: PannerNode;
+    new(): PannerNode;
+}
+
+interface PerfWidgetExternal {
+    readonly activeNetworkRequestCount: number;
+    readonly averageFrameTime: number;
+    readonly averagePaintTime: number;
+    readonly extraInformationEnabled: boolean;
+    readonly independentRenderingEnabled: boolean;
+    readonly irDisablingContentString: string;
+    readonly irStatusAvailable: boolean;
+    readonly maxCpuSpeed: number;
+    readonly paintRequestsPerSecond: number;
+    readonly performanceCounter: number;
+    readonly performanceCounterFrequency: number;
+    addEventListener(eventType: string, callback: Function): void;
+    getMemoryUsage(): number;
+    getProcessCpuUsage(): number;
+    getRecentCpuUsage(last: number | null): any;
+    getRecentFrames(last: number | null): any;
+    getRecentMemoryUsage(last: number | null): any;
+    getRecentPaintRequests(last: number | null): any;
+    removeEventListener(eventType: string, callback: Function): void;
+    repositionWindow(x: number, y: number): void;
+    resizeWindow(width: number, height: number): void;
+}
+
+declare var PerfWidgetExternal: {
+    prototype: PerfWidgetExternal;
+    new(): PerfWidgetExternal;
+}
+
+interface Performance {
+    readonly navigation: PerformanceNavigation;
+    readonly timing: PerformanceTiming;
+    clearMarks(markName?: string): void;
+    clearMeasures(measureName?: string): void;
+    clearResourceTimings(): void;
+    getEntries(): any;
+    getEntriesByName(name: string, entryType?: string): any;
+    getEntriesByType(entryType: string): any;
+    getMarks(markName?: string): any;
+    getMeasures(measureName?: string): any;
+    mark(markName: string): void;
+    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
+    now(): number;
+    setResourceTimingBufferSize(maxSize: number): void;
+    toJSON(): any;
+}
+
+declare var Performance: {
+    prototype: Performance;
+    new(): Performance;
+}
+
+interface PerformanceEntry {
+    readonly duration: number;
+    readonly entryType: string;
+    readonly name: string;
+    readonly startTime: number;
+}
+
+declare var PerformanceEntry: {
+    prototype: PerformanceEntry;
+    new(): PerformanceEntry;
+}
+
+interface PerformanceMark extends PerformanceEntry {
+}
+
+declare var PerformanceMark: {
+    prototype: PerformanceMark;
+    new(): PerformanceMark;
+}
+
+interface PerformanceMeasure extends PerformanceEntry {
+}
+
+declare var PerformanceMeasure: {
+    prototype: PerformanceMeasure;
+    new(): PerformanceMeasure;
+}
+
+interface PerformanceNavigation {
+    readonly redirectCount: number;
+    readonly type: number;
+    toJSON(): any;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+declare var PerformanceNavigation: {
+    prototype: PerformanceNavigation;
+    new(): PerformanceNavigation;
+    readonly TYPE_BACK_FORWARD: number;
+    readonly TYPE_NAVIGATE: number;
+    readonly TYPE_RELOAD: number;
+    readonly TYPE_RESERVED: number;
+}
+
+interface PerformanceNavigationTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly navigationStart: number;
+    readonly redirectCount: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly type: string;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+}
+
+declare var PerformanceNavigationTiming: {
+    prototype: PerformanceNavigationTiming;
+    new(): PerformanceNavigationTiming;
+}
+
+interface PerformanceResourceTiming extends PerformanceEntry {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly initiatorType: string;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+}
+
+declare var PerformanceResourceTiming: {
+    prototype: PerformanceResourceTiming;
+    new(): PerformanceResourceTiming;
+}
+
+interface PerformanceTiming {
+    readonly connectEnd: number;
+    readonly connectStart: number;
+    readonly domComplete: number;
+    readonly domContentLoadedEventEnd: number;
+    readonly domContentLoadedEventStart: number;
+    readonly domInteractive: number;
+    readonly domLoading: number;
+    readonly domainLookupEnd: number;
+    readonly domainLookupStart: number;
+    readonly fetchStart: number;
+    readonly loadEventEnd: number;
+    readonly loadEventStart: number;
+    readonly msFirstPaint: number;
+    readonly navigationStart: number;
+    readonly redirectEnd: number;
+    readonly redirectStart: number;
+    readonly requestStart: number;
+    readonly responseEnd: number;
+    readonly responseStart: number;
+    readonly unloadEventEnd: number;
+    readonly unloadEventStart: number;
+    readonly secureConnectionStart: number;
+    toJSON(): any;
+}
+
+declare var PerformanceTiming: {
+    prototype: PerformanceTiming;
+    new(): PerformanceTiming;
+}
+
+interface PeriodicWave {
+}
+
+declare var PeriodicWave: {
+    prototype: PeriodicWave;
+    new(): PeriodicWave;
+}
+
+interface PermissionRequest extends DeferredPermissionRequest {
+    readonly state: string;
+    defer(): void;
+}
+
+declare var PermissionRequest: {
+    prototype: PermissionRequest;
+    new(): PermissionRequest;
+}
+
+interface PermissionRequestedEvent extends Event {
+    readonly permissionRequest: PermissionRequest;
+}
+
+declare var PermissionRequestedEvent: {
+    prototype: PermissionRequestedEvent;
+    new(): PermissionRequestedEvent;
+}
+
+interface Plugin {
+    readonly description: string;
+    readonly filename: string;
+    readonly length: number;
+    readonly name: string;
+    readonly version: string;
+    item(index: number): MimeType;
+    namedItem(type: string): MimeType;
+    [index: number]: MimeType;
+}
+
+declare var Plugin: {
+    prototype: Plugin;
+    new(): Plugin;
+}
+
+interface PluginArray {
+    readonly length: number;
+    item(index: number): Plugin;
+    namedItem(name: string): Plugin;
+    refresh(reload?: boolean): void;
+    [index: number]: Plugin;
+}
+
+declare var PluginArray: {
+    prototype: PluginArray;
+    new(): PluginArray;
+}
+
+interface PointerEvent extends MouseEvent {
+    readonly currentPoint: any;
+    readonly height: number;
+    readonly hwTimestamp: number;
+    readonly intermediatePoints: any;
+    readonly isPrimary: boolean;
+    readonly pointerId: number;
+    readonly pointerType: any;
+    readonly pressure: number;
+    readonly rotation: number;
+    readonly tiltX: number;
+    readonly tiltY: number;
+    readonly width: number;
+    getCurrentPoint(element: Element): void;
+    getIntermediatePoints(element: Element): void;
+    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
+}
+
+declare var PointerEvent: {
+    prototype: PointerEvent;
+    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
+}
+
+interface PopStateEvent extends Event {
+    readonly state: any;
+    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
+}
+
+declare var PopStateEvent: {
+    prototype: PopStateEvent;
+    new(): PopStateEvent;
+}
+
+interface Position {
+    readonly coords: Coordinates;
+    readonly timestamp: number;
+}
+
+declare var Position: {
+    prototype: Position;
+    new(): Position;
+}
+
+interface PositionError {
+    readonly code: number;
+    readonly message: string;
+    toString(): string;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+declare var PositionError: {
+    prototype: PositionError;
+    new(): PositionError;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+interface ProcessingInstruction extends CharacterData {
+    readonly target: string;
+}
+
+declare var ProcessingInstruction: {
+    prototype: ProcessingInstruction;
+    new(): ProcessingInstruction;
+}
+
+interface ProgressEvent extends Event {
+    readonly lengthComputable: boolean;
+    readonly loaded: number;
+    readonly total: number;
+    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
+}
+
+declare var ProgressEvent: {
+    prototype: ProgressEvent;
+    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
+}
+
+interface RTCDTMFToneChangeEvent extends Event {
+    readonly tone: string;
+}
+
+declare var RTCDTMFToneChangeEvent: {
+    prototype: RTCDTMFToneChangeEvent;
+    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtlsTransportEventMap {
+    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
+    "error": ErrorEvent;
+}
+
+interface RTCDtlsTransport extends RTCStatsProvider {
+    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
+    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
+    readonly state: string;
+    readonly transport: RTCIceTransport;
+    getLocalParameters(): RTCDtlsParameters;
+    getRemoteCertificates(): ArrayBuffer[];
+    getRemoteParameters(): RTCDtlsParameters | null;
+    start(remoteParameters: RTCDtlsParameters): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtlsTransport: {
+    prototype: RTCDtlsTransport;
+    new(transport: RTCIceTransport): RTCDtlsTransport;
+}
+
+interface RTCDtlsTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCDtlsTransportStateChangedEvent: {
+    prototype: RTCDtlsTransportStateChangedEvent;
+    new(): RTCDtlsTransportStateChangedEvent;
+}
+
+interface RTCDtmfSenderEventMap {
+    "tonechange": RTCDTMFToneChangeEvent;
+}
+
+interface RTCDtmfSender extends EventTarget {
+    readonly canInsertDTMF: boolean;
+    readonly duration: number;
+    readonly interToneGap: number;
+    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
+    readonly sender: RTCRtpSender;
+    readonly toneBuffer: string;
+    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
+    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCDtmfSender: {
+    prototype: RTCDtmfSender;
+    new(sender: RTCRtpSender): RTCDtmfSender;
+}
+
+interface RTCIceCandidatePairChangedEvent extends Event {
+    readonly pair: RTCIceCandidatePair;
+}
+
+declare var RTCIceCandidatePairChangedEvent: {
+    prototype: RTCIceCandidatePairChangedEvent;
+    new(): RTCIceCandidatePairChangedEvent;
+}
+
+interface RTCIceGathererEventMap {
+    "error": ErrorEvent;
+    "localcandidate": RTCIceGathererEvent;
+}
+
+interface RTCIceGatherer extends RTCStatsProvider {
+    readonly component: string;
+    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
+    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
+    createAssociatedGatherer(): RTCIceGatherer;
+    getLocalCandidates(): RTCIceCandidate[];
+    getLocalParameters(): RTCIceParameters;
+    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceGatherer: {
+    prototype: RTCIceGatherer;
+    new(options: RTCIceGatherOptions): RTCIceGatherer;
+}
+
+interface RTCIceGathererEvent extends Event {
+    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
+}
+
+declare var RTCIceGathererEvent: {
+    prototype: RTCIceGathererEvent;
+    new(): RTCIceGathererEvent;
+}
+
+interface RTCIceTransportEventMap {
+    "candidatepairchange": RTCIceCandidatePairChangedEvent;
+    "icestatechange": RTCIceTransportStateChangedEvent;
+}
+
+interface RTCIceTransport extends RTCStatsProvider {
+    readonly component: string;
+    readonly iceGatherer: RTCIceGatherer | null;
+    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
+    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
+    readonly role: string;
+    readonly state: string;
+    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
+    createAssociatedTransport(): RTCIceTransport;
+    getNominatedCandidatePair(): RTCIceCandidatePair | null;
+    getRemoteCandidates(): RTCIceCandidate[];
+    getRemoteParameters(): RTCIceParameters | null;
+    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
+    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCIceTransport: {
+    prototype: RTCIceTransport;
+    new(): RTCIceTransport;
+}
+
+interface RTCIceTransportStateChangedEvent extends Event {
+    readonly state: string;
+}
+
+declare var RTCIceTransportStateChangedEvent: {
+    prototype: RTCIceTransportStateChangedEvent;
+    new(): RTCIceTransportStateChangedEvent;
+}
+
+interface RTCRtpReceiverEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCRtpReceiver extends RTCStatsProvider {
+    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack | null;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    getContributingSources(): RTCRtpContributingSource[];
+    receive(parameters: RTCRtpParameters): void;
+    requestSendCSRC(csrc: number): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpReceiver: {
+    prototype: RTCRtpReceiver;
+    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCRtpSenderEventMap {
+    "error": ErrorEvent;
+    "ssrcconflict": RTCSsrcConflictEvent;
+}
+
+interface RTCRtpSender extends RTCStatsProvider {
+    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
+    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
+    readonly rtcpTransport: RTCDtlsTransport;
+    readonly track: MediaStreamTrack;
+    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
+    send(parameters: RTCRtpParameters): void;
+    setTrack(track: MediaStreamTrack): void;
+    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
+    stop(): void;
+    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCRtpSender: {
+    prototype: RTCRtpSender;
+    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
+    getCapabilities(kind?: string): RTCRtpCapabilities;
+}
+
+interface RTCSrtpSdesTransportEventMap {
+    "error": ErrorEvent;
+}
+
+interface RTCSrtpSdesTransport extends EventTarget {
+    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
+    readonly transport: RTCIceTransport;
+    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var RTCSrtpSdesTransport: {
+    prototype: RTCSrtpSdesTransport;
+    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
+    getLocalParameters(): RTCSrtpSdesParameters[];
+}
+
+interface RTCSsrcConflictEvent extends Event {
+    readonly ssrc: number;
+}
+
+declare var RTCSsrcConflictEvent: {
+    prototype: RTCSsrcConflictEvent;
+    new(): RTCSsrcConflictEvent;
+}
+
+interface RTCStatsProvider extends EventTarget {
+    getStats(): PromiseLike<RTCStatsReport>;
+    msGetStats(): PromiseLike<RTCStatsReport>;
+}
+
+declare var RTCStatsProvider: {
+    prototype: RTCStatsProvider;
+    new(): RTCStatsProvider;
+}
+
+interface Range {
+    readonly collapsed: boolean;
+    readonly commonAncestorContainer: Node;
+    readonly endContainer: Node;
+    readonly endOffset: number;
+    readonly startContainer: Node;
+    readonly startOffset: number;
+    cloneContents(): DocumentFragment;
+    cloneRange(): Range;
+    collapse(toStart: boolean): void;
+    compareBoundaryPoints(how: number, sourceRange: Range): number;
+    createContextualFragment(fragment: string): DocumentFragment;
+    deleteContents(): void;
+    detach(): void;
+    expand(Unit: string): boolean;
+    extractContents(): DocumentFragment;
+    getBoundingClientRect(): ClientRect;
+    getClientRects(): ClientRectList;
+    insertNode(newNode: Node): void;
+    selectNode(refNode: Node): void;
+    selectNodeContents(refNode: Node): void;
+    setEnd(refNode: Node, offset: number): void;
+    setEndAfter(refNode: Node): void;
+    setEndBefore(refNode: Node): void;
+    setStart(refNode: Node, offset: number): void;
+    setStartAfter(refNode: Node): void;
+    setStartBefore(refNode: Node): void;
+    surroundContents(newParent: Node): void;
+    toString(): string;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+declare var Range: {
+    prototype: Range;
+    new(): Range;
+    readonly END_TO_END: number;
+    readonly END_TO_START: number;
+    readonly START_TO_END: number;
+    readonly START_TO_START: number;
+}
+
+interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly target: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGAElement: {
+    prototype: SVGAElement;
+    new(): SVGAElement;
+}
+
+interface SVGAngle {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+declare var SVGAngle: {
+    prototype: SVGAngle;
+    new(): SVGAngle;
+    readonly SVG_ANGLETYPE_DEG: number;
+    readonly SVG_ANGLETYPE_GRAD: number;
+    readonly SVG_ANGLETYPE_RAD: number;
+    readonly SVG_ANGLETYPE_UNKNOWN: number;
+    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
+}
+
+interface SVGAnimatedAngle {
+    readonly animVal: SVGAngle;
+    readonly baseVal: SVGAngle;
+}
+
+declare var SVGAnimatedAngle: {
+    prototype: SVGAnimatedAngle;
+    new(): SVGAnimatedAngle;
+}
+
+interface SVGAnimatedBoolean {
+    readonly animVal: boolean;
+    baseVal: boolean;
+}
+
+declare var SVGAnimatedBoolean: {
+    prototype: SVGAnimatedBoolean;
+    new(): SVGAnimatedBoolean;
+}
+
+interface SVGAnimatedEnumeration {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedEnumeration: {
+    prototype: SVGAnimatedEnumeration;
+    new(): SVGAnimatedEnumeration;
+}
+
+interface SVGAnimatedInteger {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedInteger: {
+    prototype: SVGAnimatedInteger;
+    new(): SVGAnimatedInteger;
+}
+
+interface SVGAnimatedLength {
+    readonly animVal: SVGLength;
+    readonly baseVal: SVGLength;
+}
+
+declare var SVGAnimatedLength: {
+    prototype: SVGAnimatedLength;
+    new(): SVGAnimatedLength;
+}
+
+interface SVGAnimatedLengthList {
+    readonly animVal: SVGLengthList;
+    readonly baseVal: SVGLengthList;
+}
+
+declare var SVGAnimatedLengthList: {
+    prototype: SVGAnimatedLengthList;
+    new(): SVGAnimatedLengthList;
+}
+
+interface SVGAnimatedNumber {
+    readonly animVal: number;
+    baseVal: number;
+}
+
+declare var SVGAnimatedNumber: {
+    prototype: SVGAnimatedNumber;
+    new(): SVGAnimatedNumber;
+}
+
+interface SVGAnimatedNumberList {
+    readonly animVal: SVGNumberList;
+    readonly baseVal: SVGNumberList;
+}
+
+declare var SVGAnimatedNumberList: {
+    prototype: SVGAnimatedNumberList;
+    new(): SVGAnimatedNumberList;
+}
+
+interface SVGAnimatedPreserveAspectRatio {
+    readonly animVal: SVGPreserveAspectRatio;
+    readonly baseVal: SVGPreserveAspectRatio;
+}
+
+declare var SVGAnimatedPreserveAspectRatio: {
+    prototype: SVGAnimatedPreserveAspectRatio;
+    new(): SVGAnimatedPreserveAspectRatio;
+}
+
+interface SVGAnimatedRect {
+    readonly animVal: SVGRect;
+    readonly baseVal: SVGRect;
+}
+
+declare var SVGAnimatedRect: {
+    prototype: SVGAnimatedRect;
+    new(): SVGAnimatedRect;
+}
+
+interface SVGAnimatedString {
+    readonly animVal: string;
+    baseVal: string;
+}
+
+declare var SVGAnimatedString: {
+    prototype: SVGAnimatedString;
+    new(): SVGAnimatedString;
+}
+
+interface SVGAnimatedTransformList {
+    readonly animVal: SVGTransformList;
+    readonly baseVal: SVGTransformList;
+}
+
+declare var SVGAnimatedTransformList: {
+    prototype: SVGAnimatedTransformList;
+    new(): SVGAnimatedTransformList;
+}
+
+interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGCircleElement: {
+    prototype: SVGCircleElement;
+    new(): SVGCircleElement;
+}
+
+interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
+    readonly clipPathUnits: SVGAnimatedEnumeration;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGClipPathElement: {
+    prototype: SVGClipPathElement;
+    new(): SVGClipPathElement;
+}
+
+interface SVGComponentTransferFunctionElement extends SVGElement {
+    readonly amplitude: SVGAnimatedNumber;
+    readonly exponent: SVGAnimatedNumber;
+    readonly intercept: SVGAnimatedNumber;
+    readonly offset: SVGAnimatedNumber;
+    readonly slope: SVGAnimatedNumber;
+    readonly tableValues: SVGAnimatedNumberList;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGComponentTransferFunctionElement: {
+    prototype: SVGComponentTransferFunctionElement;
+    new(): SVGComponentTransferFunctionElement;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
+    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
+}
+
+interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDefsElement: {
+    prototype: SVGDefsElement;
+    new(): SVGDefsElement;
+}
+
+interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGDescElement: {
+    prototype: SVGDescElement;
+    new(): SVGDescElement;
+}
+
+interface SVGElementEventMap extends ElementEventMap {
+    "click": MouseEvent;
+    "dblclick": MouseEvent;
+    "focusin": FocusEvent;
+    "focusout": FocusEvent;
+    "load": Event;
+    "mousedown": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+}
+
+interface SVGElement extends Element {
+    onclick: (this: SVGElement, ev: MouseEvent) => any;
+    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
+    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
+    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
+    onload: (this: SVGElement, ev: Event) => any;
+    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
+    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
+    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
+    readonly ownerSVGElement: SVGSVGElement;
+    readonly viewportElement: SVGElement;
+    xmlbase: string;
+    className: any;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGElement: {
+    prototype: SVGElement;
+    new(): SVGElement;
+}
+
+interface SVGElementInstance extends EventTarget {
+    readonly childNodes: SVGElementInstanceList;
+    readonly correspondingElement: SVGElement;
+    readonly correspondingUseElement: SVGUseElement;
+    readonly firstChild: SVGElementInstance;
+    readonly lastChild: SVGElementInstance;
+    readonly nextSibling: SVGElementInstance;
+    readonly parentNode: SVGElementInstance;
+    readonly previousSibling: SVGElementInstance;
+}
+
+declare var SVGElementInstance: {
+    prototype: SVGElementInstance;
+    new(): SVGElementInstance;
+}
+
+interface SVGElementInstanceList {
+    readonly length: number;
+    item(index: number): SVGElementInstance;
+}
+
+declare var SVGElementInstanceList: {
+    prototype: SVGElementInstanceList;
+    new(): SVGElementInstanceList;
+}
+
+interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGEllipseElement: {
+    prototype: SVGEllipseElement;
+    new(): SVGEllipseElement;
+}
+
+interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly mode: SVGAnimatedEnumeration;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEBlendElement: {
+    prototype: SVGFEBlendElement;
+    new(): SVGFEBlendElement;
+    readonly SVG_FEBLEND_MODE_COLOR: number;
+    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
+    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
+    readonly SVG_FEBLEND_MODE_DARKEN: number;
+    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
+    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
+    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_HUE: number;
+    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
+    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
+    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
+    readonly SVG_FEBLEND_MODE_NORMAL: number;
+    readonly SVG_FEBLEND_MODE_OVERLAY: number;
+    readonly SVG_FEBLEND_MODE_SATURATION: number;
+    readonly SVG_FEBLEND_MODE_SCREEN: number;
+    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
+    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
+}
+
+interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly type: SVGAnimatedEnumeration;
+    readonly values: SVGAnimatedNumberList;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEColorMatrixElement: {
+    prototype: SVGFEColorMatrixElement;
+    new(): SVGFEColorMatrixElement;
+    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
+    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
+    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
+    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
+}
+
+interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEComponentTransferElement: {
+    prototype: SVGFEComponentTransferElement;
+    new(): SVGFEComponentTransferElement;
+}
+
+interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly k1: SVGAnimatedNumber;
+    readonly k2: SVGAnimatedNumber;
+    readonly k3: SVGAnimatedNumber;
+    readonly k4: SVGAnimatedNumber;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFECompositeElement: {
+    prototype: SVGFECompositeElement;
+    new(): SVGFECompositeElement;
+    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
+    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
+}
+
+interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly bias: SVGAnimatedNumber;
+    readonly divisor: SVGAnimatedNumber;
+    readonly edgeMode: SVGAnimatedEnumeration;
+    readonly in1: SVGAnimatedString;
+    readonly kernelMatrix: SVGAnimatedNumberList;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly orderX: SVGAnimatedInteger;
+    readonly orderY: SVGAnimatedInteger;
+    readonly preserveAlpha: SVGAnimatedBoolean;
+    readonly targetX: SVGAnimatedInteger;
+    readonly targetY: SVGAnimatedInteger;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEConvolveMatrixElement: {
+    prototype: SVGFEConvolveMatrixElement;
+    new(): SVGFEConvolveMatrixElement;
+    readonly SVG_EDGEMODE_DUPLICATE: number;
+    readonly SVG_EDGEMODE_NONE: number;
+    readonly SVG_EDGEMODE_UNKNOWN: number;
+    readonly SVG_EDGEMODE_WRAP: number;
+}
+
+interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly diffuseConstant: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDiffuseLightingElement: {
+    prototype: SVGFEDiffuseLightingElement;
+    new(): SVGFEDiffuseLightingElement;
+}
+
+interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly in2: SVGAnimatedString;
+    readonly scale: SVGAnimatedNumber;
+    readonly xChannelSelector: SVGAnimatedEnumeration;
+    readonly yChannelSelector: SVGAnimatedEnumeration;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDisplacementMapElement: {
+    prototype: SVGFEDisplacementMapElement;
+    new(): SVGFEDisplacementMapElement;
+    readonly SVG_CHANNEL_A: number;
+    readonly SVG_CHANNEL_B: number;
+    readonly SVG_CHANNEL_G: number;
+    readonly SVG_CHANNEL_R: number;
+    readonly SVG_CHANNEL_UNKNOWN: number;
+}
+
+interface SVGFEDistantLightElement extends SVGElement {
+    readonly azimuth: SVGAnimatedNumber;
+    readonly elevation: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEDistantLightElement: {
+    prototype: SVGFEDistantLightElement;
+    new(): SVGFEDistantLightElement;
+}
+
+interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEFloodElement: {
+    prototype: SVGFEFloodElement;
+    new(): SVGFEFloodElement;
+}
+
+interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncAElement: {
+    prototype: SVGFEFuncAElement;
+    new(): SVGFEFuncAElement;
+}
+
+interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncBElement: {
+    prototype: SVGFEFuncBElement;
+    new(): SVGFEFuncBElement;
+}
+
+interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncGElement: {
+    prototype: SVGFEFuncGElement;
+    new(): SVGFEFuncGElement;
+}
+
+interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
+}
+
+declare var SVGFEFuncRElement: {
+    prototype: SVGFEFuncRElement;
+    new(): SVGFEFuncRElement;
+}
+
+interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly stdDeviationX: SVGAnimatedNumber;
+    readonly stdDeviationY: SVGAnimatedNumber;
+    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEGaussianBlurElement: {
+    prototype: SVGFEGaussianBlurElement;
+    new(): SVGFEGaussianBlurElement;
+}
+
+interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEImageElement: {
+    prototype: SVGFEImageElement;
+    new(): SVGFEImageElement;
+}
+
+interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeElement: {
+    prototype: SVGFEMergeElement;
+    new(): SVGFEMergeElement;
+}
+
+interface SVGFEMergeNodeElement extends SVGElement {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMergeNodeElement: {
+    prototype: SVGFEMergeNodeElement;
+    new(): SVGFEMergeNodeElement;
+}
+
+interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly operator: SVGAnimatedEnumeration;
+    readonly radiusX: SVGAnimatedNumber;
+    readonly radiusY: SVGAnimatedNumber;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEMorphologyElement: {
+    prototype: SVGFEMorphologyElement;
+    new(): SVGFEMorphologyElement;
+    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
+    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
+}
+
+interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly dx: SVGAnimatedNumber;
+    readonly dy: SVGAnimatedNumber;
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEOffsetElement: {
+    prototype: SVGFEOffsetElement;
+    new(): SVGFEOffsetElement;
+}
+
+interface SVGFEPointLightElement extends SVGElement {
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFEPointLightElement: {
+    prototype: SVGFEPointLightElement;
+    new(): SVGFEPointLightElement;
+}
+
+interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    readonly kernelUnitLengthX: SVGAnimatedNumber;
+    readonly kernelUnitLengthY: SVGAnimatedNumber;
+    readonly specularConstant: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly surfaceScale: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpecularLightingElement: {
+    prototype: SVGFESpecularLightingElement;
+    new(): SVGFESpecularLightingElement;
+}
+
+interface SVGFESpotLightElement extends SVGElement {
+    readonly limitingConeAngle: SVGAnimatedNumber;
+    readonly pointsAtX: SVGAnimatedNumber;
+    readonly pointsAtY: SVGAnimatedNumber;
+    readonly pointsAtZ: SVGAnimatedNumber;
+    readonly specularExponent: SVGAnimatedNumber;
+    readonly x: SVGAnimatedNumber;
+    readonly y: SVGAnimatedNumber;
+    readonly z: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFESpotLightElement: {
+    prototype: SVGFESpotLightElement;
+    new(): SVGFESpotLightElement;
+}
+
+interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly in1: SVGAnimatedString;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETileElement: {
+    prototype: SVGFETileElement;
+    new(): SVGFETileElement;
+}
+
+interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
+    readonly baseFrequencyX: SVGAnimatedNumber;
+    readonly baseFrequencyY: SVGAnimatedNumber;
+    readonly numOctaves: SVGAnimatedInteger;
+    readonly seed: SVGAnimatedNumber;
+    readonly stitchTiles: SVGAnimatedEnumeration;
+    readonly type: SVGAnimatedEnumeration;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFETurbulenceElement: {
+    prototype: SVGFETurbulenceElement;
+    new(): SVGFETurbulenceElement;
+    readonly SVG_STITCHTYPE_NOSTITCH: number;
+    readonly SVG_STITCHTYPE_STITCH: number;
+    readonly SVG_STITCHTYPE_UNKNOWN: number;
+    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
+    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
+    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
+}
+
+interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
+    readonly filterResX: SVGAnimatedInteger;
+    readonly filterResY: SVGAnimatedInteger;
+    readonly filterUnits: SVGAnimatedEnumeration;
+    readonly height: SVGAnimatedLength;
+    readonly primitiveUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    setFilterRes(filterResX: number, filterResY: number): void;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGFilterElement: {
+    prototype: SVGFilterElement;
+    new(): SVGFilterElement;
+}
+
+interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGForeignObjectElement: {
+    prototype: SVGForeignObjectElement;
+    new(): SVGForeignObjectElement;
+}
+
+interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGElement: {
+    prototype: SVGGElement;
+    new(): SVGGElement;
+}
+
+interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
+    readonly gradientTransform: SVGAnimatedTransformList;
+    readonly gradientUnits: SVGAnimatedEnumeration;
+    readonly spreadMethod: SVGAnimatedEnumeration;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGGradientElement: {
+    prototype: SVGGradientElement;
+    new(): SVGGradientElement;
+    readonly SVG_SPREADMETHOD_PAD: number;
+    readonly SVG_SPREADMETHOD_REFLECT: number;
+    readonly SVG_SPREADMETHOD_REPEAT: number;
+    readonly SVG_SPREADMETHOD_UNKNOWN: number;
+}
+
+interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly height: SVGAnimatedLength;
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGImageElement: {
+    prototype: SVGImageElement;
+    new(): SVGImageElement;
+}
+
+interface SVGLength {
+    readonly unitType: number;
+    value: number;
+    valueAsString: string;
+    valueInSpecifiedUnits: number;
+    convertToSpecifiedUnits(unitType: number): void;
+    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+declare var SVGLength: {
+    prototype: SVGLength;
+    new(): SVGLength;
+    readonly SVG_LENGTHTYPE_CM: number;
+    readonly SVG_LENGTHTYPE_EMS: number;
+    readonly SVG_LENGTHTYPE_EXS: number;
+    readonly SVG_LENGTHTYPE_IN: number;
+    readonly SVG_LENGTHTYPE_MM: number;
+    readonly SVG_LENGTHTYPE_NUMBER: number;
+    readonly SVG_LENGTHTYPE_PC: number;
+    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
+    readonly SVG_LENGTHTYPE_PT: number;
+    readonly SVG_LENGTHTYPE_PX: number;
+    readonly SVG_LENGTHTYPE_UNKNOWN: number;
+}
+
+interface SVGLengthList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGLength): SVGLength;
+    clear(): void;
+    getItem(index: number): SVGLength;
+    initialize(newItem: SVGLength): SVGLength;
+    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
+    removeItem(index: number): SVGLength;
+    replaceItem(newItem: SVGLength, index: number): SVGLength;
+}
+
+declare var SVGLengthList: {
+    prototype: SVGLengthList;
+    new(): SVGLengthList;
+}
+
+interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGLineElement: {
+    prototype: SVGLineElement;
+    new(): SVGLineElement;
+}
+
+interface SVGLinearGradientElement extends SVGGradientElement {
+    readonly x1: SVGAnimatedLength;
+    readonly x2: SVGAnimatedLength;
+    readonly y1: SVGAnimatedLength;
+    readonly y2: SVGAnimatedLength;
+}
+
+declare var SVGLinearGradientElement: {
+    prototype: SVGLinearGradientElement;
+    new(): SVGLinearGradientElement;
+}
+
+interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    readonly markerHeight: SVGAnimatedLength;
+    readonly markerUnits: SVGAnimatedEnumeration;
+    readonly markerWidth: SVGAnimatedLength;
+    readonly orientAngle: SVGAnimatedAngle;
+    readonly orientType: SVGAnimatedEnumeration;
+    readonly refX: SVGAnimatedLength;
+    readonly refY: SVGAnimatedLength;
+    setOrientToAngle(angle: SVGAngle): void;
+    setOrientToAuto(): void;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMarkerElement: {
+    prototype: SVGMarkerElement;
+    new(): SVGMarkerElement;
+    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
+    readonly SVG_MARKERUNITS_UNKNOWN: number;
+    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
+    readonly SVG_MARKER_ORIENT_ANGLE: number;
+    readonly SVG_MARKER_ORIENT_AUTO: number;
+    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
+}
+
+interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly maskContentUnits: SVGAnimatedEnumeration;
+    readonly maskUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMaskElement: {
+    prototype: SVGMaskElement;
+    new(): SVGMaskElement;
+}
+
+interface SVGMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    flipX(): SVGMatrix;
+    flipY(): SVGMatrix;
+    inverse(): SVGMatrix;
+    multiply(secondMatrix: SVGMatrix): SVGMatrix;
+    rotate(angle: number): SVGMatrix;
+    rotateFromVector(x: number, y: number): SVGMatrix;
+    scale(scaleFactor: number): SVGMatrix;
+    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
+    skewX(angle: number): SVGMatrix;
+    skewY(angle: number): SVGMatrix;
+    translate(x: number, y: number): SVGMatrix;
+}
+
+declare var SVGMatrix: {
+    prototype: SVGMatrix;
+    new(): SVGMatrix;
+}
+
+interface SVGMetadataElement extends SVGElement {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGMetadataElement: {
+    prototype: SVGMetadataElement;
+    new(): SVGMetadataElement;
+}
+
+interface SVGNumber {
+    value: number;
+}
+
+declare var SVGNumber: {
+    prototype: SVGNumber;
+    new(): SVGNumber;
+}
+
+interface SVGNumberList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGNumber): SVGNumber;
+    clear(): void;
+    getItem(index: number): SVGNumber;
+    initialize(newItem: SVGNumber): SVGNumber;
+    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
+    removeItem(index: number): SVGNumber;
+    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
+}
+
+declare var SVGNumberList: {
+    prototype: SVGNumberList;
+    new(): SVGNumberList;
+}
+
+interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
+    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
+    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
+    createSVGPathSegClosePath(): SVGPathSegClosePath;
+    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
+    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
+    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
+    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
+    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
+    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
+    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
+    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
+    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
+    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
+    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
+    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
+    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
+    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
+    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
+    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
+    getPathSegAtLength(distance: number): number;
+    getPointAtLength(distance: number): SVGPoint;
+    getTotalLength(): number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPathElement: {
+    prototype: SVGPathElement;
+    new(): SVGPathElement;
+}
+
+interface SVGPathSeg {
+    readonly pathSegType: number;
+    readonly pathSegTypeAsLetter: string;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+declare var SVGPathSeg: {
+    prototype: SVGPathSeg;
+    new(): SVGPathSeg;
+    readonly PATHSEG_ARC_ABS: number;
+    readonly PATHSEG_ARC_REL: number;
+    readonly PATHSEG_CLOSEPATH: number;
+    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_REL: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
+    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
+    readonly PATHSEG_LINETO_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
+    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
+    readonly PATHSEG_LINETO_REL: number;
+    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
+    readonly PATHSEG_LINETO_VERTICAL_REL: number;
+    readonly PATHSEG_MOVETO_ABS: number;
+    readonly PATHSEG_MOVETO_REL: number;
+    readonly PATHSEG_UNKNOWN: number;
+}
+
+interface SVGPathSegArcAbs extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcAbs: {
+    prototype: SVGPathSegArcAbs;
+    new(): SVGPathSegArcAbs;
+}
+
+interface SVGPathSegArcRel extends SVGPathSeg {
+    angle: number;
+    largeArcFlag: boolean;
+    r1: number;
+    r2: number;
+    sweepFlag: boolean;
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegArcRel: {
+    prototype: SVGPathSegArcRel;
+    new(): SVGPathSegArcRel;
+}
+
+interface SVGPathSegClosePath extends SVGPathSeg {
+}
+
+declare var SVGPathSegClosePath: {
+    prototype: SVGPathSegClosePath;
+    new(): SVGPathSegClosePath;
+}
+
+interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicAbs: {
+    prototype: SVGPathSegCurvetoCubicAbs;
+    new(): SVGPathSegCurvetoCubicAbs;
+}
+
+interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    x2: number;
+    y: number;
+    y1: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicRel: {
+    prototype: SVGPathSegCurvetoCubicRel;
+    new(): SVGPathSegCurvetoCubicRel;
+}
+
+interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothAbs: {
+    prototype: SVGPathSegCurvetoCubicSmoothAbs;
+    new(): SVGPathSegCurvetoCubicSmoothAbs;
+}
+
+interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
+    x: number;
+    x2: number;
+    y: number;
+    y2: number;
+}
+
+declare var SVGPathSegCurvetoCubicSmoothRel: {
+    prototype: SVGPathSegCurvetoCubicSmoothRel;
+    new(): SVGPathSegCurvetoCubicSmoothRel;
+}
+
+interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticAbs: {
+    prototype: SVGPathSegCurvetoQuadraticAbs;
+    new(): SVGPathSegCurvetoQuadraticAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
+    x: number;
+    x1: number;
+    y: number;
+    y1: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticRel: {
+    prototype: SVGPathSegCurvetoQuadraticRel;
+    new(): SVGPathSegCurvetoQuadraticRel;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
+    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegCurvetoQuadraticSmoothRel: {
+    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
+    new(): SVGPathSegCurvetoQuadraticSmoothRel;
+}
+
+interface SVGPathSegLinetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoAbs: {
+    prototype: SVGPathSegLinetoAbs;
+    new(): SVGPathSegLinetoAbs;
+}
+
+interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalAbs: {
+    prototype: SVGPathSegLinetoHorizontalAbs;
+    new(): SVGPathSegLinetoHorizontalAbs;
+}
+
+interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
+    x: number;
+}
+
+declare var SVGPathSegLinetoHorizontalRel: {
+    prototype: SVGPathSegLinetoHorizontalRel;
+    new(): SVGPathSegLinetoHorizontalRel;
+}
+
+interface SVGPathSegLinetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegLinetoRel: {
+    prototype: SVGPathSegLinetoRel;
+    new(): SVGPathSegLinetoRel;
+}
+
+interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalAbs: {
+    prototype: SVGPathSegLinetoVerticalAbs;
+    new(): SVGPathSegLinetoVerticalAbs;
+}
+
+interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
+    y: number;
+}
+
+declare var SVGPathSegLinetoVerticalRel: {
+    prototype: SVGPathSegLinetoVerticalRel;
+    new(): SVGPathSegLinetoVerticalRel;
+}
+
+interface SVGPathSegList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPathSeg): SVGPathSeg;
+    clear(): void;
+    getItem(index: number): SVGPathSeg;
+    initialize(newItem: SVGPathSeg): SVGPathSeg;
+    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
+    removeItem(index: number): SVGPathSeg;
+    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
+}
+
+declare var SVGPathSegList: {
+    prototype: SVGPathSegList;
+    new(): SVGPathSegList;
+}
+
+interface SVGPathSegMovetoAbs extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoAbs: {
+    prototype: SVGPathSegMovetoAbs;
+    new(): SVGPathSegMovetoAbs;
+}
+
+interface SVGPathSegMovetoRel extends SVGPathSeg {
+    x: number;
+    y: number;
+}
+
+declare var SVGPathSegMovetoRel: {
+    prototype: SVGPathSegMovetoRel;
+    new(): SVGPathSegMovetoRel;
+}
+
+interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
+    readonly height: SVGAnimatedLength;
+    readonly patternContentUnits: SVGAnimatedEnumeration;
+    readonly patternTransform: SVGAnimatedTransformList;
+    readonly patternUnits: SVGAnimatedEnumeration;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPatternElement: {
+    prototype: SVGPatternElement;
+    new(): SVGPatternElement;
+}
+
+interface SVGPoint {
+    x: number;
+    y: number;
+    matrixTransform(matrix: SVGMatrix): SVGPoint;
+}
+
+declare var SVGPoint: {
+    prototype: SVGPoint;
+    new(): SVGPoint;
+}
+
+interface SVGPointList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGPoint): SVGPoint;
+    clear(): void;
+    getItem(index: number): SVGPoint;
+    initialize(newItem: SVGPoint): SVGPoint;
+    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
+    removeItem(index: number): SVGPoint;
+    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
+}
+
+declare var SVGPointList: {
+    prototype: SVGPointList;
+    new(): SVGPointList;
+}
+
+interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolygonElement: {
+    prototype: SVGPolygonElement;
+    new(): SVGPolygonElement;
+}
+
+interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGPolylineElement: {
+    prototype: SVGPolylineElement;
+    new(): SVGPolylineElement;
+}
+
+interface SVGPreserveAspectRatio {
+    align: number;
+    meetOrSlice: number;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+declare var SVGPreserveAspectRatio: {
+    prototype: SVGPreserveAspectRatio;
+    new(): SVGPreserveAspectRatio;
+    readonly SVG_MEETORSLICE_MEET: number;
+    readonly SVG_MEETORSLICE_SLICE: number;
+    readonly SVG_MEETORSLICE_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
+    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
+    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
+}
+
+interface SVGRadialGradientElement extends SVGGradientElement {
+    readonly cx: SVGAnimatedLength;
+    readonly cy: SVGAnimatedLength;
+    readonly fx: SVGAnimatedLength;
+    readonly fy: SVGAnimatedLength;
+    readonly r: SVGAnimatedLength;
+}
+
+declare var SVGRadialGradientElement: {
+    prototype: SVGRadialGradientElement;
+    new(): SVGRadialGradientElement;
+}
+
+interface SVGRect {
+    height: number;
+    width: number;
+    x: number;
+    y: number;
+}
+
+declare var SVGRect: {
+    prototype: SVGRect;
+    new(): SVGRect;
+}
+
+interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    readonly height: SVGAnimatedLength;
+    readonly rx: SVGAnimatedLength;
+    readonly ry: SVGAnimatedLength;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGRectElement: {
+    prototype: SVGRectElement;
+    new(): SVGRectElement;
+}
+
+interface SVGSVGElementEventMap extends SVGElementEventMap {
+    "SVGAbort": Event;
+    "SVGError": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "SVGUnload": Event;
+    "SVGZoom": SVGZoomEvent;
+}
+
+interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    contentScriptType: string;
+    contentStyleType: string;
+    currentScale: number;
+    readonly currentTranslate: SVGPoint;
+    readonly height: SVGAnimatedLength;
+    onabort: (this: SVGSVGElement, ev: Event) => any;
+    onerror: (this: SVGSVGElement, ev: Event) => any;
+    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
+    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
+    onunload: (this: SVGSVGElement, ev: Event) => any;
+    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
+    readonly pixelUnitToMillimeterX: number;
+    readonly pixelUnitToMillimeterY: number;
+    readonly screenPixelToMillimeterX: number;
+    readonly screenPixelToMillimeterY: number;
+    readonly viewport: SVGRect;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
+    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
+    createSVGAngle(): SVGAngle;
+    createSVGLength(): SVGLength;
+    createSVGMatrix(): SVGMatrix;
+    createSVGNumber(): SVGNumber;
+    createSVGPoint(): SVGPoint;
+    createSVGRect(): SVGRect;
+    createSVGTransform(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    deselectAll(): void;
+    forceRedraw(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getCurrentTime(): number;
+    getElementById(elementId: string): Element;
+    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
+    pauseAnimations(): void;
+    setCurrentTime(seconds: number): void;
+    suspendRedraw(maxWaitMilliseconds: number): number;
+    unpauseAnimations(): void;
+    unsuspendRedraw(suspendHandleID: number): void;
+    unsuspendRedrawAll(): void;
+    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSVGElement: {
+    prototype: SVGSVGElement;
+    new(): SVGSVGElement;
+}
+
+interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGScriptElement: {
+    prototype: SVGScriptElement;
+    new(): SVGScriptElement;
+}
+
+interface SVGStopElement extends SVGElement, SVGStylable {
+    readonly offset: SVGAnimatedNumber;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStopElement: {
+    prototype: SVGStopElement;
+    new(): SVGStopElement;
+}
+
+interface SVGStringList {
+    readonly numberOfItems: number;
+    appendItem(newItem: string): string;
+    clear(): void;
+    getItem(index: number): string;
+    initialize(newItem: string): string;
+    insertItemBefore(newItem: string, index: number): string;
+    removeItem(index: number): string;
+    replaceItem(newItem: string, index: number): string;
+}
+
+declare var SVGStringList: {
+    prototype: SVGStringList;
+    new(): SVGStringList;
+}
+
+interface SVGStyleElement extends SVGElement, SVGLangSpace {
+    disabled: boolean;
+    media: string;
+    title: string;
+    type: string;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGStyleElement: {
+    prototype: SVGStyleElement;
+    new(): SVGStyleElement;
+}
+
+interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSwitchElement: {
+    prototype: SVGSwitchElement;
+    new(): SVGSwitchElement;
+}
+
+interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGSymbolElement: {
+    prototype: SVGSymbolElement;
+    new(): SVGSymbolElement;
+}
+
+interface SVGTSpanElement extends SVGTextPositioningElement {
+}
+
+declare var SVGTSpanElement: {
+    prototype: SVGTSpanElement;
+    new(): SVGTSpanElement;
+}
+
+interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
+    readonly lengthAdjust: SVGAnimatedEnumeration;
+    readonly textLength: SVGAnimatedLength;
+    getCharNumAtPosition(point: SVGPoint): number;
+    getComputedTextLength(): number;
+    getEndPositionOfChar(charnum: number): SVGPoint;
+    getExtentOfChar(charnum: number): SVGRect;
+    getNumberOfChars(): number;
+    getRotationOfChar(charnum: number): number;
+    getStartPositionOfChar(charnum: number): SVGPoint;
+    getSubStringLength(charnum: number, nchars: number): number;
+    selectSubString(charnum: number, nchars: number): void;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTextContentElement: {
+    prototype: SVGTextContentElement;
+    new(): SVGTextContentElement;
+    readonly LENGTHADJUST_SPACING: number;
+    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
+    readonly LENGTHADJUST_UNKNOWN: number;
+}
+
+interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
+}
+
+declare var SVGTextElement: {
+    prototype: SVGTextElement;
+    new(): SVGTextElement;
+}
+
+interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
+    readonly method: SVGAnimatedEnumeration;
+    readonly spacing: SVGAnimatedEnumeration;
+    readonly startOffset: SVGAnimatedLength;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+declare var SVGTextPathElement: {
+    prototype: SVGTextPathElement;
+    new(): SVGTextPathElement;
+    readonly TEXTPATH_METHODTYPE_ALIGN: number;
+    readonly TEXTPATH_METHODTYPE_STRETCH: number;
+    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
+    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
+    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
+    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
+}
+
+interface SVGTextPositioningElement extends SVGTextContentElement {
+    readonly dx: SVGAnimatedLengthList;
+    readonly dy: SVGAnimatedLengthList;
+    readonly rotate: SVGAnimatedNumberList;
+    readonly x: SVGAnimatedLengthList;
+    readonly y: SVGAnimatedLengthList;
+}
+
+declare var SVGTextPositioningElement: {
+    prototype: SVGTextPositioningElement;
+    new(): SVGTextPositioningElement;
+}
+
+interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGTitleElement: {
+    prototype: SVGTitleElement;
+    new(): SVGTitleElement;
+}
+
+interface SVGTransform {
+    readonly angle: number;
+    readonly matrix: SVGMatrix;
+    readonly type: number;
+    setMatrix(matrix: SVGMatrix): void;
+    setRotate(angle: number, cx: number, cy: number): void;
+    setScale(sx: number, sy: number): void;
+    setSkewX(angle: number): void;
+    setSkewY(angle: number): void;
+    setTranslate(tx: number, ty: number): void;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+declare var SVGTransform: {
+    prototype: SVGTransform;
+    new(): SVGTransform;
+    readonly SVG_TRANSFORM_MATRIX: number;
+    readonly SVG_TRANSFORM_ROTATE: number;
+    readonly SVG_TRANSFORM_SCALE: number;
+    readonly SVG_TRANSFORM_SKEWX: number;
+    readonly SVG_TRANSFORM_SKEWY: number;
+    readonly SVG_TRANSFORM_TRANSLATE: number;
+    readonly SVG_TRANSFORM_UNKNOWN: number;
+}
+
+interface SVGTransformList {
+    readonly numberOfItems: number;
+    appendItem(newItem: SVGTransform): SVGTransform;
+    clear(): void;
+    consolidate(): SVGTransform;
+    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+    getItem(index: number): SVGTransform;
+    initialize(newItem: SVGTransform): SVGTransform;
+    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
+    removeItem(index: number): SVGTransform;
+    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
+}
+
+declare var SVGTransformList: {
+    prototype: SVGTransformList;
+    new(): SVGTransformList;
+}
+
+interface SVGUnitTypes {
+    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
+    readonly SVG_UNIT_TYPE_UNKNOWN: number;
+    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
+}
+declare var SVGUnitTypes: SVGUnitTypes;
+
+interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
+    readonly animatedInstanceRoot: SVGElementInstance;
+    readonly height: SVGAnimatedLength;
+    readonly instanceRoot: SVGElementInstance;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGUseElement: {
+    prototype: SVGUseElement;
+    new(): SVGUseElement;
+}
+
+interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
+    readonly viewTarget: SVGStringList;
+    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var SVGViewElement: {
+    prototype: SVGViewElement;
+    new(): SVGViewElement;
+}
+
+interface SVGZoomAndPan {
+    readonly zoomAndPan: number;
+}
+
+declare var SVGZoomAndPan: {
+    readonly SVG_ZOOMANDPAN_DISABLE: number;
+    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
+    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
+}
+
+interface SVGZoomEvent extends UIEvent {
+    readonly newScale: number;
+    readonly newTranslate: SVGPoint;
+    readonly previousScale: number;
+    readonly previousTranslate: SVGPoint;
+    readonly zoomRectScreen: SVGRect;
+}
+
+declare var SVGZoomEvent: {
+    prototype: SVGZoomEvent;
+    new(): SVGZoomEvent;
+}
+
+interface ScreenEventMap {
+    "MSOrientationChange": Event;
+}
+
+interface Screen extends EventTarget {
+    readonly availHeight: number;
+    readonly availWidth: number;
+    bufferDepth: number;
+    readonly colorDepth: number;
+    readonly deviceXDPI: number;
+    readonly deviceYDPI: number;
+    readonly fontSmoothingEnabled: boolean;
+    readonly height: number;
+    readonly logicalXDPI: number;
+    readonly logicalYDPI: number;
+    readonly msOrientation: string;
+    onmsorientationchange: (this: Screen, ev: Event) => any;
+    readonly pixelDepth: number;
+    readonly systemXDPI: number;
+    readonly systemYDPI: number;
+    readonly width: number;
+    msLockOrientation(orientations: string | string[]): boolean;
+    msUnlockOrientation(): void;
+    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Screen: {
+    prototype: Screen;
+    new(): Screen;
+}
+
+interface ScriptNotifyEvent extends Event {
+    readonly callingUri: string;
+    readonly value: string;
+}
+
+declare var ScriptNotifyEvent: {
+    prototype: ScriptNotifyEvent;
+    new(): ScriptNotifyEvent;
+}
+
+interface ScriptProcessorNodeEventMap {
+    "audioprocess": AudioProcessingEvent;
+}
+
+interface ScriptProcessorNode extends AudioNode {
+    readonly bufferSize: number;
+    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
+    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var ScriptProcessorNode: {
+    prototype: ScriptProcessorNode;
+    new(): ScriptProcessorNode;
+}
+
+interface Selection {
+    readonly anchorNode: Node;
+    readonly anchorOffset: number;
+    readonly focusNode: Node;
+    readonly focusOffset: number;
+    readonly isCollapsed: boolean;
+    readonly rangeCount: number;
+    readonly type: string;
+    addRange(range: Range): void;
+    collapse(parentNode: Node, offset: number): void;
+    collapseToEnd(): void;
+    collapseToStart(): void;
+    containsNode(node: Node, partlyContained: boolean): boolean;
+    deleteFromDocument(): void;
+    empty(): void;
+    extend(newNode: Node, offset: number): void;
+    getRangeAt(index: number): Range;
+    removeAllRanges(): void;
+    removeRange(range: Range): void;
+    selectAllChildren(parentNode: Node): void;
+    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
+    toString(): string;
+}
+
+declare var Selection: {
+    prototype: Selection;
+    new(): Selection;
+}
+
+interface SourceBuffer extends EventTarget {
+    appendWindowEnd: number;
+    appendWindowStart: number;
+    readonly audioTracks: AudioTrackList;
+    readonly buffered: TimeRanges;
+    mode: string;
+    timestampOffset: number;
+    readonly updating: boolean;
+    readonly videoTracks: VideoTrackList;
+    abort(): void;
+    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
+    appendStream(stream: MSStream, maxSize?: number): void;
+    remove(start: number, end: number): void;
+}
+
+declare var SourceBuffer: {
+    prototype: SourceBuffer;
+    new(): SourceBuffer;
+}
+
+interface SourceBufferList extends EventTarget {
+    readonly length: number;
+    item(index: number): SourceBuffer;
+    [index: number]: SourceBuffer;
+}
+
+declare var SourceBufferList: {
+    prototype: SourceBufferList;
+    new(): SourceBufferList;
+}
+
+interface StereoPannerNode extends AudioNode {
+    readonly pan: AudioParam;
+}
+
+declare var StereoPannerNode: {
+    prototype: StereoPannerNode;
+    new(): StereoPannerNode;
+}
+
+interface Storage {
+    readonly length: number;
+    clear(): void;
+    getItem(key: string): string | null;
+    key(index: number): string | null;
+    removeItem(key: string): void;
+    setItem(key: string, data: string): void;
+    [key: string]: any;
+    [index: number]: string;
+}
+
+declare var Storage: {
+    prototype: Storage;
+    new(): Storage;
+}
+
+interface StorageEvent extends Event {
+    readonly url: string;
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    storageArea?: Storage;
+}
+
+declare var StorageEvent: {
+    prototype: StorageEvent;
+    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
+}
+
+interface StyleMedia {
+    readonly type: string;
+    matchMedium(mediaquery: string): boolean;
+}
+
+declare var StyleMedia: {
+    prototype: StyleMedia;
+    new(): StyleMedia;
+}
+
+interface StyleSheet {
+    disabled: boolean;
+    readonly href: string;
+    readonly media: MediaList;
+    readonly ownerNode: Node;
+    readonly parentStyleSheet: StyleSheet;
+    readonly title: string;
+    readonly type: string;
+}
+
+declare var StyleSheet: {
+    prototype: StyleSheet;
+    new(): StyleSheet;
+}
+
+interface StyleSheetList {
+    readonly length: number;
+    item(index?: number): StyleSheet;
+    [index: number]: StyleSheet;
+}
+
+declare var StyleSheetList: {
+    prototype: StyleSheetList;
+    new(): StyleSheetList;
+}
+
+interface StyleSheetPageList {
+    readonly length: number;
+    item(index: number): CSSPageRule;
+    [index: number]: CSSPageRule;
+}
+
+declare var StyleSheetPageList: {
+    prototype: StyleSheetPageList;
+    new(): StyleSheetPageList;
+}
+
+interface SubtleCrypto {
+    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
+    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
+    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
+    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
+    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
+    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
+    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
+    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
+    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
+    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
+    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
+    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
+    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
+    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
+}
+
+declare var SubtleCrypto: {
+    prototype: SubtleCrypto;
+    new(): SubtleCrypto;
+}
+
+interface Text extends CharacterData {
+    readonly wholeText: string;
+    readonly assignedSlot: HTMLSlotElement | null;
+    splitText(offset: number): Text;
+}
+
+declare var Text: {
+    prototype: Text;
+    new(): Text;
+}
+
+interface TextEvent extends UIEvent {
+    readonly data: string;
+    readonly inputMethod: number;
+    readonly locale: string;
+    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+declare var TextEvent: {
+    prototype: TextEvent;
+    new(): TextEvent;
+    readonly DOM_INPUT_METHOD_DROP: number;
+    readonly DOM_INPUT_METHOD_HANDWRITING: number;
+    readonly DOM_INPUT_METHOD_IME: number;
+    readonly DOM_INPUT_METHOD_KEYBOARD: number;
+    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
+    readonly DOM_INPUT_METHOD_OPTION: number;
+    readonly DOM_INPUT_METHOD_PASTE: number;
+    readonly DOM_INPUT_METHOD_SCRIPT: number;
+    readonly DOM_INPUT_METHOD_UNKNOWN: number;
+    readonly DOM_INPUT_METHOD_VOICE: number;
+}
+
+interface TextMetrics {
+    readonly width: number;
+}
+
+declare var TextMetrics: {
+    prototype: TextMetrics;
+    new(): TextMetrics;
+}
+
+interface TextTrackEventMap {
+    "cuechange": Event;
+    "error": ErrorEvent;
+    "load": Event;
+}
+
+interface TextTrack extends EventTarget {
+    readonly activeCues: TextTrackCueList;
+    readonly cues: TextTrackCueList;
+    readonly inBandMetadataTrackDispatchType: string;
+    readonly kind: string;
+    readonly label: string;
+    readonly language: string;
+    mode: any;
+    oncuechange: (this: TextTrack, ev: Event) => any;
+    onerror: (this: TextTrack, ev: ErrorEvent) => any;
+    onload: (this: TextTrack, ev: Event) => any;
+    readonly readyState: number;
+    addCue(cue: TextTrackCue): void;
+    removeCue(cue: TextTrackCue): void;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrack: {
+    prototype: TextTrack;
+    new(): TextTrack;
+    readonly DISABLED: number;
+    readonly ERROR: number;
+    readonly HIDDEN: number;
+    readonly LOADED: number;
+    readonly LOADING: number;
+    readonly NONE: number;
+    readonly SHOWING: number;
+}
+
+interface TextTrackCueEventMap {
+    "enter": Event;
+    "exit": Event;
+}
+
+interface TextTrackCue extends EventTarget {
+    endTime: number;
+    id: string;
+    onenter: (this: TextTrackCue, ev: Event) => any;
+    onexit: (this: TextTrackCue, ev: Event) => any;
+    pauseOnExit: boolean;
+    startTime: number;
+    text: string;
+    readonly track: TextTrack;
+    getCueAsHTML(): DocumentFragment;
+    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var TextTrackCue: {
+    prototype: TextTrackCue;
+    new(startTime: number, endTime: number, text: string): TextTrackCue;
+}
+
+interface TextTrackCueList {
+    readonly length: number;
+    getCueById(id: string): TextTrackCue;
+    item(index: number): TextTrackCue;
+    [index: number]: TextTrackCue;
+}
+
+declare var TextTrackCueList: {
+    prototype: TextTrackCueList;
+    new(): TextTrackCueList;
+}
+
+interface TextTrackListEventMap {
+    "addtrack": TrackEvent;
+}
+
+interface TextTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
+    item(index: number): TextTrack;
+    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: TextTrack;
+}
+
+declare var TextTrackList: {
+    prototype: TextTrackList;
+    new(): TextTrackList;
+}
+
+interface TimeRanges {
+    readonly length: number;
+    end(index: number): number;
+    start(index: number): number;
+}
+
+declare var TimeRanges: {
+    prototype: TimeRanges;
+    new(): TimeRanges;
+}
+
+interface Touch {
+    readonly clientX: number;
+    readonly clientY: number;
+    readonly identifier: number;
+    readonly pageX: number;
+    readonly pageY: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly target: EventTarget;
+}
+
+declare var Touch: {
+    prototype: Touch;
+    new(): Touch;
+}
+
+interface TouchEvent extends UIEvent {
+    readonly altKey: boolean;
+    readonly changedTouches: TouchList;
+    readonly ctrlKey: boolean;
+    readonly metaKey: boolean;
+    readonly shiftKey: boolean;
+    readonly targetTouches: TouchList;
+    readonly touches: TouchList;
+}
+
+declare var TouchEvent: {
+    prototype: TouchEvent;
+    new(): TouchEvent;
+}
+
+interface TouchList {
+    readonly length: number;
+    item(index: number): Touch | null;
+    [index: number]: Touch;
+}
+
+declare var TouchList: {
+    prototype: TouchList;
+    new(): TouchList;
+}
+
+interface TrackEvent extends Event {
+    readonly track: any;
+}
+
+declare var TrackEvent: {
+    prototype: TrackEvent;
+    new(): TrackEvent;
+}
+
+interface TransitionEvent extends Event {
+    readonly elapsedTime: number;
+    readonly propertyName: string;
+    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
+}
+
+declare var TransitionEvent: {
+    prototype: TransitionEvent;
+    new(): TransitionEvent;
+}
+
+interface TreeWalker {
+    currentNode: Node;
+    readonly expandEntityReferences: boolean;
+    readonly filter: NodeFilter;
+    readonly root: Node;
+    readonly whatToShow: number;
+    firstChild(): Node;
+    lastChild(): Node;
+    nextNode(): Node;
+    nextSibling(): Node;
+    parentNode(): Node;
+    previousNode(): Node;
+    previousSibling(): Node;
+}
+
+declare var TreeWalker: {
+    prototype: TreeWalker;
+    new(): TreeWalker;
+}
+
+interface UIEvent extends Event {
+    readonly detail: number;
+    readonly view: Window;
+    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
+}
+
+declare var UIEvent: {
+    prototype: UIEvent;
+    new(type: string, eventInitDict?: UIEventInit): UIEvent;
+}
+
+interface URL {
+    hash: string;
+    host: string;
+    hostname: string;
+    href: string;
+    readonly origin: string;
+    password: string;
+    pathname: string;
+    port: string;
+    protocol: string;
+    search: string;
+    username: string;
+    toString(): string;
+}
+
+declare var URL: {
+    prototype: URL;
+    new(url: string, base?: string): URL;
+    createObjectURL(object: any, options?: ObjectURLOptions): string;
+    revokeObjectURL(url: string): void;
+}
+
+interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
+    readonly mediaType: string;
+}
+
+declare var UnviewableContentIdentifiedEvent: {
+    prototype: UnviewableContentIdentifiedEvent;
+    new(): UnviewableContentIdentifiedEvent;
+}
+
+interface ValidityState {
+    readonly badInput: boolean;
+    readonly customError: boolean;
+    readonly patternMismatch: boolean;
+    readonly rangeOverflow: boolean;
+    readonly rangeUnderflow: boolean;
+    readonly stepMismatch: boolean;
+    readonly tooLong: boolean;
+    readonly typeMismatch: boolean;
+    readonly valid: boolean;
+    readonly valueMissing: boolean;
+}
+
+declare var ValidityState: {
+    prototype: ValidityState;
+    new(): ValidityState;
+}
+
+interface VideoPlaybackQuality {
+    readonly corruptedVideoFrames: number;
+    readonly creationTime: number;
+    readonly droppedVideoFrames: number;
+    readonly totalFrameDelay: number;
+    readonly totalVideoFrames: number;
+}
+
+declare var VideoPlaybackQuality: {
+    prototype: VideoPlaybackQuality;
+    new(): VideoPlaybackQuality;
+}
+
+interface VideoTrack {
+    readonly id: string;
+    kind: string;
+    readonly label: string;
+    language: string;
+    selected: boolean;
+    readonly sourceBuffer: SourceBuffer;
+}
+
+declare var VideoTrack: {
+    prototype: VideoTrack;
+    new(): VideoTrack;
+}
+
+interface VideoTrackListEventMap {
+    "addtrack": TrackEvent;
+    "change": Event;
+    "removetrack": TrackEvent;
+}
+
+interface VideoTrackList extends EventTarget {
+    readonly length: number;
+    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    onchange: (this: VideoTrackList, ev: Event) => any;
+    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
+    readonly selectedIndex: number;
+    getTrackById(id: string): VideoTrack | null;
+    item(index: number): VideoTrack;
+    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    [index: number]: VideoTrack;
+}
+
+declare var VideoTrackList: {
+    prototype: VideoTrackList;
+    new(): VideoTrackList;
+}
+
+interface WEBGL_compressed_texture_s3tc {
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+declare var WEBGL_compressed_texture_s3tc: {
+    prototype: WEBGL_compressed_texture_s3tc;
+    new(): WEBGL_compressed_texture_s3tc;
+    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
+    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
+    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+}
+
+interface WEBGL_debug_renderer_info {
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+declare var WEBGL_debug_renderer_info: {
+    prototype: WEBGL_debug_renderer_info;
+    new(): WEBGL_debug_renderer_info;
+    readonly UNMASKED_RENDERER_WEBGL: number;
+    readonly UNMASKED_VENDOR_WEBGL: number;
+}
+
+interface WEBGL_depth_texture {
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+declare var WEBGL_depth_texture: {
+    prototype: WEBGL_depth_texture;
+    new(): WEBGL_depth_texture;
+    readonly UNSIGNED_INT_24_8_WEBGL: number;
+}
+
+interface WaveShaperNode extends AudioNode {
+    curve: Float32Array | null;
+    oversample: string;
+}
+
+declare var WaveShaperNode: {
+    prototype: WaveShaperNode;
+    new(): WaveShaperNode;
+}
+
+interface WebGLActiveInfo {
+    readonly name: string;
+    readonly size: number;
+    readonly type: number;
+}
+
+declare var WebGLActiveInfo: {
+    prototype: WebGLActiveInfo;
+    new(): WebGLActiveInfo;
+}
+
+interface WebGLBuffer extends WebGLObject {
+}
+
+declare var WebGLBuffer: {
+    prototype: WebGLBuffer;
+    new(): WebGLBuffer;
+}
+
+interface WebGLContextEvent extends Event {
+    readonly statusMessage: string;
+}
+
+declare var WebGLContextEvent: {
+    prototype: WebGLContextEvent;
+    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
+}
+
+interface WebGLFramebuffer extends WebGLObject {
+}
+
+declare var WebGLFramebuffer: {
+    prototype: WebGLFramebuffer;
+    new(): WebGLFramebuffer;
+}
+
+interface WebGLObject {
+}
+
+declare var WebGLObject: {
+    prototype: WebGLObject;
+    new(): WebGLObject;
+}
+
+interface WebGLProgram extends WebGLObject {
+}
+
+declare var WebGLProgram: {
+    prototype: WebGLProgram;
+    new(): WebGLProgram;
+}
+
+interface WebGLRenderbuffer extends WebGLObject {
+}
+
+declare var WebGLRenderbuffer: {
+    prototype: WebGLRenderbuffer;
+    new(): WebGLRenderbuffer;
+}
+
+interface WebGLRenderingContext {
+    readonly canvas: HTMLCanvasElement;
+    readonly drawingBufferHeight: number;
+    readonly drawingBufferWidth: number;
+    activeTexture(texture: number): void;
+    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
+    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
+    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
+    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
+    bindTexture(target: number, texture: WebGLTexture | null): void;
+    blendColor(red: number, green: number, blue: number, alpha: number): void;
+    blendEquation(mode: number): void;
+    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
+    blendFunc(sfactor: number, dfactor: number): void;
+    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
+    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
+    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
+    checkFramebufferStatus(target: number): number;
+    clear(mask: number): void;
+    clearColor(red: number, green: number, blue: number, alpha: number): void;
+    clearDepth(depth: number): void;
+    clearStencil(s: number): void;
+    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
+    compileShader(shader: WebGLShader | null): void;
+    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
+    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
+    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
+    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
+    createBuffer(): WebGLBuffer | null;
+    createFramebuffer(): WebGLFramebuffer | null;
+    createProgram(): WebGLProgram | null;
+    createRenderbuffer(): WebGLRenderbuffer | null;
+    createShader(type: number): WebGLShader | null;
+    createTexture(): WebGLTexture | null;
+    cullFace(mode: number): void;
+    deleteBuffer(buffer: WebGLBuffer | null): void;
+    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
+    deleteProgram(program: WebGLProgram | null): void;
+    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
+    deleteShader(shader: WebGLShader | null): void;
+    deleteTexture(texture: WebGLTexture | null): void;
+    depthFunc(func: number): void;
+    depthMask(flag: boolean): void;
+    depthRange(zNear: number, zFar: number): void;
+    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
+    disable(cap: number): void;
+    disableVertexAttribArray(index: number): void;
+    drawArrays(mode: number, first: number, count: number): void;
+    drawElements(mode: number, count: number, type: number, offset: number): 
void;
+    enable(cap: number): void;
+    enableVertexAttribArray(index: number): void;
+    finish(): void;
+    flush(): void;
+    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
+    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
+    frontFace(mode: number): void;
+    generateMipmap(target: number): void;
+    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
+    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
+    getAttribLocation(program: WebGLProgram | null, name: string): number;
+    getBufferParameter(target: number, pname: number): any;
+    getContextAttributes(): WebGLContextAttributes;
+    getError(): number;
+    getExtension(name: string): any;
+    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
+    getParameter(pname: number): any;
+    getProgramInfoLog(program: WebGLProgram | null): string | null;
+    getProgramParameter(program: WebGLProgram | null, pname: number): any;
+    getRenderbufferParameter(target: number, pname: number): any;
+    getShaderInfoLog(shader: WebGLShader | null): string | null;
+    getShaderParameter(shader: WebGLShader | null, pname: number): any;
+    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
+    getShaderSource(shader: WebGLShader | null): string | null;
+    getSupportedExtensions(): string[] | null;
+    getTexParameter(target: number, pname: number): any;
+    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
+    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
+    getVertexAttrib(index: number, pname: number): any;
+    getVertexAttribOffset(index: number, pname: number): number;
+    hint(target: number, mode: number): void;
+    isBuffer(buffer: WebGLBuffer | null): boolean;
+    isContextLost(): boolean;
+    isEnabled(cap: number): boolean;
+    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
+    isProgram(program: WebGLProgram | null): boolean;
+    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
+    isShader(shader: WebGLShader | null): boolean;
+    isTexture(texture: WebGLTexture | null): boolean;
+    lineWidth(width: number): void;
+    linkProgram(program: WebGLProgram | null): void;
+    pixelStorei(pname: number, param: number): void;
+    polygonOffset(factor: number, units: number): void;
+    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
+    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
+    sampleCoverage(value: number, invert: boolean): void;
+    scissor(x: number, y: number, width: number, height: number): void;
+    shaderSource(shader: WebGLShader | null, source: string): void;
+    stencilFunc(func: number, ref: number, mask: number): void;
+    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
+    stencilMask(mask: number): void;
+    stencilMaskSeparate(face: number, mask: number): void;
+    stencilOp(fail: number, zfail: number, zpass: number): void;
+    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
+    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
+    texParameterf(target: number, pname: number, param: number): void;
+    texParameteri(target: number, pname: number, param: number): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
+    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
+    uniform1f(location: WebGLUniformLocation | null, x: number): void;
+    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform1i(location: WebGLUniformLocation | null, x: number): void;
+    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
+    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
+    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
+    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
+    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
+    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
+    useProgram(program: WebGLProgram | null): void;
+    validateProgram(program: WebGLProgram | null): void;
+    vertexAttrib1f(indx: number, x: number): void;
+    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib2f(indx: number, x: number, y: number): void;
+    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
+    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
+    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
+    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
+    viewport(x: number, y: number, width: number, height: number): void;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+declare var WebGLRenderingContext: {
+    prototype: WebGLRenderingContext;
+    new(): WebGLRenderingContext;
+    readonly ACTIVE_ATTRIBUTES: number;
+    readonly ACTIVE_TEXTURE: number;
+    readonly ACTIVE_UNIFORMS: number;
+    readonly ALIASED_LINE_WIDTH_RANGE: number;
+    readonly ALIASED_POINT_SIZE_RANGE: number;
+    readonly ALPHA: number;
+    readonly ALPHA_BITS: number;
+    readonly ALWAYS: number;
+    readonly ARRAY_BUFFER: number;
+    readonly ARRAY_BUFFER_BINDING: number;
+    readonly ATTACHED_SHADERS: number;
+    readonly BACK: number;
+    readonly BLEND: number;
+    readonly BLEND_COLOR: number;
+    readonly BLEND_DST_ALPHA: number;
+    readonly BLEND_DST_RGB: number;
+    readonly BLEND_EQUATION: number;
+    readonly BLEND_EQUATION_ALPHA: number;
+    readonly BLEND_EQUATION_RGB: number;
+    readonly BLEND_SRC_ALPHA: number;
+    readonly BLEND_SRC_RGB: number;
+    readonly BLUE_BITS: number;
+    readonly BOOL: number;
+    readonly BOOL_VEC2: number;
+    readonly BOOL_VEC3: number;
+    readonly BOOL_VEC4: number;
+    readonly BROWSER_DEFAULT_WEBGL: number;
+    readonly BUFFER_SIZE: number;
+    readonly BUFFER_USAGE: number;
+    readonly BYTE: number;
+    readonly CCW: number;
+    readonly CLAMP_TO_EDGE: number;
+    readonly COLOR_ATTACHMENT0: number;
+    readonly COLOR_BUFFER_BIT: number;
+    readonly COLOR_CLEAR_VALUE: number;
+    readonly COLOR_WRITEMASK: number;
+    readonly COMPILE_STATUS: number;
+    readonly COMPRESSED_TEXTURE_FORMATS: number;
+    readonly CONSTANT_ALPHA: number;
+    readonly CONSTANT_COLOR: number;
+    readonly CONTEXT_LOST_WEBGL: number;
+    readonly CULL_FACE: number;
+    readonly CULL_FACE_MODE: number;
+    readonly CURRENT_PROGRAM: number;
+    readonly CURRENT_VERTEX_ATTRIB: number;
+    readonly CW: number;
+    readonly DECR: number;
+    readonly DECR_WRAP: number;
+    readonly DELETE_STATUS: number;
+    readonly DEPTH_ATTACHMENT: number;
+    readonly DEPTH_BITS: number;
+    readonly DEPTH_BUFFER_BIT: number;
+    readonly DEPTH_CLEAR_VALUE: number;
+    readonly DEPTH_COMPONENT: number;
+    readonly DEPTH_COMPONENT16: number;
+    readonly DEPTH_FUNC: number;
+    readonly DEPTH_RANGE: number;
+    readonly DEPTH_STENCIL: number;
+    readonly DEPTH_STENCIL_ATTACHMENT: number;
+    readonly DEPTH_TEST: number;
+    readonly DEPTH_WRITEMASK: number;
+    readonly DITHER: number;
+    readonly DONT_CARE: number;
+    readonly DST_ALPHA: number;
+    readonly DST_COLOR: number;
+    readonly DYNAMIC_DRAW: number;
+    readonly ELEMENT_ARRAY_BUFFER: number;
+    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
+    readonly EQUAL: number;
+    readonly FASTEST: number;
+    readonly FLOAT: number;
+    readonly FLOAT_MAT2: number;
+    readonly FLOAT_MAT3: number;
+    readonly FLOAT_MAT4: number;
+    readonly FLOAT_VEC2: number;
+    readonly FLOAT_VEC3: number;
+    readonly FLOAT_VEC4: number;
+    readonly FRAGMENT_SHADER: number;
+    readonly FRAMEBUFFER: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
+    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
+    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
+    readonly FRAMEBUFFER_BINDING: number;
+    readonly FRAMEBUFFER_COMPLETE: number;
+    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
+    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
+    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
+    readonly FRAMEBUFFER_UNSUPPORTED: number;
+    readonly FRONT: number;
+    readonly FRONT_AND_BACK: number;
+    readonly FRONT_FACE: number;
+    readonly FUNC_ADD: number;
+    readonly FUNC_REVERSE_SUBTRACT: number;
+    readonly FUNC_SUBTRACT: number;
+    readonly GENERATE_MIPMAP_HINT: number;
+    readonly GEQUAL: number;
+    readonly GREATER: number;
+    readonly GREEN_BITS: number;
+    readonly HIGH_FLOAT: number;
+    readonly HIGH_INT: number;
+    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
+    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
+    readonly INCR: number;
+    readonly INCR_WRAP: number;
+    readonly INT: number;
+    readonly INT_VEC2: number;
+    readonly INT_VEC3: number;
+    readonly INT_VEC4: number;
+    readonly INVALID_ENUM: number;
+    readonly INVALID_FRAMEBUFFER_OPERATION: number;
+    readonly INVALID_OPERATION: number;
+    readonly INVALID_VALUE: number;
+    readonly INVERT: number;
+    readonly KEEP: number;
+    readonly LEQUAL: number;
+    readonly LESS: number;
+    readonly LINEAR: number;
+    readonly LINEAR_MIPMAP_LINEAR: number;
+    readonly LINEAR_MIPMAP_NEAREST: number;
+    readonly LINES: number;
+    readonly LINE_LOOP: number;
+    readonly LINE_STRIP: number;
+    readonly LINE_WIDTH: number;
+    readonly LINK_STATUS: number;
+    readonly LOW_FLOAT: number;
+    readonly LOW_INT: number;
+    readonly LUMINANCE: number;
+    readonly LUMINANCE_ALPHA: number;
+    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
+    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
+    readonly MAX_RENDERBUFFER_SIZE: number;
+    readonly MAX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_TEXTURE_SIZE: number;
+    readonly MAX_VARYING_VECTORS: number;
+    readonly MAX_VERTEX_ATTRIBS: number;
+    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
+    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
+    readonly MAX_VIEWPORT_DIMS: number;
+    readonly MEDIUM_FLOAT: number;
+    readonly MEDIUM_INT: number;
+    readonly MIRRORED_REPEAT: number;
+    readonly NEAREST: number;
+    readonly NEAREST_MIPMAP_LINEAR: number;
+    readonly NEAREST_MIPMAP_NEAREST: number;
+    readonly NEVER: number;
+    readonly NICEST: number;
+    readonly NONE: number;
+    readonly NOTEQUAL: number;
+    readonly NO_ERROR: number;
+    readonly ONE: number;
+    readonly ONE_MINUS_CONSTANT_ALPHA: number;
+    readonly ONE_MINUS_CONSTANT_COLOR: number;
+    readonly ONE_MINUS_DST_ALPHA: number;
+    readonly ONE_MINUS_DST_COLOR: number;
+    readonly ONE_MINUS_SRC_ALPHA: number;
+    readonly ONE_MINUS_SRC_COLOR: number;
+    readonly OUT_OF_MEMORY: number;
+    readonly PACK_ALIGNMENT: number;
+    readonly POINTS: number;
+    readonly POLYGON_OFFSET_FACTOR: number;
+    readonly POLYGON_OFFSET_FILL: number;
+    readonly POLYGON_OFFSET_UNITS: number;
+    readonly RED_BITS: number;
+    readonly RENDERBUFFER: number;
+    readonly RENDERBUFFER_ALPHA_SIZE: number;
+    readonly RENDERBUFFER_BINDING: number;
+    readonly RENDERBUFFER_BLUE_SIZE: number;
+    readonly RENDERBUFFER_DEPTH_SIZE: number;
+    readonly RENDERBUFFER_GREEN_SIZE: number;
+    readonly RENDERBUFFER_HEIGHT: number;
+    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
+    readonly RENDERBUFFER_RED_SIZE: number;
+    readonly RENDERBUFFER_STENCIL_SIZE: number;
+    readonly RENDERBUFFER_WIDTH: number;
+    readonly RENDERER: number;
+    readonly REPEAT: number;
+    readonly REPLACE: number;
+    readonly RGB: number;
+    readonly RGB565: number;
+    readonly RGB5_A1: number;
+    readonly RGBA: number;
+    readonly RGBA4: number;
+    readonly SAMPLER_2D: number;
+    readonly SAMPLER_CUBE: number;
+    readonly SAMPLES: number;
+    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
+    readonly SAMPLE_BUFFERS: number;
+    readonly SAMPLE_COVERAGE: number;
+    readonly SAMPLE_COVERAGE_INVERT: number;
+    readonly SAMPLE_COVERAGE_VALUE: number;
+    readonly SCISSOR_BOX: number;
+    readonly SCISSOR_TEST: number;
+    readonly SHADER_TYPE: number;
+    readonly SHADING_LANGUAGE_VERSION: number;
+    readonly SHORT: number;
+    readonly SRC_ALPHA: number;
+    readonly SRC_ALPHA_SATURATE: number;
+    readonly SRC_COLOR: number;
+    readonly STATIC_DRAW: number;
+    readonly STENCIL_ATTACHMENT: number;
+    readonly STENCIL_BACK_FAIL: number;
+    readonly STENCIL_BACK_FUNC: number;
+    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
+    readonly STENCIL_BACK_REF: number;
+    readonly STENCIL_BACK_VALUE_MASK: number;
+    readonly STENCIL_BACK_WRITEMASK: number;
+    readonly STENCIL_BITS: number;
+    readonly STENCIL_BUFFER_BIT: number;
+    readonly STENCIL_CLEAR_VALUE: number;
+    readonly STENCIL_FAIL: number;
+    readonly STENCIL_FUNC: number;
+    readonly STENCIL_INDEX: number;
+    readonly STENCIL_INDEX8: number;
+    readonly STENCIL_PASS_DEPTH_FAIL: number;
+    readonly STENCIL_PASS_DEPTH_PASS: number;
+    readonly STENCIL_REF: number;
+    readonly STENCIL_TEST: number;
+    readonly STENCIL_VALUE_MASK: number;
+    readonly STENCIL_WRITEMASK: number;
+    readonly STREAM_DRAW: number;
+    readonly SUBPIXEL_BITS: number;
+    readonly TEXTURE: number;
+    readonly TEXTURE0: number;
+    readonly TEXTURE1: number;
+    readonly TEXTURE10: number;
+    readonly TEXTURE11: number;
+    readonly TEXTURE12: number;
+    readonly TEXTURE13: number;
+    readonly TEXTURE14: number;
+    readonly TEXTURE15: number;
+    readonly TEXTURE16: number;
+    readonly TEXTURE17: number;
+    readonly TEXTURE18: number;
+    readonly TEXTURE19: number;
+    readonly TEXTURE2: number;
+    readonly TEXTURE20: number;
+    readonly TEXTURE21: number;
+    readonly TEXTURE22: number;
+    readonly TEXTURE23: number;
+    readonly TEXTURE24: number;
+    readonly TEXTURE25: number;
+    readonly TEXTURE26: number;
+    readonly TEXTURE27: number;
+    readonly TEXTURE28: number;
+    readonly TEXTURE29: number;
+    readonly TEXTURE3: number;
+    readonly TEXTURE30: number;
+    readonly TEXTURE31: number;
+    readonly TEXTURE4: number;
+    readonly TEXTURE5: number;
+    readonly TEXTURE6: number;
+    readonly TEXTURE7: number;
+    readonly TEXTURE8: number;
+    readonly TEXTURE9: number;
+    readonly TEXTURE_2D: number;
+    readonly TEXTURE_BINDING_2D: number;
+    readonly TEXTURE_BINDING_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
+    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
+    readonly TEXTURE_MAG_FILTER: number;
+    readonly TEXTURE_MIN_FILTER: number;
+    readonly TEXTURE_WRAP_S: number;
+    readonly TEXTURE_WRAP_T: number;
+    readonly TRIANGLES: number;
+    readonly TRIANGLE_FAN: number;
+    readonly TRIANGLE_STRIP: number;
+    readonly UNPACK_ALIGNMENT: number;
+    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
+    readonly UNPACK_FLIP_Y_WEBGL: number;
+    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
+    readonly UNSIGNED_BYTE: number;
+    readonly UNSIGNED_INT: number;
+    readonly UNSIGNED_SHORT: number;
+    readonly UNSIGNED_SHORT_4_4_4_4: number;
+    readonly UNSIGNED_SHORT_5_5_5_1: number;
+    readonly UNSIGNED_SHORT_5_6_5: number;
+    readonly VALIDATE_STATUS: number;
+    readonly VENDOR: number;
+    readonly VERSION: number;
+    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
+    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
+    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
+    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
+    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
+    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
+    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
+    readonly VERTEX_SHADER: number;
+    readonly VIEWPORT: number;
+    readonly ZERO: number;
+}
+
+interface WebGLShader extends WebGLObject {
+}
+
+declare var WebGLShader: {
+    prototype: WebGLShader;
+    new(): WebGLShader;
+}
+
+interface WebGLShaderPrecisionFormat {
+    readonly precision: number;
+    readonly rangeMax: number;
+    readonly rangeMin: number;
+}
+
+declare var WebGLShaderPrecisionFormat: {
+    prototype: WebGLShaderPrecisionFormat;
+    new(): WebGLShaderPrecisionFormat;
+}
+
+interface WebGLTexture extends WebGLObject {
+}
+
+declare var WebGLTexture: {
+    prototype: WebGLTexture;
+    new(): WebGLTexture;
+}
+
+interface WebGLUniformLocation {
+}
+
+declare var WebGLUniformLocation: {
+    prototype: WebGLUniformLocation;
+    new(): WebGLUniformLocation;
+}
+
+interface WebKitCSSMatrix {
+    a: number;
+    b: number;
+    c: number;
+    d: number;
+    e: number;
+    f: number;
+    m11: number;
+    m12: number;
+    m13: number;
+    m14: number;
+    m21: number;
+    m22: number;
+    m23: number;
+    m24: number;
+    m31: number;
+    m32: number;
+    m33: number;
+    m34: number;
+    m41: number;
+    m42: number;
+    m43: number;
+    m44: number;
+    inverse(): WebKitCSSMatrix;
+    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
+    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
+    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
+    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
+    setMatrixValue(value: string): void;
+    skewX(angle: number): WebKitCSSMatrix;
+    skewY(angle: number): WebKitCSSMatrix;
+    toString(): string;
+    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
+}
+
+declare var WebKitCSSMatrix: {
+    prototype: WebKitCSSMatrix;
+    new(text?: string): WebKitCSSMatrix;
+}
+
+interface WebKitPoint {
+    x: number;
+    y: number;
+}
+
+declare var WebKitPoint: {
+    prototype: WebKitPoint;
+    new(x?: number, y?: number): WebKitPoint;
+}
+
+interface WebSocketEventMap {
+    "close": CloseEvent;
+    "error": ErrorEvent;
+    "message": MessageEvent;
+    "open": Event;
+}
+
+interface WebSocket extends EventTarget {
+    binaryType: string;
+    readonly bufferedAmount: number;
+    readonly extensions: string;
+    onclose: (this: WebSocket, ev: CloseEvent) => any;
+    onerror: (this: WebSocket, ev: ErrorEvent) => any;
+    onmessage: (this: WebSocket, ev: MessageEvent) => any;
+    onopen: (this: WebSocket, ev: Event) => any;
+    readonly protocol: string;
+    readonly readyState: number;
+    readonly url: string;
+    close(code?: number, reason?: string): void;
+    send(data: any): void;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var WebSocket: {
+    prototype: WebSocket;
+    new(url: string, protocols?: string | string[]): WebSocket;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+}
+
+interface WheelEvent extends MouseEvent {
+    readonly deltaMode: number;
+    readonly deltaX: number;
+    readonly deltaY: number;
+    readonly deltaZ: number;
+    readonly wheelDelta: number;
+    readonly wheelDeltaX: number;
+    readonly wheelDeltaY: number;
+    getCurrentPoint(element: Element): void;
+    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+declare var WheelEvent: {
+    prototype: WheelEvent;
+    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
+    readonly DOM_DELTA_LINE: number;
+    readonly DOM_DELTA_PAGE: number;
+    readonly DOM_DELTA_PIXEL: number;
+}
+
+interface WindowEventMap extends GlobalEventHandlersEventMap {
+    "abort": UIEvent;
+    "afterprint": Event;
+    "beforeprint": Event;
+    "beforeunload": BeforeUnloadEvent;
+    "blur": FocusEvent;
+    "canplay": Event;
+    "canplaythrough": Event;
+    "change": Event;
+    "click": MouseEvent;
+    "compassneedscalibration": Event;
+    "contextmenu": PointerEvent;
+    "dblclick": MouseEvent;
+    "devicelight": DeviceLightEvent;
+    "devicemotion": DeviceMotionEvent;
+    "deviceorientation": DeviceOrientationEvent;
+    "drag": DragEvent;
+    "dragend": DragEvent;
+    "dragenter": DragEvent;
+    "dragleave": DragEvent;
+    "dragover": DragEvent;
+    "dragstart": DragEvent;
+    "drop": DragEvent;
+    "durationchange": Event;
+    "emptied": Event;
+    "ended": MediaStreamErrorEvent;
+    "focus": FocusEvent;
+    "hashchange": HashChangeEvent;
+    "input": Event;
+    "invalid": Event;
+    "keydown": KeyboardEvent;
+    "keypress": KeyboardEvent;
+    "keyup": KeyboardEvent;
+    "load": Event;
+    "loadeddata": Event;
+    "loadedmetadata": Event;
+    "loadstart": Event;
+    "message": MessageEvent;
+    "mousedown": MouseEvent;
+    "mouseenter": MouseEvent;
+    "mouseleave": MouseEvent;
+    "mousemove": MouseEvent;
+    "mouseout": MouseEvent;
+    "mouseover": MouseEvent;
+    "mouseup": MouseEvent;
+    "mousewheel": WheelEvent;
+    "MSGestureChange": MSGestureEvent;
+    "MSGestureDoubleTap": MSGestureEvent;
+    "MSGestureEnd": MSGestureEvent;
+    "MSGestureHold": MSGestureEvent;
+    "MSGestureStart": MSGestureEvent;
+    "MSGestureTap": MSGestureEvent;
+    "MSInertiaStart": MSGestureEvent;
+    "MSPointerCancel": MSPointerEvent;
+    "MSPointerDown": MSPointerEvent;
+    "MSPointerEnter": MSPointerEvent;
+    "MSPointerLeave": MSPointerEvent;
+    "MSPointerMove": MSPointerEvent;
+    "MSPointerOut": MSPointerEvent;
+    "MSPointerOver": MSPointerEvent;
+    "MSPointerUp": MSPointerEvent;
+    "offline": Event;
+    "online": Event;
+    "orientationchange": Event;
+    "pagehide": PageTransitionEvent;
+    "pageshow": PageTransitionEvent;
+    "pause": Event;
+    "play": Event;
+    "playing": Event;
+    "popstate": PopStateEvent;
+    "progress": ProgressEvent;
+    "ratechange": Event;
+    "readystatechange": ProgressEvent;
+    "reset": Event;
+    "resize": UIEvent;
+    "scroll": UIEvent;
+    "seeked": Event;
+    "seeking": Event;
+    "select": UIEvent;
+    "stalled": Event;
+    "storage": StorageEvent;
+    "submit": Event;
+    "suspend": Event;
+    "timeupdate": Event;
+    "unload": Event;
+    "volumechange": Event;
+    "waiting": Event;
+}
+
+interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
+    readonly applicationCache: ApplicationCache;
+    readonly clientInformation: Navigator;
+    readonly closed: boolean;
+    readonly crypto: Crypto;
+    defaultStatus: string;
+    readonly devicePixelRatio: number;
+    readonly doNotTrack: string;
+    readonly document: Document;
+    event: Event | undefined;
+    readonly external: External;
+    readonly frameElement: Element;
+    readonly frames: Window;
+    readonly history: History;
+    readonly innerHeight: number;
+    readonly innerWidth: number;
+    readonly length: number;
+    readonly location: Location;
+    readonly locationbar: BarProp;
+    readonly menubar: BarProp;
+    readonly msCredentials: MSCredentials;
+    name: string;
+    readonly navigator: Navigator;
+    offscreenBuffering: string | boolean;
+    onabort: (this: Window, ev: UIEvent) => any;
+    onafterprint: (this: Window, ev: Event) => any;
+    onbeforeprint: (this: Window, ev: Event) => any;
+    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+    onblur: (this: Window, ev: FocusEvent) => any;
+    oncanplay: (this: Window, ev: Event) => any;
+    oncanplaythrough: (this: Window, ev: Event) => any;
+    onchange: (this: Window, ev: Event) => any;
+    onclick: (this: Window, ev: MouseEvent) => any;
+    oncompassneedscalibration: (this: Window, ev: Event) => any;
+    oncontextmenu: (this: Window, ev: PointerEvent) => any;
+    ondblclick: (this: Window, ev: MouseEvent) => any;
+    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
+    ondrag: (this: Window, ev: DragEvent) => any;
+    ondragend: (this: Window, ev: DragEvent) => any;
+    ondragenter: (this: Window, ev: DragEvent) => any;
+    ondragleave: (this: Window, ev: DragEvent) => any;
+    ondragover: (this: Window, ev: DragEvent) => any;
+    ondragstart: (this: Window, ev: DragEvent) => any;
+    ondrop: (this: Window, ev: DragEvent) => any;
+    ondurationchange: (this: Window, ev: Event) => any;
+    onemptied: (this: Window, ev: Event) => any;
+    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+    onerror: ErrorEventHandler;
+    onfocus: (this: Window, ev: FocusEvent) => any;
+    onhashchange: (this: Window, ev: HashChangeEvent) => any;
+    oninput: (this: Window, ev: Event) => any;
+    oninvalid: (this: Window, ev: Event) => any;
+    onkeydown: (this: Window, ev: KeyboardEvent) => any;
+    onkeypress: (this: Window, ev: KeyboardEvent) => any;
+    onkeyup: (this: Window, ev: KeyboardEvent) => any;
+    onload: (this: Window, ev: Event) => any;
+    onloadeddata: (this: Window, ev: Event) => any;
+    onloadedmetadata: (this: Window, ev: Event) => any;
+    onloadstart: (this: Window, ev: Event) => any;
+    onmessage: (this: Window, ev: MessageEvent) => any;
+    onmousedown: (this: Window, ev: MouseEvent) => any;
+    onmouseenter: (this: Window, ev: MouseEvent) => any;
+    onmouseleave: (this: Window, ev: MouseEvent) => any;
+    onmousemove: (this: Window, ev: MouseEvent) => any;
+    onmouseout: (this: Window, ev: MouseEvent) => any;
+    onmouseover: (this: Window, ev: MouseEvent) => any;
+    onmouseup: (this: Window, ev: MouseEvent) => any;
+    onmousewheel: (this: Window, ev: WheelEvent) => any;
+    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+    onoffline: (this: Window, ev: Event) => any;
+    ononline: (this: Window, ev: Event) => any;
+    onorientationchange: (this: Window, ev: Event) => any;
+    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+    onpause: (this: Window, ev: Event) => any;
+    onplay: (this: Window, ev: Event) => any;
+    onplaying: (this: Window, ev: Event) => any;
+    onpopstate: (this: Window, ev: PopStateEvent) => any;
+    onprogress: (this: Window, ev: ProgressEvent) => any;
+    onratechange: (this: Window, ev: Event) => any;
+    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+    onreset: (this: Window, ev: Event) => any;
+    onresize: (this: Window, ev: UIEvent) => any;
+    onscroll: (this: Window, ev: UIEvent) => any;
+    onseeked: (this: Window, ev: Event) => any;
+    onseeking: (this: Window, ev: Event) => any;
+    onselect: (this: Window, ev: UIEvent) => any;
+    onstalled: (this: Window, ev: Event) => any;
+    onstorage: (this: Window, ev: StorageEvent) => any;
+    onsubmit: (this: Window, ev: Event) => any;
+    onsuspend: (this: Window, ev: Event) => any;
+    ontimeupdate: (this: Window, ev: Event) => any;
+    ontouchcancel: (ev: TouchEvent) => any;
+    ontouchend: (ev: TouchEvent) => any;
+    ontouchmove: (ev: TouchEvent) => any;
+    ontouchstart: (ev: TouchEvent) => any;
+    onunload: (this: Window, ev: Event) => any;
+    onvolumechange: (this: Window, ev: Event) => any;
+    onwaiting: (this: Window, ev: Event) => any;
+    opener: any;
+    orientation: string | number;
+    readonly outerHeight: number;
+    readonly outerWidth: number;
+    readonly pageXOffset: number;
+    readonly pageYOffset: number;
+    readonly parent: Window;
+    readonly performance: Performance;
+    readonly personalbar: BarProp;
+    readonly screen: Screen;
+    readonly screenLeft: number;
+    readonly screenTop: number;
+    readonly screenX: number;
+    readonly screenY: number;
+    readonly scrollX: number;
+    readonly scrollY: number;
+    readonly scrollbars: BarProp;
+    readonly self: Window;
+    status: string;
+    readonly statusbar: BarProp;
+    readonly styleMedia: StyleMedia;
+    readonly toolbar: BarProp;
+    readonly top: Window;
+    readonly window: Window;
+    URL: typeof URL;
+    Blob: typeof Blob;
+    alert(message?: any): void;
+    blur(): void;
+    cancelAnimationFrame(handle: number): void;
+    captureEvents(): void;
+    close(): void;
+    confirm(message?: string): boolean;
+    focus(): void;
+    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
+    getSelection(): Selection;
+    matchMedia(mediaQuery: string): MediaQueryList;
+    moveBy(x?: number, y?: number): void;
+    moveTo(x?: number, y?: number): void;
+    msWriteProfilerMark(profilerMarkName: string): void;
+    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
+    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
+    print(): void;
+    prompt(message?: string, _default?: string): string | null;
+    releaseEvents(): void;
+    requestAnimationFrame(callback: FrameRequestCallback): number;
+    resizeBy(x?: number, y?: number): void;
+    resizeTo(x?: number, y?: number): void;
+    scroll(x?: number, y?: number): void;
+    scrollBy(x?: number, y?: number): void;
+    scrollTo(x?: number, y?: number): void;
+    webkitCancelAnimationFrame(handle: number): void;
+    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
+    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
+    scroll(options?: ScrollToOptions): void;
+    scrollTo(options?: ScrollToOptions): void;
+    scrollBy(options?: ScrollToOptions): void;
+    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Window: {
+    prototype: Window;
+    new(): Window;
+}
+
+interface WorkerEventMap extends AbstractWorkerEventMap {
+    "message": MessageEvent;
+}
+
+interface Worker extends EventTarget, AbstractWorker {
+    onmessage: (this: Worker, ev: MessageEvent) => any;
+    postMessage(message: any, ports?: any): void;
+    terminate(): void;
+    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Worker: {
+    prototype: Worker;
+    new(stringUrl: string): Worker;
+}
+
+interface XMLDocument extends Document {
+    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLDocument: {
+    prototype: XMLDocument;
+    new(): XMLDocument;
+}
+
+interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
+    "readystatechange": Event;
+}
+
+interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
+    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
+    readonly readyState: number;
+    readonly response: any;
+    readonly responseText: string;
+    responseType: string;
+    readonly responseXML: any;
+    readonly status: number;
+    readonly statusText: string;
+    timeout: number;
+    readonly upload: XMLHttpRequestUpload;
+    withCredentials: boolean;
+    msCaching?: string;
+    readonly responseURL: string;
+    abort(): void;
+    getAllResponseHeaders(): string;
+    getResponseHeader(header: string): string | null;
+    msCachingEnabled(): boolean;
+    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
+    overrideMimeType(mime: string): void;
+    send(data?: Document): void;
+    send(data?: string): void;
+    send(data?: any): void;
+    setRequestHeader(header: string, value: string): void;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequest: {
+    prototype: XMLHttpRequest;
+    new(): XMLHttpRequest;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    create(): XMLHttpRequest;
+}
+
+interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequestUpload: {
+    prototype: XMLHttpRequestUpload;
+    new(): XMLHttpRequestUpload;
+}
+
+interface XMLSerializer {
+    serializeToString(target: Node): string;
+}
+
+declare var XMLSerializer: {
+    prototype: XMLSerializer;
+    new(): XMLSerializer;
+}
+
+interface XPathEvaluator {
+    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
+    createNSResolver(nodeResolver?: Node): XPathNSResolver;
+    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
+}
+
+declare var XPathEvaluator: {
+    prototype: XPathEvaluator;
+    new(): XPathEvaluator;
+}
+
+interface XPathExpression {
+    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
+}
+
+declare var XPathExpression: {
+    prototype: XPathExpression;
+    new(): XPathExpression;
+}
+
+interface XPathNSResolver {
+    lookupNamespaceURI(prefix: string): string;
+}
+
+declare var XPathNSResolver: {
+    prototype: XPathNSResolver;
+    new(): XPathNSResolver;
+}
+
+interface XPathResult {
+    readonly booleanValue: boolean;
+    readonly invalidIteratorState: boolean;
+    readonly numberValue: number;
+    readonly resultType: number;
+    readonly singleNodeValue: Node;
+    readonly snapshotLength: number;
+    readonly stringValue: string;
+    iterateNext(): Node;
+    snapshotItem(index: number): Node;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+declare var XPathResult: {
+    prototype: XPathResult;
+    new(): XPathResult;
+    readonly ANY_TYPE: number;
+    readonly ANY_UNORDERED_NODE_TYPE: number;
+    readonly BOOLEAN_TYPE: number;
+    readonly FIRST_ORDERED_NODE_TYPE: number;
+    readonly NUMBER_TYPE: number;
+    readonly ORDERED_NODE_ITERATOR_TYPE: number;
+    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
+    readonly STRING_TYPE: number;
+    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
+    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
+}
+
+interface XSLTProcessor {
+    clearParameters(): void;
+    getParameter(namespaceURI: string, localName: string): any;
+    importStylesheet(style: Node): void;
+    removeParameter(namespaceURI: string, localName: string): void;
+    reset(): void;
+    setParameter(namespaceURI: string, localName: string, value: any): void;
+    transformToDocument(source: Node): Document;
+    transformToFragment(source: Node, document: Document): DocumentFragment;
+}
+
+declare var XSLTProcessor: {
+    prototype: XSLTProcessor;
+    new(): XSLTProcessor;
+}
+
+interface AbstractWorkerEventMap {
+    "error": ErrorEvent;
+}
+
+interface AbstractWorker {
+    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
+    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface CanvasPathMethods {
+    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
+    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
+    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
+    closePath(): void;
+    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+    lineTo(x: number, y: number): void;
+    moveTo(x: number, y: number): void;
+    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
+    rect(x: number, y: number, w: number, h: number): void;
+}
+
+interface ChildNode {
+    remove(): void;
+}
+
+interface DOML2DeprecatedColorProperty {
+    color: string;
+}
+
+interface DOML2DeprecatedSizeProperty {
+    size: number;
+}
+
+interface DocumentEvent {
+    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
+    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
+    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
+    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
+    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
+    createEvent(eventInterface:"CloseEvent"): CloseEvent;
+    createEvent(eventInterface:"CommandEvent"): CommandEvent;
+    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
+    createEvent(eventInterface:"CustomEvent"): CustomEvent;
+    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
+    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:"GamepadEvent"): GamepadEvent;
+    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
+    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
+    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
+    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
+    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
+    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
+    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
+    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
+    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
+    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
+    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
+    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
+    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
+    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
+    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
+    createEvent(eventInterface:"MessageEvent"): MessageEvent;
+    createEvent(eventInterface:"MouseEvent"): MouseEvent;
+    createEvent(eventInterface:"MouseEvents"): MouseEvent;
+    createEvent(eventInterface:"MutationEvent"): MutationEvent;
+    createEvent(eventInterface:"MutationEvents"): MutationEvent;
+    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
+    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
+    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
+    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
+    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
+    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
+    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
+    createEvent(eventInterface:"PointerEvent"): PointerEvent;
+    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
+    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
+    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
+    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
+    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
+    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
+    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
+    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
+    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
+    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
+    createEvent(eventInterface:"StorageEvent"): StorageEvent;
+    createEvent(eventInterface:"TextEvent"): TextEvent;
+    createEvent(eventInterface:"TouchEvent"): TouchEvent;
+    createEvent(eventInterface:"TrackEvent"): TrackEvent;
+    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
+    createEvent(eventInterface:"UIEvent"): UIEvent;
+    createEvent(eventInterface:"UIEvents"): UIEvent;
+    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
+    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
+    createEvent(eventInterface:"WheelEvent"): WheelEvent;
+    createEvent(eventInterface: string): Event;
+}
+
+interface ElementTraversal {
+    readonly childElementCount: number;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly nextElementSibling: Element;
+    readonly previousElementSibling: Element;
+}
+
+interface GetSVGDocument {
+    getSVGDocument(): Document;
+}
+
+interface GlobalEventHandlersEventMap {
+    "pointercancel": PointerEvent;
+    "pointerdown": PointerEvent;
+    "pointerenter": PointerEvent;
+    "pointerleave": PointerEvent;
+    "pointermove": PointerEvent;
+    "pointerout": PointerEvent;
+    "pointerover": PointerEvent;
+    "pointerup": PointerEvent;
+    "wheel": WheelEvent;
+}
+
+interface GlobalEventHandlers {
+    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
+    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
+    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface HTMLTableAlignment {
+    /**
+      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
+      */
+    ch: string;
+    /**
+      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
+      */
+    chOff: string;
+    /**
+      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
+      */
+    vAlign: string;
+}
+
+interface IDBEnvironment {
+    readonly indexedDB: IDBFactory;
+}
+
+interface LinkStyle {
+    readonly sheet: StyleSheet;
+}
+
+interface MSBaseReaderEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+}
+
+interface MSBaseReader {
+    onabort: (this: MSBaseReader, ev: Event) => any;
+    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
+    onload: (this: MSBaseReader, ev: Event) => any;
+    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
+    onloadstart: (this: MSBaseReader, ev: Event) => any;
+    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    abort(): void;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface MSFileSaver {
+    msSaveBlob(blob: any, defaultName?: string): boolean;
+    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
+}
+
+interface MSNavigatorDoNotTrack {
+    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
+    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
+    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
+    removeWebWideTrackingException(args: ExceptionInformation): void;
+    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
+    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
+}
+
+interface NavigatorContentUtils {
+}
+
+interface NavigatorGeolocation {
+    readonly geolocation: Geolocation;
+}
+
+interface NavigatorID {
+    readonly appName: string;
+    readonly appVersion: string;
+    readonly platform: string;
+    readonly product: string;
+    readonly productSub: string;
+    readonly userAgent: string;
+    readonly vendor: string;
+    readonly vendorSub: string;
+}
+
+interface NavigatorOnLine {
+    readonly onLine: boolean;
+}
+
+interface NavigatorStorageUtils {
+}
+
+interface NavigatorUserMedia {
+    readonly mediaDevices: MediaDevices;
+    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
+}
+
+interface NodeSelector {
+    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
+    querySelector(selectors: string): Element | null;
+    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
+    querySelectorAll(selectors: string): NodeListOf<Element>;
+}
+
+interface RandomSource {
+    getRandomValues(array: ArrayBufferView): ArrayBufferView;
+}
+
+interface SVGAnimatedPathData {
+    readonly pathSegList: SVGPathSegList;
+}
+
+interface SVGAnimatedPoints {
+    readonly animatedPoints: SVGPointList;
+    readonly points: SVGPointList;
+}
+
+interface SVGExternalResourcesRequired {
+    readonly externalResourcesRequired: SVGAnimatedBoolean;
+}
+
+interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
+    readonly height: SVGAnimatedLength;
+    readonly result: SVGAnimatedString;
+    readonly width: SVGAnimatedLength;
+    readonly x: SVGAnimatedLength;
+    readonly y: SVGAnimatedLength;
+}
+
+interface SVGFitToViewBox {
+    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+    readonly viewBox: SVGAnimatedRect;
+}
+
+interface SVGLangSpace {
+    xmllang: string;
+    xmlspace: string;
+}
+
+interface SVGLocatable {
+    readonly farthestViewportElement: SVGElement;
+    readonly nearestViewportElement: SVGElement;
+    getBBox(): SVGRect;
+    getCTM(): SVGMatrix;
+    getScreenCTM(): SVGMatrix;
+    getTransformToElement(element: SVGElement): SVGMatrix;
+}
+
+interface SVGStylable {
+    className: any;
+    readonly style: CSSStyleDeclaration;
+}
+
+interface SVGTests {
+    readonly requiredExtensions: SVGStringList;
+    readonly requiredFeatures: SVGStringList;
+    readonly systemLanguage: SVGStringList;
+    hasExtension(extension: string): boolean;
+}
+
+interface SVGTransformable extends SVGLocatable {
+    readonly transform: SVGAnimatedTransformList;
+}
+
+interface SVGURIReference {
+    readonly href: SVGAnimatedString;
+}
+
+interface WindowBase64 {
+    atob(encodedString: string): string;
+    btoa(rawString: string): string;
+}
+
+interface WindowConsole {
+    readonly console: Console;
+}
+
+interface WindowLocalStorage {
+    readonly localStorage: Storage;
+}
+
+interface WindowSessionStorage {
+    readonly sessionStorage: Storage;
+}
+
+interface WindowTimers extends Object, WindowTimersExtension {
+    clearInterval(handle: number): void;
+    clearTimeout(handle: number): void;
+    setInterval(handler: (...args: any[]) => void, timeout: number): number;
+    setInterval(handler: any, timeout?: any, ...args: any[]): number;
+    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
+    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
+}
+
+interface WindowTimersExtension {
+    clearImmediate(handle: number): void;
+    setImmediate(handler: (...args: any[]) => void): number;
+    setImmediate(handler: any, ...args: any[]): number;
+}
+
+interface XMLHttpRequestEventTargetEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+    "timeout": ProgressEvent;
+}
+
+interface XMLHttpRequestEventTarget {
+    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
+    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface StorageEventInit extends EventInit {
+    key?: string;
+    oldValue?: string;
+    newValue?: string;
+    url: string;
+    storageArea?: Storage;
+}
+
+interface Canvas2DContextAttributes {
+    alpha?: boolean;
+    willReadFrequently?: boolean;
+    storage?: boolean;
+    [attribute: string]: boolean | string | undefined;
+}
+
+interface NodeListOf<TNode extends Node> extends NodeList {
+    length: number;
+    item(index: number): TNode;
+    [index: number]: TNode;
+}
+
+interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
+    item(index: number): T;
+    namedItem(name: string): T;
+    [index: number]: T;
+}
+
+interface BlobPropertyBag {
+    type?: string;
+    endings?: string;
+}
+
+interface FilePropertyBag {
+    type?: string;
+    lastModified?: number;
+}
+
+interface EventListenerObject {
+    handleEvent(evt: Event): void;
+}
+
+interface MessageEventInit extends EventInit {
+    data?: any;
+    origin?: string;
+    lastEventId?: string;
+    channel?: string;
+    source?: any;
+    ports?: MessagePort[];
+}
+
+interface ProgressEventInit extends EventInit {
+    lengthComputable?: boolean;
+    loaded?: number;
+    total?: number;
+}
+
+interface ScrollOptions {
+    behavior?: ScrollBehavior;
+}
+
+interface ScrollToOptions extends ScrollOptions {
+    left?: number;
+    top?: number;
+}
+
+interface ScrollIntoViewOptions extends ScrollOptions {
+    block?: ScrollLogicalPosition;
+    inline?: ScrollLogicalPosition;
+}
+
+interface ClipboardEventInit extends EventInit {
+    data?: string;
+    dataType?: string;
+}
+
+interface IDBArrayKey extends Array<IDBValidKey> {
+}
+
+interface RsaKeyGenParams extends Algorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyGenParams extends RsaKeyGenParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaKeyAlgorithm extends KeyAlgorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaHashedImportParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaPssParams {
+    saltLength: number;
+}
+
+interface RsaOaepParams extends Algorithm {
+    label?: BufferSource;
+}
+
+interface EcdsaParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface EcKeyGenParams extends Algorithm {
+    namedCurve: string;
+}
+
+interface EcKeyAlgorithm extends KeyAlgorithm {
+    typedCurve: string;
+}
+
+interface EcKeyImportParams {
+    namedCurve: string;
+}
+
+interface EcdhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface AesCtrParams extends Algorithm {
+    counter: BufferSource;
+    length: number;
+}
+
+interface AesKeyAlgorithm extends KeyAlgorithm {
+    length: number;
+}
+
+interface AesKeyGenParams extends Algorithm {
+    length: number;
+}
+
+interface AesDerivedKeyParams extends Algorithm {
+    length: number;
+}
+
+interface AesCbcParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface AesCmacParams extends Algorithm {
+    length: number;
+}
+
+interface AesGcmParams extends Algorithm {
+    iv: BufferSource;
+    additionalData?: BufferSource;
+    tagLength?: number;
+}
+
+interface AesCfbParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface HmacImportParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface HmacKeyAlgorithm extends KeyAlgorithm {
+    hash: AlgorithmIdentifier;
+    length: number;
+}
 
-/// <reference path="lib.es2015.symbol.d.ts" />
-
-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: symbol;
-
-    /** 
-      * A Boolean value that if true indicates that an object should flatten 
to its array elements
-      * by Array.prototype.concat.
-      */
-    readonly isConcatSpreadable: symbol;
-
-    /**
-      * A regular expression method that matches the regular expression 
against a string. Called 
-      * by the String.prototype.match method. 
-      */
-    readonly match: symbol;
-
-    /** 
-      * A regular expression method that replaces matched substrings of a 
string. Called by the 
-      * String.prototype.replace method.
-      */
-    readonly replace: 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: symbol;
-
-    /** 
-      * A function valued property that is the constructor function that is 
used to create 
-      * derived objects.
-      */
-    readonly species: 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: symbol;
-
-    /** 
-      * A method that converts an object to a corresponding primitive value.
-      * Called by the ToPrimitive abstract operation.
-      */
-    readonly toPrimitive: 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: symbol;
-
-    /**
-      * An Object whose own property names are property names that are 
excluded from the 'with'
-      * environment bindings of the associated objects.
-      */
-    readonly unscopables: symbol;
-}
-
-interface Symbol {
-    readonly [Symbol.toStringTag]: "Symbol";
-}
-
-interface Array<T> {
-    /**
-     * Returns an object whose properties have the value 'true'
-     * when they will be absent when used in a 'with' statement.
-     */
-    [Symbol.unscopables](): {
-        copyWithin: boolean;
-        entries: boolean;
-        fill: boolean;
-        find: boolean;
-        findIndex: boolean;
-        keys: boolean;
-        values: 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]: "Map";
-}
-
-interface WeakMap<K, V>{
-    readonly [Symbol.toStringTag]: "WeakMap";
-}
-
-interface Set<T> {
-    readonly [Symbol.toStringTag]: "Set";
-}
-
-interface WeakSet<T> {
-    readonly [Symbol.toStringTag]: "WeakSet";
-}
-
-interface JSON {
-    readonly [Symbol.toStringTag]: "JSON";
-}
-
-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 extends Function {
-    readonly [Symbol.toStringTag]: "GeneratorFunction";
-}
-
-interface Math {
-    readonly [Symbol.toStringTag]: "Math";
-}
-
-interface Promise<T> {
-    readonly [Symbol.toStringTag]: "Promise";
-}
-
-interface PromiseConstructor {
-    readonly [Symbol.species]: Function;
-}
-
-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 {
-    [Symbol.species](): RegExpConstructor;
-}
-
-interface String {
-    /**
-      * Matches a string an object that supports being matched against, and 
returns an array containing the results of that search.
-      * @param matcher An object that supports being matched against.
-      */
-    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; 
}): RegExpMatchArray | null;
-
-    /**
-      * 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 replaceValue A string containing the text to replace for every 
successful match of searchValue in this string.
-      */
-    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[];
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "ArrayBuffer";
-}
-
-interface DataView {
-    readonly [Symbol.toStringTag]: "DataView";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int8Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "UInt8Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint8ClampedArray";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int16Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint16Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Int32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Uint32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Float32Array";
-}
-
-/**
-  * 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 {
-    readonly [Symbol.toStringTag]: "Float64Array";
-}
-
-
-/////////////////////////////
-/// IE DOM APIs
-/////////////////////////////
-
-interface Algorithm {
-    name: string;
-}
-
-interface AriaRequestEventInit extends EventInit {
-    attributeName?: string;
-    attributeValue?: string;
-}
-
-interface CommandEventInit extends EventInit {
-    commandName?: string;
-    detail?: string;
-}
-
-interface CompositionEventInit extends UIEventInit {
-    data?: string;
-}
-
-interface ConfirmSiteSpecificExceptionsInformation extends 
ExceptionInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface ConstrainBooleanParameters {
-    exact?: boolean;
-    ideal?: boolean;
-}
-
-interface ConstrainDOMStringParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface ConstrainDoubleRange extends DoubleRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainLongRange extends LongRange {
-    exact?: number;
-    ideal?: number;
-}
-
-interface ConstrainVideoFacingModeParameters {
-    exact?: string | string[];
-    ideal?: string | string[];
-}
-
-interface CustomEventInit extends EventInit {
-    detail?: any;
-}
-
-interface DeviceAccelerationDict {
-    x?: number;
-    y?: number;
-    z?: number;
-}
-
-interface DeviceLightEventInit extends EventInit {
-    value?: number;
-}
-
-interface DeviceRotationRateDict {
-    alpha?: number;
-    beta?: number;
-    gamma?: number;
-}
-
-interface DoubleRange {
-    max?: number;
-    min?: number;
-}
-
-interface EventInit {
-    scoped?: boolean;
-    bubbles?: boolean;
-    cancelable?: boolean;
-}
-
-interface EventModifierInit extends UIEventInit {
-    ctrlKey?: boolean;
-    shiftKey?: boolean;
-    altKey?: boolean;
-    metaKey?: boolean;
-    modifierAltGraph?: boolean;
-    modifierCapsLock?: boolean;
-    modifierFn?: boolean;
-    modifierFnLock?: boolean;
-    modifierHyper?: boolean;
-    modifierNumLock?: boolean;
-    modifierOS?: boolean;
-    modifierScrollLock?: boolean;
-    modifierSuper?: boolean;
-    modifierSymbol?: boolean;
-    modifierSymbolLock?: boolean;
-}
-
-interface ExceptionInformation {
-    domain?: string;
-}
-
-interface FocusEventInit extends UIEventInit {
-    relatedTarget?: EventTarget;
-}
-
-interface HashChangeEventInit extends EventInit {
-    newURL?: string;
-    oldURL?: string;
-}
-
-interface IDBIndexParameters {
-    multiEntry?: boolean;
-    unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
-    autoIncrement?: boolean;
-    keyPath?: IDBKeyPath;
-}
-
-interface KeyAlgorithm {
-    name?: string;
-}
-
-interface KeyboardEventInit extends EventModifierInit {
-    code?: string;
-    key?: string;
-    location?: number;
-    repeat?: boolean;
-}
-
-interface LongRange {
-    max?: number;
-    min?: number;
-}
-
-interface MSAccountInfo {
-    rpDisplayName?: string;
-    userDisplayName?: string;
-    accountName?: string;
-    userId?: string;
-    accountImageUri?: string;
-}
-
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
-    networkSendQualityEventRatio?: number;
-    networkDelayEventRatio?: number;
-    cpuInsufficientEventRatio?: number;
-    deviceHalfDuplexAECEventRatio?: number;
-    deviceRenderNotFunctioningEventRatio?: number;
-    deviceCaptureNotFunctioningEventRatio?: number;
-    deviceGlitchesEventRatio?: number;
-    deviceLowSNREventRatio?: number;
-    deviceLowSpeechLevelEventRatio?: number;
-    deviceClippingEventRatio?: number;
-    deviceEchoEventRatio?: number;
-    deviceNearEndToEchoRatioEventRatio?: number;
-    deviceRenderZeroVolumeEventRatio?: number;
-    deviceRenderMuteEventRatio?: number;
-    deviceMultipleEndpointsEventCount?: number;
-    deviceHowlingEventCount?: number;
-}
-
-interface MSAudioRecvPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioRecvSignal;
-    packetReorderRatio?: number;
-    packetReorderDepthAvg?: number;
-    packetReorderDepthMax?: number;
-    burstLossLength1?: number;
-    burstLossLength2?: number;
-    burstLossLength3?: number;
-    burstLossLength4?: number;
-    burstLossLength5?: number;
-    burstLossLength6?: number;
-    burstLossLength7?: number;
-    burstLossLength8OrHigher?: number;
-    fecRecvDistance1?: number;
-    fecRecvDistance2?: number;
-    fecRecvDistance3?: number;
-    ratioConcealedSamplesAvg?: number;
-    ratioStretchedSamplesAvg?: number;
-    ratioCompressedSamplesAvg?: number;
-}
-
-interface MSAudioRecvSignal {
-    initialSignalLevelRMS?: number;
-    recvSignalLevelCh1?: number;
-    recvNoiseLevelCh1?: number;
-    renderSignalLevel?: number;
-    renderNoiseLevel?: number;
-    renderLoopbackSignalLevel?: number;
-}
-
-interface MSAudioSendPayload extends MSPayloadBase {
-    samplingRate?: number;
-    signal?: MSAudioSendSignal;
-    audioFECUsed?: boolean;
-    sendMutePercent?: number;
-}
-
-interface MSAudioSendSignal {
-    noiseLevel?: number;
-    sendSignalLevelCh1?: number;
-    sendNoiseLevelCh1?: number;
-}
-
-interface MSConnectivity {
-    iceType?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    relayAddress?: MSRelayAddress;
-}
-
-interface MSCredentialFilter {
-    accept?: MSCredentialSpec[];
-}
-
-interface MSCredentialParameters {
-    type?: string;
-}
-
-interface MSCredentialSpec {
-    type?: string;
-    id?: string;
-}
-
-interface MSDelay {
-    roundTrip?: number;
-    roundTripMax?: number;
-}
-
-interface MSDescription extends RTCStats {
-    connectivity?: MSConnectivity;
-    transport?: string;
-    networkconnectivity?: MSNetworkConnectivityInfo;
-    localAddr?: MSIPAddressInfo;
-    remoteAddr?: MSIPAddressInfo;
-    deviceDevName?: string;
-    reflexiveLocalIPAddr?: MSIPAddressInfo;
-}
-
-interface MSFIDOCredentialParameters extends MSCredentialParameters {
-    algorithm?: string | Algorithm;
-    authenticators?: AAGUID[];
-}
-
-interface MSIPAddressInfo {
-    ipAddr?: string;
-    port?: number;
-    manufacturerMacAddrMask?: string;
-}
-
-interface MSIceWarningFlags {
-    turnTcpTimedOut?: boolean;
-    turnUdpAllocateFailed?: boolean;
-    turnUdpSendFailed?: boolean;
-    turnTcpAllocateFailed?: boolean;
-    turnTcpSendFailed?: boolean;
-    udpLocalConnectivityFailed?: boolean;
-    udpNatConnectivityFailed?: boolean;
-    udpRelayConnectivityFailed?: boolean;
-    tcpNatConnectivityFailed?: boolean;
-    tcpRelayConnectivityFailed?: boolean;
-    connCheckMessageIntegrityFailed?: boolean;
-    allocationMessageIntegrityFailed?: boolean;
-    connCheckOtherError?: boolean;
-    turnAuthUnknownUsernameError?: boolean;
-    noRelayServersConfigured?: boolean;
-    multipleRelayServersAttempted?: boolean;
-    portRangeExhausted?: boolean;
-    alternateServerReceived?: boolean;
-    pseudoTLSFailure?: boolean;
-    turnTurnTcpConnectivityFailed?: boolean;
-    useCandidateChecksFailed?: boolean;
-    fipsAllocationFailure?: boolean;
-}
-
-interface MSJitter {
-    interArrival?: number;
-    interArrivalMax?: number;
-    interArrivalSD?: number;
-}
-
-interface MSLocalClientEventBase extends RTCStats {
-    networkReceiveQualityEventRatio?: number;
-    networkBandwidthLowEventRatio?: number;
-}
-
-interface MSNetwork extends RTCStats {
-    jitter?: MSJitter;
-    delay?: MSDelay;
-    packetLoss?: MSPacketLoss;
-    utilization?: MSUtilization;
-}
-
-interface MSNetworkConnectivityInfo {
-    vpn?: boolean;
-    linkspeed?: number;
-    networkConnectionDetails?: string;
-}
-
-interface MSNetworkInterfaceType {
-    interfaceTypeEthernet?: boolean;
-    interfaceTypeWireless?: boolean;
-    interfaceTypePPP?: boolean;
-    interfaceTypeTunnel?: boolean;
-    interfaceTypeWWAN?: boolean;
-}
-
-interface MSOutboundNetwork extends MSNetwork {
-    appliedBandwidthLimit?: number;
-}
-
-interface MSPacketLoss {
-    lossRate?: number;
-    lossRateMax?: number;
-}
-
-interface MSPayloadBase extends RTCStats {
-    payloadDescription?: string;
-}
-
-interface MSRelayAddress {
-    relayAddress?: string;
-    port?: number;
-}
-
-interface MSSignatureParameters {
-    userPrompt?: string;
-}
-
-interface MSTransportDiagnosticsStats extends RTCStats {
-    baseAddress?: string;
-    localAddress?: string;
-    localSite?: string;
-    networkName?: string;
-    remoteAddress?: string;
-    remoteSite?: string;
-    localMR?: string;
-    remoteMR?: string;
-    iceWarningFlags?: MSIceWarningFlags;
-    portRangeMin?: number;
-    portRangeMax?: number;
-    localMRTCPPort?: number;
-    remoteMRTCPPort?: number;
-    stunVer?: number;
-    numConsentReqSent?: number;
-    numConsentReqReceived?: number;
-    numConsentRespSent?: number;
-    numConsentRespReceived?: number;
-    interfaces?: MSNetworkInterfaceType;
-    baseInterface?: MSNetworkInterfaceType;
-    protocol?: string;
-    localInterface?: MSNetworkInterfaceType;
-    localAddrType?: string;
-    remoteAddrType?: string;
-    iceRole?: string;
-    rtpRtcpMux?: boolean;
-    allocationTimeInMs?: number;
-    msRtcEngineVersion?: string;
-}
-
-interface MSUtilization {
-    packets?: number;
-    bandwidthEstimation?: number;
-    bandwidthEstimationMin?: number;
-    bandwidthEstimationMax?: number;
-    bandwidthEstimationStdDev?: number;
-    bandwidthEstimationAvg?: number;
-}
-
-interface MSVideoPayload extends MSPayloadBase {
-    resoluton?: string;
-    videoBitRateAvg?: number;
-    videoBitRateMax?: number;
-    videoFrameRateAvg?: number;
-    videoPacketLossRate?: number;
-    durationSeconds?: number;
-}
-
-interface MSVideoRecvPayload extends MSVideoPayload {
-    videoFrameLossRate?: number;
-    recvCodecType?: string;
-    recvResolutionWidth?: number;
-    recvResolutionHeight?: number;
-    videoResolutions?: MSVideoResolutionDistribution;
-    recvFrameRateAverage?: number;
-    recvBitRateMaximum?: number;
-    recvBitRateAverage?: number;
-    recvVideoStreamsMax?: number;
-    recvVideoStreamsMin?: number;
-    recvVideoStreamsMode?: number;
-    videoPostFECPLR?: number;
-    lowBitRateCallPercent?: number;
-    lowFrameRateCallPercent?: number;
-    reorderBufferTotalPackets?: number;
-    recvReorderBufferReorderedPackets?: number;
-    recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
-    recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
-    recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
-    recvReorderBufferPacketsDroppedDueToTimeout?: number;
-    recvFpsHarmonicAverage?: number;
-    recvNumResSwitches?: number;
-}
-
-interface MSVideoResolutionDistribution {
-    cifQuality?: number;
-    vgaQuality?: number;
-    h720Quality?: number;
-    h1080Quality?: number;
-    h1440Quality?: number;
-    h2160Quality?: number;
-}
-
-interface MSVideoSendPayload extends MSVideoPayload {
-    sendFrameRateAverage?: number;
-    sendBitRateMaximum?: number;
-    sendBitRateAverage?: number;
-    sendVideoStreamsMax?: number;
-    sendResolutionWidth?: number;
-    sendResolutionHeight?: number;
-}
-
-interface MediaEncryptedEventInit extends EventInit {
-    initDataType?: string;
-    initData?: ArrayBuffer;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
-    messageType?: string;
-    message?: ArrayBuffer;
-}
-
-interface MediaKeySystemConfiguration {
-    initDataTypes?: string[];
-    audioCapabilities?: MediaKeySystemMediaCapability[];
-    videoCapabilities?: MediaKeySystemMediaCapability[];
-    distinctiveIdentifier?: string;
-    persistentState?: string;
-}
-
-interface MediaKeySystemMediaCapability {
-    contentType?: string;
-    robustness?: string;
-}
-
-interface MediaStreamConstraints {
-    video?: boolean | MediaTrackConstraints;
-    audio?: boolean | MediaTrackConstraints;
-}
-
-interface MediaStreamErrorEventInit extends EventInit {
-    error?: MediaStreamError;
-}
-
-interface MediaStreamTrackEventInit extends EventInit {
-    track?: MediaStreamTrack;
-}
-
-interface MediaTrackCapabilities {
-    width?: number | LongRange;
-    height?: number | LongRange;
-    aspectRatio?: number | DoubleRange;
-    frameRate?: number | DoubleRange;
-    facingMode?: string;
-    volume?: number | DoubleRange;
-    sampleRate?: number | LongRange;
-    sampleSize?: number | LongRange;
-    echoCancellation?: boolean[];
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackConstraintSet {
-    width?: number | ConstrainLongRange;
-    height?: number | ConstrainLongRange;
-    aspectRatio?: number | ConstrainDoubleRange;
-    frameRate?: number | ConstrainDoubleRange;
-    facingMode?: string | string[] | ConstrainDOMStringParameters;
-    volume?: number | ConstrainDoubleRange;
-    sampleRate?: number | ConstrainLongRange;
-    sampleSize?: number | ConstrainLongRange;
-    echoCancelation?: boolean | ConstrainBooleanParameters;
-    deviceId?: string | string[] | ConstrainDOMStringParameters;
-    groupId?: string | string[] | ConstrainDOMStringParameters;
-}
-
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
-    advanced?: MediaTrackConstraintSet[];
-}
-
-interface MediaTrackSettings {
-    width?: number;
-    height?: number;
-    aspectRatio?: number;
-    frameRate?: number;
-    facingMode?: string;
-    volume?: number;
-    sampleRate?: number;
-    sampleSize?: number;
-    echoCancellation?: boolean;
-    deviceId?: string;
-    groupId?: string;
-}
-
-interface MediaTrackSupportedConstraints {
-    width?: boolean;
-    height?: boolean;
-    aspectRatio?: boolean;
-    frameRate?: boolean;
-    facingMode?: boolean;
-    volume?: boolean;
-    sampleRate?: boolean;
-    sampleSize?: boolean;
-    echoCancellation?: boolean;
-    deviceId?: boolean;
-    groupId?: boolean;
-}
-
-interface MouseEventInit extends EventModifierInit {
-    screenX?: number;
-    screenY?: number;
-    clientX?: number;
-    clientY?: number;
-    button?: number;
-    buttons?: number;
-    relatedTarget?: EventTarget;
-}
-
-interface MsZoomToOptions {
-    contentX?: number;
-    contentY?: number;
-    viewportX?: string;
-    viewportY?: string;
-    scaleFactor?: number;
-    animate?: string;
-}
-
-interface MutationObserverInit {
-    childList?: boolean;
-    attributes?: boolean;
-    characterData?: boolean;
-    subtree?: boolean;
-    attributeOldValue?: boolean;
-    characterDataOldValue?: boolean;
-    attributeFilter?: string[];
-}
-
-interface ObjectURLOptions {
-    oneTimeOnly?: boolean;
-}
-
-interface PeriodicWaveConstraints {
-    disableNormalization?: boolean;
-}
-
-interface PointerEventInit extends MouseEventInit {
-    pointerId?: number;
-    width?: number;
-    height?: number;
-    pressure?: number;
-    tiltX?: number;
-    tiltY?: number;
-    pointerType?: string;
-    isPrimary?: boolean;
-}
-
-interface PositionOptions {
-    enableHighAccuracy?: boolean;
-    timeout?: number;
-    maximumAge?: number;
-}
-
-interface RTCDTMFToneChangeEventInit extends EventInit {
-    tone?: string;
-}
-
-interface RTCDtlsFingerprint {
-    algorithm?: string;
-    value?: string;
-}
-
-interface RTCDtlsParameters {
-    role?: string;
-    fingerprints?: RTCDtlsFingerprint[];
-}
-
-interface RTCIceCandidate {
-    foundation?: string;
-    priority?: number;
-    ip?: string;
-    protocol?: string;
-    port?: number;
-    type?: string;
-    tcpType?: string;
-    relatedAddress?: string;
-    relatedPort?: number;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
-    ipAddress?: string;
-    portNumber?: number;
-    transport?: string;
-    candidateType?: string;
-    priority?: number;
-    addressSourceUrl?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidatePair {
-    local?: RTCIceCandidate;
-    remote?: RTCIceCandidate;
-}
-
-interface RTCIceCandidatePairStats extends RTCStats {
-    transportId?: string;
-    localCandidateId?: string;
-    remoteCandidateId?: string;
-    state?: string;
-    priority?: number;
-    nominated?: boolean;
-    writable?: boolean;
-    readable?: boolean;
-    bytesSent?: number;
-    bytesReceived?: number;
-    roundTripTime?: number;
-    availableOutgoingBitrate?: number;
-    availableIncomingBitrate?: number;
-}
-
-interface RTCIceGatherOptions {
-    gatherPolicy?: string;
-    iceservers?: RTCIceServer[];
-}
-
-interface RTCIceParameters {
-    usernameFragment?: string;
-    password?: string;
-}
-
-interface RTCIceServer {
-    urls?: any;
-    username?: string;
-    credential?: string;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsReceived?: number;
-    bytesReceived?: number;
-    packetsLost?: number;
-    jitter?: number;
-    fractionLost?: number;
-}
-
-interface RTCMediaStreamTrackStats extends RTCStats {
-    trackIdentifier?: string;
-    remoteSource?: boolean;
-    ssrcIds?: string[];
-    frameWidth?: number;
-    frameHeight?: number;
-    framesPerSecond?: number;
-    framesSent?: number;
-    framesReceived?: number;
-    framesDecoded?: number;
-    framesDropped?: number;
-    framesCorrupted?: number;
-    audioLevel?: number;
-    echoReturnLoss?: number;
-    echoReturnLossEnhancement?: number;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
-    packetsSent?: number;
-    bytesSent?: number;
-    targetBitrate?: number;
-    roundTripTime?: number;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
-    ssrc?: string;
-    associateStatsId?: string;
-    isRemote?: boolean;
-    mediaTrackId?: string;
-    transportId?: string;
-    codecId?: string;
-    firCount?: number;
-    pliCount?: number;
-    nackCount?: number;
-    sliCount?: number;
-}
-
-interface RTCRtcpFeedback {
-    type?: string;
-    parameter?: string;
-}
-
-interface RTCRtcpParameters {
-    ssrc?: number;
-    cname?: string;
-    reducedSize?: boolean;
-    mux?: boolean;
-}
-
-interface RTCRtpCapabilities {
-    codecs?: RTCRtpCodecCapability[];
-    headerExtensions?: RTCRtpHeaderExtension[];
-    fecMechanisms?: string[];
-}
-
-interface RTCRtpCodecCapability {
-    name?: string;
-    kind?: string;
-    clockRate?: number;
-    preferredPayloadType?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-    options?: any;
-    maxTemporalLayers?: number;
-    maxSpatialLayers?: number;
-    svcMultiStreamSupport?: boolean;
-}
-
-interface RTCRtpCodecParameters {
-    name?: string;
-    payloadType?: any;
-    clockRate?: number;
-    maxptime?: number;
-    numChannels?: number;
-    rtcpFeedback?: RTCRtcpFeedback[];
-    parameters?: any;
-}
-
-interface RTCRtpContributingSource {
-    timestamp?: number;
-    csrc?: number;
-    audioLevel?: number;
-}
-
-interface RTCRtpEncodingParameters {
-    ssrc?: number;
-    codecPayloadType?: number;
-    fec?: RTCRtpFecParameters;
-    rtx?: RTCRtpRtxParameters;
-    priority?: number;
-    maxBitrate?: number;
-    minQuality?: number;
-    framerateBias?: number;
-    resolutionScale?: number;
-    framerateScale?: number;
-    active?: boolean;
-    encodingId?: string;
-    dependencyEncodingIds?: string[];
-    ssrcRange?: RTCSsrcRange;
-}
-
-interface RTCRtpFecParameters {
-    ssrc?: number;
-    mechanism?: string;
-}
-
-interface RTCRtpHeaderExtension {
-    kind?: string;
-    uri?: string;
-    preferredId?: number;
-    preferredEncrypt?: boolean;
-}
-
-interface RTCRtpHeaderExtensionParameters {
-    uri?: string;
-    id?: number;
-    encrypt?: boolean;
-}
-
-interface RTCRtpParameters {
-    muxId?: string;
-    codecs?: RTCRtpCodecParameters[];
-    headerExtensions?: RTCRtpHeaderExtensionParameters[];
-    encodings?: RTCRtpEncodingParameters[];
-    rtcp?: RTCRtcpParameters;
-}
-
-interface RTCRtpRtxParameters {
-    ssrc?: number;
-}
-
-interface RTCRtpUnhandled {
-    ssrc?: number;
-    payloadType?: number;
-    muxId?: string;
-}
-
-interface RTCSrtpKeyParam {
-    keyMethod?: string;
-    keySalt?: string;
-    lifetime?: string;
-    mkiValue?: number;
-    mkiLength?: number;
-}
-
-interface RTCSrtpSdesParameters {
-    tag?: number;
-    cryptoSuite?: string;
-    keyParams?: RTCSrtpKeyParam[];
-    sessionParams?: string[];
-}
-
-interface RTCSsrcRange {
-    min?: number;
-    max?: number;
-}
-
-interface RTCStats {
-    timestamp?: number;
-    type?: string;
-    id?: string;
-    msType?: string;
-}
-
-interface RTCStatsReport {
-}
-
-interface RTCTransportStats extends RTCStats {
-    bytesSent?: number;
-    bytesReceived?: number;
-    rtcpTransportStatsId?: string;
-    activeConnection?: boolean;
-    selectedCandidatePairId?: string;
-    localCertificateId?: string;
-    remoteCertificateId?: string;
-}
-
-interface StoreExceptionsInformation extends ExceptionInformation {
-    siteName?: string;
-    explanationString?: string;
-    detailURI?: string;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends 
StoreExceptionsInformation {
-    arrayOfDomainStrings?: string[];
-}
-
-interface UIEventInit extends EventInit {
-    view?: Window;
-    detail?: number;
-}
-
-interface WebGLContextAttributes {
-    failIfMajorPerformanceCaveat?: boolean;
-    alpha?: boolean;
-    depth?: boolean;
-    stencil?: boolean;
-    antialias?: boolean;
-    premultipliedAlpha?: boolean;
-    preserveDrawingBuffer?: boolean;
-}
-
-interface WebGLContextEventInit extends EventInit {
-    statusMessage?: string;
-}
-
-interface WheelEventInit extends MouseEventInit {
-    deltaX?: number;
-    deltaY?: number;
-    deltaZ?: number;
-    deltaMode?: number;
-}
-
-interface EventListener {
-    (evt: Event): void;
-}
-
-interface ANGLE_instanced_arrays {
-    drawArraysInstancedANGLE(mode: number, first: number, count: number, 
primcount: number): void;
-    drawElementsInstancedANGLE(mode: number, count: number, type: number, 
offset: number, primcount: number): void;
-    vertexAttribDivisorANGLE(index: number, divisor: number): void;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-declare var ANGLE_instanced_arrays: {
-    prototype: ANGLE_instanced_arrays;
-    new(): ANGLE_instanced_arrays;
-    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-interface AnalyserNode extends AudioNode {
-    fftSize: number;
-    readonly frequencyBinCount: number;
-    maxDecibels: number;
-    minDecibels: number;
-    smoothingTimeConstant: number;
-    getByteFrequencyData(array: Uint8Array): void;
-    getByteTimeDomainData(array: Uint8Array): void;
-    getFloatFrequencyData(array: Float32Array): void;
-    getFloatTimeDomainData(array: Float32Array): void;
-}
-
-declare var AnalyserNode: {
-    prototype: AnalyserNode;
-    new(): AnalyserNode;
-}
-
-interface AnimationEvent extends Event {
-    readonly animationName: string;
-    readonly elapsedTime: number;
-    initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, animationNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var AnimationEvent: {
-    prototype: AnimationEvent;
-    new(): AnimationEvent;
-}
-
-interface ApplicationCacheEventMap {
-    "cached": Event;
-    "checking": Event;
-    "downloading": Event;
-    "error": ErrorEvent;
-    "noupdate": Event;
-    "obsolete": Event;
-    "progress": ProgressEvent;
-    "updateready": Event;
-}
-
-interface ApplicationCache extends EventTarget {
-    oncached: (this: ApplicationCache, ev: Event) => any;
-    onchecking: (this: ApplicationCache, ev: Event) => any;
-    ondownloading: (this: ApplicationCache, ev: Event) => any;
-    onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
-    onnoupdate: (this: ApplicationCache, ev: Event) => any;
-    onobsolete: (this: ApplicationCache, ev: Event) => any;
-    onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
-    onupdateready: (this: ApplicationCache, ev: Event) => any;
-    readonly status: number;
-    abort(): void;
-    swapCache(): void;
-    update(): void;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, 
listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ApplicationCache: {
-    prototype: ApplicationCache;
-    new(): ApplicationCache;
-    readonly CHECKING: number;
-    readonly DOWNLOADING: number;
-    readonly IDLE: number;
-    readonly OBSOLETE: number;
-    readonly UNCACHED: number;
-    readonly UPDATEREADY: number;
-}
-
-interface AriaRequestEvent extends Event {
-    readonly attributeName: string;
-    attributeValue: string | null;
-}
-
-declare var AriaRequestEvent: {
-    prototype: AriaRequestEvent;
-    new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
-}
-
-interface Attr extends Node {
-    readonly name: string;
-    readonly ownerElement: Element;
-    readonly prefix: string | null;
-    readonly specified: boolean;
-    value: string;
-}
-
-declare var Attr: {
-    prototype: Attr;
-    new(): Attr;
-}
-
-interface AudioBuffer {
-    readonly duration: number;
-    readonly length: number;
-    readonly numberOfChannels: number;
-    readonly sampleRate: number;
-    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
-    prototype: AudioBuffer;
-    new(): AudioBuffer;
-}
-
-interface AudioBufferSourceNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface AudioBufferSourceNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    readonly detune: AudioParam;
-    loop: boolean;
-    loopEnd: number;
-    loopStart: number;
-    onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any;
-    readonly playbackRate: AudioParam;
-    start(when?: number, offset?: number, duration?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof AudioBufferSourceNodeEventMap>(type: K, 
listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) 
=> any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var AudioBufferSourceNode: {
-    prototype: AudioBufferSourceNode;
-    new(): AudioBufferSourceNode;
-}
-
-interface AudioContext extends EventTarget {
-    readonly currentTime: number;
-    readonly destination: AudioDestinationNode;
-    readonly listener: AudioListener;
-    readonly sampleRate: number;
-    state: string;
-    createAnalyser(): AnalyserNode;
-    createBiquadFilter(): BiquadFilterNode;
-    createBuffer(numberOfChannels: number, length: number, sampleRate: 
number): AudioBuffer;
-    createBufferSource(): AudioBufferSourceNode;
-    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
-    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
-    createConvolver(): ConvolverNode;
-    createDelay(maxDelayTime?: number): DelayNode;
-    createDynamicsCompressor(): DynamicsCompressorNode;
-    createGain(): GainNode;
-    createMediaElementSource(mediaElement: HTMLMediaElement): 
MediaElementAudioSourceNode;
-    createMediaStreamSource(mediaStream: MediaStream): 
MediaStreamAudioSourceNode;
-    createOscillator(): OscillatorNode;
-    createPanner(): PannerNode;
-    createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: 
PeriodicWaveConstraints): PeriodicWave;
-    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, 
numberOfOutputChannels?: number): ScriptProcessorNode;
-    createStereoPanner(): StereoPannerNode;
-    createWaveShaper(): WaveShaperNode;
-    decodeAudioData(audioData: ArrayBuffer, successCallback?: 
DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): 
PromiseLike<AudioBuffer>;
-}
-
-declare var AudioContext: {
-    prototype: AudioContext;
-    new(): AudioContext;
-}
-
-interface AudioDestinationNode extends AudioNode {
-    readonly maxChannelCount: number;
-}
-
-declare var AudioDestinationNode: {
-    prototype: AudioDestinationNode;
-    new(): AudioDestinationNode;
-}
-
-interface AudioListener {
-    dopplerFactor: number;
-    speedOfSound: number;
-    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, 
zUp: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var AudioListener: {
-    prototype: AudioListener;
-    new(): AudioListener;
-}
-
-interface AudioNode extends EventTarget {
-    channelCount: number;
-    channelCountMode: string;
-    channelInterpretation: string;
-    readonly context: AudioContext;
-    readonly numberOfInputs: number;
-    readonly numberOfOutputs: number;
-    connect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(output?: number): void;
-    disconnect(destination: AudioNode, output?: number, input?: number): void;
-    disconnect(destination: AudioParam, output?: number): void;
-}
-
-declare var AudioNode: {
-    prototype: AudioNode;
-    new(): AudioNode;
-}
-
-interface AudioParam {
-    readonly defaultValue: number;
-    value: number;
-    cancelScheduledValues(startTime: number): void;
-    exponentialRampToValueAtTime(value: number, endTime: number): void;
-    linearRampToValueAtTime(value: number, endTime: number): void;
-    setTargetAtTime(target: number, startTime: number, timeConstant: number): 
void;
-    setValueAtTime(value: number, startTime: number): void;
-    setValueCurveAtTime(values: Float32Array, startTime: number, duration: 
number): void;
-}
-
-declare var AudioParam: {
-    prototype: AudioParam;
-    new(): AudioParam;
-}
-
-interface AudioProcessingEvent extends Event {
-    readonly inputBuffer: AudioBuffer;
-    readonly outputBuffer: AudioBuffer;
-    readonly playbackTime: number;
-}
-
-declare var AudioProcessingEvent: {
-    prototype: AudioProcessingEvent;
-    new(): AudioProcessingEvent;
-}
-
-interface AudioTrack {
-    enabled: boolean;
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var AudioTrack: {
-    prototype: AudioTrack;
-    new(): AudioTrack;
-}
-
-interface AudioTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface AudioTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    onchange: (this: AudioTrackList, ev: Event) => any;
-    onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any;
-    getTrackById(id: string): AudioTrack | null;
-    item(index: number): AudioTrack;
-    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, 
listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: AudioTrack;
-}
-
-declare var AudioTrackList: {
-    prototype: AudioTrackList;
-    new(): AudioTrackList;
-}
-
-interface BarProp {
-    readonly visible: boolean;
-}
-
-declare var BarProp: {
-    prototype: BarProp;
-    new(): BarProp;
-}
-
-interface BeforeUnloadEvent extends Event {
-    returnValue: any;
-}
-
-declare var BeforeUnloadEvent: {
-    prototype: BeforeUnloadEvent;
-    new(): BeforeUnloadEvent;
-}
-
-interface BiquadFilterNode extends AudioNode {
-    readonly Q: AudioParam;
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    readonly gain: AudioParam;
-    type: string;
-    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, 
phaseResponse: Float32Array): void;
-}
-
-declare var BiquadFilterNode: {
-    prototype: BiquadFilterNode;
-    new(): BiquadFilterNode;
-}
-
-interface Blob {
-    readonly size: number;
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-    slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
-    prototype: Blob;
-    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
-
-interface CDATASection extends Text {
-}
-
-declare var CDATASection: {
-    prototype: CDATASection;
-    new(): CDATASection;
-}
-
-interface CSS {
-    supports(property: string, value?: string): boolean;
-}
-declare var CSS: CSS;
-
-interface CSSConditionRule extends CSSGroupingRule {
-    conditionText: string;
-}
-
-declare var CSSConditionRule: {
-    prototype: CSSConditionRule;
-    new(): CSSConditionRule;
-}
-
-interface CSSFontFaceRule extends CSSRule {
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSFontFaceRule: {
-    prototype: CSSFontFaceRule;
-    new(): CSSFontFaceRule;
-}
-
-interface CSSGroupingRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    deleteRule(index: number): void;
-    insertRule(rule: string, index: number): number;
-}
-
-declare var CSSGroupingRule: {
-    prototype: CSSGroupingRule;
-    new(): CSSGroupingRule;
-}
-
-interface CSSImportRule extends CSSRule {
-    readonly href: string;
-    readonly media: MediaList;
-    readonly styleSheet: CSSStyleSheet;
-}
-
-declare var CSSImportRule: {
-    prototype: CSSImportRule;
-    new(): CSSImportRule;
-}
-
-interface CSSKeyframeRule extends CSSRule {
-    keyText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSKeyframeRule: {
-    prototype: CSSKeyframeRule;
-    new(): CSSKeyframeRule;
-}
-
-interface CSSKeyframesRule extends CSSRule {
-    readonly cssRules: CSSRuleList;
-    name: string;
-    appendRule(rule: string): void;
-    deleteRule(rule: string): void;
-    findRule(rule: string): CSSKeyframeRule;
-}
-
-declare var CSSKeyframesRule: {
-    prototype: CSSKeyframesRule;
-    new(): CSSKeyframesRule;
-}
-
-interface CSSMediaRule extends CSSConditionRule {
-    readonly media: MediaList;
-}
-
-declare var CSSMediaRule: {
-    prototype: CSSMediaRule;
-    new(): CSSMediaRule;
-}
-
-interface CSSNamespaceRule extends CSSRule {
-    readonly namespaceURI: string;
-    readonly prefix: string;
-}
-
-declare var CSSNamespaceRule: {
-    prototype: CSSNamespaceRule;
-    new(): CSSNamespaceRule;
-}
-
-interface CSSPageRule extends CSSRule {
-    readonly pseudoClass: string;
-    readonly selector: string;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSPageRule: {
-    prototype: CSSPageRule;
-    new(): CSSPageRule;
-}
-
-interface CSSRule {
-    cssText: string;
-    readonly parentRule: CSSRule;
-    readonly parentStyleSheet: CSSStyleSheet;
-    readonly type: number;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-declare var CSSRule: {
-    prototype: CSSRule;
-    new(): CSSRule;
-    readonly CHARSET_RULE: number;
-    readonly FONT_FACE_RULE: number;
-    readonly IMPORT_RULE: number;
-    readonly KEYFRAMES_RULE: number;
-    readonly KEYFRAME_RULE: number;
-    readonly MEDIA_RULE: number;
-    readonly NAMESPACE_RULE: number;
-    readonly PAGE_RULE: number;
-    readonly STYLE_RULE: number;
-    readonly SUPPORTS_RULE: number;
-    readonly UNKNOWN_RULE: number;
-    readonly VIEWPORT_RULE: number;
-}
-
-interface CSSRuleList {
-    readonly length: number;
-    item(index: number): CSSRule;
-    [index: number]: CSSRule;
-}
-
-declare var CSSRuleList: {
-    prototype: CSSRuleList;
-    new(): CSSRuleList;
-}
-
-interface CSSStyleDeclaration {
-    alignContent: string | null;
-    alignItems: string | null;
-    alignSelf: string | null;
-    alignmentBaseline: string | null;
-    animation: string | null;
-    animationDelay: string | null;
-    animationDirection: string | null;
-    animationDuration: string | null;
-    animationFillMode: string | null;
-    animationIterationCount: string | null;
-    animationName: string | null;
-    animationPlayState: string | null;
-    animationTimingFunction: string | null;
-    backfaceVisibility: string | null;
-    background: string | null;
-    backgroundAttachment: string | null;
-    backgroundClip: string | null;
-    backgroundColor: string | null;
-    backgroundImage: string | null;
-    backgroundOrigin: string | null;
-    backgroundPosition: string | null;
-    backgroundPositionX: string | null;
-    backgroundPositionY: string | null;
-    backgroundRepeat: string | null;
-    backgroundSize: string | null;
-    baselineShift: string | null;
-    border: string | null;
-    borderBottom: string | null;
-    borderBottomColor: string | null;
-    borderBottomLeftRadius: string | null;
-    borderBottomRightRadius: string | null;
-    borderBottomStyle: string | null;
-    borderBottomWidth: string | null;
-    borderCollapse: string | null;
-    borderColor: string | null;
-    borderImage: string | null;
-    borderImageOutset: string | null;
-    borderImageRepeat: string | null;
-    borderImageSlice: string | null;
-    borderImageSource: string | null;
-    borderImageWidth: string | null;
-    borderLeft: string | null;
-    borderLeftColor: string | null;
-    borderLeftStyle: string | null;
-    borderLeftWidth: string | null;
-    borderRadius: string | null;
-    borderRight: string | null;
-    borderRightColor: string | null;
-    borderRightStyle: string | null;
-    borderRightWidth: string | null;
-    borderSpacing: string | null;
-    borderStyle: string | null;
-    borderTop: string | null;
-    borderTopColor: string | null;
-    borderTopLeftRadius: string | null;
-    borderTopRightRadius: string | null;
-    borderTopStyle: string | null;
-    borderTopWidth: string | null;
-    borderWidth: string | null;
-    bottom: string | null;
-    boxShadow: string | null;
-    boxSizing: string | null;
-    breakAfter: string | null;
-    breakBefore: string | null;
-    breakInside: string | null;
-    captionSide: string | null;
-    clear: string | null;
-    clip: string | null;
-    clipPath: string | null;
-    clipRule: string | null;
-    color: string | null;
-    colorInterpolationFilters: string | null;
-    columnCount: any;
-    columnFill: string | null;
-    columnGap: any;
-    columnRule: string | null;
-    columnRuleColor: any;
-    columnRuleStyle: string | null;
-    columnRuleWidth: any;
-    columnSpan: string | null;
-    columnWidth: any;
-    columns: string | null;
-    content: string | null;
-    counterIncrement: string | null;
-    counterReset: string | null;
-    cssFloat: string | null;
-    cssText: string;
-    cursor: string | null;
-    direction: string | null;
-    display: string | null;
-    dominantBaseline: string | null;
-    emptyCells: string | null;
-    enableBackground: string | null;
-    fill: string | null;
-    fillOpacity: string | null;
-    fillRule: string | null;
-    filter: string | null;
-    flex: string | null;
-    flexBasis: string | null;
-    flexDirection: string | null;
-    flexFlow: string | null;
-    flexGrow: string | null;
-    flexShrink: string | null;
-    flexWrap: string | null;
-    floodColor: string | null;
-    floodOpacity: string | null;
-    font: string | null;
-    fontFamily: string | null;
-    fontFeatureSettings: string | null;
-    fontSize: string | null;
-    fontSizeAdjust: string | null;
-    fontStretch: string | null;
-    fontStyle: string | null;
-    fontVariant: string | null;
-    fontWeight: string | null;
-    glyphOrientationHorizontal: string | null;
-    glyphOrientationVertical: string | null;
-    height: string | null;
-    imeMode: string | null;
-    justifyContent: string | null;
-    kerning: string | null;
-    left: string | null;
-    readonly length: number;
-    letterSpacing: string | null;
-    lightingColor: string | null;
-    lineHeight: string | null;
-    listStyle: string | null;
-    listStyleImage: string | null;
-    listStylePosition: string | null;
-    listStyleType: string | null;
-    margin: string | null;
-    marginBottom: string | null;
-    marginLeft: string | null;
-    marginRight: string | null;
-    marginTop: string | null;
-    marker: string | null;
-    markerEnd: string | null;
-    markerMid: string | null;
-    markerStart: string | null;
-    mask: string | null;
-    maxHeight: string | null;
-    maxWidth: string | null;
-    minHeight: string | null;
-    minWidth: string | null;
-    msContentZoomChaining: string | null;
-    msContentZoomLimit: string | null;
-    msContentZoomLimitMax: any;
-    msContentZoomLimitMin: any;
-    msContentZoomSnap: string | null;
-    msContentZoomSnapPoints: string | null;
-    msContentZoomSnapType: string | null;
-    msContentZooming: string | null;
-    msFlowFrom: string | null;
-    msFlowInto: string | null;
-    msFontFeatureSettings: string | null;
-    msGridColumn: any;
-    msGridColumnAlign: string | null;
-    msGridColumnSpan: any;
-    msGridColumns: string | null;
-    msGridRow: any;
-    msGridRowAlign: string | null;
-    msGridRowSpan: any;
-    msGridRows: string | null;
-    msHighContrastAdjust: string | null;
-    msHyphenateLimitChars: string | null;
-    msHyphenateLimitLines: any;
-    msHyphenateLimitZone: any;
-    msHyphens: string | null;
-    msImeAlign: string | null;
-    msOverflowStyle: string | null;
-    msScrollChaining: string | null;
-    msScrollLimit: string | null;
-    msScrollLimitXMax: any;
-    msScrollLimitXMin: any;
-    msScrollLimitYMax: any;
-    msScrollLimitYMin: any;
-    msScrollRails: string | null;
-    msScrollSnapPointsX: string | null;
-    msScrollSnapPointsY: string | null;
-    msScrollSnapType: string | null;
-    msScrollSnapX: string | null;
-    msScrollSnapY: string | null;
-    msScrollTranslation: string | null;
-    msTextCombineHorizontal: string | null;
-    msTextSizeAdjust: any;
-    msTouchAction: string | null;
-    msTouchSelect: string | null;
-    msUserSelect: string | null;
-    msWrapFlow: string;
-    msWrapMargin: any;
-    msWrapThrough: string;
-    opacity: string | null;
-    order: string | null;
-    orphans: string | null;
-    outline: string | null;
-    outlineColor: string | null;
-    outlineStyle: string | null;
-    outlineWidth: string | null;
-    overflow: string | null;
-    overflowX: string | null;
-    overflowY: string | null;
-    padding: string | null;
-    paddingBottom: string | null;
-    paddingLeft: string | null;
-    paddingRight: string | null;
-    paddingTop: string | null;
-    pageBreakAfter: string | null;
-    pageBreakBefore: string | null;
-    pageBreakInside: string | null;
-    readonly parentRule: CSSRule;
-    perspective: string | null;
-    perspectiveOrigin: string | null;
-    pointerEvents: string | null;
-    position: string | null;
-    quotes: string | null;
-    right: string | null;
-    rubyAlign: string | null;
-    rubyOverhang: string | null;
-    rubyPosition: string | null;
-    stopColor: string | null;
-    stopOpacity: string | null;
-    stroke: string | null;
-    strokeDasharray: string | null;
-    strokeDashoffset: string | null;
-    strokeLinecap: string | null;
-    strokeLinejoin: string | null;
-    strokeMiterlimit: string | null;
-    strokeOpacity: string | null;
-    strokeWidth: string | null;
-    tableLayout: string | null;
-    textAlign: string | null;
-    textAlignLast: string | null;
-    textAnchor: string | null;
-    textDecoration: string | null;
-    textIndent: string | null;
-    textJustify: string | null;
-    textKashida: string | null;
-    textKashidaSpace: string | null;
-    textOverflow: string | null;
-    textShadow: string | null;
-    textTransform: string | null;
-    textUnderlinePosition: string | null;
-    top: string | null;
-    touchAction: string | null;
-    transform: string | null;
-    transformOrigin: string | null;
-    transformStyle: string | null;
-    transition: string | null;
-    transitionDelay: string | null;
-    transitionDuration: string | null;
-    transitionProperty: string | null;
-    transitionTimingFunction: string | null;
-    unicodeBidi: string | null;
-    verticalAlign: string | null;
-    visibility: string | null;
-    webkitAlignContent: string | null;
-    webkitAlignItems: string | null;
-    webkitAlignSelf: string | null;
-    webkitAnimation: string | null;
-    webkitAnimationDelay: string | null;
-    webkitAnimationDirection: string | null;
-    webkitAnimationDuration: string | null;
-    webkitAnimationFillMode: string | null;
-    webkitAnimationIterationCount: string | null;
-    webkitAnimationName: string | null;
-    webkitAnimationPlayState: string | null;
-    webkitAnimationTimingFunction: string | null;
-    webkitAppearance: string | null;
-    webkitBackfaceVisibility: string | null;
-    webkitBackgroundClip: string | null;
-    webkitBackgroundOrigin: string | null;
-    webkitBackgroundSize: string | null;
-    webkitBorderBottomLeftRadius: string | null;
-    webkitBorderBottomRightRadius: string | null;
-    webkitBorderImage: string | null;
-    webkitBorderRadius: string | null;
-    webkitBorderTopLeftRadius: string | null;
-    webkitBorderTopRightRadius: string | null;
-    webkitBoxAlign: string | null;
-    webkitBoxDirection: string | null;
-    webkitBoxFlex: string | null;
-    webkitBoxOrdinalGroup: string | null;
-    webkitBoxOrient: string | null;
-    webkitBoxPack: string | null;
-    webkitBoxSizing: string | null;
-    webkitColumnBreakAfter: string | null;
-    webkitColumnBreakBefore: string | null;
-    webkitColumnBreakInside: string | null;
-    webkitColumnCount: any;
-    webkitColumnGap: any;
-    webkitColumnRule: string | null;
-    webkitColumnRuleColor: any;
-    webkitColumnRuleStyle: string | null;
-    webkitColumnRuleWidth: any;
-    webkitColumnSpan: string | null;
-    webkitColumnWidth: any;
-    webkitColumns: string | null;
-    webkitFilter: string | null;
-    webkitFlex: string | null;
-    webkitFlexBasis: string | null;
-    webkitFlexDirection: string | null;
-    webkitFlexFlow: string | null;
-    webkitFlexGrow: string | null;
-    webkitFlexShrink: string | null;
-    webkitFlexWrap: string | null;
-    webkitJustifyContent: string | null;
-    webkitOrder: string | null;
-    webkitPerspective: string | null;
-    webkitPerspectiveOrigin: string | null;
-    webkitTapHighlightColor: string | null;
-    webkitTextFillColor: string | null;
-    webkitTextSizeAdjust: any;
-    webkitTransform: string | null;
-    webkitTransformOrigin: string | null;
-    webkitTransformStyle: string | null;
-    webkitTransition: string | null;
-    webkitTransitionDelay: string | null;
-    webkitTransitionDuration: string | null;
-    webkitTransitionProperty: string | null;
-    webkitTransitionTimingFunction: string | null;
-    webkitUserModify: string | null;
-    webkitUserSelect: string | null;
-    webkitWritingMode: string | null;
-    whiteSpace: string | null;
-    widows: string | null;
-    width: string | null;
-    wordBreak: string | null;
-    wordSpacing: string | null;
-    wordWrap: string | null;
-    writingMode: string | null;
-    zIndex: string | null;
-    zoom: string | null;
-    resize: string | null;
-    getPropertyPriority(propertyName: string): string;
-    getPropertyValue(propertyName: string): string;
-    item(index: number): string;
-    removeProperty(propertyName: string): string;
-    setProperty(propertyName: string, value: string | null, priority?: 
string): void;
-    [index: number]: string;
-}
-
-declare var CSSStyleDeclaration: {
-    prototype: CSSStyleDeclaration;
-    new(): CSSStyleDeclaration;
-}
-
-interface CSSStyleRule extends CSSRule {
-    readonly readOnly: boolean;
-    selectorText: string;
-    readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSStyleRule: {
-    prototype: CSSStyleRule;
-    new(): CSSStyleRule;
-}
-
-interface CSSStyleSheet extends StyleSheet {
-    readonly cssRules: CSSRuleList;
-    cssText: string;
-    readonly href: string;
-    readonly id: string;
-    readonly imports: StyleSheetList;
-    readonly isAlternate: boolean;
-    readonly isPrefAlternate: boolean;
-    readonly ownerRule: CSSRule;
-    readonly owningElement: Element;
-    readonly pages: StyleSheetPageList;
-    readonly readOnly: boolean;
-    readonly rules: CSSRuleList;
-    addImport(bstrURL: string, lIndex?: number): number;
-    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): 
number;
-    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
-    deleteRule(index?: number): void;
-    insertRule(rule: string, index?: number): number;
-    removeImport(lIndex: number): void;
-    removeRule(lIndex: number): void;
-}
-
-declare var CSSStyleSheet: {
-    prototype: CSSStyleSheet;
-    new(): CSSStyleSheet;
-}
-
-interface CSSSupportsRule extends CSSConditionRule {
-}
-
-declare var CSSSupportsRule: {
-    prototype: CSSSupportsRule;
-    new(): CSSSupportsRule;
-}
-
-interface CanvasGradient {
-    addColorStop(offset: number, color: string): void;
-}
-
-declare var CanvasGradient: {
-    prototype: CanvasGradient;
-    new(): CanvasGradient;
-}
-
-interface CanvasPattern {
-    setTransform(matrix: SVGMatrix): void;
-}
-
-declare var CanvasPattern: {
-    prototype: CanvasPattern;
-    new(): CanvasPattern;
-}
-
-interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
-    readonly canvas: HTMLCanvasElement;
-    fillStyle: string | CanvasGradient | CanvasPattern;
-    font: string;
-    globalAlpha: number;
-    globalCompositeOperation: string;
-    lineCap: string;
-    lineDashOffset: number;
-    lineJoin: string;
-    lineWidth: number;
-    miterLimit: number;
-    msFillRule: string;
-    msImageSmoothingEnabled: boolean;
-    shadowBlur: number;
-    shadowColor: string;
-    shadowOffsetX: number;
-    shadowOffsetY: number;
-    strokeStyle: string | CanvasGradient | CanvasPattern;
-    textAlign: string;
-    textBaseline: string;
-    mozImageSmoothingEnabled: boolean;
-    webkitImageSmoothingEnabled: boolean;
-    oImageSmoothingEnabled: boolean;
-    beginPath(): void;
-    clearRect(x: number, y: number, w: number, h: number): void;
-    clip(fillRule?: string): void;
-    createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
-    createLinearGradient(x0: number, y0: number, x1: number, y1: number): 
CanvasGradient;
-    createPattern(image: HTMLImageElement | HTMLCanvasElement | 
HTMLVideoElement, repetition: string): CanvasPattern;
-    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: 
number, r1: number): CanvasGradient;
-    drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, 
offsetX: number, offsetY: number, width?: number, height?: number, 
canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, 
canvasImageHeight?: number): void;
-    fill(fillRule?: string): void;
-    fillRect(x: number, y: number, w: number, h: number): void;
-    fillText(text: string, x: number, y: number, maxWidth?: number): void;
-    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
-    getLineDash(): number[];
-    isPointInPath(x: number, y: number, fillRule?: string): boolean;
-    measureText(text: string): TextMetrics;
-    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: 
number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
-    restore(): void;
-    rotate(angle: number): void;
-    save(): void;
-    scale(x: number, y: number): void;
-    setLineDash(segments: number[]): void;
-    setTransform(m11: number, m12: number, m21: number, m22: number, dx: 
number, dy: number): void;
-    stroke(): void;
-    strokeRect(x: number, y: number, w: number, h: number): void;
-    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
-    transform(m11: number, m12: number, m21: number, m22: number, dx: number, 
dy: number): void;
-    translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
-    prototype: CanvasRenderingContext2D;
-    new(): CanvasRenderingContext2D;
-}
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
-    prototype: ChannelMergerNode;
-    new(): ChannelMergerNode;
-}
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
-    prototype: ChannelSplitterNode;
-    new(): ChannelSplitterNode;
-}
-
-interface CharacterData extends Node, ChildNode {
-    data: string;
-    readonly length: number;
-    appendData(arg: string): void;
-    deleteData(offset: number, count: number): void;
-    insertData(offset: number, arg: string): void;
-    replaceData(offset: number, count: number, arg: string): void;
-    substringData(offset: number, count: number): string;
-}
-
-declare var CharacterData: {
-    prototype: CharacterData;
-    new(): CharacterData;
-}
-
-interface ClientRect {
-    bottom: number;
-    readonly height: number;
-    left: number;
-    right: number;
-    top: number;
-    readonly width: number;
-}
-
-declare var ClientRect: {
-    prototype: ClientRect;
-    new(): ClientRect;
-}
-
-interface ClientRectList {
-    readonly length: number;
-    item(index: number): ClientRect;
-    [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
-    prototype: ClientRectList;
-    new(): ClientRectList;
-}
-
-interface ClipboardEvent extends Event {
-    readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
-    prototype: ClipboardEvent;
-    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
-}
-
-interface CloseEvent extends Event {
-    readonly code: number;
-    readonly reason: string;
-    readonly wasClean: boolean;
-    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
-    prototype: CloseEvent;
-    new(): CloseEvent;
-}
-
-interface CommandEvent extends Event {
-    readonly commandName: string;
-    readonly detail: string | null;
-}
-
-declare var CommandEvent: {
-    prototype: CommandEvent;
-    new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
-}
-
-interface Comment extends CharacterData {
-    text: string;
-}
-
-declare var Comment: {
-    prototype: Comment;
-    new(): Comment;
-}
-
-interface CompositionEvent extends UIEvent {
-    readonly data: string;
-    readonly locale: string;
-    initCompositionEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
-
-declare var CompositionEvent: {
-    prototype: CompositionEvent;
-    new(typeArg: string, eventInitDict?: CompositionEventInit): 
CompositionEvent;
-}
-
-interface Console {
-    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
-    clear(): void;
-    count(countTitle?: string): void;
-    debug(message?: string, ...optionalParams: any[]): void;
-    dir(value?: any, ...optionalParams: any[]): void;
-    dirxml(value: any): void;
-    error(message?: any, ...optionalParams: any[]): void;
-    exception(message?: string, ...optionalParams: any[]): void;
-    group(groupTitle?: string): void;
-    groupCollapsed(groupTitle?: string): void;
-    groupEnd(): void;
-    info(message?: any, ...optionalParams: any[]): void;
-    log(message?: any, ...optionalParams: any[]): void;
-    msIsIndependentlyComposed(element: Element): boolean;
-    profile(reportName?: string): void;
-    profileEnd(): void;
-    select(element: Element): void;
-    table(...data: any[]): void;
-    time(timerName?: string): void;
-    timeEnd(timerName?: string): void;
-    trace(message?: any, ...optionalParams: any[]): void;
-    warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
-    prototype: Console;
-    new(): Console;
-}
-
-interface ConvolverNode extends AudioNode {
-    buffer: AudioBuffer | null;
-    normalize: boolean;
-}
-
-declare var ConvolverNode: {
-    prototype: ConvolverNode;
-    new(): ConvolverNode;
-}
-
-interface Coordinates {
-    readonly accuracy: number;
-    readonly altitude: number | null;
-    readonly altitudeAccuracy: number | null;
-    readonly heading: number | null;
-    readonly latitude: number;
-    readonly longitude: number;
-    readonly speed: number | null;
-}
-
-declare var Coordinates: {
-    prototype: Coordinates;
-    new(): Coordinates;
-}
-
-interface Crypto extends Object, RandomSource {
-    readonly subtle: SubtleCrypto;
-}
-
-declare var Crypto: {
-    prototype: Crypto;
-    new(): Crypto;
-}
-
-interface CryptoKey {
-    readonly algorithm: KeyAlgorithm;
-    readonly extractable: boolean;
-    readonly type: string;
-    readonly usages: string[];
-}
-
-declare var CryptoKey: {
-    prototype: CryptoKey;
-    new(): CryptoKey;
-}
-
-interface CryptoKeyPair {
-    privateKey: CryptoKey;
-    publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
-    prototype: CryptoKeyPair;
-    new(): CryptoKeyPair;
-}
-
-interface CustomEvent extends Event {
-    readonly detail: any;
-    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, detailArg: any): void;
-}
-
-declare var CustomEvent: {
-    prototype: CustomEvent;
-    new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-}
-
-interface DOMError {
-    readonly name: string;
-    toString(): string;
-}
-
-declare var DOMError: {
-    prototype: DOMError;
-    new(): DOMError;
-}
-
-interface DOMException {
-    readonly code: number;
-    readonly message: string;
-    readonly name: string;
-    toString(): string;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
-    prototype: DOMException;
-    new(): DOMException;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMImplementation {
-    createDocument(namespaceURI: string | null, qualifiedName: string | null, 
doctype: DocumentType): Document;
-    createDocumentType(qualifiedName: string, publicId: string | null, 
systemId: string | null): DocumentType;
-    createHTMLDocument(title: string): Document;
-    hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
-    prototype: DOMImplementation;
-    new(): DOMImplementation;
-}
-
-interface DOMParser {
-    parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
-    prototype: DOMParser;
-    new(): DOMParser;
-}
-
-interface DOMSettableTokenList extends DOMTokenList {
-    value: string;
-}
-
-declare var DOMSettableTokenList: {
-    prototype: DOMSettableTokenList;
-    new(): DOMSettableTokenList;
-}
-
-interface DOMStringList {
-    readonly length: number;
-    contains(str: string): boolean;
-    item(index: number): string | null;
-    [index: number]: string;
-}
-
-declare var DOMStringList: {
-    prototype: DOMStringList;
-    new(): DOMStringList;
-}
-
-interface DOMStringMap {
-    [name: string]: string;
-}
-
-declare var DOMStringMap: {
-    prototype: DOMStringMap;
-    new(): DOMStringMap;
-}
-
-interface DOMTokenList {
-    readonly length: number;
-    add(...token: string[]): void;
-    contains(token: string): boolean;
-    item(index: number): string;
-    remove(...token: string[]): void;
-    toString(): string;
-    toggle(token: string, force?: boolean): boolean;
-    [index: number]: string;
-}
-
-declare var DOMTokenList: {
-    prototype: DOMTokenList;
-    new(): DOMTokenList;
-}
-
-interface DataCue extends TextTrackCue {
-    data: ArrayBuffer;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DataCue: {
-    prototype: DataCue;
-    new(): DataCue;
-}
-
-interface DataTransfer {
-    dropEffect: string;
-    effectAllowed: string;
-    readonly files: FileList;
-    readonly items: DataTransferItemList;
-    readonly types: string[];
-    clearData(format?: string): boolean;
-    getData(format: string): string;
-    setData(format: string, data: string): boolean;
-}
-
-declare var DataTransfer: {
-    prototype: DataTransfer;
-    new(): DataTransfer;
-}
-
-interface DataTransferItem {
-    readonly kind: string;
-    readonly type: string;
-    getAsFile(): File | null;
-    getAsString(_callback: FunctionStringCallback | null): void;
-}
-
-declare var DataTransferItem: {
-    prototype: DataTransferItem;
-    new(): DataTransferItem;
-}
-
-interface DataTransferItemList {
-    readonly length: number;
-    add(data: File): DataTransferItem | null;
-    clear(): void;
-    item(index: number): DataTransferItem;
-    remove(index: number): void;
-    [index: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
-    prototype: DataTransferItemList;
-    new(): DataTransferItemList;
-}
-
-interface DeferredPermissionRequest {
-    readonly id: number;
-    readonly type: string;
-    readonly uri: string;
-    allow(): void;
-    deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
-    prototype: DeferredPermissionRequest;
-    new(): DeferredPermissionRequest;
-}
-
-interface DelayNode extends AudioNode {
-    readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
-    prototype: DelayNode;
-    new(): DelayNode;
-}
-
-interface DeviceAcceleration {
-    readonly x: number | null;
-    readonly y: number | null;
-    readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
-    prototype: DeviceAcceleration;
-    new(): DeviceAcceleration;
-}
-
-interface DeviceLightEvent extends Event {
-    readonly value: number;
-}
-
-declare var DeviceLightEvent: {
-    prototype: DeviceLightEvent;
-    new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-}
-
-interface DeviceMotionEvent extends Event {
-    readonly acceleration: DeviceAcceleration | null;
-    readonly accelerationIncludingGravity: DeviceAcceleration | null;
-    readonly interval: number | null;
-    readonly rotationRate: DeviceRotationRate | null;
-    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, 
acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: 
DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, 
interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
-    prototype: DeviceMotionEvent;
-    new(): DeviceMotionEvent;
-}
-
-interface DeviceOrientationEvent extends Event {
-    readonly absolute: boolean;
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: 
boolean, alpha: number | null, beta: number | null, gamma: number | null, 
absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
-    prototype: DeviceOrientationEvent;
-    new(): DeviceOrientationEvent;
-}
-
-interface DeviceRotationRate {
-    readonly alpha: number | null;
-    readonly beta: number | null;
-    readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
-    prototype: DeviceRotationRate;
-    new(): DeviceRotationRate;
-}
-
-interface DocumentEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforedeactivate": UIEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "fullscreenchange": Event;
-    "fullscreenerror": Event;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "mssitemodejumplistitemremoved": MSSiteModeEvent;
-    "msthumbnailclick": MSSiteModeEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "pointerlockchange": Event;
-    "pointerlockerror": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectionchange": Event;
-    "selectstart": Event;
-    "stalled": Event;
-    "stop": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "volumechange": Event;
-    "waiting": Event;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Document extends Node, GlobalEventHandlers, NodeSelector, 
DocumentEvent, ParentNode, DocumentOrShadowRoot {
-    /**
-      * Sets or gets the URL for the current document. 
-      */
-    readonly URL: string;
-    /**
-      * Gets the URL for the document, stripped of any character encoding.
-      */
-    readonly URLUnencoded: string;
-    /**
-      * Gets the object that has the focus when the parent document has focus.
-      */
-    readonly activeElement: Element;
-    /**
-      * Sets or gets the color of all active links in the document.
-      */
-    alinkColor: string;
-    /**
-      * Returns a reference to the collection of elements contained by the 
object.
-      */
-    readonly all: HTMLAllCollection;
-    /**
-      * Retrieves a collection of all a objects that have a name and/or id 
property. Objects in this collection are in HTML source order.
-      */
-    anchors: HTMLCollectionOf<HTMLAnchorElement>;
-    /**
-      * Retrieves a collection of all applet objects in the document.
-      */
-    applets: HTMLCollectionOf<HTMLAppletElement>;
-    /**
-      * Deprecated. Sets or retrieves a value that indicates the background 
color behind the object. 
-      */
-    bgColor: string;
-    /**
-      * Specifies the beginning and end of the document body.
-      */
-    body: HTMLElement;
-    readonly characterSet: string;
-    /**
-      * Gets or sets the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets a value that indicates whether standards-compliant mode is 
switched on for the object.
-      */
-    readonly compatMode: string;
-    cookie: string;
-    readonly currentScript: HTMLScriptElement | SVGScriptElement;
-    /**
-      * Gets the default character set from the current regional language 
settings.
-      */
-    readonly defaultCharset: string;
-    readonly defaultView: Window;
-    /**
-      * Sets or gets a value that indicates whether the document can be edited.
-      */
-    designMode: string;
-    /**
-      * Sets or retrieves a value that indicates the reading order of the 
object. 
-      */
-    dir: string;
-    /**
-      * Gets an object representing the document type declaration associated 
with the current document. 
-      */
-    readonly doctype: DocumentType;
-    /**
-      * Gets a reference to the root node of the document. 
-      */
-    documentElement: HTMLElement;
-    /**
-      * Sets or gets the security domain of the document. 
-      */
-    domain: string;
-    /**
-      * Retrieves a collection of all embed objects in the document.
-      */
-    embeds: HTMLCollectionOf<HTMLEmbedElement>;
-    /**
-      * Sets or gets the foreground (text) color of the document.
-      */
-    fgColor: string;
-    /**
-      * Retrieves a collection, in source order, of all form objects in the 
document.
-      */
-    forms: HTMLCollectionOf<HTMLFormElement>;
-    readonly fullscreenElement: Element | null;
-    readonly fullscreenEnabled: boolean;
-    readonly head: HTMLHeadElement;
-    readonly hidden: boolean;
-    /**
-      * Retrieves a collection, in source order, of img objects in the 
document.
-      */
-    images: HTMLCollectionOf<HTMLImageElement>;
-    /**
-      * Gets the implementation object of the current document. 
-      */
-    readonly implementation: DOMImplementation;
-    /**
-      * Returns the character encoding used to create the webpage that is 
loaded into the document object.
-      */
-    readonly inputEncoding: string | null;
-    /**
-      * Gets the date that the page was last modified, if the page supplies 
one. 
-      */
-    readonly lastModified: string;
-    /**
-      * Sets or gets the color of the document links. 
-      */
-    linkColor: string;
-    /**
-      * Retrieves a collection of all a objects that specify the href property 
and all area objects in the document.
-      */
-    links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
-    /**
-      * Contains information about the current URL. 
-      */
-    readonly location: Location;
-    msCSSOMElementFloatMetrics: boolean;
-    msCapsLockWarningOff: boolean;
-    /**
-      * Fires when the user aborts the download.
-      * @param ev The event.
-      */
-    onabort: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the object is set as the active element.
-      * @param ev The event.
-      */
-    onactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the object is set as the active element.
-      * @param ev The event.
-      */
-    onbeforeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires immediately before the activeElement is changed from the current 
object to another object in the parent document.
-      * @param ev The event.
-      */
-    onbeforedeactivate: (this: Document, ev: UIEvent) => any;
-    /** 
-      * Fires when the object loses the input focus. 
-      * @param ev The focus event.
-      */
-    onblur: (this: Document, ev: FocusEvent) => any;
-    /**
-      * Occurs when playback is possible, but would require further buffering. 
-      * @param ev The event.
-      */
-    oncanplay: (this: Document, ev: Event) => any;
-    oncanplaythrough: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the contents of the object or selection have changed. 
-      * @param ev The event.
-      */
-    onchange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the left mouse button on the object
-      * @param ev The mouse event.
-      */
-    onclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user clicks the right mouse button in the client area, 
opening the context menu. 
-      * @param ev The mouse event.
-      */
-    oncontextmenu: (this: Document, ev: PointerEvent) => any;
-    /**
-      * Fires when the user double-clicks the object.
-      * @param ev The mouse event.
-      */
-    ondblclick: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the activeElement is changed from the current object to 
another object in the parent document.
-      * @param ev The UI Event
-      */
-    ondeactivate: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires on the source object continuously during a drag operation.
-      * @param ev The event.
-      */
-    ondrag: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user releases the mouse at the 
close of a drag operation.
-      * @param ev The event.
-      */
-    ondragend: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target element when the user drags the object to a valid 
drop target.
-      * @param ev The drag event.
-      */
-    ondragenter: (this: Document, ev: DragEvent) => any;
-    /** 
-      * Fires on the target object when the user moves the mouse out of a 
valid drop target during a drag operation.
-      * @param ev The drag event.
-      */
-    ondragleave: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the target element continuously while the user drags the 
object over a valid drop target.
-      * @param ev The event.
-      */
-    ondragover: (this: Document, ev: DragEvent) => any;
-    /**
-      * Fires on the source object when the user starts to drag a text 
selection or selected object. 
-      * @param ev The event.
-      */
-    ondragstart: (this: Document, ev: DragEvent) => any;
-    ondrop: (this: Document, ev: DragEvent) => any;
-    /**
-      * Occurs when the duration attribute is updated. 
-      * @param ev The event.
-      */
-    ondurationchange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the media element is reset to its initial state. 
-      * @param ev The event.
-      */
-    onemptied: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the end of playback is reached. 
-      * @param ev The event
-      */
-    onended: (this: Document, ev: MediaStreamErrorEvent) => any;
-    /**
-      * Fires when an error occurs during object loading.
-      * @param ev The event.
-      */
-    onerror: (this: Document, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus. 
-      * @param ev The event.
-      */
-    onfocus: (this: Document, ev: FocusEvent) => any;
-    onfullscreenchange: (this: Document, ev: Event) => any;
-    onfullscreenerror: (this: Document, ev: Event) => any;
-    oninput: (this: Document, ev: Event) => any;
-    oninvalid: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user presses a key.
-      * @param ev The keyboard event
-      */
-    onkeydown: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user presses an alphanumeric key.
-      * @param ev The event.
-      */
-    onkeypress: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires when the user releases a key.
-      * @param ev The keyboard event
-      */
-    onkeyup: (this: Document, ev: KeyboardEvent) => any;
-    /**
-      * Fires immediately after the browser loads the object. 
-      * @param ev The event.
-      */
-    onload: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when media data is loaded at the current playback position. 
-      * @param ev The event.
-      */
-    onloadeddata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the duration and dimensions of the media have been 
determined.
-      * @param ev The event.
-      */
-    onloadedmetadata: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when Internet Explorer begins looking for media data. 
-      * @param ev The event.
-      */
-    onloadstart: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the object with either mouse button. 
-      * @param ev The mouse event.
-      */
-    onmousedown: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse over the object. 
-      * @param ev The mouse event.
-      */
-    onmousemove: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer outside the boundaries of 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseout: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user moves the mouse pointer into the object.
-      * @param ev The mouse event.
-      */
-    onmouseover: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the user releases a mouse button while the mouse is over 
the object. 
-      * @param ev The mouse event.
-      */
-    onmouseup: (this: Document, ev: MouseEvent) => any;
-    /**
-      * Fires when the wheel button is rotated. 
-      * @param ev The mouse event
-      */
-    onmousewheel: (this: Document, ev: WheelEvent) => any;
-    onmscontentzoom: (this: Document, ev: UIEvent) => any;
-    onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Document, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Document, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Document, ev: MSGestureEvent) => any;
-    onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => 
any;
-    onmspointercancel: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Document, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Document, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Document, ev: MSPointerEvent) => any;
-    /**
-      * Occurs when an item is removed from a Jump List of a webpage running 
in Site Mode. 
-      * @param ev The event.
-      */
-    onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => 
any;
-    /**
-      * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage 
running in Site Mode.
-      * @param ev The event.
-      */
-    onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
-    /**
-      * Occurs when playback is paused.
-      * @param ev The event.
-      */
-    onpause: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the play method is requested. 
-      * @param ev The event.
-      */
-    onplay: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the audio or video has started playing. 
-      * @param ev The event.
-      */
-    onplaying: (this: Document, ev: Event) => any;
-    onpointerlockchange: (this: Document, ev: Event) => any;
-    onpointerlockerror: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate progress while downloading media data. 
-      * @param ev The event.
-      */
-    onprogress: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Occurs when the playback rate is increased or decreased. 
-      * @param ev The event.
-      */
-    onratechange: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the state of the object has changed.
-      * @param ev The event
-      */
-    onreadystatechange: (this: Document, ev: ProgressEvent) => any;
-    /**
-      * Fires when the user resets a form. 
-      * @param ev The event.
-      */
-    onreset: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user repositions the scroll box in the scroll bar on 
the object. 
-      * @param ev The event.
-      */
-    onscroll: (this: Document, ev: UIEvent) => any;
-    /**
-      * Occurs when the seek operation ends. 
-      * @param ev The event.
-      */
-    onseeked: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the current playback position is moved. 
-      * @param ev The event.
-      */
-    onseeking: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the current selection changes.
-      * @param ev The event.
-      */
-    onselect: (this: Document, ev: UIEvent) => any;
-    /**
-      * Fires when the selection state of a document changes.
-      * @param ev The event.
-      */
-    onselectionchange: (this: Document, ev: Event) => any;
-    onselectstart: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when the download has stopped. 
-      * @param ev The event.
-      */
-    onstalled: (this: Document, ev: Event) => any;
-    /**
-      * Fires when the user clicks the Stop button or leaves the Web page.
-      * @param ev The event.
-      */
-    onstop: (this: Document, ev: Event) => any;
-    onsubmit: (this: Document, ev: Event) => any;
-    /**
-      * Occurs if the load operation has been intentionally halted. 
-      * @param ev The event.
-      */
-    onsuspend: (this: Document, ev: Event) => any;
-    /**
-      * Occurs to indicate the current playback position.
-      * @param ev The event.
-      */
-    ontimeupdate: (this: Document, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    /**
-      * Occurs when the volume is changed, or playback is muted or unmuted.
-      * @param ev The event.
-      */
-    onvolumechange: (this: Document, ev: Event) => any;
-    /**
-      * Occurs when playback stops because the next frame of a video resource 
is not available. 
-      * @param ev The event.
-      */
-    onwaiting: (this: Document, ev: Event) => any;
-    onwebkitfullscreenchange: (this: Document, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Document, ev: Event) => any;
-    plugins: HTMLCollectionOf<HTMLEmbedElement>;
-    readonly pointerLockElement: Element;
-    /**
-      * Retrieves a value that indicates the current state of the object.
-      */
-    readonly readyState: string;
-    /**
-      * Gets the URL of the location that referred the user to the current 
page.
-      */
-    readonly referrer: string;
-    /**
-      * Gets the root svg element in the document hierarchy.
-      */
-    readonly rootElement: SVGSVGElement;
-    /**
-      * Retrieves a collection of all script objects in the document.
-      */
-    scripts: HTMLCollectionOf<HTMLScriptElement>;
-    readonly scrollingElement: Element | null;
-    /**
-      * Retrieves a collection of styleSheet objects representing the style 
sheets that correspond to each instance of a link or style object in the 
document.
-      */
-    readonly styleSheets: StyleSheetList;
-    /**
-      * Contains the title of the document.
-      */
-    title: string;
-    readonly visibilityState: string;
-    /** 
-      * Sets or gets the color of the links that the user has visited.
-      */
-    vlinkColor: string;
-    readonly webkitCurrentFullScreenElement: Element | null;
-    readonly webkitFullscreenElement: Element | null;
-    readonly webkitFullscreenEnabled: boolean;
-    readonly webkitIsFullScreen: boolean;
-    readonly xmlEncoding: string | null;
-    xmlStandalone: boolean;
-    /**
-      * Gets or sets the version attribute specified in the declaration of an 
XML document.
-      */
-    xmlVersion: string | null;
-    adoptNode(source: Node): Node;
-    captureEvents(): void;
-    caretRangeFromPoint(x: number, y: number): Range;
-    clear(): void;
-    /**
-      * Closes an output stream and forces the sent data to display.
-      */
-    close(): void;
-    /**
-      * Creates an attribute object with a specified name.
-      * @param name String that sets the attribute object's name.
-      */
-    createAttribute(name: string): Attr;
-    createAttributeNS(namespaceURI: string | null, qualifiedName: string): 
Attr;
-    createCDATASection(data: string): CDATASection;
-    /**
-      * Creates a comment object with the specified data.
-      * @param data Sets the comment object's data.
-      */
-    createComment(data: string): Comment;
-    /**
-      * Creates a new document.
-      */
-    createDocumentFragment(): DocumentFragment;
-    /**
-      * Creates an instance of the element for the specified tag.
-      * @param tagName The name of an element.
-      */
-    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K): 
HTMLElementTagNameMap[K];
-    createElement(tagName: string): HTMLElement;
-    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml";, 
qualifiedName: string): HTMLElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"a"): SVGAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"circle"): SVGCircleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"clipPath"): SVGClipPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"componentTransferFunction"): SVGComponentTransferFunctionElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"defs"): SVGDefsElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"desc"): SVGDescElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"ellipse"): SVGEllipseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feBlend"): SVGFEBlendElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feColorMatrix"): SVGFEColorMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComponentTransfer"): SVGFEComponentTransferElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feComposite"): SVGFECompositeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feConvolveMatrix"): SVGFEConvolveMatrixElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDiffuseLighting"): SVGFEDiffuseLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDisplacementMap"): SVGFEDisplacementMapElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feDistantLight"): SVGFEDistantLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFlood"): SVGFEFloodElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncA"): SVGFEFuncAElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncB"): SVGFEFuncBElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncG"): SVGFEFuncGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feFuncR"): SVGFEFuncRElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feGaussianBlur"): SVGFEGaussianBlurElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feImage"): SVGFEImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMerge"): SVGFEMergeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMergeNode"): SVGFEMergeNodeElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feMorphology"): SVGFEMorphologyElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feOffset"): SVGFEOffsetElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"fePointLight"): SVGFEPointLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpecularLighting"): SVGFESpecularLightingElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feSpotLight"): SVGFESpotLightElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTile"): SVGFETileElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"feTurbulence"): SVGFETurbulenceElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"filter"): SVGFilterElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"foreignObject"): SVGForeignObjectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"g"): SVGGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"image"): SVGImageElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"gradient"): SVGGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"line"): SVGLineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"linearGradient"): SVGLinearGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"marker"): SVGMarkerElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"mask"): SVGMaskElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"path"): SVGPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"metadata"): SVGMetadataElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"pattern"): SVGPatternElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polygon"): SVGPolygonElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"polyline"): SVGPolylineElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"radialGradient"): SVGRadialGradientElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"rect"): SVGRectElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"svg"): SVGSVGElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"script"): SVGScriptElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"stop"): SVGStopElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"style"): SVGStyleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"switch"): SVGSwitchElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"symbol"): SVGSymbolElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"tspan"): SVGTSpanElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textContent"): SVGTextContentElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"text"): SVGTextElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPath"): SVGTextPathElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"textPositioning"): SVGTextPositioningElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"title"): SVGTitleElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"use"): SVGUseElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
"view"): SVGViewElement
-    createElementNS(namespaceURI: "http://www.w3.org/2000/svg";, qualifiedName: 
string): SVGElement
-    createElementNS(namespaceURI: string | null, qualifiedName: string): 
Element;
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver: Node): XPathNSResolver;
-    /**
-      * Creates a NodeIterator object that you can use to traverse filtered 
lists of nodes or elements in a document. 
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list
-      * @param filter A custom NodeFilter function to use. For more 
information, see filter. Use null for no filter.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): NodeIterator;
-    createProcessingInstruction(target: string, data: string): 
ProcessingInstruction;
-    /**
-      *  Returns an empty range object that has both of its boundary points 
positioned at the beginning of the document. 
-      */
-    createRange(): Range;
-    /**
-      * Creates a text string from the specified value. 
-      * @param data String that specifies the nodeValue property of the text 
node.
-      */
-    createTextNode(data: string): Text;
-    createTouch(view: Window, target: EventTarget, identifier: number, pageX: 
number, pageY: number, screenX: number, screenY: number): Touch;
-    createTouchList(...touches: Touch[]): TouchList;
-    /**
-      * Creates a TreeWalker object that you can use to traverse filtered 
lists of nodes or elements in a document.
-      * @param root The root element or node to start traversing on.
-      * @param whatToShow The type of nodes or elements to appear in the node 
list. For more information, see whatToShow.
-      * @param filter A custom NodeFilter function to use.
-      * @param entityReferenceExpansion A flag that specifies whether entity 
reference nodes are expanded.
-      */
-    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, 
entityReferenceExpansion?: boolean): TreeWalker;
-    /**
-      * Returns the element for the specified x coordinate and the specified y 
coordinate. 
-      * @param x The x-offset
-      * @param y The y-offset
-      */
-    elementFromPoint(x: number, y: number): Element;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-    /**
-      * Executes a command on the current document, current selection, or the 
given range.
-      * @param commandId String that specifies the command to execute. This 
command can be any of the command identifiers that can be executed in script.
-      * @param showUI Display the user interface, defaults to false.
-      * @param value Value to assign.
-      */
-    execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
-    /**
-      * Displays help information for the given command identifier.
-      * @param commandId Displays help information for the given command 
identifier.
-      */
-    execCommandShowHelp(commandId: string): boolean;
-    exitFullscreen(): void;
-    exitPointerLock(): void;
-    /**
-      * Causes the element to receive the focus and executes the code 
specified by the onfocus event.
-      */
-    focus(): void;
-    /**
-      * Returns a reference to the first object with the specified value of 
the ID or NAME attribute.
-      * @param elementId String that specifies the ID value. Case-insensitive.
-      */
-    getElementById(elementId: string): HTMLElement | null;
-    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
-    /**
-      * Gets a collection of objects based on the value of the NAME or ID 
attribute.
-      * @param elementName Gets a collection of objects based on the value of 
the NAME or ID attribute.
-      */
-    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
-    /**
-      * Retrieves a collection of objects based on the specified element name.
-      * @param name Specifies the name of an element.
-      */
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(tagname: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(tagname: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    /**
-      * Returns an object representing the current selection of the document 
that is loaded into the object displaying a webpage.
-      */
-    getSelection(): Selection;
-    /**
-      * Gets a value indicating whether the object currently has focus.
-      */
-    hasFocus(): boolean;
-    importNode(importedNode: Node, deep: boolean): Node;
-    msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
-    msElementsFromRect(left: number, top: number, width: number, height: 
number): NodeListOf<Element>;
-    /**
-      * Opens a new window and loads a document specified by a given URL. 
Also, opens a new window that uses the url parameter and the name parameter to 
collect the output of the write method and the writeln method.
-      * @param url Specifies a MIME type for the document.
-      * @param name Specifies the name of the window. This name is used as the 
value for the TARGET attribute on a form or an anchor element.
-      * @param features Contains a list of items separated by commas. Each 
item consists of an option and a value, separated by an equals sign (for 
example, "fullscreen=yes, toolbar=yes"). The following values are supported.
-      * @param replace Specifies whether the existing entry for the document 
is replaced in the history list.
-      */
-    open(url?: string, name?: string, features?: string, replace?: boolean): 
Document;
-    /** 
-      * Returns a Boolean value that indicates whether a specified command can 
be successfully executed using execCommand, given the current state of the 
document.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandEnabled(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the specified command 
is in the indeterminate state.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandIndeterm(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates the current state of the 
command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandState(commandId: string): boolean;
-    /**
-      * Returns a Boolean value that indicates whether the current command is 
supported on the current range.
-      * @param commandId Specifies a command identifier.
-      */
-    queryCommandSupported(commandId: string): boolean;
-    /**
-      * Retrieves the string associated with a command.
-      * @param commandId String that contains the identifier of a command. 
This can be any command identifier given in the list of Command Identifiers. 
-      */
-    queryCommandText(commandId: string): string;
-    /**
-      * Returns the current value of the document, range, or current selection 
for the given command.
-      * @param commandId String that specifies a command identifier.
-      */
-    queryCommandValue(commandId: string): string;
-    releaseEvents(): void;
-    /**
-      * Allows updating the print settings for the page.
-      */
-    updateSettings(): void;
-    webkitCancelFullScreen(): void;
-    webkitExitFullscreen(): void;
-    /**
-      * Writes one or more HTML expressions to a document in the specified 
window. 
-      * @param content Specifies the text and HTML tags to write.
-      */
-    write(...content: string[]): void;
-    /**
-      * Writes one or more HTML expressions, followed by a carriage return, to 
a document in the specified window. 
-      * @param content The text and HTML tags to write.
-      */
-    writeln(...content: string[]): void;
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Document: {
-    prototype: Document;
-    new(): Document;
-}
-
-interface DocumentFragment extends Node, NodeSelector, ParentNode {
-}
-
-declare var DocumentFragment: {
-    prototype: DocumentFragment;
-    new(): DocumentFragment;
-}
-
-interface DocumentType extends Node, ChildNode {
-    readonly entities: NamedNodeMap;
-    readonly internalSubset: string | null;
-    readonly name: string;
-    readonly notations: NamedNodeMap;
-    readonly publicId: string | null;
-    readonly systemId: string | null;
-}
-
-declare var DocumentType: {
-    prototype: DocumentType;
-    new(): DocumentType;
-}
-
-interface DragEvent extends MouseEvent {
-    readonly dataTransfer: DataTransfer;
-    initDragEvent(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, dataTransferArg: DataTransfer): void;
-    msConvertURL(file: File, targetType: string, targetURL?: string): void;
-}
-
-declare var DragEvent: {
-    prototype: DragEvent;
-    new(): DragEvent;
-}
-
-interface DynamicsCompressorNode extends AudioNode {
-    readonly attack: AudioParam;
-    readonly knee: AudioParam;
-    readonly ratio: AudioParam;
-    readonly reduction: AudioParam;
-    readonly release: AudioParam;
-    readonly threshold: AudioParam;
-}
-
-declare var DynamicsCompressorNode: {
-    prototype: DynamicsCompressorNode;
-    new(): DynamicsCompressorNode;
-}
-
-interface EXT_frag_depth {
-}
-
-declare var EXT_frag_depth: {
-    prototype: EXT_frag_depth;
-    new(): EXT_frag_depth;
-}
-
-interface EXT_texture_filter_anisotropic {
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
-    prototype: EXT_texture_filter_anisotropic;
-    new(): EXT_texture_filter_anisotropic;
-    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
-    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-interface ElementEventMap extends GlobalEventHandlersEventMap {
-    "ariarequest": AriaRequestEvent;
-    "command": CommandEvent;
-    "gotpointercapture": PointerEvent;
-    "lostpointercapture": PointerEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSGotPointerCapture": MSPointerEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSLostPointerCapture": MSPointerEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "touchcancel": TouchEvent;
-    "touchend": TouchEvent;
-    "touchmove": TouchEvent;
-    "touchstart": TouchEvent;
-    "webkitfullscreenchange": Event;
-    "webkitfullscreenerror": Event;
-}
-
-interface Element extends Node, GlobalEventHandlers, ElementTraversal, 
NodeSelector, ChildNode, ParentNode {
-    readonly classList: DOMTokenList;
-    className: string;
-    readonly clientHeight: number;
-    readonly clientLeft: number;
-    readonly clientTop: number;
-    readonly clientWidth: number;
-    id: string;
-    msContentZoomFactor: number;
-    readonly msRegionOverflow: string;
-    onariarequest: (this: Element, ev: AriaRequestEvent) => any;
-    oncommand: (this: Element, ev: CommandEvent) => any;
-    ongotpointercapture: (this: Element, ev: PointerEvent) => any;
-    onlostpointercapture: (this: Element, ev: PointerEvent) => any;
-    onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Element, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Element, ev: MSGestureEvent) => any;
-    onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmsinertiastart: (this: Element, ev: MSGestureEvent) => any;
-    onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any;
-    onmspointercancel: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Element, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Element, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Element, ev: MSPointerEvent) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onwebkitfullscreenchange: (this: Element, ev: Event) => any;
-    onwebkitfullscreenerror: (this: Element, ev: Event) => any;
-    readonly prefix: string | null;
-    readonly scrollHeight: number;
-    scrollLeft: number;
-    scrollTop: number;
-    readonly scrollWidth: number;
-    readonly tagName: string;
-    innerHTML: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    slot: string;
-    readonly shadowRoot: ShadowRoot | null;
-    getAttribute(name: string): string | null;
-    getAttributeNS(namespaceURI: string, localName: string): string;
-    getAttributeNode(name: string): Attr;
-    getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    getElementsByTagName<K extends keyof ElementListTagNameMap>(name: K): 
ElementListTagNameMap[K];
-    getElementsByTagName(name: string): NodeListOf<Element>;
-    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: string, localName: string): 
HTMLCollectionOf<Element>;
-    hasAttribute(name: string): boolean;
-    hasAttributeNS(namespaceURI: string, localName: string): boolean;
-    msGetRegionContent(): MSRangeCollection;
-    msGetUntransformedBounds(): ClientRect;
-    msMatchesSelector(selectors: string): boolean;
-    msReleasePointerCapture(pointerId: number): void;
-    msSetPointerCapture(pointerId: number): void;
-    msZoomTo(args: MsZoomToOptions): void;
-    releasePointerCapture(pointerId: number): void;
-    removeAttribute(name?: string): void;
-    removeAttributeNS(namespaceURI: string, localName: string): void;
-    removeAttributeNode(oldAttr: Attr): Attr;
-    requestFullscreen(): void;
-    requestPointerLock(): void;
-    setAttribute(name: string, value: string): void;
-    setAttributeNS(namespaceURI: string, qualifiedName: string, value: 
string): void;
-    setAttributeNode(newAttr: Attr): Attr;
-    setAttributeNodeNS(newAttr: Attr): Attr;
-    setPointerCapture(pointerId: number): void;
-    webkitMatchesSelector(selectors: string): boolean;
-    webkitRequestFullScreen(): void;
-    webkitRequestFullscreen(): void;
-    getElementsByClassName(classNames: string): NodeListOf<Element>;
-    matches(selector: string): boolean;
-    closest(selector: string): Element | null;
-    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
-    scroll(options?: ScrollToOptions): void;
-    scroll(x: number, y: number): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollTo(x: number, y: number): void;
-    scrollBy(options?: ScrollToOptions): void;
-    scrollBy(x: number, y: number): void;
-    insertAdjacentElement(position: string, insertedElement: Element): Element 
| null;
-    insertAdjacentHTML(where: string, html: string): void;
-    insertAdjacentText(where: string, text: string): void;
-    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
-    addEventListener<K extends keyof ElementEventMap>(type: K, listener: 
(this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Element: {
-    prototype: Element;
-    new(): Element;
-}
-
-interface ErrorEvent extends Event {
-    readonly colno: number;
-    readonly error: any;
-    readonly filename: string;
-    readonly lineno: number;
-    readonly message: string;
-    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
-    prototype: ErrorEvent;
-    new(): ErrorEvent;
-}
-
-interface Event {
-    readonly bubbles: boolean;
-    cancelBubble: boolean;
-    readonly cancelable: boolean;
-    readonly currentTarget: EventTarget;
-    readonly defaultPrevented: boolean;
-    readonly eventPhase: number;
-    readonly isTrusted: boolean;
-    returnValue: boolean;
-    readonly srcElement: Element | null;
-    readonly target: EventTarget;
-    readonly timeStamp: number;
-    readonly type: string;
-    readonly scoped: boolean;
-    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
-    preventDefault(): void;
-    stopImmediatePropagation(): void;
-    stopPropagation(): void;
-    deepPath(): EventTarget[];
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-declare var Event: {
-    prototype: Event;
-    new(type: string, eventInitDict?: EventInit): Event;
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-interface EventTarget {
-    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    dispatchEvent(evt: Event): boolean;
-    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var EventTarget: {
-    prototype: EventTarget;
-    new(): EventTarget;
-}
-
-interface External {
-}
-
-declare var External: {
-    prototype: External;
-    new(): External;
-}
-
-interface File extends Blob {
-    readonly lastModifiedDate: any;
-    readonly name: string;
-    readonly webkitRelativePath: string;
-}
-
-declare var File: {
-    prototype: File;
-    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
-}
-
-interface FileList {
-    readonly length: number;
-    item(index: number): File;
-    [index: number]: File;
-}
-
-declare var FileList: {
-    prototype: FileList;
-    new(): FileList;
-}
-
-interface FileReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(blob: Blob): void;
-    readAsBinaryString(blob: Blob): void;
-    readAsDataURL(blob: Blob): void;
-    readAsText(blob: Blob, encoding?: string): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var FileReader: {
-    prototype: FileReader;
-    new(): FileReader;
-}
-
-interface FocusEvent extends UIEvent {
-    readonly relatedTarget: EventTarget;
-    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): 
void;
-}
-
-declare var FocusEvent: {
-    prototype: FocusEvent;
-    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
-}
-
-interface FormData {
-    append(name: any, value: any, blobName?: string): void;
-}
-
-declare var FormData: {
-    prototype: FormData;
-    new (form?: HTMLFormElement): FormData;
-}
-
-interface GainNode extends AudioNode {
-    readonly gain: AudioParam;
-}
-
-declare var GainNode: {
-    prototype: GainNode;
-    new(): GainNode;
-}
-
-interface Gamepad {
-    readonly axes: number[];
-    readonly buttons: GamepadButton[];
-    readonly connected: boolean;
-    readonly id: string;
-    readonly index: number;
-    readonly mapping: string;
-    readonly timestamp: number;
-}
-
-declare var Gamepad: {
-    prototype: Gamepad;
-    new(): Gamepad;
-}
-
-interface GamepadButton {
-    readonly pressed: boolean;
-    readonly value: number;
-}
-
-declare var GamepadButton: {
-    prototype: GamepadButton;
-    new(): GamepadButton;
-}
-
-interface GamepadEvent extends Event {
-    readonly gamepad: Gamepad;
-}
-
-declare var GamepadEvent: {
-    prototype: GamepadEvent;
-    new(): GamepadEvent;
-}
-
-interface Geolocation {
-    clearWatch(watchId: number): void;
-    getCurrentPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): void;
-    watchPosition(successCallback: PositionCallback, errorCallback?: 
PositionErrorCallback, options?: PositionOptions): number;
-}
-
-declare var Geolocation: {
-    prototype: Geolocation;
-    new(): Geolocation;
-}
-
-interface HTMLAllCollection extends HTMLCollection {
-    namedItem(name: string): Element;
-}
-
-declare var HTMLAllCollection: {
-    prototype: HTMLAllCollection;
-    new(): HTMLAllCollection;
-}
-
-interface HTMLAnchorElement extends HTMLElement {
-    Methods: string;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Contains the anchor portion of the URL including the hash sign (#).
-      */
-    hash: string;
-    /**
-      * Contains the hostname and port values of the URL.
-      */
-    host: string;
-    /**
-      * Contains the hostname of a URL.
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    readonly mimeType: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    readonly nameProp: string;
-    /**
-      * Contains the pathname of the URL.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Contains the protocol of the URL.
-      */
-    protocol: string;
-    readonly protocolLong: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    type: string;
-    urn: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAnchorElement: {
-    prototype: HTMLAnchorElement;
-    new(): HTMLAnchorElement;
-}
-
-interface HTMLAppletElement extends HTMLElement {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Address of a pointer to the document this page or frame contains. If 
there is no document, then null will be returned.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own declare functionality for the object.
-      */
-    declare: boolean;
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    name: string;
-    object: string | null;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    vspace: number;
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAppletElement: {
-    prototype: HTMLAppletElement;
-    new(): HTMLAppletElement;
-}
-
-interface HTMLAreaElement extends HTMLElement {
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Sets or retrieves the coordinates of the object.
-      */
-    coords: string;
-    download: string;
-    /**
-      * Sets or retrieves the subsection of the href property that follows the 
number sign (#).
-      */
-    hash: string;
-    /**
-      * Sets or retrieves the hostname and port number of the location or URL.
-      */
-    host: string;
-    /**
-      * Sets or retrieves the host name part of the location or URL. 
-      */
-    hostname: string;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or gets whether clicks in this region cause action.
-      */
-    noHref: boolean;
-    /**
-      * Sets or retrieves the file name or path specified by the object.
-      */
-    pathname: string;
-    /**
-      * Sets or retrieves the port number associated with a URL.
-      */
-    port: string;
-    /**
-      * Sets or retrieves the protocol portion of a URL.
-      */
-    protocol: string;
-    rel: string;
-    /**
-      * Sets or retrieves the substring of the href property that follows the 
question mark.
-      */
-    search: string;
-    /**
-      * Sets or retrieves the shape of the object.
-      */
-    shape: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /** 
-      * Returns a string representation of an object.
-      */
-    toString(): string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAreaElement: {
-    prototype: HTMLAreaElement;
-    new(): HTMLAreaElement;
-}
-
-interface HTMLAreasCollection extends HTMLCollection {
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Removes an element from the collection.
-      */
-    remove(index?: number): void;
-}
-
-declare var HTMLAreasCollection: {
-    prototype: HTMLAreasCollection;
-    new(): HTMLAreasCollection;
-}
-
-interface HTMLAudioElement extends HTMLMediaElement {
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLAudioElement: {
-    prototype: HTMLAudioElement;
-    new(): HTMLAudioElement;
-}
-
-interface HTMLBRElement extends HTMLElement {
-    /**
-      * Sets or retrieves the side on which floating objects are not to be 
positioned when any IHTMLBlockElement is inserted into the document.
-      */
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBRElement: {
-    prototype: HTMLBRElement;
-    new(): HTMLBRElement;
-}
-
-interface HTMLBaseElement extends HTMLElement {
-    /**
-      * Gets or sets the baseline URL on which relative links are based.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseElement: {
-    prototype: HTMLBaseElement;
-    new(): HTMLBaseElement;
-}
-
-interface HTMLBaseFontElement extends HTMLElement, 
DOML2DeprecatedColorProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    /**
-      * Sets or retrieves the font size of the object.
-      */
-    size: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseFontElement: {
-    prototype: HTMLBaseFontElement;
-    new(): HTMLBaseFontElement;
-}
-
-interface HTMLBodyElementEventMap extends HTMLElementEventMap {
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "popstate": PopStateEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLBodyElement extends HTMLElement {
-    aLink: any;
-    background: string;
-    bgColor: any;
-    bgProperties: string;
-    link: any;
-    noWrap: boolean;
-    onafterprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
-    onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLBodyElement, ev: Event) => any;
-    onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLBodyElement, ev: Event) => any;
-    ononline: (this: HTMLBodyElement, ev: Event) => any;
-    onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
-    onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
-    onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
-    onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLBodyElement, ev: Event) => any;
-    text: any;
-    vLink: any;
-    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, 
listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBodyElement: {
-    prototype: HTMLBodyElement;
-    new(): HTMLBodyElement;
-}
-
-interface HTMLButtonElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /** 
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    status: any;
-    /**
-      * Gets the classification and default behavior of the button.
-      */
-    type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /** 
-      * Sets or retrieves the default or selected value of the control.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLButtonElement: {
-    prototype: HTMLButtonElement;
-    new(): HTMLButtonElement;
-}
-
-interface HTMLCanvasElement extends HTMLElement {
-    /**
-      * Gets or sets the height of a canvas element on a document.
-      */
-    height: number;
-    /**
-      * Gets or sets the width of a canvas element on a document.
-      */
-    width: number;
-    /**
-      * Returns an object that provides methods and properties for drawing and 
manipulating images and graphics on a canvas element in a document. A context 
object includes information about colors, line widths, fonts, and other graphic 
parameters that can be drawn on a canvas.
-      * @param contextId The identifier (ID) of the type of canvas to create. 
Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using 
canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using 
canvas.getContext("experimental-webgl");
-      */
-    getContext(contextId: "2d", contextAttributes?: 
Canvas2DContextAttributes): CanvasRenderingContext2D | null;
-    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: 
WebGLContextAttributes): WebGLRenderingContext | null;
-    getContext(contextId: string, contextAttributes?: {}): 
CanvasRenderingContext2D | WebGLRenderingContext | null;
-    /**
-      * Returns a blob object encoded as a Portable Network Graphics (PNG) 
format from a canvas image or drawing.
-      */
-    msToBlob(): Blob;
-    /**
-      * Returns the content of the current canvas as an image that you can use 
as a source for another canvas or an HTML element.
-      * @param type The standard MIME type for the image format to return. If 
you do not specify this parameter, the default value is a PNG format image.
-      */
-    toDataURL(type?: string, ...args: any[]): string;
-    toBlob(callback: (result: Blob | null) => void, type?: string, 
...arguments: any[]): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLCanvasElement: {
-    prototype: HTMLCanvasElement;
-    new(): HTMLCanvasElement;
-}
-
-interface HTMLCollection {
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Retrieves an object from various collections.
-      */
-    item(index: number): Element;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      */
-    namedItem(name: string): Element;
-    [index: number]: Element;
-}
-
-declare var HTMLCollection: {
-    prototype: HTMLCollection;
-    new(): HTMLCollection;
-}
-
-interface HTMLDListElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDListElement: {
-    prototype: HTMLDListElement;
-    new(): HTMLDListElement;
-}
-
-interface HTMLDataListElement extends HTMLElement {
-    options: HTMLCollectionOf<HTMLOptionElement>;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDataListElement: {
-    prototype: HTMLDataListElement;
-    new(): HTMLDataListElement;
-}
-
-interface HTMLDirectoryElement extends HTMLElement {
-    compact: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDirectoryElement: {
-    prototype: HTMLDirectoryElement;
-    new(): HTMLDirectoryElement;
-}
-
-interface HTMLDivElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDivElement: {
-    prototype: HTMLDivElement;
-    new(): HTMLDivElement;
-}
-
-interface HTMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDocument: {
-    prototype: HTMLDocument;
-    new(): HTMLDocument;
-}
-
-interface HTMLElementEventMap extends ElementEventMap {
-    "abort": UIEvent;
-    "activate": UIEvent;
-    "beforeactivate": UIEvent;
-    "beforecopy": ClipboardEvent;
-    "beforecut": ClipboardEvent;
-    "beforedeactivate": UIEvent;
-    "beforepaste": ClipboardEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "contextmenu": PointerEvent;
-    "copy": ClipboardEvent;
-    "cuechange": Event;
-    "cut": ClipboardEvent;
-    "dblclick": MouseEvent;
-    "deactivate": UIEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSContentZoom": UIEvent;
-    "MSManipulationStateChanged": MSManipulationEvent;
-    "paste": ClipboardEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "reset": Event;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "selectstart": Event;
-    "stalled": Event;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface HTMLElement extends Element {
-    accessKey: string;
-    readonly children: HTMLCollection;
-    contentEditable: string;
-    readonly dataset: DOMStringMap;
-    dir: string;
-    draggable: boolean;
-    hidden: boolean;
-    hideFocus: boolean;
-    innerHTML: string;
-    innerText: string;
-    readonly isContentEditable: boolean;
-    lang: string;
-    readonly offsetHeight: number;
-    readonly offsetLeft: number;
-    readonly offsetParent: Element;
-    readonly offsetTop: number;
-    readonly offsetWidth: number;
-    onabort: (this: HTMLElement, ev: UIEvent) => any;
-    onactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onblur: (this: HTMLElement, ev: FocusEvent) => any;
-    oncanplay: (this: HTMLElement, ev: Event) => any;
-    oncanplaythrough: (this: HTMLElement, ev: Event) => any;
-    onchange: (this: HTMLElement, ev: Event) => any;
-    onclick: (this: HTMLElement, ev: MouseEvent) => any;
-    oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
-    oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
-    oncuechange: (this: HTMLElement, ev: Event) => any;
-    oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
-    ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
-    ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
-    ondrag: (this: HTMLElement, ev: DragEvent) => any;
-    ondragend: (this: HTMLElement, ev: DragEvent) => any;
-    ondragenter: (this: HTMLElement, ev: DragEvent) => any;
-    ondragleave: (this: HTMLElement, ev: DragEvent) => any;
-    ondragover: (this: HTMLElement, ev: DragEvent) => any;
-    ondragstart: (this: HTMLElement, ev: DragEvent) => any;
-    ondrop: (this: HTMLElement, ev: DragEvent) => any;
-    ondurationchange: (this: HTMLElement, ev: Event) => any;
-    onemptied: (this: HTMLElement, ev: Event) => any;
-    onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
-    onerror: (this: HTMLElement, ev: ErrorEvent) => any;
-    onfocus: (this: HTMLElement, ev: FocusEvent) => any;
-    oninput: (this: HTMLElement, ev: Event) => any;
-    oninvalid: (this: HTMLElement, ev: Event) => any;
-    onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
-    onload: (this: HTMLElement, ev: Event) => any;
-    onloadeddata: (this: HTMLElement, ev: Event) => any;
-    onloadedmetadata: (this: HTMLElement, ev: Event) => any;
-    onloadstart: (this: HTMLElement, ev: Event) => any;
-    onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
-    onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
-    onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
-    onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
-    onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) 
=> any;
-    onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
-    onpause: (this: HTMLElement, ev: Event) => any;
-    onplay: (this: HTMLElement, ev: Event) => any;
-    onplaying: (this: HTMLElement, ev: Event) => any;
-    onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
-    onratechange: (this: HTMLElement, ev: Event) => any;
-    onreset: (this: HTMLElement, ev: Event) => any;
-    onscroll: (this: HTMLElement, ev: UIEvent) => any;
-    onseeked: (this: HTMLElement, ev: Event) => any;
-    onseeking: (this: HTMLElement, ev: Event) => any;
-    onselect: (this: HTMLElement, ev: UIEvent) => any;
-    onselectstart: (this: HTMLElement, ev: Event) => any;
-    onstalled: (this: HTMLElement, ev: Event) => any;
-    onsubmit: (this: HTMLElement, ev: Event) => any;
-    onsuspend: (this: HTMLElement, ev: Event) => any;
-    ontimeupdate: (this: HTMLElement, ev: Event) => any;
-    onvolumechange: (this: HTMLElement, ev: Event) => any;
-    onwaiting: (this: HTMLElement, ev: Event) => any;
-    outerHTML: string;
-    outerText: string;
-    spellcheck: boolean;
-    readonly style: CSSStyleDeclaration;
-    tabIndex: number;
-    title: string;
-    blur(): void;
-    click(): void;
-    dragDrop(): boolean;
-    focus(): void;
-    msGetInputContext(): MSInputMethodContext;
-    setActive(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLElement: {
-    prototype: HTMLElement;
-    new(): HTMLElement;
-}
-
-interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hidden: any;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the palette used for the embedded document.
-      */
-    readonly palette: string;
-    /**
-      * Retrieves the URL of the plug-in used to view an embedded document.
-      */
-    readonly pluginspage: string;
-    readonly readyState: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the height and width units of the embed object.
-      */
-    units: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLEmbedElement: {
-    prototype: HTMLEmbedElement;
-    new(): HTMLEmbedElement;
-}
-
-interface HTMLFieldSetElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFieldSetElement: {
-    prototype: HTMLFieldSetElement;
-    new(): HTMLFieldSetElement;
-}
-
-interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves the current typeface family.
-      */
-    face: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFontElement: {
-    prototype: HTMLFontElement;
-    new(): HTMLFontElement;
-}
-
-interface HTMLFormElement extends HTMLElement {
-    /**
-      * Sets or retrieves a list of character encodings for input data that 
must be accepted by the server processing the form.
-      */
-    acceptCharset: string;
-    /**
-      * Sets or retrieves the URL to which the form content is sent for 
processing.
-      */
-    action: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Retrieves a collection, in source order, of all controls in a given 
form.
-      */
-    readonly elements: HTMLCollection;
-    /**
-      * Sets or retrieves the MIME encoding for the form.
-      */
-    encoding: string;
-    /**
-      * Sets or retrieves the encoding type for the form.
-      */
-    enctype: string;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    readonly length: number;
-    /**
-      * Sets or retrieves how to send the form data to the server.
-      */
-    method: string;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Designates a form that is not validated when submitted.
-      */
-    noValidate: boolean;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is a Number, it is the zero-based 
index of the object. If this parameter is a string, all objects with matching 
name or id properties are retrieved, and a collection is returned if more than 
one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a form object or an object from an elements collection.
-      */
-    namedItem(name: string): any;
-    /**
-      * Fires when the user resets a form.
-      */
-    reset(): void;
-    /**
-      * Fires when a FORM is about to be submitted.
-      */
-    submit(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLFormElement: {
-    prototype: HTMLFormElement;
-    new(): HTMLFormElement;
-}
-
-interface HTMLFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string | number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLFrameElement, ev: Event) => any;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string | number;
-    addEventListener<K extends keyof HTMLFrameElementEventMap>(type: K, 
listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameElement: {
-    prototype: HTMLFrameElement;
-    new(): HTMLFrameElement;
-}
-
-interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "error": ErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "load": Event;
-    "message": MessageEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "resize": UIEvent;
-    "storage": StorageEvent;
-    "unload": Event;
-}
-
-interface HTMLFrameSetElement extends HTMLElement {
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object.
-      */
-    borderColor: any;
-    /**
-      * Sets or retrieves the frame widths of the object.
-      */
-    cols: string;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    name: string;
-    onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
-    onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
-    /**
-      * Fires when the object loses the input focus.
-      */
-    onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
-    /**
-      * Fires when the object receives focus.
-      */
-    onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
-    onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
-    onload: (this: HTMLFrameSetElement, ev: Event) => any;
-    onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
-    onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
-    ononline: (this: HTMLFrameSetElement, ev: Event) => any;
-    onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
-    onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
-    onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
-    onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
-    onunload: (this: HTMLFrameSetElement, ev: Event) => any;
-    /**
-      * Sets or retrieves the frame heights of the object.
-      */
-    rows: string;
-    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, 
listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameSetElement: {
-    prototype: HTMLFrameSetElement;
-    new(): HTMLFrameSetElement;
-}
-
-interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, 
DOML2DeprecatedSizeProperty {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the horizontal rule is drawn with 3-D 
shading.
-      */
-    noShade: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHRElement: {
-    prototype: HTMLHRElement;
-    new(): HTMLHRElement;
-}
-
-interface HTMLHeadElement extends HTMLElement {
-    profile: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadElement: {
-    prototype: HTMLHeadElement;
-    new(): HTMLHeadElement;
-}
-
-interface HTMLHeadingElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHeadingElement: {
-    prototype: HTMLHeadingElement;
-    new(): HTMLHeadingElement;
-}
-
-interface HTMLHtmlElement extends HTMLElement {
-    /**
-      * Sets or retrieves the DTD version that governs the current document.
-      */
-    version: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHtmlElement: {
-    prototype: HTMLHtmlElement;
-    new(): HTMLHtmlElement;
-}
-
-interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
-    "load": Event;
-}
-
-interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    allowFullscreen: boolean;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Retrieves the object of the specified.
-      */
-    readonly contentWindow: Window;
-    /**
-      * Sets or retrieves whether to display a border for the frame.
-      */
-    frameBorder: string;
-    /**
-      * Sets or retrieves the amount of additional space between the frames.
-      */
-    frameSpacing: any;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the horizontal margin for the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves a URI to a long description of the object.
-      */
-    longDesc: string;
-    /**
-      * Sets or retrieves the top and bottom margin heights before displaying 
the text in a frame.
-      */
-    marginHeight: string;
-    /**
-      * Sets or retrieves the left and right margin widths before displaying 
the text in a frame.
-      */
-    marginWidth: string;
-    /**
-      * Sets or retrieves the frame name.
-      */
-    name: string;
-    /**
-      * Sets or retrieves whether the user can resize the frame.
-      */
-    noResize: boolean;
-    /**
-      * Raised when the object has been completely received from the server.
-      */
-    onload: (this: HTMLIFrameElement, ev: Event) => any;
-    readonly sandbox: DOMSettableTokenList;
-    /**
-      * Sets or retrieves whether the frame can be scrolled.
-      */
-    scrolling: string;
-    /**
-      * Sets or retrieves a URL to be loaded by the object.
-      */
-    src: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLIFrameElementEventMap>(type: K, 
listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLIFrameElement: {
-    prototype: HTMLIFrameElement;
-    new(): HTMLIFrameElement;
-}
-
-interface HTMLImageElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies the properties of a border drawn around an object.
-      */
-    border: string;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    crossOrigin: string;
-    readonly currentSrc: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: number;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    /**
-      * Sets or retrieves whether the image is a server-side image map.
-      */
-    isMap: boolean;
-    /**
-      * Sets or retrieves a Uniform Resource Identifier (URI) to a long 
description of the object.
-      */
-    longDesc: string;
-    lowsrc: string;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * The original height of the image resource before sizing.
-      */
-    readonly naturalHeight: number;
-    /**
-      * The original width of the image resource before sizing.
-      */
-    readonly naturalWidth: number;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: number;
-    readonly x: number;
-    readonly y: number;
-    msGetAsCastingSource(): any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLImageElement: {
-    prototype: HTMLImageElement;
-    new(): HTMLImageElement;
-    create(): HTMLImageElement;
-}
-
-interface HTMLInputElement extends HTMLElement {
-    /**
-      * Sets or retrieves a comma-separated list of content types.
-      */
-    accept: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Specifies whether autocomplete is applied to an editable text field.
-      */
-    autocomplete: string;
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    checked: boolean;
-    /**
-      * Retrieves whether the object is fully loaded.
-      */
-    readonly complete: boolean;
-    /**
-      * Sets or retrieves the state of the check box or radio button.
-      */
-    defaultChecked: boolean;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Returns a FileList object on a file type input object.
-      */
-    readonly files: FileList | null;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Overrides the action attribute (where the data on a form is sent) on 
the parent form element.
-      */
-    formAction: string;
-    /**
-      * Used to override the encoding (formEnctype attribute) specified on the 
form element.
-      */
-    formEnctype: string;
-    /**
-      * Overrides the submit method attribute previously specified on a form 
element.
-      */
-    formMethod: string;
-    /**
-      * Overrides any validation or required attributes on a form or form 
elements to allow it to be submitted without validation. This can be used to 
create a "save draft"-type submit option.
-      */
-    formNoValidate: string;
-    /**
-      * Overrides the target attribute on a form element.
-      */
-    formTarget: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    hspace: number;
-    indeterminate: boolean;
-    /**
-      * Specifies the ID of a pre-defined datalist of options for an input 
element.
-      */
-    readonly list: HTMLElement;
-    /**
-      * Defines the maximum acceptable value for an input element with 
type="number".When used with the min and step attributes, lets you control the 
range and increment (such as only even numbers) that the user can enter into an 
input field.
-      */
-    max: string;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Defines the minimum acceptable value for an input element with 
type="number". When used with the max and step attributes, lets you control the 
range and increment (such as even numbers only) that the user can enter into an 
input field.
-      */
-    min: string;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a string containing a regular expression that the user's 
input must match.
-      */
-    pattern: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    selectionDirection: string;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    size: number;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    status: boolean;
-    /**
-      * Defines an increment or jump between values that you want to allow the 
user to enter. When used with the max and min attributes, lets you control the 
range and increment (for example, allow only even numbers) that the user can 
enter into an input field.
-      */
-    step: string;
-    /**
-      * Returns the content type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Returns the value of the data at the cursor's current position.
-      */
-    value: string;
-    valueAsDate: Date;
-    /**
-      * Returns the input field value as a number.
-      */
-    valueAsNumber: number;
-    /**
-      * Sets or retrieves the vertical margin for the object.
-      */
-    vspace: number;
-    webkitdirectory: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Makes the selection equal to the current object.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start?: number, end?: number, direction?: string): void;
-    /**
-      * Decrements a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, it will decrement the input 
control's step value multiplied by the parameter's value.
-      * @param n Value to decrement the value by.
-      */
-    stepDown(n?: number): void;
-    /**
-      * Increments a range input control's value by the value given by the 
Step attribute. If the optional parameter is used, will increment the input 
control's value by that value.
-      * @param n Value to increment the value by.
-      */
-    stepUp(n?: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLInputElement: {
-    prototype: HTMLInputElement;
-    new(): HTMLInputElement;
-}
-
-interface HTMLLIElement extends HTMLElement {
-    type: string;
-    /**
-      * Sets or retrieves the value of a list item.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLIElement: {
-    prototype: HTMLLIElement;
-    new(): HTMLLIElement;
-}
-
-interface HTMLLabelElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the object to which the given label object is 
assigned.
-      */
-    htmlFor: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLabelElement: {
-    prototype: HTMLLabelElement;
-    new(): HTMLLabelElement;
-}
-
-interface HTMLLegendElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    align: string;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLegendElement: {
-    prototype: HTMLLegendElement;
-    new(): HTMLLegendElement;
-}
-
-interface HTMLLinkElement extends HTMLElement, LinkStyle {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    disabled: boolean;
-    /**
-      * Sets or retrieves a destination URL or an anchor point.
-      */
-    href: string;
-    /**
-      * Sets or retrieves the language code of the object.
-      */
-    hreflang: string;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rel: string;
-    /**
-      * Sets or retrieves the relationship between the object and the 
destination of the link.
-      */
-    rev: string;
-    /**
-      * Sets or retrieves the window or frame at which to target content.
-      */
-    target: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    import?: Document;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLinkElement: {
-    prototype: HTMLLinkElement;
-    new(): HTMLLinkElement;
-}
-
-interface HTMLMapElement extends HTMLElement {
-    /**
-      * Retrieves a collection of the area objects defined for the given map 
object.
-      */
-    readonly areas: HTMLAreasCollection;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMapElement: {
-    prototype: HTMLMapElement;
-    new(): HTMLMapElement;
-}
-
-interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
-    "bounce": Event;
-    "finish": Event;
-    "start": Event;
-}
-
-interface HTMLMarqueeElement extends HTMLElement {
-    behavior: string;
-    bgColor: any;
-    direction: string;
-    height: string;
-    hspace: number;
-    loop: number;
-    onbounce: (this: HTMLMarqueeElement, ev: Event) => any;
-    onfinish: (this: HTMLMarqueeElement, ev: Event) => any;
-    onstart: (this: HTMLMarqueeElement, ev: Event) => any;
-    scrollAmount: number;
-    scrollDelay: number;
-    trueSpeed: boolean;
-    vspace: number;
-    width: string;
-    start(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, 
listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMarqueeElement: {
-    prototype: HTMLMarqueeElement;
-    new(): HTMLMarqueeElement;
-}
-
-interface HTMLMediaElementEventMap extends HTMLElementEventMap {
-    "encrypted": MediaEncryptedEvent;
-    "msneedkey": MSMediaKeyNeededEvent;
-}
-
-interface HTMLMediaElement extends HTMLElement {
-    /**
-      * Returns an AudioTrackList object with the audio tracks for a given 
video element.
-      */
-    readonly audioTracks: AudioTrackList;
-    /**
-      * Gets or sets a value that indicates whether to start playing the media 
automatically.
-      */
-    autoplay: boolean;
-    /**
-      * Gets a collection of buffered time ranges.
-      */
-    readonly buffered: TimeRanges;
-    /**
-      * Gets or sets a flag that indicates whether the client provides a set 
of controls for the media (in case the developer does not include controls for 
the player).
-      */
-    controls: boolean;
-    crossOrigin: string;
-    /**
-      * Gets the address or URL of the current media resource that is selected 
by IHTMLMediaElement.
-      */
-    readonly currentSrc: string;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    currentTime: number;
-    defaultMuted: boolean;
-    /**
-      * Gets or sets the default playback rate when the user is not using fast 
forward or reverse for a video or audio resource.
-      */
-    defaultPlaybackRate: number;
-    /**
-      * Returns the duration in seconds of the current media resource. A NaN 
value is returned if duration is not available, or Infinity if the media 
resource is streaming.
-      */
-    readonly duration: number;
-    /**
-      * Gets information about whether the playback has ended or not.
-      */
-    readonly ended: boolean;
-    /**
-      * Returns an object representing the current error state of the audio or 
video element.
-      */
-    readonly error: MediaError;
-    /**
-      * Gets or sets a flag to specify whether playback should restart after 
it completes.
-      */
-    loop: boolean;
-    readonly mediaKeys: MediaKeys | null;
-    /**
-      * Specifies the purpose of the audio or video media, such as background 
audio or alerts.
-      */
-    msAudioCategory: string;
-    /**
-      * Specifies the output device id that the audio will be sent to.
-      */
-    msAudioDeviceType: string;
-    readonly msGraphicsTrustStatus: MSGraphicsTrust;
-    /**
-      * Gets the MSMediaKeys object, which is used for decrypting media data, 
that is associated with this media element.
-      */
-    readonly msKeys: MSMediaKeys;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Specifies whether or not to enable low-latency playback on the media 
element.
-      */
-    msRealTime: boolean;
-    /**
-      * Gets or sets a flag that indicates whether the audio (either audio or 
the audio track on video media) is muted.
-      */
-    muted: boolean;
-    /**
-      * Gets the current network activity for the element.
-      */
-    readonly networkState: number;
-    onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any;
-    onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any;
-    /**
-      * Gets a flag that specifies whether playback is paused.
-      */
-    readonly paused: boolean;
-    /**
-      * Gets or sets the current rate of speed for the media resource to play. 
This speed is expressed as a multiple of the normal speed of the media resource.
-      */
-    playbackRate: number;
-    /**
-      * Gets TimeRanges for the current media resource that has been played.
-      */
-    readonly played: TimeRanges;
-    /**
-      * Gets or sets the current playback position, in seconds.
-      */
-    preload: string;
-    readyState: number;
-    /**
-      * Returns a TimeRanges object that represents the ranges of the current 
media resource that can be seeked.
-      */
-    readonly seekable: TimeRanges;
-    /**
-      * Gets a flag that indicates whether the the client is currently moving 
to a new playback position in the media resource.
-      */
-    readonly seeking: boolean;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcObject: MediaStream | null;
-    readonly textTracks: TextTrackList;
-    readonly videoTracks: VideoTrackList;
-    /**
-      * Gets or sets the volume level for audio portions of the media element.
-      */
-    volume: number;
-    addTextTrack(kind: string, label?: string, language?: string): TextTrack;
-    /**
-      * Returns a string that specifies whether the client can play a given 
media resource type.
-      */
-    canPlayType(type: string): string;
-    /**
-      * Resets the audio or video object and loads a new media resource.
-      */
-    load(): void;
-    /**
-      * Clears all effects from the media pipeline.
-      */
-    msClearEffects(): void;
-    msGetAsCastingSource(): any;
-    /**
-      * Inserts the specified audio effect into media pipeline.
-      */
-    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetMediaKeys(mediaKeys: MSMediaKeys): void;
-    /**
-      * Specifies the media protection manager for a given media pipeline.
-      */
-    msSetMediaProtectionManager(mediaProtectionManager?: any): void;
-    /**
-      * Pauses the current playback and sets paused to TRUE. This can be used 
to test whether the media is playing or paused. You can also use the pause or 
play events to tell whether the media is playing or not.
-      */
-    pause(): void;
-    /**
-      * Loads and starts playback of a media resource.
-      */
-    play(): void;
-    setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, 
listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMediaElement: {
-    prototype: HTMLMediaElement;
-    new(): HTMLMediaElement;
-    readonly HAVE_CURRENT_DATA: number;
-    readonly HAVE_ENOUGH_DATA: number;
-    readonly HAVE_FUTURE_DATA: number;
-    readonly HAVE_METADATA: number;
-    readonly HAVE_NOTHING: number;
-    readonly NETWORK_EMPTY: number;
-    readonly NETWORK_IDLE: number;
-    readonly NETWORK_LOADING: number;
-    readonly NETWORK_NO_SOURCE: number;
-}
-
-interface HTMLMenuElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMenuElement: {
-    prototype: HTMLMenuElement;
-    new(): HTMLMenuElement;
-}
-
-interface HTMLMetaElement extends HTMLElement {
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Gets or sets meta-information to associate with httpEquiv or name.
-      */
-    content: string;
-    /**
-      * Gets or sets information used to bind the value of a content attribute 
of a meta element to an HTTP response header.
-      */
-    httpEquiv: string;
-    /**
-      * Sets or retrieves the value specified in the content attribute of the 
meta object.
-      */
-    name: string;
-    /**
-      * Sets or retrieves a scheme to be used in interpreting the value of a 
property specified for the object.
-      */
-    scheme: string;
-    /**
-      * Sets or retrieves the URL property that will be loaded after the 
specified time has elapsed. 
-      */
-    url: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMetaElement: {
-    prototype: HTMLMetaElement;
-    new(): HTMLMetaElement;
-}
-
-interface HTMLMeterElement extends HTMLElement {
-    high: number;
-    low: number;
-    max: number;
-    min: number;
-    optimum: number;
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMeterElement: {
-    prototype: HTMLMeterElement;
-    new(): HTMLMeterElement;
-}
-
-interface HTMLModElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    /**
-      * Sets or retrieves the date and time of a modification to the object.
-      */
-    dateTime: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLModElement: {
-    prototype: HTMLModElement;
-    new(): HTMLModElement;
-}
-
-interface HTMLOListElement extends HTMLElement {
-    compact: boolean;
-    /**
-      * The starting number.
-      */
-    start: number;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOListElement: {
-    prototype: HTMLOListElement;
-    new(): HTMLOListElement;
-}
-
-interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
-    /**
-      * Retrieves a string of the URL where the object tag can be found. This 
is often the href of the document that the object is in, or the value set by a 
base element.
-      */
-    readonly BaseHref: string;
-    align: string;
-    /**
-      * Sets or retrieves a text alternative to the graphic.
-      */
-    alt: string;
-    /**
-      * Gets or sets the optional alternative HTML script to execute if the 
object fails to load.
-      */
-    altHtml: string;
-    /**
-      * Sets or retrieves a character string that can be used to implement 
your own archive functionality for the object.
-      */
-    archive: string;
-    border: string;
-    /**
-      * Sets or retrieves the URL of the file containing the compiled Java 
class.
-      */
-    code: string;
-    /**
-      * Sets or retrieves the URL of the component.
-      */
-    codeBase: string;
-    /**
-      * Sets or retrieves the Internet media type for the code associated with 
the object.
-      */
-    codeType: string;
-    /**
-      * Retrieves the document object of the page or frame.
-      */
-    readonly contentDocument: Document;
-    /**
-      * Sets or retrieves the URL that references the data of the object.
-      */
-    data: string;
-    declare: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: string;
-    hspace: number;
-    /**
-      * Gets or sets whether the DLNA PlayTo device is available.
-      */
-    msPlayToDisabled: boolean;
-    /**
-      * Gets or sets the path to the preferred media source. This enables the 
Play To target device to stream the media content, which can be DRM protected, 
from a different location, such as a cloud media server.
-      */
-    msPlayToPreferredSourceUri: string;
-    /**
-      * Gets or sets the primary DLNA PlayTo device.
-      */
-    msPlayToPrimary: boolean;
-    /**
-      * Gets the source associated with the media element for use by the 
PlayToManager.
-      */
-    readonly msPlayToSource: any;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Retrieves the contained object.
-      */
-    readonly object: any;
-    readonly readyState: number;
-    /**
-      * Sets or retrieves a message to be displayed while an object is loading.
-      */
-    standby: string;
-    /**
-      * Sets or retrieves the MIME type of the object.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the URL, often with a bookmark extension (#name), to 
use as a client-side image map.
-      */
-    useMap: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    vspace: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLObjectElement: {
-    prototype: HTMLObjectElement;
-    new(): HTMLObjectElement;
-}
-
-interface HTMLOptGroupElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    readonly text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptGroupElement: {
-    prototype: HTMLOptGroupElement;
-    new(): HTMLOptGroupElement;
-}
-
-interface HTMLOptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the status of an option.
-      */
-    defaultSelected: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the ordinal position of an option in a list box.
-      */
-    readonly index: number;
-    /**
-      * Sets or retrieves a value that you can use to implement your own label 
functionality for the object.
-      */
-    label: string;
-    /**
-      * Sets or retrieves whether the option in the list box is the default 
item.
-      */
-    selected: boolean;
-    /**
-      * Sets or retrieves the text string specified by the option tag.
-      */
-    text: string;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLOptionElement: {
-    prototype: HTMLOptionElement;
-    new(): HTMLOptionElement;
-    create(): HTMLOptionElement;
-}
-
-interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
-    length: number;
-    selectedIndex: number;
-    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement 
| number): void;
-    remove(index: number): void;
-}
-
-declare var HTMLOptionsCollection: {
-    prototype: HTMLOptionsCollection;
-    new(): HTMLOptionsCollection;
-}
-
-interface HTMLParagraphElement extends HTMLElement {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text. 
-      */
-    align: string;
-    clear: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParagraphElement: {
-    prototype: HTMLParagraphElement;
-    new(): HTMLParagraphElement;
-}
-
-interface HTMLParamElement extends HTMLElement {
-    /**
-      * Sets or retrieves the name of an input parameter for an element.
-      */
-    name: string;
-    /**
-      * Sets or retrieves the content type of the resource designated by the 
value attribute.
-      */
-    type: string;
-    /**
-      * Sets or retrieves the value of an input parameter for an element.
-      */
-    value: string;
-    /**
-      * Sets or retrieves the data type of the value attribute.
-      */
-    valueType: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLParamElement: {
-    prototype: HTMLParamElement;
-    new(): HTMLParamElement;
-}
-
-interface HTMLPictureElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPictureElement: {
-    prototype: HTMLPictureElement;
-    new(): HTMLPictureElement;
-}
-
-interface HTMLPreElement extends HTMLElement {
-    /**
-      * Sets or gets a value that you can use to implement your own width 
functionality for the object.
-      */
-    width: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLPreElement: {
-    prototype: HTMLPreElement;
-    new(): HTMLPreElement;
-}
-
-interface HTMLProgressElement extends HTMLElement {
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Defines the maximum, or "done" value for a progress element.
-      */
-    max: number;
-    /**
-      * Returns the quotient of value/max when the value attribute is set 
(determinate progress bar), or -1 when the value attribute is missing 
(indeterminate progress bar).
-      */
-    readonly position: number;
-    /**
-      * Sets or gets the current value of a progress element. The value must 
be a non-negative number between 0 and the max value.
-      */
-    value: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLProgressElement: {
-    prototype: HTMLProgressElement;
-    new(): HTMLProgressElement;
-}
-
-interface HTMLQuoteElement extends HTMLElement {
-    /**
-      * Sets or retrieves reference information about the object.
-      */
-    cite: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLQuoteElement: {
-    prototype: HTMLQuoteElement;
-    new(): HTMLQuoteElement;
-}
-
-interface HTMLScriptElement extends HTMLElement {
-    async: boolean;
-    /**
-      * Sets or retrieves the character set used to encode the object.
-      */
-    charset: string;
-    /**
-      * Sets or retrieves the status of the script.
-      */
-    defer: boolean;
-    /**
-      * Sets or retrieves the event for which the script is written. 
-      */
-    event: string;
-    /** 
-      * Sets or retrieves the object that is bound to the event script.
-      */
-    htmlFor: string;
-    /**
-      * Retrieves the URL to an external file that contains the source code or 
data.
-      */
-    src: string;
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    /**
-      * Sets or retrieves the MIME type for the associated scripting engine.
-      */
-    type: string;
-    integrity: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLScriptElement: {
-    prototype: HTMLScriptElement;
-    new(): HTMLScriptElement;
-}
-
-interface HTMLSelectElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in. 
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the number of objects in a collection.
-      */
-    length: number;
-    /**
-      * Sets or retrieves the Boolean value indicating whether multiple items 
can be selected from a list.
-      */
-    multiple: boolean;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    readonly options: HTMLOptionsCollection;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the index of the selected option in a select object.
-      */
-    selectedIndex: number;
-    selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
-    /**
-      * Sets or retrieves the number of rows in the list box. 
-      */
-    size: number;
-    /**
-      * Retrieves the type of select control based on the value of the 
MULTIPLE attribute.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Sets or retrieves the value which is returned to the server when the 
form control is submitted.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Adds an element to the areas, controlRange, or options collection.
-      * @param element Variant of type Number that specifies the index 
position in the collection where the element is placed. If no value is given, 
the method places the element at the end of the collection.
-      * @param before Variant of type Object that specifies an element to 
insert before, or null to append the object to the collection. 
-      */
-    add(element: HTMLElement, before?: HTMLElement | number): void;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param name Variant of type Number or String that specifies the object 
or collection to retrieve. If this parameter is an integer, it is the 
zero-based index of the object. If this parameter is a string, all objects with 
matching name or id properties are retrieved, and a collection is returned if 
more than one match is made.
-      * @param index Variant of type Number that specifies the zero-based 
index of the object to retrieve when a collection is returned.
-      */
-    item(name?: any, index?: any): any;
-    /**
-      * Retrieves a select object or an object from an options collection.
-      * @param namedItem A String that specifies the name or id property of 
the object to retrieve. A collection is returned if more than one match is made.
-      */
-    namedItem(name: string): any;
-    /**
-      * Removes an element from the collection.
-      * @param index Number that specifies the zero-based index of the element 
to remove from the collection.
-      */
-    remove(index?: number): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [name: string]: any;
-}
-
-declare var HTMLSelectElement: {
-    prototype: HTMLSelectElement;
-    new(): HTMLSelectElement;
-}
-
-interface HTMLSourceElement extends HTMLElement {
-    /**
-      * Gets or sets the intended media type of the media source.
-     */
-    media: string;
-    msKeySystem: string;
-    sizes: string;
-    /**
-      * The address or URL of the a media resource that is to be considered.
-      */
-    src: string;
-    srcset: string;
-    /**
-     * Gets or sets the MIME type of a media resource.
-     */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSourceElement: {
-    prototype: HTMLSourceElement;
-    new(): HTMLSourceElement;
-}
-
-interface HTMLSpanElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLSpanElement: {
-    prototype: HTMLSpanElement;
-    new(): HTMLSpanElement;
-}
-
-interface HTMLStyleElement extends HTMLElement, LinkStyle {
-    disabled: boolean;
-    /**
-      * Sets or retrieves the media type.
-      */
-    media: string;
-    /**
-      * Retrieves the CSS language in which the style sheet is written.
-      */
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLStyleElement: {
-    prototype: HTMLStyleElement;
-    new(): HTMLStyleElement;
-}
-
-interface HTMLTableCaptionElement extends HTMLElement {
-    /**
-      * Sets or retrieves the alignment of the caption or legend.
-      */
-    align: string;
-    /**
-      * Sets or retrieves whether the caption appears at the top or bottom of 
the table.
-      */
-    vAlign: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCaptionElement: {
-    prototype: HTMLTableCaptionElement;
-    new(): HTMLTableCaptionElement;
-}
-
-interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves abbreviated text for the object.
-      */
-    abbr: string;
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    /**
-      * Sets or retrieves a comma-delimited list of conceptual categories 
associated with the object.
-      */
-    axis: string;
-    bgColor: any;
-    /**
-      * Retrieves the position of the object in the cells collection of a row.
-      */
-    readonly cellIndex: number;
-    /**
-      * Sets or retrieves the number columns in the table that the object 
should span.
-      */
-    colSpan: number;
-    /**
-      * Sets or retrieves a list of header cells that provide information for 
the object.
-      */
-    headers: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves whether the browser automatically performs wordwrap.
-      */
-    noWrap: boolean;
-    /**
-      * Sets or retrieves how many rows in a table the cell should span.
-      */
-    rowSpan: number;
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCellElement: {
-    prototype: HTMLTableCellElement;
-    new(): HTMLTableCellElement;
-}
-
-interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves the alignment of the object relative to the display 
or table.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of columns in the group.
-      */
-    span: number;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: any;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableColElement: {
-    prototype: HTMLTableColElement;
-    new(): HTMLTableColElement;
-}
-
-interface HTMLTableDataCellElement extends HTMLTableCellElement {
-}
-
-declare var HTMLTableDataCellElement: {
-    prototype: HTMLTableDataCellElement;
-    new(): HTMLTableDataCellElement;
-}
-
-interface HTMLTableElement extends HTMLElement {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Sets or retrieves the width of the border to draw around the object.
-      */
-    border: string;
-    /**
-      * Sets or retrieves the border color of the object. 
-      */
-    borderColor: any;
-    /**
-      * Retrieves the caption object of a table.
-      */
-    caption: HTMLTableCaptionElement;
-    /**
-      * Sets or retrieves the amount of space between the border of the cell 
and the content of the cell.
-      */
-    cellPadding: string;
-    /**
-      * Sets or retrieves the amount of space between cells in a table.
-      */
-    cellSpacing: string;
-    /**
-      * Sets or retrieves the number of columns in the table.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the way the border frame around the table is 
displayed.
-      */
-    frame: string;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Sets or retrieves which dividing lines (inner borders) are displayed.
-      */
-    rules: string;
-    /**
-      * Sets or retrieves a description and/or structure of the object.
-      */
-    summary: string;
-    /**
-      * Retrieves a collection of all tBody objects in the table. Objects in 
this collection are in source order.
-      */
-    tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
-    /**
-      * Retrieves the tFoot object of the table.
-      */
-    tFoot: HTMLTableSectionElement;
-    /**
-      * Retrieves the tHead object of the table.
-      */
-    tHead: HTMLTableSectionElement;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    width: string;
-    /**
-      * Creates an empty caption element in the table.
-      */
-    createCaption(): HTMLTableCaptionElement;
-    /**
-      * Creates an empty tBody element in the table.
-      */
-    createTBody(): HTMLTableSectionElement;
-    /**
-      * Creates an empty tFoot element in the table.
-      */
-    createTFoot(): HTMLTableSectionElement;
-    /**
-      * Returns the tHead element object if successful, or null otherwise.
-      */
-    createTHead(): HTMLTableSectionElement;
-    /**
-      * Deletes the caption element and its contents from the table.
-      */
-    deleteCaption(): void;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Deletes the tFoot element and its contents from the table.
-      */
-    deleteTFoot(): void;
-    /**
-      * Deletes the tHead element and its contents from the table.
-      */
-    deleteTHead(): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableElement: {
-    prototype: HTMLTableElement;
-    new(): HTMLTableElement;
-}
-
-interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
-    /**
-      * Sets or retrieves the group of cells in a table to which the object's 
information applies.
-      */
-    scope: string;
-}
-
-declare var HTMLTableHeaderCellElement: {
-    prototype: HTMLTableHeaderCellElement;
-    new(): HTMLTableHeaderCellElement;
-}
-
-interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves how the object is aligned with adjacent text.
-      */
-    align: string;
-    bgColor: any;
-    /**
-      * Retrieves a collection of all cells in the table row.
-      */
-    cells: HTMLCollectionOf<HTMLTableDataCellElement | 
HTMLTableHeaderCellElement>;
-    /**
-      * Sets or retrieves the height of the object.
-      */
-    height: any;
-    /**
-      * Retrieves the position of the object in the rows collection for the 
table.
-      */
-    readonly rowIndex: number;
-    /**
-      * Retrieves the position of the object in the collection.
-      */
-    readonly sectionRowIndex: number;
-    /**
-      * Removes the specified cell from the table row, as well as from the 
cells collection.
-      * @param index Number that specifies the zero-based position of the cell 
to remove from the table row. If no value is provided, the last cell in the 
cells collection is deleted.
-      */
-    deleteCell(index?: number): void;
-    /**
-      * Creates a new cell in the table row, and adds the cell to the cells 
collection.
-      * @param index Number that specifies where to insert the cell in the tr. 
The default value is -1, which appends the new cell to the end of the cells 
collection.
-      */
-    insertCell(index?: number): HTMLTableDataCellElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableRowElement: {
-    prototype: HTMLTableRowElement;
-    new(): HTMLTableRowElement;
-}
-
-interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that indicates the table alignment.
-      */
-    align: string;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: HTMLCollectionOf<HTMLTableRowElement>;
-    /**
-      * Removes the specified row (tr) from the element and from the rows 
collection.
-      * @param index Number that specifies the zero-based position in the rows 
collection of the row to remove.
-      */
-    deleteRow(index?: number): void;
-    /**
-      * Creates a new row (tr) in the table, and adds the row to the rows 
collection.
-      * @param index Number that specifies where to insert the row in the rows 
collection. The default value is -1, which appends the new row to the end of 
the rows collection.
-      */
-    insertRow(index?: number): HTMLTableRowElement;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableSectionElement: {
-    prototype: HTMLTableSectionElement;
-    new(): HTMLTableSectionElement;
-}
-
-interface HTMLTemplateElement extends HTMLElement {
-    readonly content: DocumentFragment;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTemplateElement: {
-    prototype: HTMLTemplateElement;
-    new(): HTMLTemplateElement;
-}
-
-interface HTMLTextAreaElement extends HTMLElement {
-    /**
-      * Provides a way to direct a user to a specific field when a document 
loads. This can provide both direction and convenience for a user, reducing the 
need to click or tab to a field when a page opens. This attribute is true when 
present on an element, and false when missing.
-      */
-    autofocus: boolean;
-    /**
-      * Sets or retrieves the width of the object.
-      */
-    cols: number;
-    /**
-      * Sets or retrieves the initial contents of the object.
-      */
-    defaultValue: string;
-    disabled: boolean;
-    /**
-      * Retrieves a reference to the form that the object is embedded in.
-      */
-    readonly form: HTMLFormElement;
-    /**
-      * Sets or retrieves the maximum number of characters that the user can 
enter in a text control.
-      */
-    maxLength: number;
-    /**
-      * Sets or retrieves the name of the object.
-      */
-    name: string;
-    /**
-      * Gets or sets a text string that is displayed in an input field as a 
hint or prompt to users as the format or type of information they need to 
enter.The text appears in an input field until the user puts focus on the field.
-      */
-    placeholder: string;
-    /**
-      * Sets or retrieves the value indicated whether the content of the 
object is read-only.
-      */
-    readOnly: boolean;
-    /**
-      * When present, marks an element that can't be submitted without a value.
-      */
-    required: boolean;
-    /**
-      * Sets or retrieves the number of horizontal rows contained in the 
object.
-      */
-    rows: number;
-    /**
-      * Gets or sets the end position or offset of a text selection.
-      */
-    selectionEnd: number;
-    /**
-      * Gets or sets the starting position or offset of a text selection.
-      */
-    selectionStart: number;
-    /**
-      * Sets or retrieves the value indicating whether the control is selected.
-      */
-    status: any;
-    /**
-      * Retrieves the type of control.
-      */
-    readonly type: string;
-    /**
-      * Returns the error message that would be displayed if the user submits 
the form, or an empty string if no error message. It also triggers the standard 
error message, such as "this is a required field". The result is that the user 
sees validation messages without actually submitting.
-      */
-    readonly validationMessage: string;
-    /**
-      * Returns a  ValidityState object that represents the validity states of 
an element.
-      */
-    readonly validity: ValidityState;
-    /**
-      * Retrieves or sets the text in the entry field of the textArea element.
-      */
-    value: string;
-    /**
-      * Returns whether an element will successfully validate based on forms 
validation rules and constraints.
-      */
-    readonly willValidate: boolean;
-    /**
-      * Sets or retrieves how to handle wordwrapping in the object.
-      */
-    wrap: string;
-    minLength: number;
-    /**
-      * Returns whether a form will validate when it is submitted, without 
having to submit it.
-      */
-    checkValidity(): boolean;
-    /**
-      * Highlights the input area of a form element.
-      */
-    select(): void;
-    /**
-      * Sets a custom error message that is displayed when a form is submitted.
-      * @param error Sets a custom error message that is displayed when a form 
is submitted.
-      */
-    setCustomValidity(error: string): void;
-    /**
-      * Sets the start and end positions of a selection in a text field.
-      * @param start The offset into the text field for the start of the 
selection.
-      * @param end The offset into the text field for the end of the selection.
-      */
-    setSelectionRange(start: number, end: number): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTextAreaElement: {
-    prototype: HTMLTextAreaElement;
-    new(): HTMLTextAreaElement;
-}
-
-interface HTMLTitleElement extends HTMLElement {
-    /**
-      * Retrieves or sets the text of the object as a string. 
-      */
-    text: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTitleElement: {
-    prototype: HTMLTitleElement;
-    new(): HTMLTitleElement;
-}
-
-interface HTMLTrackElement extends HTMLElement {
-    default: boolean;
-    kind: string;
-    label: string;
-    readonly readyState: number;
-    src: string;
-    srclang: string;
-    readonly track: TextTrack;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTrackElement: {
-    prototype: HTMLTrackElement;
-    new(): HTMLTrackElement;
-    readonly ERROR: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-}
-
-interface HTMLUListElement extends HTMLElement {
-    compact: boolean;
-    type: string;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUListElement: {
-    prototype: HTMLUListElement;
-    new(): HTMLUListElement;
-}
-
-interface HTMLUnknownElement extends HTMLElement {
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLUnknownElement: {
-    prototype: HTMLUnknownElement;
-    new(): HTMLUnknownElement;
-}
-
-interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
-    "MSVideoFormatChanged": Event;
-    "MSVideoFrameStepCompleted": Event;
-    "MSVideoOptimalLayoutChanged": Event;
-}
-
-interface HTMLVideoElement extends HTMLMediaElement {
-    /**
-      * Gets or sets the height of the video element.
-      */
-    height: number;
-    msHorizontalMirror: boolean;
-    readonly msIsLayoutOptimalForPlayback: boolean;
-    readonly msIsStereo3D: boolean;
-    msStereo3DPackingMode: string;
-    msStereo3DRenderMode: string;
-    msZoom: boolean;
-    onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any;
-    onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any;
-    /**
-      * Gets or sets a URL of an image to display, for example, like a movie 
poster. This can be a still frame from the video, or another image if no video 
data is available.
-      */
-    poster: string;
-    /**
-      * Gets the intrinsic height of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoHeight: number;
-    /**
-      * Gets the intrinsic width of a video in CSS pixels, or zero if the 
dimensions are not known.
-      */
-    readonly videoWidth: number;
-    readonly webkitDisplayingFullscreen: boolean;
-    readonly webkitSupportsFullscreen: boolean;
-    /**
-      * Gets or sets the width of the video element.
-      */
-    width: number;
-    getVideoPlaybackQuality(): VideoPlaybackQuality;
-    msFrameStep(forward: boolean): void;
-    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, 
config?: any): void;
-    msSetVideoRectangle(left: number, top: number, right: number, bottom: 
number): void;
-    webkitEnterFullScreen(): void;
-    webkitEnterFullscreen(): void;
-    webkitExitFullScreen(): void;
-    webkitExitFullscreen(): void;
-    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, 
listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLVideoElement: {
-    prototype: HTMLVideoElement;
-    new(): HTMLVideoElement;
-}
-
-interface HashChangeEvent extends Event {
-    readonly newURL: string | null;
-    readonly oldURL: string | null;
-}
-
-declare var HashChangeEvent: {
-    prototype: HashChangeEvent;
-    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
-}
-
-interface History {
-    readonly length: number;
-    readonly state: any;
-    scrollRestoration: ScrollRestoration;
-    back(): void;
-    forward(): void;
-    go(delta?: number): void;
-    pushState(data: any, title: string, url?: string | null): void;
-    replaceState(data: any, title: string, url?: string | null): void;
-}
-
-declare var History: {
-    prototype: History;
-    new(): History;
-}
-
-interface IDBCursor {
-    readonly direction: string;
-    key: IDBKeyRange | IDBValidKey;
-    readonly primaryKey: any;
-    source: IDBObjectStore | IDBIndex;
-    advance(count: number): void;
-    continue(key?: IDBKeyRange | IDBValidKey): void;
-    delete(): IDBRequest;
-    update(value: any): IDBRequest;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-declare var IDBCursor: {
-    prototype: IDBCursor;
-    new(): IDBCursor;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-interface IDBCursorWithValue extends IDBCursor {
-    readonly value: any;
-}
-
-declare var IDBCursorWithValue: {
-    prototype: IDBCursorWithValue;
-    new(): IDBCursorWithValue;
-}
-
-interface IDBDatabaseEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBDatabase extends EventTarget {
-    readonly name: string;
-    readonly objectStoreNames: DOMStringList;
-    onabort: (this: IDBDatabase, ev: Event) => any;
-    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
-    version: number;
-    onversionchange: (ev: IDBVersionChangeEvent) => any;
-    close(): void;
-    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
-    deleteObjectStore(name: string): void;
-    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
-    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
-    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBDatabase: {
-    prototype: IDBDatabase;
-    new(): IDBDatabase;
-}
-
-interface IDBFactory {
-    cmp(first: any, second: any): number;
-    deleteDatabase(name: string): IDBOpenDBRequest;
-    open(name: string, version?: number): IDBOpenDBRequest;
-}
-
-declare var IDBFactory: {
-    prototype: IDBFactory;
-    new(): IDBFactory;
-}
-
-interface IDBIndex {
-    keyPath: string | string[];
-    readonly name: string;
-    readonly objectStore: IDBObjectStore;
-    readonly unique: boolean;
-    multiEntry: boolean;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-}
-
-declare var IDBIndex: {
-    prototype: IDBIndex;
-    new(): IDBIndex;
-}
-
-interface IDBKeyRange {
-    readonly lower: any;
-    readonly lowerOpen: boolean;
-    readonly upper: any;
-    readonly upperOpen: boolean;
-}
-
-declare var IDBKeyRange: {
-    prototype: IDBKeyRange;
-    new(): IDBKeyRange;
-    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
-    lowerBound(lower: any, open?: boolean): IDBKeyRange;
-    only(value: any): IDBKeyRange;
-    upperBound(upper: any, open?: boolean): IDBKeyRange;
-}
-
-interface IDBObjectStore {
-    readonly indexNames: DOMStringList;
-    keyPath: string | string[];
-    readonly name: string;
-    readonly transaction: IDBTransaction;
-    autoIncrement: boolean;
-    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    clear(): IDBRequest;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
-    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    deleteIndex(indexName: string): void;
-    get(key: any): IDBRequest;
-    index(name: string): IDBIndex;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-}
-
-declare var IDBObjectStore: {
-    prototype: IDBObjectStore;
-    new(): IDBObjectStore;
-}
-
-interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
-    "blocked": Event;
-    "upgradeneeded": IDBVersionChangeEvent;
-}
-
-interface IDBOpenDBRequest extends IDBRequest {
-    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
-    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
-    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBOpenDBRequest: {
-    prototype: IDBOpenDBRequest;
-    new(): IDBOpenDBRequest;
-}
-
-interface IDBRequestEventMap {
-    "error": ErrorEvent;
-    "success": Event;
-}
-
-interface IDBRequest extends EventTarget {
-    readonly error: DOMError;
-    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
-    onsuccess: (this: IDBRequest, ev: Event) => any;
-    readonly readyState: string;
-    readonly result: any;
-    source: IDBObjectStore | IDBIndex | IDBCursor;
-    readonly transaction: IDBTransaction;
-    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBRequest: {
-    prototype: IDBRequest;
-    new(): IDBRequest;
-}
-
-interface IDBTransactionEventMap {
-    "abort": Event;
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBTransaction extends EventTarget {
-    readonly db: IDBDatabase;
-    readonly error: DOMError;
-    readonly mode: string;
-    onabort: (this: IDBTransaction, ev: Event) => any;
-    oncomplete: (this: IDBTransaction, ev: Event) => any;
-    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
-    abort(): void;
-    objectStore(name: string): IDBObjectStore;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBTransaction: {
-    prototype: IDBTransaction;
-    new(): IDBTransaction;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-}
-
-interface IDBVersionChangeEvent extends Event {
-    readonly newVersion: number | null;
-    readonly oldVersion: number;
-}
-
-declare var IDBVersionChangeEvent: {
-    prototype: IDBVersionChangeEvent;
-    new(): IDBVersionChangeEvent;
-}
-
-interface ImageData {
-    data: Uint8ClampedArray;
-    readonly height: number;
-    readonly width: number;
-}
-
-declare var ImageData: {
-    prototype: ImageData;
-    new(width: number, height: number): ImageData;
-    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
-}
-
-interface KeyboardEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly char: string | null;
-    readonly charCode: number;
-    readonly ctrlKey: boolean;
-    readonly key: string;
-    readonly keyCode: number;
-    readonly locale: string;
-    readonly location: number;
-    readonly metaKey: boolean;
-    readonly repeat: boolean;
-    readonly shiftKey: boolean;
-    readonly which: number;
-    readonly code: string;
-    getModifierState(keyArg: string): boolean;
-    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, keyArg: string, locationArg: number, 
modifiersListArg: string, repeat: boolean, locale: string): void;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-declare var KeyboardEvent: {
-    prototype: KeyboardEvent;
-    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
-    readonly DOM_KEY_LOCATION_JOYSTICK: number;
-    readonly DOM_KEY_LOCATION_LEFT: number;
-    readonly DOM_KEY_LOCATION_MOBILE: number;
-    readonly DOM_KEY_LOCATION_NUMPAD: number;
-    readonly DOM_KEY_LOCATION_RIGHT: number;
-    readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-interface ListeningStateChangedEvent extends Event {
-    readonly label: string;
-    readonly state: string;
-}
-
-declare var ListeningStateChangedEvent: {
-    prototype: ListeningStateChangedEvent;
-    new(): ListeningStateChangedEvent;
-}
-
-interface Location {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    assign(url: string): void;
-    reload(forcedReload?: boolean): void;
-    replace(url: string): void;
-    toString(): string;
-}
-
-declare var Location: {
-    prototype: Location;
-    new(): Location;
-}
-
-interface LongRunningScriptDetectedEvent extends Event {
-    readonly executionTime: number;
-    stopPageScriptExecution: boolean;
-}
-
-declare var LongRunningScriptDetectedEvent: {
-    prototype: LongRunningScriptDetectedEvent;
-    new(): LongRunningScriptDetectedEvent;
-}
-
-interface MSApp {
-    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
-    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
-    createDataPackage(object: any): any;
-    createDataPackageFromSelection(): any;
-    createFileFromStorageFile(storageFile: any): File;
-    createStreamFromInputStream(type: string, inputStream: any): MSStream;
-    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
-    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
-    getCurrentPriority(): string;
-    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
-    getViewId(view: any): any;
-    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
-    pageHandlesAllApplicationActivations(enabled: boolean): void;
-    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
-    terminateApp(exceptionObject: any): void;
-    readonly CURRENT: string;
-    readonly HIGH: string;
-    readonly IDLE: string;
-    readonly NORMAL: string;
-}
-declare var MSApp: MSApp;
-
-interface MSAppAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSAppAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
-    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSAppAsyncOperation: {
-    prototype: MSAppAsyncOperation;
-    new(): MSAppAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-}
-
-interface MSAssertion {
-    readonly id: string;
-    readonly type: string;
-}
-
-declare var MSAssertion: {
-    prototype: MSAssertion;
-    new(): MSAssertion;
-}
-
-interface MSBlobBuilder {
-    append(data: any, endings?: string): void;
-    getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
-    prototype: MSBlobBuilder;
-    new(): MSBlobBuilder;
-}
-
-interface MSCredentials {
-    getAssertion(challenge: string, filter?: MSCredentialFilter, params?: 
MSSignatureParameters): PromiseLike<MSAssertion>;
-    makeCredential(accountInfo: MSAccountInfo, params: 
MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
-}
-
-declare var MSCredentials: {
-    prototype: MSCredentials;
-    new(): MSCredentials;
-}
-
-interface MSFIDOCredentialAssertion extends MSAssertion {
-    readonly algorithm: string | Algorithm;
-    readonly attestation: any;
-    readonly publicKey: string;
-    readonly transportHints: string[];
-}
-
-declare var MSFIDOCredentialAssertion: {
-    prototype: MSFIDOCredentialAssertion;
-    new(): MSFIDOCredentialAssertion;
-}
-
-interface MSFIDOSignature {
-    readonly authnrData: string;
-    readonly clientData: string;
-    readonly signature: string;
-}
-
-declare var MSFIDOSignature: {
-    prototype: MSFIDOSignature;
-    new(): MSFIDOSignature;
-}
-
-interface MSFIDOSignatureAssertion extends MSAssertion {
-    readonly signature: MSFIDOSignature;
-}
-
-declare var MSFIDOSignatureAssertion: {
-    prototype: MSFIDOSignatureAssertion;
-    new(): MSFIDOSignatureAssertion;
-}
-
-interface MSGesture {
-    target: Element;
-    addPointer(pointerId: number): void;
-    stop(): void;
-}
-
-declare var MSGesture: {
-    prototype: MSGesture;
-    new(): MSGesture;
-}
-
-interface MSGestureEvent extends UIEvent {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly expansion: number;
-    readonly gestureObject: any;
-    readonly hwTimestamp: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly rotation: number;
-    readonly scale: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly translationX: number;
-    readonly translationY: number;
-    readonly velocityAngular: number;
-    readonly velocityExpansion: number;
-    readonly velocityX: number;
-    readonly velocityY: number;
-    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: 
number, translationXArg: number, translationYArg: number, scaleArg: number, 
expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: 
number, velocityExpansionArg: number, velocityAngularArg: number, 
hwTimestampArg: number): void;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
-    prototype: MSGestureEvent;
-    new(): MSGestureEvent;
-    readonly MSGESTURE_FLAG_BEGIN: number;
-    readonly MSGESTURE_FLAG_CANCEL: number;
-    readonly MSGESTURE_FLAG_END: number;
-    readonly MSGESTURE_FLAG_INERTIA: number;
-    readonly MSGESTURE_FLAG_NONE: number;
-}
-
-interface MSGraphicsTrust {
-    readonly constrictionActive: boolean;
-    readonly status: string;
-}
-
-declare var MSGraphicsTrust: {
-    prototype: MSGraphicsTrust;
-    new(): MSGraphicsTrust;
-}
-
-interface MSHTMLWebViewElement extends HTMLElement {
-    readonly canGoBack: boolean;
-    readonly canGoForward: boolean;
-    readonly containsFullScreenElement: boolean;
-    readonly documentTitle: string;
-    height: number;
-    readonly settings: MSWebViewSettings;
-    src: string;
-    width: number;
-    addWebAllowedObject(name: string, applicationObject: any): void;
-    buildLocalStreamUri(contentIdentifier: string, relativePath: string): 
string;
-    capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
-    captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
-    getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
-    getDeferredPermissionRequests(): DeferredPermissionRequest[];
-    goBack(): void;
-    goForward(): void;
-    invokeScriptAsync(scriptName: string, ...args: any[]): 
MSWebViewAsyncOperation;
-    navigate(uri: string): void;
-    navigateToLocalStreamUri(source: string, streamResolver: any): void;
-    navigateToString(contents: string): void;
-    navigateWithHttpRequestMessage(requestMessage: any): void;
-    refresh(): void;
-    stop(): void;
-    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: 
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSHTMLWebViewElement: {
-    prototype: MSHTMLWebViewElement;
-    new(): MSHTMLWebViewElement;
-}
-
-interface MSInputMethodContextEventMap {
-    "MSCandidateWindowHide": Event;
-    "MSCandidateWindowShow": Event;
-    "MSCandidateWindowUpdate": Event;
-}
-
-interface MSInputMethodContext extends EventTarget {
-    readonly compositionEndOffset: number;
-    readonly compositionStartOffset: number;
-    oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any;
-    oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any;
-    readonly target: HTMLElement;
-    getCandidateWindowClientRect(): ClientRect;
-    getCompositionAlternatives(): string[];
-    hasComposition(): boolean;
-    isCandidateWindowVisible(): boolean;
-    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, 
listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSInputMethodContext: {
-    prototype: MSInputMethodContext;
-    new(): MSInputMethodContext;
-}
-
-interface MSManipulationEvent extends UIEvent {
-    readonly currentState: number;
-    readonly inertiaDestinationX: number;
-    readonly inertiaDestinationY: number;
-    readonly lastState: number;
-    initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, 
cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, 
currentState: number): void;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-declare var MSManipulationEvent: {
-    prototype: MSManipulationEvent;
-    new(): MSManipulationEvent;
-    readonly MS_MANIPULATION_STATE_ACTIVE: number;
-    readonly MS_MANIPULATION_STATE_CANCELLED: number;
-    readonly MS_MANIPULATION_STATE_COMMITTED: number;
-    readonly MS_MANIPULATION_STATE_DRAGGING: number;
-    readonly MS_MANIPULATION_STATE_INERTIA: number;
-    readonly MS_MANIPULATION_STATE_PRESELECT: number;
-    readonly MS_MANIPULATION_STATE_SELECTING: number;
-    readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-interface MSMediaKeyError {
-    readonly code: number;
-    readonly systemCode: number;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-declare var MSMediaKeyError: {
-    prototype: MSMediaKeyError;
-    new(): MSMediaKeyError;
-    readonly MS_MEDIA_KEYERR_CLIENT: number;
-    readonly MS_MEDIA_KEYERR_DOMAIN: number;
-    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
-    readonly MS_MEDIA_KEYERR_OUTPUT: number;
-    readonly MS_MEDIA_KEYERR_SERVICE: number;
-    readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-interface MSMediaKeyMessageEvent extends Event {
-    readonly destinationURL: string | null;
-    readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
-    prototype: MSMediaKeyMessageEvent;
-    new(): MSMediaKeyMessageEvent;
-}
-
-interface MSMediaKeyNeededEvent extends Event {
-    readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
-    prototype: MSMediaKeyNeededEvent;
-    new(): MSMediaKeyNeededEvent;
-}
-
-interface MSMediaKeySession extends EventTarget {
-    readonly error: MSMediaKeyError | null;
-    readonly keySystem: string;
-    readonly sessionId: string;
-    close(): void;
-    update(key: Uint8Array): void;
-}
-
-declare var MSMediaKeySession: {
-    prototype: MSMediaKeySession;
-    new(): MSMediaKeySession;
-}
-
-interface MSMediaKeys {
-    readonly keySystem: string;
-    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): 
MSMediaKeySession;
-}
-
-declare var MSMediaKeys: {
-    prototype: MSMediaKeys;
-    new(keySystem: string): MSMediaKeys;
-    isTypeSupported(keySystem: string, type?: string): boolean;
-    isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
-}
-
-interface MSPointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var MSPointerEvent: {
-    prototype: MSPointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-}
-
-interface MSRangeCollection {
-    readonly length: number;
-    item(index: number): Range;
-    [index: number]: Range;
-}
-
-declare var MSRangeCollection: {
-    prototype: MSRangeCollection;
-    new(): MSRangeCollection;
-}
-
-interface MSSiteModeEvent extends Event {
-    readonly actionURL: string;
-    readonly buttonID: number;
-}
-
-declare var MSSiteModeEvent: {
-    prototype: MSSiteModeEvent;
-    new(): MSSiteModeEvent;
-}
-
-interface MSStream {
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-}
-
-declare var MSStream: {
-    prototype: MSStream;
-    new(): MSStream;
-}
-
-interface MSStreamReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(stream: MSStream, size?: number): void;
-    readAsBinaryString(stream: MSStream, size?: number): void;
-    readAsBlob(stream: MSStream, size?: number): void;
-    readAsDataURL(stream: MSStream, size?: number): void;
-    readAsText(stream: MSStream, encoding?: string, size?: number): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSStreamReader: {
-    prototype: MSStreamReader;
-    new(): MSStreamReader;
-}
-
-interface MSWebViewAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSWebViewAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any;
-    onerror: (this: MSWebViewAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    readonly target: MSHTMLWebViewElement;
-    readonly type: number;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-    addEventListener<K extends keyof MSWebViewAsyncOperationEventMap>(type: K, 
listener: (this: MSWebViewAsyncOperation, ev: 
MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSWebViewAsyncOperation: {
-    prototype: MSWebViewAsyncOperation;
-    new(): MSWebViewAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
-    readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
-    readonly TYPE_INVOKE_SCRIPT: number;
-}
-
-interface MSWebViewSettings {
-    isIndexedDBEnabled: boolean;
-    isJavaScriptEnabled: boolean;
-}
-
-declare var MSWebViewSettings: {
-    prototype: MSWebViewSettings;
-    new(): MSWebViewSettings;
-}
-
-interface MediaDeviceInfo {
-    readonly deviceId: string;
-    readonly groupId: string;
-    readonly kind: string;
-    readonly label: string;
-}
-
-declare var MediaDeviceInfo: {
-    prototype: MediaDeviceInfo;
-    new(): MediaDeviceInfo;
-}
-
-interface MediaDevicesEventMap {
-    "devicechange": Event;
-}
-
-interface MediaDevices extends EventTarget {
-    ondevicechange: (this: MediaDevices, ev: Event) => any;
-    enumerateDevices(): any;
-    getSupportedConstraints(): MediaTrackSupportedConstraints;
-    getUserMedia(constraints: MediaStreamConstraints): 
PromiseLike<MediaStream>;
-    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: 
(this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaDevices: {
-    prototype: MediaDevices;
-    new(): MediaDevices;
-}
-
-interface MediaElementAudioSourceNode extends AudioNode {
-}
-
-declare var MediaElementAudioSourceNode: {
-    prototype: MediaElementAudioSourceNode;
-    new(): MediaElementAudioSourceNode;
-}
-
-interface MediaEncryptedEvent extends Event {
-    readonly initData: ArrayBuffer | null;
-    readonly initDataType: string;
-}
-
-declare var MediaEncryptedEvent: {
-    prototype: MediaEncryptedEvent;
-    new(type: string, eventInitDict?: MediaEncryptedEventInit): 
MediaEncryptedEvent;
-}
-
-interface MediaError {
-    readonly code: number;
-    readonly msExtendedCode: number;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-declare var MediaError: {
-    prototype: MediaError;
-    new(): MediaError;
-    readonly MEDIA_ERR_ABORTED: number;
-    readonly MEDIA_ERR_DECODE: number;
-    readonly MEDIA_ERR_NETWORK: number;
-    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
-    readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-interface MediaKeyMessageEvent extends Event {
-    readonly message: ArrayBuffer;
-    readonly messageType: string;
-}
-
-declare var MediaKeyMessageEvent: {
-    prototype: MediaKeyMessageEvent;
-    new(type: string, eventInitDict?: MediaKeyMessageEventInit): 
MediaKeyMessageEvent;
-}
-
-interface MediaKeySession extends EventTarget {
-    readonly closed: PromiseLike<void>;
-    readonly expiration: number;
-    readonly keyStatuses: MediaKeyStatusMap;
-    readonly sessionId: string;
-    close(): PromiseLike<void>;
-    generateRequest(initDataType: string, initData: any): PromiseLike<void>;
-    load(sessionId: string): PromiseLike<boolean>;
-    remove(): PromiseLike<void>;
-    update(response: any): PromiseLike<void>;
-}
-
-declare var MediaKeySession: {
-    prototype: MediaKeySession;
-    new(): MediaKeySession;
-}
-
-interface MediaKeyStatusMap {
-    readonly size: number;
-    forEach(callback: ForEachCallback): void;
-    get(keyId: any): string;
-    has(keyId: any): boolean;
-}
-
-declare var MediaKeyStatusMap: {
-    prototype: MediaKeyStatusMap;
-    new(): MediaKeyStatusMap;
-}
-
-interface MediaKeySystemAccess {
-    readonly keySystem: string;
-    createMediaKeys(): PromiseLike<MediaKeys>;
-    getConfiguration(): MediaKeySystemConfiguration;
-}
-
-declare var MediaKeySystemAccess: {
-    prototype: MediaKeySystemAccess;
-    new(): MediaKeySystemAccess;
-}
-
-interface MediaKeys {
-    createSession(sessionType?: string): MediaKeySession;
-    setServerCertificate(serverCertificate: any): PromiseLike<void>;
-}
-
-declare var MediaKeys: {
-    prototype: MediaKeys;
-    new(): MediaKeys;
-}
-
-interface MediaList {
-    readonly length: number;
-    mediaText: string;
-    appendMedium(newMedium: string): void;
-    deleteMedium(oldMedium: string): void;
-    item(index: number): string;
-    toString(): string;
-    [index: number]: string;
-}
-
-declare var MediaList: {
-    prototype: MediaList;
-    new(): MediaList;
-}
-
-interface MediaQueryList {
-    readonly matches: boolean;
-    readonly media: string;
-    addListener(listener: MediaQueryListListener): void;
-    removeListener(listener: MediaQueryListListener): void;
-}
-
-declare var MediaQueryList: {
-    prototype: MediaQueryList;
-    new(): MediaQueryList;
-}
-
-interface MediaSource extends EventTarget {
-    readonly activeSourceBuffers: SourceBufferList;
-    duration: number;
-    readonly readyState: string;
-    readonly sourceBuffers: SourceBufferList;
-    addSourceBuffer(type: string): SourceBuffer;
-    endOfStream(error?: number): void;
-    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
-}
-
-declare var MediaSource: {
-    prototype: MediaSource;
-    new(): MediaSource;
-    isTypeSupported(type: string): boolean;
-}
-
-interface MediaStreamEventMap {
-    "active": Event;
-    "addtrack": TrackEvent;
-    "inactive": Event;
-    "removetrack": TrackEvent;
-}
-
-interface MediaStream extends EventTarget {
-    readonly active: boolean;
-    readonly id: string;
-    onactive: (this: MediaStream, ev: Event) => any;
-    onaddtrack: (this: MediaStream, ev: TrackEvent) => any;
-    oninactive: (this: MediaStream, ev: Event) => any;
-    onremovetrack: (this: MediaStream, ev: TrackEvent) => any;
-    addTrack(track: MediaStreamTrack): void;
-    clone(): MediaStream;
-    getAudioTracks(): MediaStreamTrack[];
-    getTrackById(trackId: string): MediaStreamTrack | null;
-    getTracks(): MediaStreamTrack[];
-    getVideoTracks(): MediaStreamTrack[];
-    removeTrack(track: MediaStreamTrack): void;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: 
(this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStream: {
-    prototype: MediaStream;
-    new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
-}
-
-interface MediaStreamAudioSourceNode extends AudioNode {
-}
-
-declare var MediaStreamAudioSourceNode: {
-    prototype: MediaStreamAudioSourceNode;
-    new(): MediaStreamAudioSourceNode;
-}
-
-interface MediaStreamError {
-    readonly constraintName: string | null;
-    readonly message: string | null;
-    readonly name: string;
-}
-
-declare var MediaStreamError: {
-    prototype: MediaStreamError;
-    new(): MediaStreamError;
-}
-
-interface MediaStreamErrorEvent extends Event {
-    readonly error: MediaStreamError | null;
-}
-
-declare var MediaStreamErrorEvent: {
-    prototype: MediaStreamErrorEvent;
-    new(type: string, eventInitDict?: MediaStreamErrorEventInit): 
MediaStreamErrorEvent;
-}
-
-interface MediaStreamTrackEventMap {
-    "ended": MediaStreamErrorEvent;
-    "mute": Event;
-    "overconstrained": MediaStreamErrorEvent;
-    "unmute": Event;
-}
-
-interface MediaStreamTrack extends EventTarget {
-    enabled: boolean;
-    readonly id: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly muted: boolean;
-    onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
-    onmute: (this: MediaStreamTrack, ev: Event) => any;
-    onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => 
any;
-    onunmute: (this: MediaStreamTrack, ev: Event) => any;
-    readonly readonly: boolean;
-    readonly readyState: string;
-    readonly remote: boolean;
-    applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
-    clone(): MediaStreamTrack;
-    getCapabilities(): MediaTrackCapabilities;
-    getConstraints(): MediaTrackConstraints;
-    getSettings(): MediaTrackSettings;
-    stop(): void;
-    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, 
listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStreamTrack: {
-    prototype: MediaStreamTrack;
-    new(): MediaStreamTrack;
-}
-
-interface MediaStreamTrackEvent extends Event {
-    readonly track: MediaStreamTrack;
-}
-
-declare var MediaStreamTrackEvent: {
-    prototype: MediaStreamTrackEvent;
-    new(type: string, eventInitDict?: MediaStreamTrackEventInit): 
MediaStreamTrackEvent;
-}
-
-interface MessageChannel {
-    readonly port1: MessagePort;
-    readonly port2: MessagePort;
-}
-
-declare var MessageChannel: {
-    prototype: MessageChannel;
-    new(): MessageChannel;
-}
-
-interface MessageEvent extends Event {
-    readonly data: any;
-    readonly origin: string;
-    readonly ports: any;
-    readonly source: Window;
-    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
Window): void;
-}
-
-declare var MessageEvent: {
-    prototype: MessageEvent;
-    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
-}
-
-interface MessagePortEventMap {
-    "message": MessageEvent;
-}
-
-interface MessagePort extends EventTarget {
-    onmessage: (this: MessagePort, ev: MessageEvent) => any;
-    close(): void;
-    postMessage(message?: any, ports?: any): void;
-    start(): void;
-    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MessagePort: {
-    prototype: MessagePort;
-    new(): MessagePort;
-}
-
-interface MimeType {
-    readonly description: string;
-    readonly enabledPlugin: Plugin;
-    readonly suffixes: string;
-    readonly type: string;
-}
-
-declare var MimeType: {
-    prototype: MimeType;
-    new(): MimeType;
-}
-
-interface MimeTypeArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(type: string): Plugin;
-    [index: number]: Plugin;
-}
-
-declare var MimeTypeArray: {
-    prototype: MimeTypeArray;
-    new(): MimeTypeArray;
-}
-
-interface MouseEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly button: number;
-    readonly buttons: number;
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly ctrlKey: boolean;
-    readonly fromElement: Element;
-    readonly layerX: number;
-    readonly layerY: number;
-    readonly metaKey: boolean;
-    readonly movementX: number;
-    readonly movementY: number;
-    readonly offsetX: number;
-    readonly offsetY: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly relatedTarget: EventTarget;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly shiftKey: boolean;
-    readonly toElement: Element;
-    readonly which: number;
-    readonly x: number;
-    readonly y: number;
-    getModifierState(keyArg: string): boolean;
-    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(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
-}
-
-interface MutationEvent extends Event {
-    readonly attrChange: number;
-    readonly attrName: string;
-    readonly newValue: string;
-    readonly prevValue: string;
-    readonly relatedNode: Node;
-    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, 
attrNameArg: string, attrChangeArg: number): void;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-declare var MutationEvent: {
-    prototype: MutationEvent;
-    new(): MutationEvent;
-    readonly ADDITION: number;
-    readonly MODIFICATION: number;
-    readonly REMOVAL: number;
-}
-
-interface MutationObserver {
-    disconnect(): void;
-    observe(target: Node, options: MutationObserverInit): void;
-    takeRecords(): MutationRecord[];
-}
-
-declare var MutationObserver: {
-    prototype: MutationObserver;
-    new(callback: MutationCallback): MutationObserver;
-}
-
-interface MutationRecord {
-    readonly addedNodes: NodeList;
-    readonly attributeName: string | null;
-    readonly attributeNamespace: string | null;
-    readonly nextSibling: Node | null;
-    readonly oldValue: string | null;
-    readonly previousSibling: Node | null;
-    readonly removedNodes: NodeList;
-    readonly target: Node;
-    readonly type: string;
-}
-
-declare var MutationRecord: {
-    prototype: MutationRecord;
-    new(): MutationRecord;
-}
-
-interface NamedNodeMap {
-    readonly length: number;
-    getNamedItem(name: string): Attr;
-    getNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    item(index: number): Attr;
-    removeNamedItem(name: string): Attr;
-    removeNamedItemNS(namespaceURI: string | null, localName: string | null): 
Attr;
-    setNamedItem(arg: Attr): Attr;
-    setNamedItemNS(arg: Attr): Attr;
-    [index: number]: Attr;
-}
-
-declare var NamedNodeMap: {
-    prototype: NamedNodeMap;
-    new(): NamedNodeMap;
-}
-
-interface NavigationCompletedEvent extends NavigationEvent {
-    readonly isSuccess: boolean;
-    readonly webErrorStatus: number;
-}
-
-declare var NavigationCompletedEvent: {
-    prototype: NavigationCompletedEvent;
-    new(): NavigationCompletedEvent;
-}
-
-interface NavigationEvent extends Event {
-    readonly uri: string;
-}
-
-declare var NavigationEvent: {
-    prototype: NavigationEvent;
-    new(): NavigationEvent;
-}
-
-interface NavigationEventWithReferrer extends NavigationEvent {
-    readonly referer: string;
-}
-
-declare var NavigationEventWithReferrer: {
-    prototype: NavigationEventWithReferrer;
-    new(): NavigationEventWithReferrer;
-}
-
-interface Navigator extends Object, NavigatorID, NavigatorOnLine, 
NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, 
MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
-    readonly appCodeName: string;
-    readonly cookieEnabled: boolean;
-    readonly language: string;
-    readonly maxTouchPoints: number;
-    readonly mimeTypes: MimeTypeArray;
-    readonly msManipulationViewsEnabled: boolean;
-    readonly msMaxTouchPoints: number;
-    readonly msPointerEnabled: boolean;
-    readonly plugins: PluginArray;
-    readonly pointerEnabled: boolean;
-    readonly webdriver: boolean;
-    readonly hardwareConcurrency: number;
-    getGamepads(): Gamepad[];
-    javaEnabled(): boolean;
-    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, 
noHandlerCallback?: MSLaunchUriCallback): void;
-    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: 
MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
-    vibrate(pattern: number | number[]): boolean;
-}
-
-declare var Navigator: {
-    prototype: Navigator;
-    new(): Navigator;
-}
-
-interface Node extends EventTarget {
-    readonly attributes: NamedNodeMap;
-    readonly baseURI: string | null;
-    readonly childNodes: NodeList;
-    readonly firstChild: Node | null;
-    readonly lastChild: Node | null;
-    readonly localName: string | null;
-    readonly namespaceURI: string | null;
-    readonly nextSibling: Node | null;
-    readonly nodeName: string;
-    readonly nodeType: number;
-    nodeValue: string | null;
-    readonly ownerDocument: Document;
-    readonly parentElement: HTMLElement | null;
-    readonly parentNode: Node | null;
-    readonly previousSibling: Node | null;
-    textContent: string | null;
-    appendChild(newChild: Node): Node;
-    cloneNode(deep?: boolean): Node;
-    compareDocumentPosition(other: Node): number;
-    contains(child: Node): boolean;
-    hasAttributes(): boolean;
-    hasChildNodes(): boolean;
-    insertBefore(newChild: Node, refChild: Node | null): Node;
-    isDefaultNamespace(namespaceURI: string | null): boolean;
-    isEqualNode(arg: Node): boolean;
-    isSameNode(other: Node): boolean;
-    lookupNamespaceURI(prefix: string | null): string | null;
-    lookupPrefix(namespaceURI: string | null): string | null;
-    normalize(): void;
-    removeChild(oldChild: Node): Node;
-    replaceChild(newChild: Node, oldChild: Node): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-declare var Node: {
-    prototype: Node;
-    new(): Node;
-    readonly ATTRIBUTE_NODE: number;
-    readonly CDATA_SECTION_NODE: number;
-    readonly COMMENT_NODE: number;
-    readonly DOCUMENT_FRAGMENT_NODE: number;
-    readonly DOCUMENT_NODE: number;
-    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
-    readonly DOCUMENT_POSITION_CONTAINS: number;
-    readonly DOCUMENT_POSITION_DISCONNECTED: number;
-    readonly DOCUMENT_POSITION_FOLLOWING: number;
-    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
-    readonly DOCUMENT_POSITION_PRECEDING: number;
-    readonly DOCUMENT_TYPE_NODE: number;
-    readonly ELEMENT_NODE: number;
-    readonly ENTITY_NODE: number;
-    readonly ENTITY_REFERENCE_NODE: number;
-    readonly NOTATION_NODE: number;
-    readonly PROCESSING_INSTRUCTION_NODE: number;
-    readonly TEXT_NODE: number;
-}
-
-interface NodeFilter {
-    acceptNode(n: Node): number;
-}
-
-declare var NodeFilter: {
-    readonly FILTER_ACCEPT: number;
-    readonly FILTER_REJECT: number;
-    readonly FILTER_SKIP: number;
-    readonly SHOW_ALL: number;
-    readonly SHOW_ATTRIBUTE: number;
-    readonly SHOW_CDATA_SECTION: number;
-    readonly SHOW_COMMENT: number;
-    readonly SHOW_DOCUMENT: number;
-    readonly SHOW_DOCUMENT_FRAGMENT: number;
-    readonly SHOW_DOCUMENT_TYPE: number;
-    readonly SHOW_ELEMENT: number;
-    readonly SHOW_ENTITY: number;
-    readonly SHOW_ENTITY_REFERENCE: number;
-    readonly SHOW_NOTATION: number;
-    readonly SHOW_PROCESSING_INSTRUCTION: number;
-    readonly SHOW_TEXT: number;
-}
-
-interface NodeIterator {
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    detach(): void;
-    nextNode(): Node;
-    previousNode(): Node;
-}
-
-declare var NodeIterator: {
-    prototype: NodeIterator;
-    new(): NodeIterator;
-}
-
-interface NodeList {
-    readonly length: number;
-    item(index: number): Node;
-    [index: number]: Node;
-}
-
-declare var NodeList: {
-    prototype: NodeList;
-    new(): NodeList;
-}
-
-interface OES_element_index_uint {
-}
-
-declare var OES_element_index_uint: {
-    prototype: OES_element_index_uint;
-    new(): OES_element_index_uint;
-}
-
-interface OES_standard_derivatives {
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-declare var OES_standard_derivatives: {
-    prototype: OES_standard_derivatives;
-    new(): OES_standard_derivatives;
-    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-interface OES_texture_float {
-}
-
-declare var OES_texture_float: {
-    prototype: OES_texture_float;
-    new(): OES_texture_float;
-}
-
-interface OES_texture_float_linear {
-}
-
-declare var OES_texture_float_linear: {
-    prototype: OES_texture_float_linear;
-    new(): OES_texture_float_linear;
-}
-
-interface OfflineAudioCompletionEvent extends Event {
-    readonly renderedBuffer: AudioBuffer;
-}
-
-declare var OfflineAudioCompletionEvent: {
-    prototype: OfflineAudioCompletionEvent;
-    new(): OfflineAudioCompletionEvent;
-}
-
-interface OfflineAudioContextEventMap {
-    "complete": Event;
-}
-
-interface OfflineAudioContext extends AudioContext {
-    oncomplete: (this: OfflineAudioContext, ev: Event) => any;
-    startRendering(): PromiseLike<AudioBuffer>;
-    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, 
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OfflineAudioContext: {
-    prototype: OfflineAudioContext;
-    new(numberOfChannels: number, length: number, sampleRate: number): 
OfflineAudioContext;
-}
-
-interface OscillatorNodeEventMap {
-    "ended": MediaStreamErrorEvent;
-}
-
-interface OscillatorNode extends AudioNode {
-    readonly detune: AudioParam;
-    readonly frequency: AudioParam;
-    onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
-    type: string;
-    setPeriodicWave(periodicWave: PeriodicWave): void;
-    start(when?: number): void;
-    stop(when?: number): void;
-    addEventListener<K extends keyof OscillatorNodeEventMap>(type: K, 
listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OscillatorNode: {
-    prototype: OscillatorNode;
-    new(): OscillatorNode;
-}
-
-interface OverflowEvent extends UIEvent {
-    readonly horizontalOverflow: boolean;
-    readonly orient: number;
-    readonly verticalOverflow: boolean;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-declare var OverflowEvent: {
-    prototype: OverflowEvent;
-    new(): OverflowEvent;
-    readonly BOTH: number;
-    readonly HORIZONTAL: number;
-    readonly VERTICAL: number;
-}
-
-interface PageTransitionEvent extends Event {
-    readonly persisted: boolean;
-}
-
-declare var PageTransitionEvent: {
-    prototype: PageTransitionEvent;
-    new(): PageTransitionEvent;
-}
-
-interface PannerNode extends AudioNode {
-    coneInnerAngle: number;
-    coneOuterAngle: number;
-    coneOuterGain: number;
-    distanceModel: string;
-    maxDistance: number;
-    panningModel: string;
-    refDistance: number;
-    rolloffFactor: number;
-    setOrientation(x: number, y: number, z: number): void;
-    setPosition(x: number, y: number, z: number): void;
-    setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var PannerNode: {
-    prototype: PannerNode;
-    new(): PannerNode;
-}
-
-interface PerfWidgetExternal {
-    readonly activeNetworkRequestCount: number;
-    readonly averageFrameTime: number;
-    readonly averagePaintTime: number;
-    readonly extraInformationEnabled: boolean;
-    readonly independentRenderingEnabled: boolean;
-    readonly irDisablingContentString: string;
-    readonly irStatusAvailable: boolean;
-    readonly maxCpuSpeed: number;
-    readonly paintRequestsPerSecond: number;
-    readonly performanceCounter: number;
-    readonly performanceCounterFrequency: number;
-    addEventListener(eventType: string, callback: Function): void;
-    getMemoryUsage(): number;
-    getProcessCpuUsage(): number;
-    getRecentCpuUsage(last: number | null): any;
-    getRecentFrames(last: number | null): any;
-    getRecentMemoryUsage(last: number | null): any;
-    getRecentPaintRequests(last: number | null): any;
-    removeEventListener(eventType: string, callback: Function): void;
-    repositionWindow(x: number, y: number): void;
-    resizeWindow(width: number, height: number): void;
-}
-
-declare var PerfWidgetExternal: {
-    prototype: PerfWidgetExternal;
-    new(): PerfWidgetExternal;
-}
-
-interface Performance {
-    readonly navigation: PerformanceNavigation;
-    readonly timing: PerformanceTiming;
-    clearMarks(markName?: string): void;
-    clearMeasures(measureName?: string): void;
-    clearResourceTimings(): void;
-    getEntries(): any;
-    getEntriesByName(name: string, entryType?: string): any;
-    getEntriesByType(entryType: string): any;
-    getMarks(markName?: string): any;
-    getMeasures(measureName?: string): any;
-    mark(markName: string): void;
-    measure(measureName: string, startMarkName?: string, endMarkName?: 
string): void;
-    now(): number;
-    setResourceTimingBufferSize(maxSize: number): void;
-    toJSON(): any;
-}
-
-declare var Performance: {
-    prototype: Performance;
-    new(): Performance;
-}
-
-interface PerformanceEntry {
-    readonly duration: number;
-    readonly entryType: string;
-    readonly name: string;
-    readonly startTime: number;
-}
-
-declare var PerformanceEntry: {
-    prototype: PerformanceEntry;
-    new(): PerformanceEntry;
-}
-
-interface PerformanceMark extends PerformanceEntry {
-}
-
-declare var PerformanceMark: {
-    prototype: PerformanceMark;
-    new(): PerformanceMark;
-}
-
-interface PerformanceMeasure extends PerformanceEntry {
-}
-
-declare var PerformanceMeasure: {
-    prototype: PerformanceMeasure;
-    new(): PerformanceMeasure;
-}
-
-interface PerformanceNavigation {
-    readonly redirectCount: number;
-    readonly type: number;
-    toJSON(): any;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-declare var PerformanceNavigation: {
-    prototype: PerformanceNavigation;
-    new(): PerformanceNavigation;
-    readonly TYPE_BACK_FORWARD: number;
-    readonly TYPE_NAVIGATE: number;
-    readonly TYPE_RELOAD: number;
-    readonly TYPE_RESERVED: number;
-}
-
-interface PerformanceNavigationTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly navigationStart: number;
-    readonly redirectCount: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly type: string;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-}
-
-declare var PerformanceNavigationTiming: {
-    prototype: PerformanceNavigationTiming;
-    new(): PerformanceNavigationTiming;
-}
-
-interface PerformanceResourceTiming extends PerformanceEntry {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly initiatorType: string;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-}
-
-declare var PerformanceResourceTiming: {
-    prototype: PerformanceResourceTiming;
-    new(): PerformanceResourceTiming;
-}
-
-interface PerformanceTiming {
-    readonly connectEnd: number;
-    readonly connectStart: number;
-    readonly domComplete: number;
-    readonly domContentLoadedEventEnd: number;
-    readonly domContentLoadedEventStart: number;
-    readonly domInteractive: number;
-    readonly domLoading: number;
-    readonly domainLookupEnd: number;
-    readonly domainLookupStart: number;
-    readonly fetchStart: number;
-    readonly loadEventEnd: number;
-    readonly loadEventStart: number;
-    readonly msFirstPaint: number;
-    readonly navigationStart: number;
-    readonly redirectEnd: number;
-    readonly redirectStart: number;
-    readonly requestStart: number;
-    readonly responseEnd: number;
-    readonly responseStart: number;
-    readonly unloadEventEnd: number;
-    readonly unloadEventStart: number;
-    readonly secureConnectionStart: number;
-    toJSON(): any;
-}
-
-declare var PerformanceTiming: {
-    prototype: PerformanceTiming;
-    new(): PerformanceTiming;
-}
-
-interface PeriodicWave {
-}
-
-declare var PeriodicWave: {
-    prototype: PeriodicWave;
-    new(): PeriodicWave;
-}
-
-interface PermissionRequest extends DeferredPermissionRequest {
-    readonly state: string;
-    defer(): void;
-}
-
-declare var PermissionRequest: {
-    prototype: PermissionRequest;
-    new(): PermissionRequest;
-}
-
-interface PermissionRequestedEvent extends Event {
-    readonly permissionRequest: PermissionRequest;
-}
-
-declare var PermissionRequestedEvent: {
-    prototype: PermissionRequestedEvent;
-    new(): PermissionRequestedEvent;
-}
-
-interface Plugin {
-    readonly description: string;
-    readonly filename: string;
-    readonly length: number;
-    readonly name: string;
-    readonly version: string;
-    item(index: number): MimeType;
-    namedItem(type: string): MimeType;
-    [index: number]: MimeType;
-}
-
-declare var Plugin: {
-    prototype: Plugin;
-    new(): Plugin;
-}
-
-interface PluginArray {
-    readonly length: number;
-    item(index: number): Plugin;
-    namedItem(name: string): Plugin;
-    refresh(reload?: boolean): void;
-    [index: number]: Plugin;
-}
-
-declare var PluginArray: {
-    prototype: PluginArray;
-    new(): PluginArray;
-}
-
-interface PointerEvent extends MouseEvent {
-    readonly currentPoint: any;
-    readonly height: number;
-    readonly hwTimestamp: number;
-    readonly intermediatePoints: any;
-    readonly isPrimary: boolean;
-    readonly pointerId: number;
-    readonly pointerType: any;
-    readonly pressure: number;
-    readonly rotation: number;
-    readonly tiltX: number;
-    readonly tiltY: number;
-    readonly width: number;
-    getCurrentPoint(element: Element): void;
-    getIntermediatePoints(element: Element): void;
-    initPointerEvent(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, offsetXArg: number, offsetYArg: number, 
widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: 
number, tiltY: number, pointerIdArg:  [...]
-}
-
-declare var PointerEvent: {
-    prototype: PointerEvent;
-    new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
-}
-
-interface PopStateEvent extends Event {
-    readonly state: any;
-    initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, stateArg: any): void;
-}
-
-declare var PopStateEvent: {
-    prototype: PopStateEvent;
-    new(): PopStateEvent;
-}
-
-interface Position {
-    readonly coords: Coordinates;
-    readonly timestamp: number;
-}
-
-declare var Position: {
-    prototype: Position;
-    new(): Position;
-}
-
-interface PositionError {
-    readonly code: number;
-    readonly message: string;
-    toString(): string;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-declare var PositionError: {
-    prototype: PositionError;
-    new(): PositionError;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-interface ProcessingInstruction extends CharacterData {
-    readonly target: string;
-}
-
-declare var ProcessingInstruction: {
-    prototype: ProcessingInstruction;
-    new(): ProcessingInstruction;
-}
-
-interface ProgressEvent extends Event {
-    readonly lengthComputable: boolean;
-    readonly loaded: number;
-    readonly total: number;
-    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
-}
-
-declare var ProgressEvent: {
-    prototype: ProgressEvent;
-    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
-}
-
-interface RTCDTMFToneChangeEvent extends Event {
-    readonly tone: string;
-}
-
-declare var RTCDTMFToneChangeEvent: {
-    prototype: RTCDTMFToneChangeEvent;
-    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): 
RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtlsTransportEventMap {
-    "dtlsstatechange": RTCDtlsTransportStateChangedEvent;
-    "error": ErrorEvent;
-}
-
-interface RTCDtlsTransport extends RTCStatsProvider {
-    ondtlsstatechange: ((this: RTCDtlsTransport, ev: 
RTCDtlsTransportStateChangedEvent) => any) | null;
-    onerror: ((this: RTCDtlsTransport, ev: ErrorEvent) => any) | null;
-    readonly state: string;
-    readonly transport: RTCIceTransport;
-    getLocalParameters(): RTCDtlsParameters;
-    getRemoteCertificates(): ArrayBuffer[];
-    getRemoteParameters(): RTCDtlsParameters | null;
-    start(remoteParameters: RTCDtlsParameters): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, 
listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtlsTransport: {
-    prototype: RTCDtlsTransport;
-    new(transport: RTCIceTransport): RTCDtlsTransport;
-}
-
-interface RTCDtlsTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCDtlsTransportStateChangedEvent: {
-    prototype: RTCDtlsTransportStateChangedEvent;
-    new(): RTCDtlsTransportStateChangedEvent;
-}
-
-interface RTCDtmfSenderEventMap {
-    "tonechange": RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtmfSender extends EventTarget {
-    readonly canInsertDTMF: boolean;
-    readonly duration: number;
-    readonly interToneGap: number;
-    ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any;
-    readonly sender: RTCRtpSender;
-    readonly toneBuffer: string;
-    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
-    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: 
(this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtmfSender: {
-    prototype: RTCDtmfSender;
-    new(sender: RTCRtpSender): RTCDtmfSender;
-}
-
-interface RTCIceCandidatePairChangedEvent extends Event {
-    readonly pair: RTCIceCandidatePair;
-}
-
-declare var RTCIceCandidatePairChangedEvent: {
-    prototype: RTCIceCandidatePairChangedEvent;
-    new(): RTCIceCandidatePairChangedEvent;
-}
-
-interface RTCIceGathererEventMap {
-    "error": ErrorEvent;
-    "localcandidate": RTCIceGathererEvent;
-}
-
-interface RTCIceGatherer extends RTCStatsProvider {
-    readonly component: string;
-    onerror: ((this: RTCIceGatherer, ev: ErrorEvent) => any) | null;
-    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) 
| null;
-    createAssociatedGatherer(): RTCIceGatherer;
-    getLocalCandidates(): RTCIceCandidate[];
-    getLocalParameters(): RTCIceParameters;
-    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, 
listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceGatherer: {
-    prototype: RTCIceGatherer;
-    new(options: RTCIceGatherOptions): RTCIceGatherer;
-}
-
-interface RTCIceGathererEvent extends Event {
-    readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
-}
-
-declare var RTCIceGathererEvent: {
-    prototype: RTCIceGathererEvent;
-    new(): RTCIceGathererEvent;
-}
-
-interface RTCIceTransportEventMap {
-    "candidatepairchange": RTCIceCandidatePairChangedEvent;
-    "icestatechange": RTCIceTransportStateChangedEvent;
-}
-
-interface RTCIceTransport extends RTCStatsProvider {
-    readonly component: string;
-    readonly iceGatherer: RTCIceGatherer | null;
-    oncandidatepairchange: ((this: RTCIceTransport, ev: 
RTCIceCandidatePairChangedEvent) => any) | null;
-    onicestatechange: ((this: RTCIceTransport, ev: 
RTCIceTransportStateChangedEvent) => any) | null;
-    readonly role: string;
-    readonly state: string;
-    addRemoteCandidate(remoteCandidate: RTCIceCandidate | 
RTCIceCandidateComplete): void;
-    createAssociatedTransport(): RTCIceTransport;
-    getNominatedCandidatePair(): RTCIceCandidatePair | null;
-    getRemoteCandidates(): RTCIceCandidate[];
-    getRemoteParameters(): RTCIceParameters | null;
-    setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
-    start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: 
string): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, 
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceTransport: {
-    prototype: RTCIceTransport;
-    new(): RTCIceTransport;
-}
-
-interface RTCIceTransportStateChangedEvent extends Event {
-    readonly state: string;
-}
-
-declare var RTCIceTransportStateChangedEvent: {
-    prototype: RTCIceTransportStateChangedEvent;
-    new(): RTCIceTransportStateChangedEvent;
-}
-
-interface RTCRtpReceiverEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCRtpReceiver extends RTCStatsProvider {
-    onerror: ((this: RTCRtpReceiver, ev: ErrorEvent) => any) | null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack | null;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    getContributingSources(): RTCRtpContributingSource[];
-    receive(parameters: RTCRtpParameters): void;
-    requestSendCSRC(csrc: number): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpReceiverEventMap>(type: K, 
listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpReceiver: {
-    prototype: RTCRtpReceiver;
-    new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, 
rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCRtpSenderEventMap {
-    "error": ErrorEvent;
-    "ssrcconflict": RTCSsrcConflictEvent;
-}
-
-interface RTCRtpSender extends RTCStatsProvider {
-    onerror: ((this: RTCRtpSender, ev: ErrorEvent) => any) | null;
-    onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | 
null;
-    readonly rtcpTransport: RTCDtlsTransport;
-    readonly track: MediaStreamTrack;
-    readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
-    send(parameters: RTCRtpParameters): void;
-    setTrack(track: MediaStreamTrack): void;
-    setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, 
rtcpTransport?: RTCDtlsTransport): void;
-    stop(): void;
-    addEventListener<K extends keyof RTCRtpSenderEventMap>(type: K, listener: 
(this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpSender: {
-    prototype: RTCRtpSender;
-    new(track: MediaStreamTrack, transport: RTCDtlsTransport | 
RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
-    getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCSrtpSdesTransportEventMap {
-    "error": ErrorEvent;
-}
-
-interface RTCSrtpSdesTransport extends EventTarget {
-    onerror: ((this: RTCSrtpSdesTransport, ev: ErrorEvent) => any) | null;
-    readonly transport: RTCIceTransport;
-    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, 
listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCSrtpSdesTransport: {
-    prototype: RTCSrtpSdesTransport;
-    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, 
decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
-    getLocalParameters(): RTCSrtpSdesParameters[];
-}
-
-interface RTCSsrcConflictEvent extends Event {
-    readonly ssrc: number;
-}
-
-declare var RTCSsrcConflictEvent: {
-    prototype: RTCSsrcConflictEvent;
-    new(): RTCSsrcConflictEvent;
-}
-
-interface RTCStatsProvider extends EventTarget {
-    getStats(): PromiseLike<RTCStatsReport>;
-    msGetStats(): PromiseLike<RTCStatsReport>;
-}
-
-declare var RTCStatsProvider: {
-    prototype: RTCStatsProvider;
-    new(): RTCStatsProvider;
-}
-
-interface Range {
-    readonly collapsed: boolean;
-    readonly commonAncestorContainer: Node;
-    readonly endContainer: Node;
-    readonly endOffset: number;
-    readonly startContainer: Node;
-    readonly startOffset: number;
-    cloneContents(): DocumentFragment;
-    cloneRange(): Range;
-    collapse(toStart: boolean): void;
-    compareBoundaryPoints(how: number, sourceRange: Range): number;
-    createContextualFragment(fragment: string): DocumentFragment;
-    deleteContents(): void;
-    detach(): void;
-    expand(Unit: string): boolean;
-    extractContents(): DocumentFragment;
-    getBoundingClientRect(): ClientRect;
-    getClientRects(): ClientRectList;
-    insertNode(newNode: Node): void;
-    selectNode(refNode: Node): void;
-    selectNodeContents(refNode: Node): void;
-    setEnd(refNode: Node, offset: number): void;
-    setEndAfter(refNode: Node): void;
-    setEndBefore(refNode: Node): void;
-    setStart(refNode: Node, offset: number): void;
-    setStartAfter(refNode: Node): void;
-    setStartBefore(refNode: Node): void;
-    surroundContents(newParent: Node): void;
-    toString(): string;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-declare var Range: {
-    prototype: Range;
-    new(): Range;
-    readonly END_TO_END: number;
-    readonly END_TO_START: number;
-    readonly START_TO_END: number;
-    readonly START_TO_START: number;
-}
-
-interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly target: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGAElement: {
-    prototype: SVGAElement;
-    new(): SVGAElement;
-}
-
-interface SVGAngle {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-declare var SVGAngle: {
-    prototype: SVGAngle;
-    new(): SVGAngle;
-    readonly SVG_ANGLETYPE_DEG: number;
-    readonly SVG_ANGLETYPE_GRAD: number;
-    readonly SVG_ANGLETYPE_RAD: number;
-    readonly SVG_ANGLETYPE_UNKNOWN: number;
-    readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-interface SVGAnimatedAngle {
-    readonly animVal: SVGAngle;
-    readonly baseVal: SVGAngle;
-}
-
-declare var SVGAnimatedAngle: {
-    prototype: SVGAnimatedAngle;
-    new(): SVGAnimatedAngle;
-}
-
-interface SVGAnimatedBoolean {
-    readonly animVal: boolean;
-    baseVal: boolean;
-}
-
-declare var SVGAnimatedBoolean: {
-    prototype: SVGAnimatedBoolean;
-    new(): SVGAnimatedBoolean;
-}
-
-interface SVGAnimatedEnumeration {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedEnumeration: {
-    prototype: SVGAnimatedEnumeration;
-    new(): SVGAnimatedEnumeration;
-}
-
-interface SVGAnimatedInteger {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedInteger: {
-    prototype: SVGAnimatedInteger;
-    new(): SVGAnimatedInteger;
-}
-
-interface SVGAnimatedLength {
-    readonly animVal: SVGLength;
-    readonly baseVal: SVGLength;
-}
-
-declare var SVGAnimatedLength: {
-    prototype: SVGAnimatedLength;
-    new(): SVGAnimatedLength;
-}
-
-interface SVGAnimatedLengthList {
-    readonly animVal: SVGLengthList;
-    readonly baseVal: SVGLengthList;
-}
-
-declare var SVGAnimatedLengthList: {
-    prototype: SVGAnimatedLengthList;
-    new(): SVGAnimatedLengthList;
-}
-
-interface SVGAnimatedNumber {
-    readonly animVal: number;
-    baseVal: number;
-}
-
-declare var SVGAnimatedNumber: {
-    prototype: SVGAnimatedNumber;
-    new(): SVGAnimatedNumber;
-}
-
-interface SVGAnimatedNumberList {
-    readonly animVal: SVGNumberList;
-    readonly baseVal: SVGNumberList;
-}
-
-declare var SVGAnimatedNumberList: {
-    prototype: SVGAnimatedNumberList;
-    new(): SVGAnimatedNumberList;
-}
-
-interface SVGAnimatedPreserveAspectRatio {
-    readonly animVal: SVGPreserveAspectRatio;
-    readonly baseVal: SVGPreserveAspectRatio;
-}
-
-declare var SVGAnimatedPreserveAspectRatio: {
-    prototype: SVGAnimatedPreserveAspectRatio;
-    new(): SVGAnimatedPreserveAspectRatio;
-}
-
-interface SVGAnimatedRect {
-    readonly animVal: SVGRect;
-    readonly baseVal: SVGRect;
-}
-
-declare var SVGAnimatedRect: {
-    prototype: SVGAnimatedRect;
-    new(): SVGAnimatedRect;
-}
-
-interface SVGAnimatedString {
-    readonly animVal: string;
-    baseVal: string;
-}
-
-declare var SVGAnimatedString: {
-    prototype: SVGAnimatedString;
-    new(): SVGAnimatedString;
-}
-
-interface SVGAnimatedTransformList {
-    readonly animVal: SVGTransformList;
-    readonly baseVal: SVGTransformList;
-}
-
-declare var SVGAnimatedTransformList: {
-    prototype: SVGAnimatedTransformList;
-    new(): SVGAnimatedTransformList;
-}
-
-interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGCircleElement: {
-    prototype: SVGCircleElement;
-    new(): SVGCircleElement;
-}
-
-interface SVGClipPathElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGUnitTypes {
-    readonly clipPathUnits: SVGAnimatedEnumeration;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGClipPathElement: {
-    prototype: SVGClipPathElement;
-    new(): SVGClipPathElement;
-}
-
-interface SVGComponentTransferFunctionElement extends SVGElement {
-    readonly amplitude: SVGAnimatedNumber;
-    readonly exponent: SVGAnimatedNumber;
-    readonly intercept: SVGAnimatedNumber;
-    readonly offset: SVGAnimatedNumber;
-    readonly slope: SVGAnimatedNumber;
-    readonly tableValues: SVGAnimatedNumberList;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGComponentTransferFunctionElement: {
-    prototype: SVGComponentTransferFunctionElement;
-    new(): SVGComponentTransferFunctionElement;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
-    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-}
-
-interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDefsElement: {
-    prototype: SVGDefsElement;
-    new(): SVGDefsElement;
-}
-
-interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDescElement: {
-    prototype: SVGDescElement;
-    new(): SVGDescElement;
-}
-
-interface SVGElementEventMap extends ElementEventMap {
-    "click": MouseEvent;
-    "dblclick": MouseEvent;
-    "focusin": FocusEvent;
-    "focusout": FocusEvent;
-    "load": Event;
-    "mousedown": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-}
-
-interface SVGElement extends Element {
-    onclick: (this: SVGElement, ev: MouseEvent) => any;
-    ondblclick: (this: SVGElement, ev: MouseEvent) => any;
-    onfocusin: (this: SVGElement, ev: FocusEvent) => any;
-    onfocusout: (this: SVGElement, ev: FocusEvent) => any;
-    onload: (this: SVGElement, ev: Event) => any;
-    onmousedown: (this: SVGElement, ev: MouseEvent) => any;
-    onmousemove: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseout: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseover: (this: SVGElement, ev: MouseEvent) => any;
-    onmouseup: (this: SVGElement, ev: MouseEvent) => any;
-    readonly ownerSVGElement: SVGSVGElement;
-    readonly viewportElement: SVGElement;
-    xmlbase: string;
-    className: any;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGElement: {
-    prototype: SVGElement;
-    new(): SVGElement;
-}
-
-interface SVGElementInstance extends EventTarget {
-    readonly childNodes: SVGElementInstanceList;
-    readonly correspondingElement: SVGElement;
-    readonly correspondingUseElement: SVGUseElement;
-    readonly firstChild: SVGElementInstance;
-    readonly lastChild: SVGElementInstance;
-    readonly nextSibling: SVGElementInstance;
-    readonly parentNode: SVGElementInstance;
-    readonly previousSibling: SVGElementInstance;
-}
-
-declare var SVGElementInstance: {
-    prototype: SVGElementInstance;
-    new(): SVGElementInstance;
-}
-
-interface SVGElementInstanceList {
-    readonly length: number;
-    item(index: number): SVGElementInstance;
-}
-
-declare var SVGElementInstanceList: {
-    prototype: SVGElementInstanceList;
-    new(): SVGElementInstanceList;
-}
-
-interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGEllipseElement: {
-    prototype: SVGEllipseElement;
-    new(): SVGEllipseElement;
-}
-
-interface SVGFEBlendElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly mode: SVGAnimatedEnumeration;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEBlendElement: {
-    prototype: SVGFEBlendElement;
-    new(): SVGFEBlendElement;
-    readonly SVG_FEBLEND_MODE_COLOR: number;
-    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
-    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
-    readonly SVG_FEBLEND_MODE_DARKEN: number;
-    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
-    readonly SVG_FEBLEND_MODE_EXCLUSION: number;
-    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_HUE: number;
-    readonly SVG_FEBLEND_MODE_LIGHTEN: number;
-    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
-    readonly SVG_FEBLEND_MODE_MULTIPLY: number;
-    readonly SVG_FEBLEND_MODE_NORMAL: number;
-    readonly SVG_FEBLEND_MODE_OVERLAY: number;
-    readonly SVG_FEBLEND_MODE_SATURATION: number;
-    readonly SVG_FEBLEND_MODE_SCREEN: number;
-    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
-    readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-}
-
-interface SVGFEColorMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly type: SVGAnimatedEnumeration;
-    readonly values: SVGAnimatedNumberList;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEColorMatrixElement: {
-    prototype: SVGFEColorMatrixElement;
-    new(): SVGFEColorMatrixElement;
-    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
-    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
-    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
-    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-}
-
-interface SVGFEComponentTransferElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEComponentTransferElement: {
-    prototype: SVGFEComponentTransferElement;
-    new(): SVGFEComponentTransferElement;
-}
-
-interface SVGFECompositeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly k1: SVGAnimatedNumber;
-    readonly k2: SVGAnimatedNumber;
-    readonly k3: SVGAnimatedNumber;
-    readonly k4: SVGAnimatedNumber;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFECompositeElement: {
-    prototype: SVGFECompositeElement;
-    new(): SVGFECompositeElement;
-    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
-    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-}
-
-interface SVGFEConvolveMatrixElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly bias: SVGAnimatedNumber;
-    readonly divisor: SVGAnimatedNumber;
-    readonly edgeMode: SVGAnimatedEnumeration;
-    readonly in1: SVGAnimatedString;
-    readonly kernelMatrix: SVGAnimatedNumberList;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly orderX: SVGAnimatedInteger;
-    readonly orderY: SVGAnimatedInteger;
-    readonly preserveAlpha: SVGAnimatedBoolean;
-    readonly targetX: SVGAnimatedInteger;
-    readonly targetY: SVGAnimatedInteger;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEConvolveMatrixElement: {
-    prototype: SVGFEConvolveMatrixElement;
-    new(): SVGFEConvolveMatrixElement;
-    readonly SVG_EDGEMODE_DUPLICATE: number;
-    readonly SVG_EDGEMODE_NONE: number;
-    readonly SVG_EDGEMODE_UNKNOWN: number;
-    readonly SVG_EDGEMODE_WRAP: number;
-}
-
-interface SVGFEDiffuseLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly diffuseConstant: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDiffuseLightingElement: {
-    prototype: SVGFEDiffuseLightingElement;
-    new(): SVGFEDiffuseLightingElement;
-}
-
-interface SVGFEDisplacementMapElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly in2: SVGAnimatedString;
-    readonly scale: SVGAnimatedNumber;
-    readonly xChannelSelector: SVGAnimatedEnumeration;
-    readonly yChannelSelector: SVGAnimatedEnumeration;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDisplacementMapElement: {
-    prototype: SVGFEDisplacementMapElement;
-    new(): SVGFEDisplacementMapElement;
-    readonly SVG_CHANNEL_A: number;
-    readonly SVG_CHANNEL_B: number;
-    readonly SVG_CHANNEL_G: number;
-    readonly SVG_CHANNEL_R: number;
-    readonly SVG_CHANNEL_UNKNOWN: number;
-}
-
-interface SVGFEDistantLightElement extends SVGElement {
-    readonly azimuth: SVGAnimatedNumber;
-    readonly elevation: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDistantLightElement: {
-    prototype: SVGFEDistantLightElement;
-    new(): SVGFEDistantLightElement;
-}
-
-interface SVGFEFloodElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEFloodElement: {
-    prototype: SVGFEFloodElement;
-    new(): SVGFEFloodElement;
-}
-
-interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncAElement: {
-    prototype: SVGFEFuncAElement;
-    new(): SVGFEFuncAElement;
-}
-
-interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncBElement: {
-    prototype: SVGFEFuncBElement;
-    new(): SVGFEFuncBElement;
-}
-
-interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncGElement: {
-    prototype: SVGFEFuncGElement;
-    new(): SVGFEFuncGElement;
-}
-
-interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncRElement: {
-    prototype: SVGFEFuncRElement;
-    new(): SVGFEFuncRElement;
-}
-
-interface SVGFEGaussianBlurElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly stdDeviationX: SVGAnimatedNumber;
-    readonly stdDeviationY: SVGAnimatedNumber;
-    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEGaussianBlurElement: {
-    prototype: SVGFEGaussianBlurElement;
-    new(): SVGFEGaussianBlurElement;
-}
-
-interface SVGFEImageElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, 
SVGExternalResourcesRequired {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEImageElement: {
-    prototype: SVGFEImageElement;
-    new(): SVGFEImageElement;
-}
-
-interface SVGFEMergeElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeElement: {
-    prototype: SVGFEMergeElement;
-    new(): SVGFEMergeElement;
-}
-
-interface SVGFEMergeNodeElement extends SVGElement {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeNodeElement: {
-    prototype: SVGFEMergeNodeElement;
-    new(): SVGFEMergeNodeElement;
-}
-
-interface SVGFEMorphologyElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly operator: SVGAnimatedEnumeration;
-    readonly radiusX: SVGAnimatedNumber;
-    readonly radiusY: SVGAnimatedNumber;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMorphologyElement: {
-    prototype: SVGFEMorphologyElement;
-    new(): SVGFEMorphologyElement;
-    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
-    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-}
-
-interface SVGFEOffsetElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly dx: SVGAnimatedNumber;
-    readonly dy: SVGAnimatedNumber;
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEOffsetElement: {
-    prototype: SVGFEOffsetElement;
-    new(): SVGFEOffsetElement;
-}
-
-interface SVGFEPointLightElement extends SVGElement {
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEPointLightElement: {
-    prototype: SVGFEPointLightElement;
-    new(): SVGFEPointLightElement;
-}
-
-interface SVGFESpecularLightingElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    readonly kernelUnitLengthX: SVGAnimatedNumber;
-    readonly kernelUnitLengthY: SVGAnimatedNumber;
-    readonly specularConstant: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly surfaceScale: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpecularLightingElement: {
-    prototype: SVGFESpecularLightingElement;
-    new(): SVGFESpecularLightingElement;
-}
-
-interface SVGFESpotLightElement extends SVGElement {
-    readonly limitingConeAngle: SVGAnimatedNumber;
-    readonly pointsAtX: SVGAnimatedNumber;
-    readonly pointsAtY: SVGAnimatedNumber;
-    readonly pointsAtZ: SVGAnimatedNumber;
-    readonly specularExponent: SVGAnimatedNumber;
-    readonly x: SVGAnimatedNumber;
-    readonly y: SVGAnimatedNumber;
-    readonly z: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpotLightElement: {
-    prototype: SVGFESpotLightElement;
-    new(): SVGFESpotLightElement;
-}
-
-interface SVGFETileElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly in1: SVGAnimatedString;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETileElement: {
-    prototype: SVGFETileElement;
-    new(): SVGFETileElement;
-}
-
-interface SVGFETurbulenceElement extends SVGElement, 
SVGFilterPrimitiveStandardAttributes {
-    readonly baseFrequencyX: SVGAnimatedNumber;
-    readonly baseFrequencyY: SVGAnimatedNumber;
-    readonly numOctaves: SVGAnimatedInteger;
-    readonly seed: SVGAnimatedNumber;
-    readonly stitchTiles: SVGAnimatedEnumeration;
-    readonly type: SVGAnimatedEnumeration;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETurbulenceElement: {
-    prototype: SVGFETurbulenceElement;
-    new(): SVGFETurbulenceElement;
-    readonly SVG_STITCHTYPE_NOSTITCH: number;
-    readonly SVG_STITCHTYPE_STITCH: number;
-    readonly SVG_STITCHTYPE_UNKNOWN: number;
-    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
-    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
-    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-}
-
-interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, 
SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
-    readonly filterResX: SVGAnimatedInteger;
-    readonly filterResY: SVGAnimatedInteger;
-    readonly filterUnits: SVGAnimatedEnumeration;
-    readonly height: SVGAnimatedLength;
-    readonly primitiveUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    setFilterRes(filterResX: number, filterResY: number): void;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFilterElement: {
-    prototype: SVGFilterElement;
-    new(): SVGFilterElement;
-}
-
-interface SVGForeignObjectElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGForeignObjectElement: {
-    prototype: SVGForeignObjectElement;
-    new(): SVGForeignObjectElement;
-}
-
-interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGElement: {
-    prototype: SVGGElement;
-    new(): SVGGElement;
-}
-
-interface SVGGradientElement extends SVGElement, SVGStylable, 
SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
-    readonly gradientTransform: SVGAnimatedTransformList;
-    readonly gradientUnits: SVGAnimatedEnumeration;
-    readonly spreadMethod: SVGAnimatedEnumeration;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGradientElement: {
-    prototype: SVGGradientElement;
-    new(): SVGGradientElement;
-    readonly SVG_SPREADMETHOD_PAD: number;
-    readonly SVG_SPREADMETHOD_REFLECT: number;
-    readonly SVG_SPREADMETHOD_REPEAT: number;
-    readonly SVG_SPREADMETHOD_UNKNOWN: number;
-}
-
-interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly height: SVGAnimatedLength;
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGImageElement: {
-    prototype: SVGImageElement;
-    new(): SVGImageElement;
-}
-
-interface SVGLength {
-    readonly unitType: number;
-    value: number;
-    valueAsString: string;
-    valueInSpecifiedUnits: number;
-    convertToSpecifiedUnits(unitType: number): void;
-    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): 
void;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-declare var SVGLength: {
-    prototype: SVGLength;
-    new(): SVGLength;
-    readonly SVG_LENGTHTYPE_CM: number;
-    readonly SVG_LENGTHTYPE_EMS: number;
-    readonly SVG_LENGTHTYPE_EXS: number;
-    readonly SVG_LENGTHTYPE_IN: number;
-    readonly SVG_LENGTHTYPE_MM: number;
-    readonly SVG_LENGTHTYPE_NUMBER: number;
-    readonly SVG_LENGTHTYPE_PC: number;
-    readonly SVG_LENGTHTYPE_PERCENTAGE: number;
-    readonly SVG_LENGTHTYPE_PT: number;
-    readonly SVG_LENGTHTYPE_PX: number;
-    readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-interface SVGLengthList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGLength): SVGLength;
-    clear(): void;
-    getItem(index: number): SVGLength;
-    initialize(newItem: SVGLength): SVGLength;
-    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
-    removeItem(index: number): SVGLength;
-    replaceItem(newItem: SVGLength, index: number): SVGLength;
-}
-
-declare var SVGLengthList: {
-    prototype: SVGLengthList;
-    new(): SVGLengthList;
-}
-
-interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGLineElement: {
-    prototype: SVGLineElement;
-    new(): SVGLineElement;
-}
-
-interface SVGLinearGradientElement extends SVGGradientElement {
-    readonly x1: SVGAnimatedLength;
-    readonly x2: SVGAnimatedLength;
-    readonly y1: SVGAnimatedLength;
-    readonly y2: SVGAnimatedLength;
-}
-
-declare var SVGLinearGradientElement: {
-    prototype: SVGLinearGradientElement;
-    new(): SVGLinearGradientElement;
-}
-
-interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    readonly markerHeight: SVGAnimatedLength;
-    readonly markerUnits: SVGAnimatedEnumeration;
-    readonly markerWidth: SVGAnimatedLength;
-    readonly orientAngle: SVGAnimatedAngle;
-    readonly orientType: SVGAnimatedEnumeration;
-    readonly refX: SVGAnimatedLength;
-    readonly refY: SVGAnimatedLength;
-    setOrientToAngle(angle: SVGAngle): void;
-    setOrientToAuto(): void;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMarkerElement: {
-    prototype: SVGMarkerElement;
-    new(): SVGMarkerElement;
-    readonly SVG_MARKERUNITS_STROKEWIDTH: number;
-    readonly SVG_MARKERUNITS_UNKNOWN: number;
-    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
-    readonly SVG_MARKER_ORIENT_ANGLE: number;
-    readonly SVG_MARKER_ORIENT_AUTO: number;
-    readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-}
-
-interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly maskContentUnits: SVGAnimatedEnumeration;
-    readonly maskUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMaskElement: {
-    prototype: SVGMaskElement;
-    new(): SVGMaskElement;
-}
-
-interface SVGMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    flipX(): SVGMatrix;
-    flipY(): SVGMatrix;
-    inverse(): SVGMatrix;
-    multiply(secondMatrix: SVGMatrix): SVGMatrix;
-    rotate(angle: number): SVGMatrix;
-    rotateFromVector(x: number, y: number): SVGMatrix;
-    scale(scaleFactor: number): SVGMatrix;
-    scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
-    skewX(angle: number): SVGMatrix;
-    skewY(angle: number): SVGMatrix;
-    translate(x: number, y: number): SVGMatrix;
-}
-
-declare var SVGMatrix: {
-    prototype: SVGMatrix;
-    new(): SVGMatrix;
-}
-
-interface SVGMetadataElement extends SVGElement {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMetadataElement: {
-    prototype: SVGMetadataElement;
-    new(): SVGMetadataElement;
-}
-
-interface SVGNumber {
-    value: number;
-}
-
-declare var SVGNumber: {
-    prototype: SVGNumber;
-    new(): SVGNumber;
-}
-
-interface SVGNumberList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGNumber): SVGNumber;
-    clear(): void;
-    getItem(index: number): SVGNumber;
-    initialize(newItem: SVGNumber): SVGNumber;
-    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
-    removeItem(index: number): SVGNumber;
-    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
-}
-
-declare var SVGNumberList: {
-    prototype: SVGNumberList;
-    new(): SVGNumberList;
-}
-
-interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
-    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
-    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, 
angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
-    createSVGPathSegClosePath(): SVGPathSegClosePath;
-    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
-    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: 
number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
-    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothAbs;
-    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, 
y2: number): SVGPathSegCurvetoCubicSmoothRel;
-    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticAbs;
-    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: 
number): SVGPathSegCurvetoQuadraticRel;
-    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothAbs;
-    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): 
SVGPathSegCurvetoQuadraticSmoothRel;
-    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
-    createSVGPathSegLinetoHorizontalAbs(x: number): 
SVGPathSegLinetoHorizontalAbs;
-    createSVGPathSegLinetoHorizontalRel(x: number): 
SVGPathSegLinetoHorizontalRel;
-    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
-    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
-    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
-    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
-    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
-    getPathSegAtLength(distance: number): number;
-    getPointAtLength(distance: number): SVGPoint;
-    getTotalLength(): number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPathElement: {
-    prototype: SVGPathElement;
-    new(): SVGPathElement;
-}
-
-interface SVGPathSeg {
-    readonly pathSegType: number;
-    readonly pathSegTypeAsLetter: string;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-declare var SVGPathSeg: {
-    prototype: SVGPathSeg;
-    new(): SVGPathSeg;
-    readonly PATHSEG_ARC_ABS: number;
-    readonly PATHSEG_ARC_REL: number;
-    readonly PATHSEG_CLOSEPATH: number;
-    readonly PATHSEG_CURVETO_CUBIC_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_REL: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
-    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
-    readonly PATHSEG_LINETO_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
-    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
-    readonly PATHSEG_LINETO_REL: number;
-    readonly PATHSEG_LINETO_VERTICAL_ABS: number;
-    readonly PATHSEG_LINETO_VERTICAL_REL: number;
-    readonly PATHSEG_MOVETO_ABS: number;
-    readonly PATHSEG_MOVETO_REL: number;
-    readonly PATHSEG_UNKNOWN: number;
-}
-
-interface SVGPathSegArcAbs extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcAbs: {
-    prototype: SVGPathSegArcAbs;
-    new(): SVGPathSegArcAbs;
-}
-
-interface SVGPathSegArcRel extends SVGPathSeg {
-    angle: number;
-    largeArcFlag: boolean;
-    r1: number;
-    r2: number;
-    sweepFlag: boolean;
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegArcRel: {
-    prototype: SVGPathSegArcRel;
-    new(): SVGPathSegArcRel;
-}
-
-interface SVGPathSegClosePath extends SVGPathSeg {
-}
-
-declare var SVGPathSegClosePath: {
-    prototype: SVGPathSegClosePath;
-    new(): SVGPathSegClosePath;
-}
-
-interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicAbs: {
-    prototype: SVGPathSegCurvetoCubicAbs;
-    new(): SVGPathSegCurvetoCubicAbs;
-}
-
-interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    x2: number;
-    y: number;
-    y1: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicRel: {
-    prototype: SVGPathSegCurvetoCubicRel;
-    new(): SVGPathSegCurvetoCubicRel;
-}
-
-interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothAbs: {
-    prototype: SVGPathSegCurvetoCubicSmoothAbs;
-    new(): SVGPathSegCurvetoCubicSmoothAbs;
-}
-
-interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
-    x: number;
-    x2: number;
-    y: number;
-    y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothRel: {
-    prototype: SVGPathSegCurvetoCubicSmoothRel;
-    new(): SVGPathSegCurvetoCubicSmoothRel;
-}
-
-interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticAbs: {
-    prototype: SVGPathSegCurvetoQuadraticAbs;
-    new(): SVGPathSegCurvetoQuadraticAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
-    x: number;
-    x1: number;
-    y: number;
-    y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticRel: {
-    prototype: SVGPathSegCurvetoQuadraticRel;
-    new(): SVGPathSegCurvetoQuadraticRel;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
-    new(): SVGPathSegCurvetoQuadraticSmoothAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothRel: {
-    prototype: SVGPathSegCurvetoQuadraticSmoothRel;
-    new(): SVGPathSegCurvetoQuadraticSmoothRel;
-}
-
-interface SVGPathSegLinetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoAbs: {
-    prototype: SVGPathSegLinetoAbs;
-    new(): SVGPathSegLinetoAbs;
-}
-
-interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalAbs: {
-    prototype: SVGPathSegLinetoHorizontalAbs;
-    new(): SVGPathSegLinetoHorizontalAbs;
-}
-
-interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
-    x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalRel: {
-    prototype: SVGPathSegLinetoHorizontalRel;
-    new(): SVGPathSegLinetoHorizontalRel;
-}
-
-interface SVGPathSegLinetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegLinetoRel: {
-    prototype: SVGPathSegLinetoRel;
-    new(): SVGPathSegLinetoRel;
-}
-
-interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalAbs: {
-    prototype: SVGPathSegLinetoVerticalAbs;
-    new(): SVGPathSegLinetoVerticalAbs;
-}
-
-interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
-    y: number;
-}
-
-declare var SVGPathSegLinetoVerticalRel: {
-    prototype: SVGPathSegLinetoVerticalRel;
-    new(): SVGPathSegLinetoVerticalRel;
-}
-
-interface SVGPathSegList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPathSeg): SVGPathSeg;
-    clear(): void;
-    getItem(index: number): SVGPathSeg;
-    initialize(newItem: SVGPathSeg): SVGPathSeg;
-    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
-    removeItem(index: number): SVGPathSeg;
-    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
-}
-
-declare var SVGPathSegList: {
-    prototype: SVGPathSegList;
-    new(): SVGPathSegList;
-}
-
-interface SVGPathSegMovetoAbs extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoAbs: {
-    prototype: SVGPathSegMovetoAbs;
-    new(): SVGPathSegMovetoAbs;
-}
-
-interface SVGPathSegMovetoRel extends SVGPathSeg {
-    x: number;
-    y: number;
-}
-
-declare var SVGPathSegMovetoRel: {
-    prototype: SVGPathSegMovetoRel;
-    new(): SVGPathSegMovetoRel;
-}
-
-interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, 
SVGUnitTypes {
-    readonly height: SVGAnimatedLength;
-    readonly patternContentUnits: SVGAnimatedEnumeration;
-    readonly patternTransform: SVGAnimatedTransformList;
-    readonly patternUnits: SVGAnimatedEnumeration;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPatternElement: {
-    prototype: SVGPatternElement;
-    new(): SVGPatternElement;
-}
-
-interface SVGPoint {
-    x: number;
-    y: number;
-    matrixTransform(matrix: SVGMatrix): SVGPoint;
-}
-
-declare var SVGPoint: {
-    prototype: SVGPoint;
-    new(): SVGPoint;
-}
-
-interface SVGPointList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGPoint): SVGPoint;
-    clear(): void;
-    getItem(index: number): SVGPoint;
-    initialize(newItem: SVGPoint): SVGPoint;
-    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
-    removeItem(index: number): SVGPoint;
-    replaceItem(newItem: SVGPoint, index: number): SVGPoint;
-}
-
-declare var SVGPointList: {
-    prototype: SVGPointList;
-    new(): SVGPointList;
-}
-
-interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolygonElement: {
-    prototype: SVGPolygonElement;
-    new(): SVGPolygonElement;
-}
-
-interface SVGPolylineElement extends SVGElement, SVGStylable, 
SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, 
SVGAnimatedPoints {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolylineElement: {
-    prototype: SVGPolylineElement;
-    new(): SVGPolylineElement;
-}
-
-interface SVGPreserveAspectRatio {
-    align: number;
-    meetOrSlice: number;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-declare var SVGPreserveAspectRatio: {
-    prototype: SVGPreserveAspectRatio;
-    new(): SVGPreserveAspectRatio;
-    readonly SVG_MEETORSLICE_MEET: number;
-    readonly SVG_MEETORSLICE_SLICE: number;
-    readonly SVG_MEETORSLICE_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_NONE: number;
-    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
-    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-interface SVGRadialGradientElement extends SVGGradientElement {
-    readonly cx: SVGAnimatedLength;
-    readonly cy: SVGAnimatedLength;
-    readonly fx: SVGAnimatedLength;
-    readonly fy: SVGAnimatedLength;
-    readonly r: SVGAnimatedLength;
-}
-
-declare var SVGRadialGradientElement: {
-    prototype: SVGRadialGradientElement;
-    new(): SVGRadialGradientElement;
-}
-
-interface SVGRect {
-    height: number;
-    width: number;
-    x: number;
-    y: number;
-}
-
-declare var SVGRect: {
-    prototype: SVGRect;
-    new(): SVGRect;
-}
-
-interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    readonly height: SVGAnimatedLength;
-    readonly rx: SVGAnimatedLength;
-    readonly ry: SVGAnimatedLength;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGRectElement: {
-    prototype: SVGRectElement;
-    new(): SVGRectElement;
-}
-
-interface SVGSVGElementEventMap extends SVGElementEventMap {
-    "SVGAbort": Event;
-    "SVGError": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "SVGUnload": Event;
-    "SVGZoom": SVGZoomEvent;
-}
-
-interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, 
SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    contentScriptType: string;
-    contentStyleType: string;
-    currentScale: number;
-    readonly currentTranslate: SVGPoint;
-    readonly height: SVGAnimatedLength;
-    onabort: (this: SVGSVGElement, ev: Event) => any;
-    onerror: (this: SVGSVGElement, ev: Event) => any;
-    onresize: (this: SVGSVGElement, ev: UIEvent) => any;
-    onscroll: (this: SVGSVGElement, ev: UIEvent) => any;
-    onunload: (this: SVGSVGElement, ev: Event) => any;
-    onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any;
-    readonly pixelUnitToMillimeterX: number;
-    readonly pixelUnitToMillimeterY: number;
-    readonly screenPixelToMillimeterX: number;
-    readonly screenPixelToMillimeterY: number;
-    readonly viewport: SVGRect;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
-    checkIntersection(element: SVGElement, rect: SVGRect): boolean;
-    createSVGAngle(): SVGAngle;
-    createSVGLength(): SVGLength;
-    createSVGMatrix(): SVGMatrix;
-    createSVGNumber(): SVGNumber;
-    createSVGPoint(): SVGPoint;
-    createSVGRect(): SVGRect;
-    createSVGTransform(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    deselectAll(): void;
-    forceRedraw(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getCurrentTime(): number;
-    getElementById(elementId: string): Element;
-    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): 
NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | 
SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | 
SVGRectElement | SVGTextElement | SVGUseElement>;
-    pauseAnimations(): void;
-    setCurrentTime(seconds: number): void;
-    suspendRedraw(maxWaitMilliseconds: number): number;
-    unpauseAnimations(): void;
-    unsuspendRedraw(suspendHandleID: number): void;
-    unsuspendRedrawAll(): void;
-    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: 
(this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSVGElement: {
-    prototype: SVGSVGElement;
-    new(): SVGSVGElement;
-}
-
-interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, 
SVGURIReference {
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGScriptElement: {
-    prototype: SVGScriptElement;
-    new(): SVGScriptElement;
-}
-
-interface SVGStopElement extends SVGElement, SVGStylable {
-    readonly offset: SVGAnimatedNumber;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStopElement: {
-    prototype: SVGStopElement;
-    new(): SVGStopElement;
-}
-
-interface SVGStringList {
-    readonly numberOfItems: number;
-    appendItem(newItem: string): string;
-    clear(): void;
-    getItem(index: number): string;
-    initialize(newItem: string): string;
-    insertItemBefore(newItem: string, index: number): string;
-    removeItem(index: number): string;
-    replaceItem(newItem: string, index: number): string;
-}
-
-declare var SVGStringList: {
-    prototype: SVGStringList;
-    new(): SVGStringList;
-}
-
-interface SVGStyleElement extends SVGElement, SVGLangSpace {
-    disabled: boolean;
-    media: string;
-    title: string;
-    type: string;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStyleElement: {
-    prototype: SVGStyleElement;
-    new(): SVGStyleElement;
-}
-
-interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSwitchElement: {
-    prototype: SVGSwitchElement;
-    new(): SVGSwitchElement;
-}
-
-interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, 
SVGExternalResourcesRequired, SVGFitToViewBox {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSymbolElement: {
-    prototype: SVGSymbolElement;
-    new(): SVGSymbolElement;
-}
-
-interface SVGTSpanElement extends SVGTextPositioningElement {
-}
-
-declare var SVGTSpanElement: {
-    prototype: SVGTSpanElement;
-    new(): SVGTSpanElement;
-}
-
-interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, 
SVGLangSpace, SVGExternalResourcesRequired {
-    readonly lengthAdjust: SVGAnimatedEnumeration;
-    readonly textLength: SVGAnimatedLength;
-    getCharNumAtPosition(point: SVGPoint): number;
-    getComputedTextLength(): number;
-    getEndPositionOfChar(charnum: number): SVGPoint;
-    getExtentOfChar(charnum: number): SVGRect;
-    getNumberOfChars(): number;
-    getRotationOfChar(charnum: number): number;
-    getStartPositionOfChar(charnum: number): SVGPoint;
-    getSubStringLength(charnum: number, nchars: number): number;
-    selectSubString(charnum: number, nchars: number): void;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextContentElement: {
-    prototype: SVGTextContentElement;
-    new(): SVGTextContentElement;
-    readonly LENGTHADJUST_SPACING: number;
-    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
-    readonly LENGTHADJUST_UNKNOWN: number;
-}
-
-interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
-}
-
-declare var SVGTextElement: {
-    prototype: SVGTextElement;
-    new(): SVGTextElement;
-}
-
-interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
-    readonly method: SVGAnimatedEnumeration;
-    readonly spacing: SVGAnimatedEnumeration;
-    readonly startOffset: SVGAnimatedLength;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-declare var SVGTextPathElement: {
-    prototype: SVGTextPathElement;
-    new(): SVGTextPathElement;
-    readonly TEXTPATH_METHODTYPE_ALIGN: number;
-    readonly TEXTPATH_METHODTYPE_STRETCH: number;
-    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
-    readonly TEXTPATH_SPACINGTYPE_AUTO: number;
-    readonly TEXTPATH_SPACINGTYPE_EXACT: number;
-    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-interface SVGTextPositioningElement extends SVGTextContentElement {
-    readonly dx: SVGAnimatedLengthList;
-    readonly dy: SVGAnimatedLengthList;
-    readonly rotate: SVGAnimatedNumberList;
-    readonly x: SVGAnimatedLengthList;
-    readonly y: SVGAnimatedLengthList;
-}
-
-declare var SVGTextPositioningElement: {
-    prototype: SVGTextPositioningElement;
-    new(): SVGTextPositioningElement;
-}
-
-interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTitleElement: {
-    prototype: SVGTitleElement;
-    new(): SVGTitleElement;
-}
-
-interface SVGTransform {
-    readonly angle: number;
-    readonly matrix: SVGMatrix;
-    readonly type: number;
-    setMatrix(matrix: SVGMatrix): void;
-    setRotate(angle: number, cx: number, cy: number): void;
-    setScale(sx: number, sy: number): void;
-    setSkewX(angle: number): void;
-    setSkewY(angle: number): void;
-    setTranslate(tx: number, ty: number): void;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-declare var SVGTransform: {
-    prototype: SVGTransform;
-    new(): SVGTransform;
-    readonly SVG_TRANSFORM_MATRIX: number;
-    readonly SVG_TRANSFORM_ROTATE: number;
-    readonly SVG_TRANSFORM_SCALE: number;
-    readonly SVG_TRANSFORM_SKEWX: number;
-    readonly SVG_TRANSFORM_SKEWY: number;
-    readonly SVG_TRANSFORM_TRANSLATE: number;
-    readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-interface SVGTransformList {
-    readonly numberOfItems: number;
-    appendItem(newItem: SVGTransform): SVGTransform;
-    clear(): void;
-    consolidate(): SVGTransform;
-    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
-    getItem(index: number): SVGTransform;
-    initialize(newItem: SVGTransform): SVGTransform;
-    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
-    removeItem(index: number): SVGTransform;
-    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
-}
-
-declare var SVGTransformList: {
-    prototype: SVGTransformList;
-    new(): SVGTransformList;
-}
-
-interface SVGUnitTypes {
-    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
-    readonly SVG_UNIT_TYPE_UNKNOWN: number;
-    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
-}
-declare var SVGUnitTypes: SVGUnitTypes;
-
-interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, 
SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
-    readonly animatedInstanceRoot: SVGElementInstance;
-    readonly height: SVGAnimatedLength;
-    readonly instanceRoot: SVGElementInstance;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGUseElement: {
-    prototype: SVGUseElement;
-    new(): SVGUseElement;
-}
-
-interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, 
SVGFitToViewBox, SVGZoomAndPan {
-    readonly viewTarget: SVGStringList;
-    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: 
(this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGViewElement: {
-    prototype: SVGViewElement;
-    new(): SVGViewElement;
-}
-
-interface SVGZoomAndPan {
-    readonly zoomAndPan: number;
-}
-
-declare var SVGZoomAndPan: {
-    readonly SVG_ZOOMANDPAN_DISABLE: number;
-    readonly SVG_ZOOMANDPAN_MAGNIFY: number;
-    readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-}
-
-interface SVGZoomEvent extends UIEvent {
-    readonly newScale: number;
-    readonly newTranslate: SVGPoint;
-    readonly previousScale: number;
-    readonly previousTranslate: SVGPoint;
-    readonly zoomRectScreen: SVGRect;
-}
-
-declare var SVGZoomEvent: {
-    prototype: SVGZoomEvent;
-    new(): SVGZoomEvent;
-}
-
-interface ScreenEventMap {
-    "MSOrientationChange": Event;
-}
-
-interface Screen extends EventTarget {
-    readonly availHeight: number;
-    readonly availWidth: number;
-    bufferDepth: number;
-    readonly colorDepth: number;
-    readonly deviceXDPI: number;
-    readonly deviceYDPI: number;
-    readonly fontSmoothingEnabled: boolean;
-    readonly height: number;
-    readonly logicalXDPI: number;
-    readonly logicalYDPI: number;
-    readonly msOrientation: string;
-    onmsorientationchange: (this: Screen, ev: Event) => any;
-    readonly pixelDepth: number;
-    readonly systemXDPI: number;
-    readonly systemYDPI: number;
-    readonly width: number;
-    msLockOrientation(orientations: string | string[]): boolean;
-    msUnlockOrientation(): void;
-    addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: 
Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Screen: {
-    prototype: Screen;
-    new(): Screen;
-}
-
-interface ScriptNotifyEvent extends Event {
-    readonly callingUri: string;
-    readonly value: string;
-}
-
-declare var ScriptNotifyEvent: {
-    prototype: ScriptNotifyEvent;
-    new(): ScriptNotifyEvent;
-}
-
-interface ScriptProcessorNodeEventMap {
-    "audioprocess": AudioProcessingEvent;
-}
-
-interface ScriptProcessorNode extends AudioNode {
-    readonly bufferSize: number;
-    onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => 
any;
-    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, 
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ScriptProcessorNode: {
-    prototype: ScriptProcessorNode;
-    new(): ScriptProcessorNode;
-}
-
-interface Selection {
-    readonly anchorNode: Node;
-    readonly anchorOffset: number;
-    readonly focusNode: Node;
-    readonly focusOffset: number;
-    readonly isCollapsed: boolean;
-    readonly rangeCount: number;
-    readonly type: string;
-    addRange(range: Range): void;
-    collapse(parentNode: Node, offset: number): void;
-    collapseToEnd(): void;
-    collapseToStart(): void;
-    containsNode(node: Node, partlyContained: boolean): boolean;
-    deleteFromDocument(): void;
-    empty(): void;
-    extend(newNode: Node, offset: number): void;
-    getRangeAt(index: number): Range;
-    removeAllRanges(): void;
-    removeRange(range: Range): void;
-    selectAllChildren(parentNode: Node): void;
-    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, 
extentOffset: number): void;
-    toString(): string;
-}
-
-declare var Selection: {
-    prototype: Selection;
-    new(): Selection;
-}
-
-interface SourceBuffer extends EventTarget {
-    appendWindowEnd: number;
-    appendWindowStart: number;
-    readonly audioTracks: AudioTrackList;
-    readonly buffered: TimeRanges;
-    mode: string;
-    timestampOffset: number;
-    readonly updating: boolean;
-    readonly videoTracks: VideoTrackList;
-    abort(): void;
-    appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
-    appendStream(stream: MSStream, maxSize?: number): void;
-    remove(start: number, end: number): void;
-}
-
-declare var SourceBuffer: {
-    prototype: SourceBuffer;
-    new(): SourceBuffer;
-}
-
-interface SourceBufferList extends EventTarget {
-    readonly length: number;
-    item(index: number): SourceBuffer;
-    [index: number]: SourceBuffer;
-}
-
-declare var SourceBufferList: {
-    prototype: SourceBufferList;
-    new(): SourceBufferList;
-}
-
-interface StereoPannerNode extends AudioNode {
-    readonly pan: AudioParam;
-}
-
-declare var StereoPannerNode: {
-    prototype: StereoPannerNode;
-    new(): StereoPannerNode;
-}
-
-interface Storage {
-    readonly length: number;
-    clear(): void;
-    getItem(key: string): string | null;
-    key(index: number): string | null;
-    removeItem(key: string): void;
-    setItem(key: string, data: string): void;
-    [key: string]: any;
-    [index: number]: string;
-}
-
-declare var Storage: {
-    prototype: Storage;
-    new(): Storage;
-}
-
-interface StorageEvent extends Event {
-    readonly url: string;
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    storageArea?: Storage;
-}
-
-declare var StorageEvent: {
-    prototype: StorageEvent;
-    new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
-}
-
-interface StyleMedia {
-    readonly type: string;
-    matchMedium(mediaquery: string): boolean;
-}
-
-declare var StyleMedia: {
-    prototype: StyleMedia;
-    new(): StyleMedia;
-}
-
-interface StyleSheet {
-    disabled: boolean;
-    readonly href: string;
-    readonly media: MediaList;
-    readonly ownerNode: Node;
-    readonly parentStyleSheet: StyleSheet;
-    readonly title: string;
-    readonly type: string;
-}
-
-declare var StyleSheet: {
-    prototype: StyleSheet;
-    new(): StyleSheet;
-}
-
-interface StyleSheetList {
-    readonly length: number;
-    item(index?: number): StyleSheet;
-    [index: number]: StyleSheet;
-}
-
-declare var StyleSheetList: {
-    prototype: StyleSheetList;
-    new(): StyleSheetList;
-}
-
-interface StyleSheetPageList {
-    readonly length: number;
-    item(index: number): CSSPageRule;
-    [index: number]: CSSPageRule;
-}
-
-declare var StyleSheetPageList: {
-    prototype: StyleSheetPageList;
-    new(): StyleSheetPageList;
-}
-
-interface SubtleCrypto {
-    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: 
number): PromiseLike<ArrayBuffer>;
-    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | 
ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, 
derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams 
| HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    digest(algorithm: AlgorithmIdentifier, data: BufferSource): 
PromiseLike<ArrayBuffer>;
-    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | 
AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: 
BufferSource): PromiseLike<ArrayBuffer>;
-    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
-    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): 
PromiseLike<ArrayBuffer>;
-    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | 
ArrayBuffer>;
-    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair | CryptoKey>;
-    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | 
DhKeyGenParams, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKeyPair>;
-    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, 
extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
-    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | 
RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, 
algorithm: string | RsaHashedImportParams | EcKeyImportParams | 
HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: 
string[]): PromiseLike<CryptoKey>;
-    importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: 
string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | 
DhImportKeyParams, extractable:boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: 
CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
-    unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: 
CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: 
AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): 
PromiseLike<CryptoKey>;
-    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, 
key: CryptoKey, signature: BufferSource, data: BufferSource): 
PromiseLike<boolean>;
-    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, 
wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
-}
-
-declare var SubtleCrypto: {
-    prototype: SubtleCrypto;
-    new(): SubtleCrypto;
-}
-
-interface Text extends CharacterData {
-    readonly wholeText: string;
-    readonly assignedSlot: HTMLSlotElement | null;
-    splitText(offset: number): Text;
-}
-
-declare var Text: {
-    prototype: Text;
-    new(): Text;
-}
-
-interface TextEvent extends UIEvent {
-    readonly data: string;
-    readonly inputMethod: number;
-    readonly locale: string;
-    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: 
string): void;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-declare var TextEvent: {
-    prototype: TextEvent;
-    new(): TextEvent;
-    readonly DOM_INPUT_METHOD_DROP: number;
-    readonly DOM_INPUT_METHOD_HANDWRITING: number;
-    readonly DOM_INPUT_METHOD_IME: number;
-    readonly DOM_INPUT_METHOD_KEYBOARD: number;
-    readonly DOM_INPUT_METHOD_MULTIMODAL: number;
-    readonly DOM_INPUT_METHOD_OPTION: number;
-    readonly DOM_INPUT_METHOD_PASTE: number;
-    readonly DOM_INPUT_METHOD_SCRIPT: number;
-    readonly DOM_INPUT_METHOD_UNKNOWN: number;
-    readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-interface TextMetrics {
-    readonly width: number;
-}
-
-declare var TextMetrics: {
-    prototype: TextMetrics;
-    new(): TextMetrics;
-}
-
-interface TextTrackEventMap {
-    "cuechange": Event;
-    "error": ErrorEvent;
-    "load": Event;
-}
-
-interface TextTrack extends EventTarget {
-    readonly activeCues: TextTrackCueList;
-    readonly cues: TextTrackCueList;
-    readonly inBandMetadataTrackDispatchType: string;
-    readonly kind: string;
-    readonly label: string;
-    readonly language: string;
-    mode: any;
-    oncuechange: (this: TextTrack, ev: Event) => any;
-    onerror: (this: TextTrack, ev: ErrorEvent) => any;
-    onload: (this: TextTrack, ev: Event) => any;
-    readonly readyState: number;
-    addCue(cue: TextTrackCue): void;
-    removeCue(cue: TextTrackCue): void;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: 
(this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrack: {
-    prototype: TextTrack;
-    new(): TextTrack;
-    readonly DISABLED: number;
-    readonly ERROR: number;
-    readonly HIDDEN: number;
-    readonly LOADED: number;
-    readonly LOADING: number;
-    readonly NONE: number;
-    readonly SHOWING: number;
-}
-
-interface TextTrackCueEventMap {
-    "enter": Event;
-    "exit": Event;
-}
-
-interface TextTrackCue extends EventTarget {
-    endTime: number;
-    id: string;
-    onenter: (this: TextTrackCue, ev: Event) => any;
-    onexit: (this: TextTrackCue, ev: Event) => any;
-    pauseOnExit: boolean;
-    startTime: number;
-    text: string;
-    readonly track: TextTrack;
-    getCueAsHTML(): DocumentFragment;
-    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: 
(this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrackCue: {
-    prototype: TextTrackCue;
-    new(startTime: number, endTime: number, text: string): TextTrackCue;
-}
-
-interface TextTrackCueList {
-    readonly length: number;
-    getCueById(id: string): TextTrackCue;
-    item(index: number): TextTrackCue;
-    [index: number]: TextTrackCue;
-}
-
-declare var TextTrackCueList: {
-    prototype: TextTrackCueList;
-    new(): TextTrackCueList;
-}
-
-interface TextTrackListEventMap {
-    "addtrack": TrackEvent;
-}
-
-interface TextTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
-    item(index: number): TextTrack;
-    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: 
(this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: TextTrack;
-}
-
-declare var TextTrackList: {
-    prototype: TextTrackList;
-    new(): TextTrackList;
-}
-
-interface TimeRanges {
-    readonly length: number;
-    end(index: number): number;
-    start(index: number): number;
-}
-
-declare var TimeRanges: {
-    prototype: TimeRanges;
-    new(): TimeRanges;
-}
-
-interface Touch {
-    readonly clientX: number;
-    readonly clientY: number;
-    readonly identifier: number;
-    readonly pageX: number;
-    readonly pageY: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly target: EventTarget;
-}
-
-declare var Touch: {
-    prototype: Touch;
-    new(): Touch;
-}
-
-interface TouchEvent extends UIEvent {
-    readonly altKey: boolean;
-    readonly changedTouches: TouchList;
-    readonly ctrlKey: boolean;
-    readonly metaKey: boolean;
-    readonly shiftKey: boolean;
-    readonly targetTouches: TouchList;
-    readonly touches: TouchList;
-}
-
-declare var TouchEvent: {
-    prototype: TouchEvent;
-    new(): TouchEvent;
-}
-
-interface TouchList {
-    readonly length: number;
-    item(index: number): Touch | null;
-    [index: number]: Touch;
-}
-
-declare var TouchList: {
-    prototype: TouchList;
-    new(): TouchList;
-}
-
-interface TrackEvent extends Event {
-    readonly track: any;
-}
-
-declare var TrackEvent: {
-    prototype: TrackEvent;
-    new(): TrackEvent;
-}
-
-interface TransitionEvent extends Event {
-    readonly elapsedTime: number;
-    readonly propertyName: string;
-    initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, propertyNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var TransitionEvent: {
-    prototype: TransitionEvent;
-    new(): TransitionEvent;
-}
-
-interface TreeWalker {
-    currentNode: Node;
-    readonly expandEntityReferences: boolean;
-    readonly filter: NodeFilter;
-    readonly root: Node;
-    readonly whatToShow: number;
-    firstChild(): Node;
-    lastChild(): Node;
-    nextNode(): Node;
-    nextSibling(): Node;
-    parentNode(): Node;
-    previousNode(): Node;
-    previousSibling(): Node;
-}
-
-declare var TreeWalker: {
-    prototype: TreeWalker;
-    new(): TreeWalker;
-}
-
-interface UIEvent extends Event {
-    readonly detail: number;
-    readonly view: Window;
-    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number): void;
-}
-
-declare var UIEvent: {
-    prototype: UIEvent;
-    new(type: string, eventInitDict?: UIEventInit): UIEvent;
-}
-
-interface URL {
-    hash: string;
-    host: string;
-    hostname: string;
-    href: string;
-    readonly origin: string;
-    password: string;
-    pathname: string;
-    port: string;
-    protocol: string;
-    search: string;
-    username: string;
-    toString(): string;
-}
-
-declare var URL: {
-    prototype: URL;
-    new(url: string, base?: string): URL;
-    createObjectURL(object: any, options?: ObjectURLOptions): string;
-    revokeObjectURL(url: string): void;
-}
-
-interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer 
{
-    readonly mediaType: string;
-}
-
-declare var UnviewableContentIdentifiedEvent: {
-    prototype: UnviewableContentIdentifiedEvent;
-    new(): UnviewableContentIdentifiedEvent;
-}
-
-interface ValidityState {
-    readonly badInput: boolean;
-    readonly customError: boolean;
-    readonly patternMismatch: boolean;
-    readonly rangeOverflow: boolean;
-    readonly rangeUnderflow: boolean;
-    readonly stepMismatch: boolean;
-    readonly tooLong: boolean;
-    readonly typeMismatch: boolean;
-    readonly valid: boolean;
-    readonly valueMissing: boolean;
-}
-
-declare var ValidityState: {
-    prototype: ValidityState;
-    new(): ValidityState;
-}
-
-interface VideoPlaybackQuality {
-    readonly corruptedVideoFrames: number;
-    readonly creationTime: number;
-    readonly droppedVideoFrames: number;
-    readonly totalFrameDelay: number;
-    readonly totalVideoFrames: number;
-}
-
-declare var VideoPlaybackQuality: {
-    prototype: VideoPlaybackQuality;
-    new(): VideoPlaybackQuality;
-}
-
-interface VideoTrack {
-    readonly id: string;
-    kind: string;
-    readonly label: string;
-    language: string;
-    selected: boolean;
-    readonly sourceBuffer: SourceBuffer;
-}
-
-declare var VideoTrack: {
-    prototype: VideoTrack;
-    new(): VideoTrack;
-}
-
-interface VideoTrackListEventMap {
-    "addtrack": TrackEvent;
-    "change": Event;
-    "removetrack": TrackEvent;
-}
-
-interface VideoTrackList extends EventTarget {
-    readonly length: number;
-    onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    onchange: (this: VideoTrackList, ev: Event) => any;
-    onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any;
-    readonly selectedIndex: number;
-    getTrackById(id: string): VideoTrack | null;
-    item(index: number): VideoTrack;
-    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, 
listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    [index: number]: VideoTrack;
-}
-
-declare var VideoTrackList: {
-    prototype: VideoTrackList;
-    new(): VideoTrackList;
-}
-
-interface WEBGL_compressed_texture_s3tc {
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-declare var WEBGL_compressed_texture_s3tc: {
-    prototype: WEBGL_compressed_texture_s3tc;
-    new(): WEBGL_compressed_texture_s3tc;
-    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
-    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
-    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-interface WEBGL_debug_renderer_info {
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-declare var WEBGL_debug_renderer_info: {
-    prototype: WEBGL_debug_renderer_info;
-    new(): WEBGL_debug_renderer_info;
-    readonly UNMASKED_RENDERER_WEBGL: number;
-    readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-interface WEBGL_depth_texture {
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-declare var WEBGL_depth_texture: {
-    prototype: WEBGL_depth_texture;
-    new(): WEBGL_depth_texture;
-    readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-interface WaveShaperNode extends AudioNode {
-    curve: Float32Array | null;
-    oversample: string;
-}
-
-declare var WaveShaperNode: {
-    prototype: WaveShaperNode;
-    new(): WaveShaperNode;
-}
-
-interface WebGLActiveInfo {
-    readonly name: string;
-    readonly size: number;
-    readonly type: number;
-}
-
-declare var WebGLActiveInfo: {
-    prototype: WebGLActiveInfo;
-    new(): WebGLActiveInfo;
-}
-
-interface WebGLBuffer extends WebGLObject {
-}
-
-declare var WebGLBuffer: {
-    prototype: WebGLBuffer;
-    new(): WebGLBuffer;
-}
-
-interface WebGLContextEvent extends Event {
-    readonly statusMessage: string;
-}
-
-declare var WebGLContextEvent: {
-    prototype: WebGLContextEvent;
-    new(type: string, eventInitDict?: WebGLContextEventInit): 
WebGLContextEvent;
-}
-
-interface WebGLFramebuffer extends WebGLObject {
-}
-
-declare var WebGLFramebuffer: {
-    prototype: WebGLFramebuffer;
-    new(): WebGLFramebuffer;
-}
-
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
-    prototype: WebGLObject;
-    new(): WebGLObject;
-}
-
-interface WebGLProgram extends WebGLObject {
-}
-
-declare var WebGLProgram: {
-    prototype: WebGLProgram;
-    new(): WebGLProgram;
-}
-
-interface WebGLRenderbuffer extends WebGLObject {
-}
-
-declare var WebGLRenderbuffer: {
-    prototype: WebGLRenderbuffer;
-    new(): WebGLRenderbuffer;
-}
-
-interface WebGLRenderingContext {
-    readonly canvas: HTMLCanvasElement;
-    readonly drawingBufferHeight: number;
-    readonly drawingBufferWidth: number;
-    activeTexture(texture: number): void;
-    attachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    bindAttribLocation(program: WebGLProgram | null, index: number, name: 
string): void;
-    bindBuffer(target: number, buffer: WebGLBuffer | null): void;
-    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): 
void;
-    bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): 
void;
-    bindTexture(target: number, texture: WebGLTexture | null): void;
-    blendColor(red: number, green: number, blue: number, alpha: number): void;
-    blendEquation(mode: number): void;
-    blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
-    blendFunc(sfactor: number, dfactor: number): void;
-    blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, 
dstAlpha: number): void;
-    bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, 
usage: number): void;
-    bufferSubData(target: number, offset: number, data: ArrayBufferView | 
ArrayBuffer): void;
-    checkFramebufferStatus(target: number): number;
-    clear(mask: number): void;
-    clearColor(red: number, green: number, blue: number, alpha: number): void;
-    clearDepth(depth: number): void;
-    clearStencil(s: number): void;
-    colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): 
void;
-    compileShader(shader: WebGLShader | null): void;
-    compressedTexImage2D(target: number, level: number, internalformat: 
number, width: number, height: number, border: number, data: ArrayBufferView): 
void;
-    compressedTexSubImage2D(target: number, level: number, xoffset: number, 
yoffset: number, width: number, height: number, format: number, data: 
ArrayBufferView): void;
-    copyTexImage2D(target: number, level: number, internalformat: number, x: 
number, y: number, width: number, height: number, border: number): void;
-    copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, x: number, y: number, width: number, height: number): void;
-    createBuffer(): WebGLBuffer | null;
-    createFramebuffer(): WebGLFramebuffer | null;
-    createProgram(): WebGLProgram | null;
-    createRenderbuffer(): WebGLRenderbuffer | null;
-    createShader(type: number): WebGLShader | null;
-    createTexture(): WebGLTexture | null;
-    cullFace(mode: number): void;
-    deleteBuffer(buffer: WebGLBuffer | null): void;
-    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
-    deleteProgram(program: WebGLProgram | null): void;
-    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
-    deleteShader(shader: WebGLShader | null): void;
-    deleteTexture(texture: WebGLTexture | null): void;
-    depthFunc(func: number): void;
-    depthMask(flag: boolean): void;
-    depthRange(zNear: number, zFar: number): void;
-    detachShader(program: WebGLProgram | null, shader: WebGLShader | null): 
void;
-    disable(cap: number): void;
-    disableVertexAttribArray(index: number): void;
-    drawArrays(mode: number, first: number, count: number): void;
-    drawElements(mode: number, count: number, type: number, offset: number): 
void;
-    enable(cap: number): void;
-    enableVertexAttribArray(index: number): void;
-    finish(): void;
-    flush(): void;
-    framebufferRenderbuffer(target: number, attachment: number, 
renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
-    framebufferTexture2D(target: number, attachment: number, textarget: 
number, texture: WebGLTexture | null, level: number): void;
-    frontFace(mode: number): void;
-    generateMipmap(target: number): void;
-    getActiveAttrib(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getActiveUniform(program: WebGLProgram | null, index: number): 
WebGLActiveInfo | null;
-    getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
-    getAttribLocation(program: WebGLProgram | null, name: string): number;
-    getBufferParameter(target: number, pname: number): any;
-    getContextAttributes(): WebGLContextAttributes;
-    getError(): number;
-    getExtension(name: string): any;
-    getFramebufferAttachmentParameter(target: number, attachment: number, 
pname: number): any;
-    getParameter(pname: number): any;
-    getProgramInfoLog(program: WebGLProgram | null): string | null;
-    getProgramParameter(program: WebGLProgram | null, pname: number): any;
-    getRenderbufferParameter(target: number, pname: number): any;
-    getShaderInfoLog(shader: WebGLShader | null): string | null;
-    getShaderParameter(shader: WebGLShader | null, pname: number): any;
-    getShaderPrecisionFormat(shadertype: number, precisiontype: number): 
WebGLShaderPrecisionFormat | null;
-    getShaderSource(shader: WebGLShader | null): string | null;
-    getSupportedExtensions(): string[] | null;
-    getTexParameter(target: number, pname: number): any;
-    getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | 
null): any;
-    getUniformLocation(program: WebGLProgram | null, name: string): 
WebGLUniformLocation | null;
-    getVertexAttrib(index: number, pname: number): any;
-    getVertexAttribOffset(index: number, pname: number): number;
-    hint(target: number, mode: number): void;
-    isBuffer(buffer: WebGLBuffer | null): boolean;
-    isContextLost(): boolean;
-    isEnabled(cap: number): boolean;
-    isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
-    isProgram(program: WebGLProgram | null): boolean;
-    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
-    isShader(shader: WebGLShader | null): boolean;
-    isTexture(texture: WebGLTexture | null): boolean;
-    lineWidth(width: number): void;
-    linkProgram(program: WebGLProgram | null): void;
-    pixelStorei(pname: number, param: number): void;
-    polygonOffset(factor: number, units: number): void;
-    readPixels(x: number, y: number, width: number, height: number, format: 
number, type: number, pixels: ArrayBufferView | null): void;
-    renderbufferStorage(target: number, internalformat: number, width: number, 
height: number): void;
-    sampleCoverage(value: number, invert: boolean): void;
-    scissor(x: number, y: number, width: number, height: number): void;
-    shaderSource(shader: WebGLShader | null, source: string): void;
-    stencilFunc(func: number, ref: number, mask: number): void;
-    stencilFuncSeparate(face: number, func: number, ref: number, mask: 
number): void;
-    stencilMask(mask: number): void;
-    stencilMaskSeparate(face: number, mask: number): void;
-    stencilOp(fail: number, zfail: number, zpass: number): void;
-    stencilOpSeparate(face: number, fail: number, zfail: number, zpass: 
number): void;
-    texImage2D(target: number, level: number, internalformat: number, width: 
number, height: number, border: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texImage2D(target: number, level: number, internalformat: number, format: 
number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement 
| HTMLCanvasElement): void;
-    texParameterf(target: number, pname: number, param: number): void;
-    texParameteri(target: number, pname: number, param: number): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, width: number, height: number, format: number, type: number, pixels?: 
ArrayBufferView): void;
-    texSubImage2D(target: number, level: number, xoffset: number, yoffset: 
number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | 
HTMLImageElement | HTMLCanvasElement): void;
-    uniform1f(location: WebGLUniformLocation | null, x: number): void;
-    uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform1i(location: WebGLUniformLocation | null, x: number): void;
-    uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform2f(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform2i(location: WebGLUniformLocation | null, x: number, y: number): 
void;
-    uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number): void;
-    uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): 
void;
-    uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: 
number, w: number): void;
-    uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
-    uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, 
value: Float32Array | number[]): void;
-    useProgram(program: WebGLProgram | null): void;
-    validateProgram(program: WebGLProgram | null): void;
-    vertexAttrib1f(indx: number, x: number): void;
-    vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib2f(indx: number, x: number, y: number): void;
-    vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
-    vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): 
void;
-    vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
-    vertexAttribPointer(indx: number, size: number, type: number, normalized: 
boolean, stride: number, offset: number): void;
-    viewport(x: number, y: number, width: number, height: number): void;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-declare var WebGLRenderingContext: {
-    prototype: WebGLRenderingContext;
-    new(): WebGLRenderingContext;
-    readonly ACTIVE_ATTRIBUTES: number;
-    readonly ACTIVE_TEXTURE: number;
-    readonly ACTIVE_UNIFORMS: number;
-    readonly ALIASED_LINE_WIDTH_RANGE: number;
-    readonly ALIASED_POINT_SIZE_RANGE: number;
-    readonly ALPHA: number;
-    readonly ALPHA_BITS: number;
-    readonly ALWAYS: number;
-    readonly ARRAY_BUFFER: number;
-    readonly ARRAY_BUFFER_BINDING: number;
-    readonly ATTACHED_SHADERS: number;
-    readonly BACK: number;
-    readonly BLEND: number;
-    readonly BLEND_COLOR: number;
-    readonly BLEND_DST_ALPHA: number;
-    readonly BLEND_DST_RGB: number;
-    readonly BLEND_EQUATION: number;
-    readonly BLEND_EQUATION_ALPHA: number;
-    readonly BLEND_EQUATION_RGB: number;
-    readonly BLEND_SRC_ALPHA: number;
-    readonly BLEND_SRC_RGB: number;
-    readonly BLUE_BITS: number;
-    readonly BOOL: number;
-    readonly BOOL_VEC2: number;
-    readonly BOOL_VEC3: number;
-    readonly BOOL_VEC4: number;
-    readonly BROWSER_DEFAULT_WEBGL: number;
-    readonly BUFFER_SIZE: number;
-    readonly BUFFER_USAGE: number;
-    readonly BYTE: number;
-    readonly CCW: number;
-    readonly CLAMP_TO_EDGE: number;
-    readonly COLOR_ATTACHMENT0: number;
-    readonly COLOR_BUFFER_BIT: number;
-    readonly COLOR_CLEAR_VALUE: number;
-    readonly COLOR_WRITEMASK: number;
-    readonly COMPILE_STATUS: number;
-    readonly COMPRESSED_TEXTURE_FORMATS: number;
-    readonly CONSTANT_ALPHA: number;
-    readonly CONSTANT_COLOR: number;
-    readonly CONTEXT_LOST_WEBGL: number;
-    readonly CULL_FACE: number;
-    readonly CULL_FACE_MODE: number;
-    readonly CURRENT_PROGRAM: number;
-    readonly CURRENT_VERTEX_ATTRIB: number;
-    readonly CW: number;
-    readonly DECR: number;
-    readonly DECR_WRAP: number;
-    readonly DELETE_STATUS: number;
-    readonly DEPTH_ATTACHMENT: number;
-    readonly DEPTH_BITS: number;
-    readonly DEPTH_BUFFER_BIT: number;
-    readonly DEPTH_CLEAR_VALUE: number;
-    readonly DEPTH_COMPONENT: number;
-    readonly DEPTH_COMPONENT16: number;
-    readonly DEPTH_FUNC: number;
-    readonly DEPTH_RANGE: number;
-    readonly DEPTH_STENCIL: number;
-    readonly DEPTH_STENCIL_ATTACHMENT: number;
-    readonly DEPTH_TEST: number;
-    readonly DEPTH_WRITEMASK: number;
-    readonly DITHER: number;
-    readonly DONT_CARE: number;
-    readonly DST_ALPHA: number;
-    readonly DST_COLOR: number;
-    readonly DYNAMIC_DRAW: number;
-    readonly ELEMENT_ARRAY_BUFFER: number;
-    readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
-    readonly EQUAL: number;
-    readonly FASTEST: number;
-    readonly FLOAT: number;
-    readonly FLOAT_MAT2: number;
-    readonly FLOAT_MAT3: number;
-    readonly FLOAT_MAT4: number;
-    readonly FLOAT_VEC2: number;
-    readonly FLOAT_VEC3: number;
-    readonly FLOAT_VEC4: number;
-    readonly FRAGMENT_SHADER: number;
-    readonly FRAMEBUFFER: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
-    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
-    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
-    readonly FRAMEBUFFER_BINDING: number;
-    readonly FRAMEBUFFER_COMPLETE: number;
-    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
-    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
-    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
-    readonly FRAMEBUFFER_UNSUPPORTED: number;
-    readonly FRONT: number;
-    readonly FRONT_AND_BACK: number;
-    readonly FRONT_FACE: number;
-    readonly FUNC_ADD: number;
-    readonly FUNC_REVERSE_SUBTRACT: number;
-    readonly FUNC_SUBTRACT: number;
-    readonly GENERATE_MIPMAP_HINT: number;
-    readonly GEQUAL: number;
-    readonly GREATER: number;
-    readonly GREEN_BITS: number;
-    readonly HIGH_FLOAT: number;
-    readonly HIGH_INT: number;
-    readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
-    readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
-    readonly INCR: number;
-    readonly INCR_WRAP: number;
-    readonly INT: number;
-    readonly INT_VEC2: number;
-    readonly INT_VEC3: number;
-    readonly INT_VEC4: number;
-    readonly INVALID_ENUM: number;
-    readonly INVALID_FRAMEBUFFER_OPERATION: number;
-    readonly INVALID_OPERATION: number;
-    readonly INVALID_VALUE: number;
-    readonly INVERT: number;
-    readonly KEEP: number;
-    readonly LEQUAL: number;
-    readonly LESS: number;
-    readonly LINEAR: number;
-    readonly LINEAR_MIPMAP_LINEAR: number;
-    readonly LINEAR_MIPMAP_NEAREST: number;
-    readonly LINES: number;
-    readonly LINE_LOOP: number;
-    readonly LINE_STRIP: number;
-    readonly LINE_WIDTH: number;
-    readonly LINK_STATUS: number;
-    readonly LOW_FLOAT: number;
-    readonly LOW_INT: number;
-    readonly LUMINANCE: number;
-    readonly LUMINANCE_ALPHA: number;
-    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
-    readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
-    readonly MAX_RENDERBUFFER_SIZE: number;
-    readonly MAX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_TEXTURE_SIZE: number;
-    readonly MAX_VARYING_VECTORS: number;
-    readonly MAX_VERTEX_ATTRIBS: number;
-    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
-    readonly MAX_VERTEX_UNIFORM_VECTORS: number;
-    readonly MAX_VIEWPORT_DIMS: number;
-    readonly MEDIUM_FLOAT: number;
-    readonly MEDIUM_INT: number;
-    readonly MIRRORED_REPEAT: number;
-    readonly NEAREST: number;
-    readonly NEAREST_MIPMAP_LINEAR: number;
-    readonly NEAREST_MIPMAP_NEAREST: number;
-    readonly NEVER: number;
-    readonly NICEST: number;
-    readonly NONE: number;
-    readonly NOTEQUAL: number;
-    readonly NO_ERROR: number;
-    readonly ONE: number;
-    readonly ONE_MINUS_CONSTANT_ALPHA: number;
-    readonly ONE_MINUS_CONSTANT_COLOR: number;
-    readonly ONE_MINUS_DST_ALPHA: number;
-    readonly ONE_MINUS_DST_COLOR: number;
-    readonly ONE_MINUS_SRC_ALPHA: number;
-    readonly ONE_MINUS_SRC_COLOR: number;
-    readonly OUT_OF_MEMORY: number;
-    readonly PACK_ALIGNMENT: number;
-    readonly POINTS: number;
-    readonly POLYGON_OFFSET_FACTOR: number;
-    readonly POLYGON_OFFSET_FILL: number;
-    readonly POLYGON_OFFSET_UNITS: number;
-    readonly RED_BITS: number;
-    readonly RENDERBUFFER: number;
-    readonly RENDERBUFFER_ALPHA_SIZE: number;
-    readonly RENDERBUFFER_BINDING: number;
-    readonly RENDERBUFFER_BLUE_SIZE: number;
-    readonly RENDERBUFFER_DEPTH_SIZE: number;
-    readonly RENDERBUFFER_GREEN_SIZE: number;
-    readonly RENDERBUFFER_HEIGHT: number;
-    readonly RENDERBUFFER_INTERNAL_FORMAT: number;
-    readonly RENDERBUFFER_RED_SIZE: number;
-    readonly RENDERBUFFER_STENCIL_SIZE: number;
-    readonly RENDERBUFFER_WIDTH: number;
-    readonly RENDERER: number;
-    readonly REPEAT: number;
-    readonly REPLACE: number;
-    readonly RGB: number;
-    readonly RGB565: number;
-    readonly RGB5_A1: number;
-    readonly RGBA: number;
-    readonly RGBA4: number;
-    readonly SAMPLER_2D: number;
-    readonly SAMPLER_CUBE: number;
-    readonly SAMPLES: number;
-    readonly SAMPLE_ALPHA_TO_COVERAGE: number;
-    readonly SAMPLE_BUFFERS: number;
-    readonly SAMPLE_COVERAGE: number;
-    readonly SAMPLE_COVERAGE_INVERT: number;
-    readonly SAMPLE_COVERAGE_VALUE: number;
-    readonly SCISSOR_BOX: number;
-    readonly SCISSOR_TEST: number;
-    readonly SHADER_TYPE: number;
-    readonly SHADING_LANGUAGE_VERSION: number;
-    readonly SHORT: number;
-    readonly SRC_ALPHA: number;
-    readonly SRC_ALPHA_SATURATE: number;
-    readonly SRC_COLOR: number;
-    readonly STATIC_DRAW: number;
-    readonly STENCIL_ATTACHMENT: number;
-    readonly STENCIL_BACK_FAIL: number;
-    readonly STENCIL_BACK_FUNC: number;
-    readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
-    readonly STENCIL_BACK_REF: number;
-    readonly STENCIL_BACK_VALUE_MASK: number;
-    readonly STENCIL_BACK_WRITEMASK: number;
-    readonly STENCIL_BITS: number;
-    readonly STENCIL_BUFFER_BIT: number;
-    readonly STENCIL_CLEAR_VALUE: number;
-    readonly STENCIL_FAIL: number;
-    readonly STENCIL_FUNC: number;
-    readonly STENCIL_INDEX: number;
-    readonly STENCIL_INDEX8: number;
-    readonly STENCIL_PASS_DEPTH_FAIL: number;
-    readonly STENCIL_PASS_DEPTH_PASS: number;
-    readonly STENCIL_REF: number;
-    readonly STENCIL_TEST: number;
-    readonly STENCIL_VALUE_MASK: number;
-    readonly STENCIL_WRITEMASK: number;
-    readonly STREAM_DRAW: number;
-    readonly SUBPIXEL_BITS: number;
-    readonly TEXTURE: number;
-    readonly TEXTURE0: number;
-    readonly TEXTURE1: number;
-    readonly TEXTURE10: number;
-    readonly TEXTURE11: number;
-    readonly TEXTURE12: number;
-    readonly TEXTURE13: number;
-    readonly TEXTURE14: number;
-    readonly TEXTURE15: number;
-    readonly TEXTURE16: number;
-    readonly TEXTURE17: number;
-    readonly TEXTURE18: number;
-    readonly TEXTURE19: number;
-    readonly TEXTURE2: number;
-    readonly TEXTURE20: number;
-    readonly TEXTURE21: number;
-    readonly TEXTURE22: number;
-    readonly TEXTURE23: number;
-    readonly TEXTURE24: number;
-    readonly TEXTURE25: number;
-    readonly TEXTURE26: number;
-    readonly TEXTURE27: number;
-    readonly TEXTURE28: number;
-    readonly TEXTURE29: number;
-    readonly TEXTURE3: number;
-    readonly TEXTURE30: number;
-    readonly TEXTURE31: number;
-    readonly TEXTURE4: number;
-    readonly TEXTURE5: number;
-    readonly TEXTURE6: number;
-    readonly TEXTURE7: number;
-    readonly TEXTURE8: number;
-    readonly TEXTURE9: number;
-    readonly TEXTURE_2D: number;
-    readonly TEXTURE_BINDING_2D: number;
-    readonly TEXTURE_BINDING_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
-    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
-    readonly TEXTURE_MAG_FILTER: number;
-    readonly TEXTURE_MIN_FILTER: number;
-    readonly TEXTURE_WRAP_S: number;
-    readonly TEXTURE_WRAP_T: number;
-    readonly TRIANGLES: number;
-    readonly TRIANGLE_FAN: number;
-    readonly TRIANGLE_STRIP: number;
-    readonly UNPACK_ALIGNMENT: number;
-    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
-    readonly UNPACK_FLIP_Y_WEBGL: number;
-    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
-    readonly UNSIGNED_BYTE: number;
-    readonly UNSIGNED_INT: number;
-    readonly UNSIGNED_SHORT: number;
-    readonly UNSIGNED_SHORT_4_4_4_4: number;
-    readonly UNSIGNED_SHORT_5_5_5_1: number;
-    readonly UNSIGNED_SHORT_5_6_5: number;
-    readonly VALIDATE_STATUS: number;
-    readonly VENDOR: number;
-    readonly VERSION: number;
-    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
-    readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
-    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
-    readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
-    readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
-    readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
-    readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
-    readonly VERTEX_SHADER: number;
-    readonly VIEWPORT: number;
-    readonly ZERO: number;
-}
-
-interface WebGLShader extends WebGLObject {
-}
-
-declare var WebGLShader: {
-    prototype: WebGLShader;
-    new(): WebGLShader;
-}
-
-interface WebGLShaderPrecisionFormat {
-    readonly precision: number;
-    readonly rangeMax: number;
-    readonly rangeMin: number;
-}
-
-declare var WebGLShaderPrecisionFormat: {
-    prototype: WebGLShaderPrecisionFormat;
-    new(): WebGLShaderPrecisionFormat;
-}
-
-interface WebGLTexture extends WebGLObject {
-}
-
-declare var WebGLTexture: {
-    prototype: WebGLTexture;
-    new(): WebGLTexture;
-}
-
-interface WebGLUniformLocation {
-}
-
-declare var WebGLUniformLocation: {
-    prototype: WebGLUniformLocation;
-    new(): WebGLUniformLocation;
-}
-
-interface WebKitCSSMatrix {
-    a: number;
-    b: number;
-    c: number;
-    d: number;
-    e: number;
-    f: number;
-    m11: number;
-    m12: number;
-    m13: number;
-    m14: number;
-    m21: number;
-    m22: number;
-    m23: number;
-    m24: number;
-    m31: number;
-    m32: number;
-    m33: number;
-    m34: number;
-    m41: number;
-    m42: number;
-    m43: number;
-    m44: number;
-    inverse(): WebKitCSSMatrix;
-    multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
-    rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
-    rotateAxisAngle(x: number, y: number, z: number, angle: number): 
WebKitCSSMatrix;
-    scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
-    setMatrixValue(value: string): void;
-    skewX(angle: number): WebKitCSSMatrix;
-    skewY(angle: number): WebKitCSSMatrix;
-    toString(): string;
-    translate(x: number, y: number, z?: number): WebKitCSSMatrix;
-}
-
-declare var WebKitCSSMatrix: {
-    prototype: WebKitCSSMatrix;
-    new(text?: string): WebKitCSSMatrix;
-}
-
-interface WebKitPoint {
-    x: number;
-    y: number;
-}
-
-declare var WebKitPoint: {
-    prototype: WebKitPoint;
-    new(x?: number, y?: number): WebKitPoint;
-}
-
-interface WebSocketEventMap {
-    "close": CloseEvent;
-    "error": ErrorEvent;
-    "message": MessageEvent;
-    "open": Event;
-}
-
-interface WebSocket extends EventTarget {
-    binaryType: string;
-    readonly bufferedAmount: number;
-    readonly extensions: string;
-    onclose: (this: WebSocket, ev: CloseEvent) => any;
-    onerror: (this: WebSocket, ev: ErrorEvent) => any;
-    onmessage: (this: WebSocket, ev: MessageEvent) => any;
-    onopen: (this: WebSocket, ev: Event) => any;
-    readonly protocol: string;
-    readonly readyState: number;
-    readonly url: string;
-    close(code?: number, reason?: string): void;
-    send(data: any): void;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WebSocket: {
-    prototype: WebSocket;
-    new(url: string, protocols?: string | string[]): WebSocket;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-}
-
-interface WheelEvent extends MouseEvent {
-    readonly deltaMode: number;
-    readonly deltaX: number;
-    readonly deltaY: number;
-    readonly deltaZ: number;
-    readonly wheelDelta: number;
-    readonly wheelDeltaX: number;
-    readonly wheelDeltaY: number;
-    getCurrentPoint(element: Element): void;
-    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: 
number, clientXArg: number, clientYArg: number, buttonArg: number, 
relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, 
deltaYArg: number, deltaZArg: number, deltaMode: number): void;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-declare var WheelEvent: {
-    prototype: WheelEvent;
-    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
-    readonly DOM_DELTA_LINE: number;
-    readonly DOM_DELTA_PAGE: number;
-    readonly DOM_DELTA_PIXEL: number;
-}
-
-interface WindowEventMap extends GlobalEventHandlersEventMap {
-    "abort": UIEvent;
-    "afterprint": Event;
-    "beforeprint": Event;
-    "beforeunload": BeforeUnloadEvent;
-    "blur": FocusEvent;
-    "canplay": Event;
-    "canplaythrough": Event;
-    "change": Event;
-    "click": MouseEvent;
-    "compassneedscalibration": Event;
-    "contextmenu": PointerEvent;
-    "dblclick": MouseEvent;
-    "devicelight": DeviceLightEvent;
-    "devicemotion": DeviceMotionEvent;
-    "deviceorientation": DeviceOrientationEvent;
-    "drag": DragEvent;
-    "dragend": DragEvent;
-    "dragenter": DragEvent;
-    "dragleave": DragEvent;
-    "dragover": DragEvent;
-    "dragstart": DragEvent;
-    "drop": DragEvent;
-    "durationchange": Event;
-    "emptied": Event;
-    "ended": MediaStreamErrorEvent;
-    "focus": FocusEvent;
-    "hashchange": HashChangeEvent;
-    "input": Event;
-    "invalid": Event;
-    "keydown": KeyboardEvent;
-    "keypress": KeyboardEvent;
-    "keyup": KeyboardEvent;
-    "load": Event;
-    "loadeddata": Event;
-    "loadedmetadata": Event;
-    "loadstart": Event;
-    "message": MessageEvent;
-    "mousedown": MouseEvent;
-    "mouseenter": MouseEvent;
-    "mouseleave": MouseEvent;
-    "mousemove": MouseEvent;
-    "mouseout": MouseEvent;
-    "mouseover": MouseEvent;
-    "mouseup": MouseEvent;
-    "mousewheel": WheelEvent;
-    "MSGestureChange": MSGestureEvent;
-    "MSGestureDoubleTap": MSGestureEvent;
-    "MSGestureEnd": MSGestureEvent;
-    "MSGestureHold": MSGestureEvent;
-    "MSGestureStart": MSGestureEvent;
-    "MSGestureTap": MSGestureEvent;
-    "MSInertiaStart": MSGestureEvent;
-    "MSPointerCancel": MSPointerEvent;
-    "MSPointerDown": MSPointerEvent;
-    "MSPointerEnter": MSPointerEvent;
-    "MSPointerLeave": MSPointerEvent;
-    "MSPointerMove": MSPointerEvent;
-    "MSPointerOut": MSPointerEvent;
-    "MSPointerOver": MSPointerEvent;
-    "MSPointerUp": MSPointerEvent;
-    "offline": Event;
-    "online": Event;
-    "orientationchange": Event;
-    "pagehide": PageTransitionEvent;
-    "pageshow": PageTransitionEvent;
-    "pause": Event;
-    "play": Event;
-    "playing": Event;
-    "popstate": PopStateEvent;
-    "progress": ProgressEvent;
-    "ratechange": Event;
-    "readystatechange": ProgressEvent;
-    "reset": Event;
-    "resize": UIEvent;
-    "scroll": UIEvent;
-    "seeked": Event;
-    "seeking": Event;
-    "select": UIEvent;
-    "stalled": Event;
-    "storage": StorageEvent;
-    "submit": Event;
-    "suspend": Event;
-    "timeupdate": Event;
-    "unload": Event;
-    "volumechange": Event;
-    "waiting": Event;
-}
-
-interface Window extends EventTarget, WindowTimers, WindowSessionStorage, 
WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, 
WindowBase64 {
-    readonly applicationCache: ApplicationCache;
-    readonly clientInformation: Navigator;
-    readonly closed: boolean;
-    readonly crypto: Crypto;
-    defaultStatus: string;
-    readonly devicePixelRatio: number;
-    readonly doNotTrack: string;
-    readonly document: Document;
-    event: Event | undefined;
-    readonly external: External;
-    readonly frameElement: Element;
-    readonly frames: Window;
-    readonly history: History;
-    readonly innerHeight: number;
-    readonly innerWidth: number;
-    readonly length: number;
-    readonly location: Location;
-    readonly locationbar: BarProp;
-    readonly menubar: BarProp;
-    readonly msCredentials: MSCredentials;
-    name: string;
-    readonly navigator: Navigator;
-    offscreenBuffering: string | boolean;
-    onabort: (this: Window, ev: UIEvent) => any;
-    onafterprint: (this: Window, ev: Event) => any;
-    onbeforeprint: (this: Window, ev: Event) => any;
-    onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-    onblur: (this: Window, ev: FocusEvent) => any;
-    oncanplay: (this: Window, ev: Event) => any;
-    oncanplaythrough: (this: Window, ev: Event) => any;
-    onchange: (this: Window, ev: Event) => any;
-    onclick: (this: Window, ev: MouseEvent) => any;
-    oncompassneedscalibration: (this: Window, ev: Event) => any;
-    oncontextmenu: (this: Window, ev: PointerEvent) => any;
-    ondblclick: (this: Window, ev: MouseEvent) => any;
-    ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-    ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
-    ondrag: (this: Window, ev: DragEvent) => any;
-    ondragend: (this: Window, ev: DragEvent) => any;
-    ondragenter: (this: Window, ev: DragEvent) => any;
-    ondragleave: (this: Window, ev: DragEvent) => any;
-    ondragover: (this: Window, ev: DragEvent) => any;
-    ondragstart: (this: Window, ev: DragEvent) => any;
-    ondrop: (this: Window, ev: DragEvent) => any;
-    ondurationchange: (this: Window, ev: Event) => any;
-    onemptied: (this: Window, ev: Event) => any;
-    onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-    onerror: ErrorEventHandler;
-    onfocus: (this: Window, ev: FocusEvent) => any;
-    onhashchange: (this: Window, ev: HashChangeEvent) => any;
-    oninput: (this: Window, ev: Event) => any;
-    oninvalid: (this: Window, ev: Event) => any;
-    onkeydown: (this: Window, ev: KeyboardEvent) => any;
-    onkeypress: (this: Window, ev: KeyboardEvent) => any;
-    onkeyup: (this: Window, ev: KeyboardEvent) => any;
-    onload: (this: Window, ev: Event) => any;
-    onloadeddata: (this: Window, ev: Event) => any;
-    onloadedmetadata: (this: Window, ev: Event) => any;
-    onloadstart: (this: Window, ev: Event) => any;
-    onmessage: (this: Window, ev: MessageEvent) => any;
-    onmousedown: (this: Window, ev: MouseEvent) => any;
-    onmouseenter: (this: Window, ev: MouseEvent) => any;
-    onmouseleave: (this: Window, ev: MouseEvent) => any;
-    onmousemove: (this: Window, ev: MouseEvent) => any;
-    onmouseout: (this: Window, ev: MouseEvent) => any;
-    onmouseover: (this: Window, ev: MouseEvent) => any;
-    onmouseup: (this: Window, ev: MouseEvent) => any;
-    onmousewheel: (this: Window, ev: WheelEvent) => any;
-    onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-    onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-    onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-    onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-    onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-    onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-    onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-    onoffline: (this: Window, ev: Event) => any;
-    ononline: (this: Window, ev: Event) => any;
-    onorientationchange: (this: Window, ev: Event) => any;
-    onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-    onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-    onpause: (this: Window, ev: Event) => any;
-    onplay: (this: Window, ev: Event) => any;
-    onplaying: (this: Window, ev: Event) => any;
-    onpopstate: (this: Window, ev: PopStateEvent) => any;
-    onprogress: (this: Window, ev: ProgressEvent) => any;
-    onratechange: (this: Window, ev: Event) => any;
-    onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-    onreset: (this: Window, ev: Event) => any;
-    onresize: (this: Window, ev: UIEvent) => any;
-    onscroll: (this: Window, ev: UIEvent) => any;
-    onseeked: (this: Window, ev: Event) => any;
-    onseeking: (this: Window, ev: Event) => any;
-    onselect: (this: Window, ev: UIEvent) => any;
-    onstalled: (this: Window, ev: Event) => any;
-    onstorage: (this: Window, ev: StorageEvent) => any;
-    onsubmit: (this: Window, ev: Event) => any;
-    onsuspend: (this: Window, ev: Event) => any;
-    ontimeupdate: (this: Window, ev: Event) => any;
-    ontouchcancel: (ev: TouchEvent) => any;
-    ontouchend: (ev: TouchEvent) => any;
-    ontouchmove: (ev: TouchEvent) => any;
-    ontouchstart: (ev: TouchEvent) => any;
-    onunload: (this: Window, ev: Event) => any;
-    onvolumechange: (this: Window, ev: Event) => any;
-    onwaiting: (this: Window, ev: Event) => any;
-    opener: any;
-    orientation: string | number;
-    readonly outerHeight: number;
-    readonly outerWidth: number;
-    readonly pageXOffset: number;
-    readonly pageYOffset: number;
-    readonly parent: Window;
-    readonly performance: Performance;
-    readonly personalbar: BarProp;
-    readonly screen: Screen;
-    readonly screenLeft: number;
-    readonly screenTop: number;
-    readonly screenX: number;
-    readonly screenY: number;
-    readonly scrollX: number;
-    readonly scrollY: number;
-    readonly scrollbars: BarProp;
-    readonly self: Window;
-    status: string;
-    readonly statusbar: BarProp;
-    readonly styleMedia: StyleMedia;
-    readonly toolbar: BarProp;
-    readonly top: Window;
-    readonly window: Window;
-    URL: typeof URL;
-    Blob: typeof Blob;
-    alert(message?: any): void;
-    blur(): void;
-    cancelAnimationFrame(handle: number): void;
-    captureEvents(): void;
-    close(): void;
-    confirm(message?: string): boolean;
-    focus(): void;
-    getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-    getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
-    getSelection(): Selection;
-    matchMedia(mediaQuery: string): MediaQueryList;
-    moveBy(x?: number, y?: number): void;
-    moveTo(x?: number, y?: number): void;
-    msWriteProfilerMark(profilerMarkName: string): void;
-    open(url?: string, target?: string, features?: string, replace?: boolean): 
Window;
-    postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
-    print(): void;
-    prompt(message?: string, _default?: string): string | null;
-    releaseEvents(): void;
-    requestAnimationFrame(callback: FrameRequestCallback): number;
-    resizeBy(x?: number, y?: number): void;
-    resizeTo(x?: number, y?: number): void;
-    scroll(x?: number, y?: number): void;
-    scrollBy(x?: number, y?: number): void;
-    scrollTo(x?: number, y?: number): void;
-    webkitCancelAnimationFrame(handle: number): void;
-    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
-    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
-    scroll(options?: ScrollToOptions): void;
-    scrollTo(options?: ScrollToOptions): void;
-    scrollBy(options?: ScrollToOptions): void;
-    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: 
Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Window: {
-    prototype: Window;
-    new(): Window;
-}
-
-interface WorkerEventMap extends AbstractWorkerEventMap {
-    "message": MessageEvent;
-}
-
-interface Worker extends EventTarget, AbstractWorker {
-    onmessage: (this: Worker, ev: MessageEvent) => any;
-    postMessage(message: any, ports?: any): void;
-    terminate(): void;
-    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Worker: {
-    prototype: Worker;
-    new(stringUrl: string): Worker;
-}
-
-interface XMLDocument extends Document {
-    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: 
(this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLDocument: {
-    prototype: XMLDocument;
-    new(): XMLDocument;
-}
-
-interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
-    "readystatechange": Event;
-}
-
-interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
-    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
-    readonly readyState: number;
-    readonly response: any;
-    readonly responseText: string;
-    responseType: string;
-    readonly responseXML: any;
-    readonly status: number;
-    readonly statusText: string;
-    timeout: number;
-    readonly upload: XMLHttpRequestUpload;
-    withCredentials: boolean;
-    msCaching?: string;
-    readonly responseURL: string;
-    abort(): void;
-    getAllResponseHeaders(): string;
-    getResponseHeader(header: string): string | null;
-    msCachingEnabled(): boolean;
-    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
-    overrideMimeType(mime: string): void;
-    send(data?: Document): void;
-    send(data?: string): void;
-    send(data?: any): void;
-    setRequestHeader(header: string, value: string): void;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequest: {
-    prototype: XMLHttpRequest;
-    new(): XMLHttpRequest;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    create(): XMLHttpRequest;
-}
-
-interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequestUpload: {
-    prototype: XMLHttpRequestUpload;
-    new(): XMLHttpRequestUpload;
-}
-
-interface XMLSerializer {
-    serializeToString(target: Node): string;
-}
-
-declare var XMLSerializer: {
-    prototype: XMLSerializer;
-    new(): XMLSerializer;
-}
-
-interface XPathEvaluator {
-    createExpression(expression: string, resolver: XPathNSResolver): 
XPathExpression;
-    createNSResolver(nodeResolver?: Node): XPathNSResolver;
-    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver 
| null, type: number, result: XPathResult | null): XPathResult;
-}
-
-declare var XPathEvaluator: {
-    prototype: XPathEvaluator;
-    new(): XPathEvaluator;
-}
-
-interface XPathExpression {
-    evaluate(contextNode: Node, type: number, result: XPathResult | null): 
XPathResult;
-}
-
-declare var XPathExpression: {
-    prototype: XPathExpression;
-    new(): XPathExpression;
-}
-
-interface XPathNSResolver {
-    lookupNamespaceURI(prefix: string): string;
-}
-
-declare var XPathNSResolver: {
-    prototype: XPathNSResolver;
-    new(): XPathNSResolver;
-}
-
-interface XPathResult {
-    readonly booleanValue: boolean;
-    readonly invalidIteratorState: boolean;
-    readonly numberValue: number;
-    readonly resultType: number;
-    readonly singleNodeValue: Node;
-    readonly snapshotLength: number;
-    readonly stringValue: string;
-    iterateNext(): Node;
-    snapshotItem(index: number): Node;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-declare var XPathResult: {
-    prototype: XPathResult;
-    new(): XPathResult;
-    readonly ANY_TYPE: number;
-    readonly ANY_UNORDERED_NODE_TYPE: number;
-    readonly BOOLEAN_TYPE: number;
-    readonly FIRST_ORDERED_NODE_TYPE: number;
-    readonly NUMBER_TYPE: number;
-    readonly ORDERED_NODE_ITERATOR_TYPE: number;
-    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
-    readonly STRING_TYPE: number;
-    readonly UNORDERED_NODE_ITERATOR_TYPE: number;
-    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-interface XSLTProcessor {
-    clearParameters(): void;
-    getParameter(namespaceURI: string, localName: string): any;
-    importStylesheet(style: Node): void;
-    removeParameter(namespaceURI: string, localName: string): void;
-    reset(): void;
-    setParameter(namespaceURI: string, localName: string, value: any): void;
-    transformToDocument(source: Node): Document;
-    transformToFragment(source: Node, document: Document): DocumentFragment;
-}
-
-declare var XSLTProcessor: {
-    prototype: XSLTProcessor;
-    new(): XSLTProcessor;
-}
-
-interface AbstractWorkerEventMap {
-    "error": ErrorEvent;
-}
-
-interface AbstractWorker {
-    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
-    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface CanvasPathMethods {
-    arc(x: number, y: number, radius: number, startAngle: number, endAngle: 
number, anticlockwise?: boolean): void;
-    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): 
void;
-    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: 
number, y: number): void;
-    closePath(): void;
-    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: 
number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
-    lineTo(x: number, y: number): void;
-    moveTo(x: number, y: number): void;
-    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
-    rect(x: number, y: number, w: number, h: number): void;
-}
-
-interface ChildNode {
-    remove(): void;
-}
-
-interface DOML2DeprecatedColorProperty {
-    color: string;
-}
-
-interface DOML2DeprecatedSizeProperty {
-    size: number;
-}
-
-interface DocumentEvent {
-    createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
-    createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
-    createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
-    createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
-    createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
-    createEvent(eventInterface:"CloseEvent"): CloseEvent;
-    createEvent(eventInterface:"CommandEvent"): CommandEvent;
-    createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
-    createEvent(eventInterface:"CustomEvent"): CustomEvent;
-    createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
-    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:"GamepadEvent"): GamepadEvent;
-    createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
-    createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
-    createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
-    createEvent(eventInterface:"ListeningStateChangedEvent"): 
ListeningStateChangedEvent;
-    createEvent(eventInterface:"LongRunningScriptDetectedEvent"): 
LongRunningScriptDetectedEvent;
-    createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
-    createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
-    createEvent(eventInterface:"MSMediaKeyMessageEvent"): 
MSMediaKeyMessageEvent;
-    createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
-    createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
-    createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
-    createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
-    createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
-    createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
-    createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
-    createEvent(eventInterface:"MessageEvent"): MessageEvent;
-    createEvent(eventInterface:"MouseEvent"): MouseEvent;
-    createEvent(eventInterface:"MouseEvents"): MouseEvent;
-    createEvent(eventInterface:"MutationEvent"): MutationEvent;
-    createEvent(eventInterface:"MutationEvents"): MutationEvent;
-    createEvent(eventInterface:"NavigationCompletedEvent"): 
NavigationCompletedEvent;
-    createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
-    createEvent(eventInterface:"NavigationEventWithReferrer"): 
NavigationEventWithReferrer;
-    createEvent(eventInterface:"OfflineAudioCompletionEvent"): 
OfflineAudioCompletionEvent;
-    createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
-    createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
-    createEvent(eventInterface:"PermissionRequestedEvent"): 
PermissionRequestedEvent;
-    createEvent(eventInterface:"PointerEvent"): PointerEvent;
-    createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
-    createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
-    createEvent(eventInterface:"RTCDTMFToneChangeEvent"): 
RTCDTMFToneChangeEvent;
-    createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): 
RTCDtlsTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): 
RTCIceCandidatePairChangedEvent;
-    createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
-    createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): 
RTCIceTransportStateChangedEvent;
-    createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
-    createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
-    createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
-    createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
-    createEvent(eventInterface:"StorageEvent"): StorageEvent;
-    createEvent(eventInterface:"TextEvent"): TextEvent;
-    createEvent(eventInterface:"TouchEvent"): TouchEvent;
-    createEvent(eventInterface:"TrackEvent"): TrackEvent;
-    createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
-    createEvent(eventInterface:"UIEvent"): UIEvent;
-    createEvent(eventInterface:"UIEvents"): UIEvent;
-    createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): 
UnviewableContentIdentifiedEvent;
-    createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
-    createEvent(eventInterface:"WheelEvent"): WheelEvent;
-    createEvent(eventInterface: string): Event;
-}
-
-interface ElementTraversal {
-    readonly childElementCount: number;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly nextElementSibling: Element;
-    readonly previousElementSibling: Element;
-}
-
-interface GetSVGDocument {
-    getSVGDocument(): Document;
-}
-
-interface GlobalEventHandlersEventMap {
-    "pointercancel": PointerEvent;
-    "pointerdown": PointerEvent;
-    "pointerenter": PointerEvent;
-    "pointerleave": PointerEvent;
-    "pointermove": PointerEvent;
-    "pointerout": PointerEvent;
-    "pointerover": PointerEvent;
-    "pointerup": PointerEvent;
-    "wheel": WheelEvent;
-}
-
-interface GlobalEventHandlers {
-    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
-    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
-    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, 
listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface HTMLTableAlignment {
-    /**
-      * Sets or retrieves a value that you can use to implement your own ch 
functionality for the object.
-      */
-    ch: string;
-    /**
-      * Sets or retrieves a value that you can use to implement your own chOff 
functionality for the object.
-      */
-    chOff: string;
-    /**
-      * Sets or retrieves how text and other content are vertically aligned 
within the object that contains them.
-      */
-    vAlign: string;
-}
-
-interface IDBEnvironment {
-    readonly indexedDB: IDBFactory;
-}
-
-interface LinkStyle {
-    readonly sheet: StyleSheet;
-}
-
-interface MSBaseReaderEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-}
-
-interface MSBaseReader {
-    onabort: (this: MSBaseReader, ev: Event) => any;
-    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
-    onload: (this: MSBaseReader, ev: Event) => any;
-    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
-    onloadstart: (this: MSBaseReader, ev: Event) => any;
-    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    abort(): void;
-    readonly DONE: number;
-    readonly EMPTY: number;
-    readonly LOADING: number;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface MSFileSaver {
-    msSaveBlob(blob: any, defaultName?: string): boolean;
-    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
-}
-
-interface MSNavigatorDoNotTrack {
-    confirmSiteSpecificTrackingException(args: 
ConfirmSiteSpecificExceptionsInformation): boolean;
-    confirmWebWideTrackingException(args: ExceptionInformation): boolean;
-    removeSiteSpecificTrackingException(args: ExceptionInformation): void;
-    removeWebWideTrackingException(args: ExceptionInformation): void;
-    storeSiteSpecificTrackingException(args: 
StoreSiteSpecificExceptionsInformation): void;
-    storeWebWideTrackingException(args: StoreExceptionsInformation): void;
-}
-
-interface NavigatorContentUtils {
-}
-
-interface NavigatorGeolocation {
-    readonly geolocation: Geolocation;
-}
-
-interface NavigatorID {
-    readonly appName: string;
-    readonly appVersion: string;
-    readonly platform: string;
-    readonly product: string;
-    readonly productSub: string;
-    readonly userAgent: string;
-    readonly vendor: string;
-    readonly vendorSub: string;
-}
-
-interface NavigatorOnLine {
-    readonly onLine: boolean;
-}
-
-interface NavigatorStorageUtils {
-}
-
-interface NavigatorUserMedia {
-    readonly mediaDevices: MediaDevices;
-    getUserMedia(constraints: MediaStreamConstraints, successCallback: 
NavigatorUserMediaSuccessCallback, errorCallback: 
NavigatorUserMediaErrorCallback): void;
-}
-
-interface NodeSelector {
-    querySelector<K extends keyof ElementTagNameMap>(selectors: K): 
ElementTagNameMap[K] | null;
-    querySelector(selectors: string): Element | null;
-    querySelectorAll<K extends keyof ElementListTagNameMap>(selectors: K): 
ElementListTagNameMap[K];
-    querySelectorAll(selectors: string): NodeListOf<Element>;
-}
-
-interface RandomSource {
-    getRandomValues(array: ArrayBufferView): ArrayBufferView;
-}
-
-interface SVGAnimatedPathData {
-    readonly pathSegList: SVGPathSegList;
-}
-
-interface SVGAnimatedPoints {
-    readonly animatedPoints: SVGPointList;
-    readonly points: SVGPointList;
-}
-
-interface SVGExternalResourcesRequired {
-    readonly externalResourcesRequired: SVGAnimatedBoolean;
-}
-
-interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
-    readonly height: SVGAnimatedLength;
-    readonly result: SVGAnimatedString;
-    readonly width: SVGAnimatedLength;
-    readonly x: SVGAnimatedLength;
-    readonly y: SVGAnimatedLength;
-}
-
-interface SVGFitToViewBox {
-    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
-    readonly viewBox: SVGAnimatedRect;
-}
-
-interface SVGLangSpace {
-    xmllang: string;
-    xmlspace: string;
-}
-
-interface SVGLocatable {
-    readonly farthestViewportElement: SVGElement;
-    readonly nearestViewportElement: SVGElement;
-    getBBox(): SVGRect;
-    getCTM(): SVGMatrix;
-    getScreenCTM(): SVGMatrix;
-    getTransformToElement(element: SVGElement): SVGMatrix;
-}
-
-interface SVGStylable {
-    className: any;
-    readonly style: CSSStyleDeclaration;
-}
-
-interface SVGTests {
-    readonly requiredExtensions: SVGStringList;
-    readonly requiredFeatures: SVGStringList;
-    readonly systemLanguage: SVGStringList;
-    hasExtension(extension: string): boolean;
-}
-
-interface SVGTransformable extends SVGLocatable {
-    readonly transform: SVGAnimatedTransformList;
-}
-
-interface SVGURIReference {
-    readonly href: SVGAnimatedString;
-}
-
-interface WindowBase64 {
-    atob(encodedString: string): string;
-    btoa(rawString: string): string;
-}
-
-interface WindowConsole {
-    readonly console: Console;
-}
-
-interface WindowLocalStorage {
-    readonly localStorage: Storage;
-}
-
-interface WindowSessionStorage {
-    readonly sessionStorage: Storage;
-}
-
-interface WindowTimers extends Object, WindowTimersExtension {
-    clearInterval(handle: number): void;
-    clearTimeout(handle: number): void;
-    setInterval(handler: (...args: any[]) => void, timeout: number): number;
-    setInterval(handler: any, timeout?: any, ...args: any[]): number;
-    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
-    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-}
-
-interface WindowTimersExtension {
-    clearImmediate(handle: number): void;
-    setImmediate(handler: (...args: any[]) => void): number;
-    setImmediate(handler: any, ...args: any[]): number;
-}
-
-interface XMLHttpRequestEventTargetEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-    "timeout": ProgressEvent;
-}
-
-interface XMLHttpRequestEventTarget {
-    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
-    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface StorageEventInit extends EventInit {
-    key?: string;
-    oldValue?: string;
-    newValue?: string;
-    url: string;
-    storageArea?: Storage;
-}
-
-interface Canvas2DContextAttributes {
-    alpha?: boolean;
-    willReadFrequently?: boolean;
-    storage?: boolean;
-    [attribute: string]: boolean | string | undefined;
-}
-
-interface NodeListOf<TNode extends Node> extends NodeList {
-    length: number;
-    item(index: number): TNode;
-    [index: number]: TNode;
-}
-
-interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
-    item(index: number): T;
-    namedItem(name: string): T;
-    [index: number]: T;
-}
-
-interface BlobPropertyBag {
-    type?: string;
-    endings?: string;
-}
-
-interface FilePropertyBag {
-    type?: string;
-    lastModified?: number;
-}
-
-interface EventListenerObject {
-    handleEvent(evt: Event): void;
-}
-
-interface MessageEventInit extends EventInit {
-    data?: any;
-    origin?: string;
-    lastEventId?: string;
-    channel?: string;
-    source?: any;
-    ports?: MessagePort[];
-}
-
-interface ProgressEventInit extends EventInit {
-    lengthComputable?: boolean;
-    loaded?: number;
-    total?: number;
-}
-
-interface ScrollOptions {
-    behavior?: ScrollBehavior;
-}
-
-interface ScrollToOptions extends ScrollOptions {
-    left?: number;
-    top?: number;
-}
-
-interface ScrollIntoViewOptions extends ScrollOptions {
-    block?: ScrollLogicalPosition;
-    inline?: ScrollLogicalPosition;
-}
-
-interface ClipboardEventInit extends EventInit {
-    data?: string;
-    dataType?: string;
-}
-
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
-interface RsaKeyGenParams extends Algorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaHashedImportParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaPssParams {
-    saltLength: number;
-}
-
-interface RsaOaepParams extends Algorithm {
-    label?: BufferSource;
-}
-
-interface EcdsaParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface EcKeyGenParams extends Algorithm {
-    namedCurve: string;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
-    typedCurve: string;
-}
-
-interface EcKeyImportParams {
-    namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface AesCtrParams extends Algorithm {
-    counter: BufferSource;
-    length: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
-    length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
-    length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
-    length: number;
-}
-
-interface AesCbcParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface AesCmacParams extends Algorithm {
-    length: number;
-}
-
-interface AesGcmParams extends Algorithm {
-    iv: BufferSource;
-    additionalData?: BufferSource;
-    tagLength?: number;
-}
-
-interface AesCfbParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface HmacImportParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
-    hash: AlgorithmIdentifier;
-    length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface DhKeyGenParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface DhImportKeyParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface ConcatParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    algorithmId: Uint8Array;
-    partyUInfo: Uint8Array;
-    partyVInfo: Uint8Array;
-    publicInfo?: Uint8Array;
-    privateInfo?: Uint8Array;
-}
-
-interface HkdfCtrParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    label: BufferSource;
-    context: BufferSource;
-}
-
-interface Pbkdf2Params extends Algorithm {
-    salt: BufferSource;
-    iterations: number;
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaOtherPrimesInfo {
-    r: string;
-    d: string;
-    t: string;
-}
-
-interface JsonWebKey {
-    kty: string;
-    use?: string;
-    key_ops?: string[];
-    alg?: string;
-    kid?: string;
-    x5u?: string;
-    x5c?: string;
-    x5t?: string;
-    ext?: boolean;
-    crv?: string;
-    x?: string;
-    y?: string;
-    d?: string;
-    n?: string;
-    e?: string;
-    p?: string;
-    q?: string;
-    dp?: string;
-    dq?: string;
-    qi?: string;
-    oth?: RsaOtherPrimesInfo[];
-    k?: string;
-}
-
-interface ParentNode {
-    readonly children: HTMLCollection;
-    readonly firstElementChild: Element;
-    readonly lastElementChild: Element;
-    readonly childElementCount: number;
-}
-
-interface DocumentOrShadowRoot {
-    readonly activeElement: Element | null;
-    readonly stylesheets: StyleSheetList;
-    getSelection(): Selection | null;
-    elementFromPoint(x: number, y: number): Element | null;
-    elementsFromPoint(x: number, y: number): Element[];
-}
-
-interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
-    readonly host: Element;
-    innerHTML: string;
-}
-
-interface ShadowRootInit {
-    mode: 'open'|'closed';
-    delegatesFocus?: boolean;
-}
-
-interface HTMLSlotElement extends HTMLElement {
-    name: string;
-    assignedNodes(options?: AssignedNodesOptions): Node[];
-}
-
-interface AssignedNodesOptions {
-    flatten?: boolean;
-}
-
-declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
-
-interface ErrorEventHandler {
-    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
-}
-interface PositionCallback {
-    (position: Position): void;
-}
-interface PositionErrorCallback {
-    (error: PositionError): void;
-}
-interface MediaQueryListListener {
-    (mql: MediaQueryList): void;
-}
-interface MSLaunchUriCallback {
-    (): void;
-}
-interface FrameRequestCallback {
-    (time: number): void;
-}
-interface MSUnsafeFunctionCallback {
-    (): any;
-}
-interface MSExecAtPriorityFunctionCallback {
-    (...args: any[]): any;
-}
-interface MutationCallback {
-    (mutations: MutationRecord[], observer: MutationObserver): void;
-}
-interface DecodeSuccessCallback {
-    (decodedData: AudioBuffer): void;
-}
-interface DecodeErrorCallback {
-    (error: DOMException): void;
-}
-interface FunctionStringCallback {
-    (data: string): void;
-}
-interface NavigatorUserMediaSuccessCallback {
-    (stream: MediaStream): void;
-}
-interface NavigatorUserMediaErrorCallback {
-    (error: MediaStreamError): void;
-}
-interface ForEachCallback {
-    (keyId: any, status: string): void;
-}
-interface HTMLElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "audio": HTMLAudioElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "del": HTMLModElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "embed": HTMLEmbedElement;
-    "fieldset": HTMLFieldSetElement;
-    "font": HTMLFontElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "h1": HTMLHeadingElement;
-    "h2": HTMLHeadingElement;
-    "h3": HTMLHeadingElement;
-    "h4": HTMLHeadingElement;
-    "h5": HTMLHeadingElement;
-    "h6": HTMLHeadingElement;
-    "head": HTMLHeadElement;
-    "hr": HTMLHRElement;
-    "html": HTMLHtmlElement;
-    "iframe": HTMLIFrameElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "marquee": HTMLMarqueeElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "meter": HTMLMeterElement;
-    "nextid": HTMLUnknownElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "picture": HTMLPictureElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "script": HTMLScriptElement;
-    "select": HTMLSelectElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "style": HTMLStyleElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "ul": HTMLUListElement;
-    "video": HTMLVideoElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementTagNameMap {
-    "a": HTMLAnchorElement;
-    "abbr": HTMLElement;
-    "acronym": HTMLElement;
-    "address": HTMLElement;
-    "applet": HTMLAppletElement;
-    "area": HTMLAreaElement;
-    "article": HTMLElement;
-    "aside": HTMLElement;
-    "audio": HTMLAudioElement;
-    "b": HTMLElement;
-    "base": HTMLBaseElement;
-    "basefont": HTMLBaseFontElement;
-    "bdo": HTMLElement;
-    "big": HTMLElement;
-    "blockquote": HTMLQuoteElement;
-    "body": HTMLBodyElement;
-    "br": HTMLBRElement;
-    "button": HTMLButtonElement;
-    "canvas": HTMLCanvasElement;
-    "caption": HTMLTableCaptionElement;
-    "center": HTMLElement;
-    "circle": SVGCircleElement;
-    "cite": HTMLElement;
-    "clippath": SVGClipPathElement;
-    "code": HTMLElement;
-    "col": HTMLTableColElement;
-    "colgroup": HTMLTableColElement;
-    "datalist": HTMLDataListElement;
-    "dd": HTMLElement;
-    "defs": SVGDefsElement;
-    "del": HTMLModElement;
-    "desc": SVGDescElement;
-    "dfn": HTMLElement;
-    "dir": HTMLDirectoryElement;
-    "div": HTMLDivElement;
-    "dl": HTMLDListElement;
-    "dt": HTMLElement;
-    "ellipse": SVGEllipseElement;
-    "em": HTMLElement;
-    "embed": HTMLEmbedElement;
-    "feblend": SVGFEBlendElement;
-    "fecolormatrix": SVGFEColorMatrixElement;
-    "fecomponenttransfer": SVGFEComponentTransferElement;
-    "fecomposite": SVGFECompositeElement;
-    "feconvolvematrix": SVGFEConvolveMatrixElement;
-    "fediffuselighting": SVGFEDiffuseLightingElement;
-    "fedisplacementmap": SVGFEDisplacementMapElement;
-    "fedistantlight": SVGFEDistantLightElement;
-    "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;
-    "fieldset": HTMLFieldSetElement;
-    "figcaption": HTMLElement;
-    "figure": HTMLElement;
-    "filter": SVGFilterElement;
-    "font": HTMLFontElement;
-    "footer": HTMLElement;
-    "foreignobject": SVGForeignObjectElement;
-    "form": HTMLFormElement;
-    "frame": HTMLFrameElement;
-    "frameset": HTMLFrameSetElement;
-    "g": SVGGElement;
-    "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;
-    "image": SVGImageElement;
-    "img": HTMLImageElement;
-    "input": HTMLInputElement;
-    "ins": HTMLModElement;
-    "isindex": HTMLUnknownElement;
-    "kbd": HTMLElement;
-    "keygen": HTMLElement;
-    "label": HTMLLabelElement;
-    "legend": HTMLLegendElement;
-    "li": HTMLLIElement;
-    "line": SVGLineElement;
-    "lineargradient": SVGLinearGradientElement;
-    "link": HTMLLinkElement;
-    "listing": HTMLPreElement;
-    "map": HTMLMapElement;
-    "mark": HTMLElement;
-    "marker": SVGMarkerElement;
-    "marquee": HTMLMarqueeElement;
-    "mask": SVGMaskElement;
-    "menu": HTMLMenuElement;
-    "meta": HTMLMetaElement;
-    "metadata": SVGMetadataElement;
-    "meter": HTMLMeterElement;
-    "nav": HTMLElement;
-    "nextid": HTMLUnknownElement;
-    "nobr": HTMLElement;
-    "noframes": HTMLElement;
-    "noscript": HTMLElement;
-    "object": HTMLObjectElement;
-    "ol": HTMLOListElement;
-    "optgroup": HTMLOptGroupElement;
-    "option": HTMLOptionElement;
-    "p": HTMLParagraphElement;
-    "param": HTMLParamElement;
-    "path": SVGPathElement;
-    "pattern": SVGPatternElement;
-    "picture": HTMLPictureElement;
-    "plaintext": HTMLElement;
-    "polygon": SVGPolygonElement;
-    "polyline": SVGPolylineElement;
-    "pre": HTMLPreElement;
-    "progress": HTMLProgressElement;
-    "q": HTMLQuoteElement;
-    "radialgradient": SVGRadialGradientElement;
-    "rect": SVGRectElement;
-    "rt": HTMLElement;
-    "ruby": HTMLElement;
-    "s": HTMLElement;
-    "samp": HTMLElement;
-    "script": HTMLScriptElement;
-    "section": HTMLElement;
-    "select": HTMLSelectElement;
-    "small": HTMLElement;
-    "source": HTMLSourceElement;
-    "span": HTMLSpanElement;
-    "stop": SVGStopElement;
-    "strike": HTMLElement;
-    "strong": HTMLElement;
-    "style": HTMLStyleElement;
-    "sub": HTMLElement;
-    "sup": HTMLElement;
-    "svg": SVGSVGElement;
-    "switch": SVGSwitchElement;
-    "symbol": SVGSymbolElement;
-    "table": HTMLTableElement;
-    "tbody": HTMLTableSectionElement;
-    "td": HTMLTableDataCellElement;
-    "template": HTMLTemplateElement;
-    "text": SVGTextElement;
-    "textpath": SVGTextPathElement;
-    "textarea": HTMLTextAreaElement;
-    "tfoot": HTMLTableSectionElement;
-    "th": HTMLTableHeaderCellElement;
-    "thead": HTMLTableSectionElement;
-    "title": HTMLTitleElement;
-    "tr": HTMLTableRowElement;
-    "track": HTMLTrackElement;
-    "tspan": SVGTSpanElement;
-    "tt": HTMLElement;
-    "u": HTMLElement;
-    "ul": HTMLUListElement;
-    "use": SVGUseElement;
-    "var": HTMLElement;
-    "video": HTMLVideoElement;
-    "view": SVGViewElement;
-    "wbr": HTMLElement;
-    "x-ms-webview": MSHTMLWebViewElement;
-    "xmp": HTMLPreElement;
-}
-
-interface ElementListTagNameMap {
-    "a": NodeListOf<HTMLAnchorElement>;
-    "abbr": NodeListOf<HTMLElement>;
-    "acronym": NodeListOf<HTMLElement>;
-    "address": NodeListOf<HTMLElement>;
-    "applet": NodeListOf<HTMLAppletElement>;
-    "area": NodeListOf<HTMLAreaElement>;
-    "article": NodeListOf<HTMLElement>;
-    "aside": NodeListOf<HTMLElement>;
-    "audio": NodeListOf<HTMLAudioElement>;
-    "b": NodeListOf<HTMLElement>;
-    "base": NodeListOf<HTMLBaseElement>;
-    "basefont": NodeListOf<HTMLBaseFontElement>;
-    "bdo": NodeListOf<HTMLElement>;
-    "big": NodeListOf<HTMLElement>;
-    "blockquote": NodeListOf<HTMLQuoteElement>;
-    "body": NodeListOf<HTMLBodyElement>;
-    "br": NodeListOf<HTMLBRElement>;
-    "button": NodeListOf<HTMLButtonElement>;
-    "canvas": NodeListOf<HTMLCanvasElement>;
-    "caption": NodeListOf<HTMLTableCaptionElement>;
-    "center": NodeListOf<HTMLElement>;
-    "circle": NodeListOf<SVGCircleElement>;
-    "cite": NodeListOf<HTMLElement>;
-    "clippath": NodeListOf<SVGClipPathElement>;
-    "code": NodeListOf<HTMLElement>;
-    "col": NodeListOf<HTMLTableColElement>;
-    "colgroup": NodeListOf<HTMLTableColElement>;
-    "datalist": NodeListOf<HTMLDataListElement>;
-    "dd": NodeListOf<HTMLElement>;
-    "defs": NodeListOf<SVGDefsElement>;
-    "del": NodeListOf<HTMLModElement>;
-    "desc": NodeListOf<SVGDescElement>;
-    "dfn": NodeListOf<HTMLElement>;
-    "dir": NodeListOf<HTMLDirectoryElement>;
-    "div": NodeListOf<HTMLDivElement>;
-    "dl": NodeListOf<HTMLDListElement>;
-    "dt": NodeListOf<HTMLElement>;
-    "ellipse": NodeListOf<SVGEllipseElement>;
-    "em": NodeListOf<HTMLElement>;
-    "embed": NodeListOf<HTMLEmbedElement>;
-    "feblend": NodeListOf<SVGFEBlendElement>;
-    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
-    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
-    "fecomposite": NodeListOf<SVGFECompositeElement>;
-    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
-    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
-    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
-    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
-    "feflood": NodeListOf<SVGFEFloodElement>;
-    "fefunca": NodeListOf<SVGFEFuncAElement>;
-    "fefuncb": NodeListOf<SVGFEFuncBElement>;
-    "fefuncg": NodeListOf<SVGFEFuncGElement>;
-    "fefuncr": NodeListOf<SVGFEFuncRElement>;
-    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
-    "feimage": NodeListOf<SVGFEImageElement>;
-    "femerge": NodeListOf<SVGFEMergeElement>;
-    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
-    "femorphology": NodeListOf<SVGFEMorphologyElement>;
-    "feoffset": NodeListOf<SVGFEOffsetElement>;
-    "fepointlight": NodeListOf<SVGFEPointLightElement>;
-    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
-    "fespotlight": NodeListOf<SVGFESpotLightElement>;
-    "fetile": NodeListOf<SVGFETileElement>;
-    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
-    "fieldset": NodeListOf<HTMLFieldSetElement>;
-    "figcaption": NodeListOf<HTMLElement>;
-    "figure": NodeListOf<HTMLElement>;
-    "filter": NodeListOf<SVGFilterElement>;
-    "font": NodeListOf<HTMLFontElement>;
-    "footer": NodeListOf<HTMLElement>;
-    "foreignobject": NodeListOf<SVGForeignObjectElement>;
-    "form": NodeListOf<HTMLFormElement>;
-    "frame": NodeListOf<HTMLFrameElement>;
-    "frameset": NodeListOf<HTMLFrameSetElement>;
-    "g": NodeListOf<SVGGElement>;
-    "h1": NodeListOf<HTMLHeadingElement>;
-    "h2": NodeListOf<HTMLHeadingElement>;
-    "h3": NodeListOf<HTMLHeadingElement>;
-    "h4": NodeListOf<HTMLHeadingElement>;
-    "h5": NodeListOf<HTMLHeadingElement>;
-    "h6": NodeListOf<HTMLHeadingElement>;
-    "head": NodeListOf<HTMLHeadElement>;
-    "header": NodeListOf<HTMLElement>;
-    "hgroup": NodeListOf<HTMLElement>;
-    "hr": NodeListOf<HTMLHRElement>;
-    "html": NodeListOf<HTMLHtmlElement>;
-    "i": NodeListOf<HTMLElement>;
-    "iframe": NodeListOf<HTMLIFrameElement>;
-    "image": NodeListOf<SVGImageElement>;
-    "img": NodeListOf<HTMLImageElement>;
-    "input": NodeListOf<HTMLInputElement>;
-    "ins": NodeListOf<HTMLModElement>;
-    "isindex": NodeListOf<HTMLUnknownElement>;
-    "kbd": NodeListOf<HTMLElement>;
-    "keygen": NodeListOf<HTMLElement>;
-    "label": NodeListOf<HTMLLabelElement>;
-    "legend": NodeListOf<HTMLLegendElement>;
-    "li": NodeListOf<HTMLLIElement>;
-    "line": NodeListOf<SVGLineElement>;
-    "lineargradient": NodeListOf<SVGLinearGradientElement>;
-    "link": NodeListOf<HTMLLinkElement>;
-    "listing": NodeListOf<HTMLPreElement>;
-    "map": NodeListOf<HTMLMapElement>;
-    "mark": NodeListOf<HTMLElement>;
-    "marker": NodeListOf<SVGMarkerElement>;
-    "marquee": NodeListOf<HTMLMarqueeElement>;
-    "mask": NodeListOf<SVGMaskElement>;
-    "menu": NodeListOf<HTMLMenuElement>;
-    "meta": NodeListOf<HTMLMetaElement>;
-    "metadata": NodeListOf<SVGMetadataElement>;
-    "meter": NodeListOf<HTMLMeterElement>;
-    "nav": NodeListOf<HTMLElement>;
-    "nextid": NodeListOf<HTMLUnknownElement>;
-    "nobr": NodeListOf<HTMLElement>;
-    "noframes": NodeListOf<HTMLElement>;
-    "noscript": NodeListOf<HTMLElement>;
-    "object": NodeListOf<HTMLObjectElement>;
-    "ol": NodeListOf<HTMLOListElement>;
-    "optgroup": NodeListOf<HTMLOptGroupElement>;
-    "option": NodeListOf<HTMLOptionElement>;
-    "p": NodeListOf<HTMLParagraphElement>;
-    "param": NodeListOf<HTMLParamElement>;
-    "path": NodeListOf<SVGPathElement>;
-    "pattern": NodeListOf<SVGPatternElement>;
-    "picture": NodeListOf<HTMLPictureElement>;
-    "plaintext": NodeListOf<HTMLElement>;
-    "polygon": NodeListOf<SVGPolygonElement>;
-    "polyline": NodeListOf<SVGPolylineElement>;
-    "pre": NodeListOf<HTMLPreElement>;
-    "progress": NodeListOf<HTMLProgressElement>;
-    "q": NodeListOf<HTMLQuoteElement>;
-    "radialgradient": NodeListOf<SVGRadialGradientElement>;
-    "rect": NodeListOf<SVGRectElement>;
-    "rt": NodeListOf<HTMLElement>;
-    "ruby": NodeListOf<HTMLElement>;
-    "s": NodeListOf<HTMLElement>;
-    "samp": NodeListOf<HTMLElement>;
-    "script": NodeListOf<HTMLScriptElement>;
-    "section": NodeListOf<HTMLElement>;
-    "select": NodeListOf<HTMLSelectElement>;
-    "small": NodeListOf<HTMLElement>;
-    "source": NodeListOf<HTMLSourceElement>;
-    "span": NodeListOf<HTMLSpanElement>;
-    "stop": NodeListOf<SVGStopElement>;
-    "strike": NodeListOf<HTMLElement>;
-    "strong": NodeListOf<HTMLElement>;
-    "style": NodeListOf<HTMLStyleElement>;
-    "sub": NodeListOf<HTMLElement>;
-    "sup": NodeListOf<HTMLElement>;
-    "svg": NodeListOf<SVGSVGElement>;
-    "switch": NodeListOf<SVGSwitchElement>;
-    "symbol": NodeListOf<SVGSymbolElement>;
-    "table": NodeListOf<HTMLTableElement>;
-    "tbody": NodeListOf<HTMLTableSectionElement>;
-    "td": NodeListOf<HTMLTableDataCellElement>;
-    "template": NodeListOf<HTMLTemplateElement>;
-    "text": NodeListOf<SVGTextElement>;
-    "textpath": NodeListOf<SVGTextPathElement>;
-    "textarea": NodeListOf<HTMLTextAreaElement>;
-    "tfoot": NodeListOf<HTMLTableSectionElement>;
-    "th": NodeListOf<HTMLTableHeaderCellElement>;
-    "thead": NodeListOf<HTMLTableSectionElement>;
-    "title": NodeListOf<HTMLTitleElement>;
-    "tr": NodeListOf<HTMLTableRowElement>;
-    "track": NodeListOf<HTMLTrackElement>;
-    "tspan": NodeListOf<SVGTSpanElement>;
-    "tt": NodeListOf<HTMLElement>;
-    "u": NodeListOf<HTMLElement>;
-    "ul": NodeListOf<HTMLUListElement>;
-    "use": NodeListOf<SVGUseElement>;
-    "var": NodeListOf<HTMLElement>;
-    "video": NodeListOf<HTMLVideoElement>;
-    "view": NodeListOf<SVGViewElement>;
-    "wbr": NodeListOf<HTMLElement>;
-    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
-    "xmp": NodeListOf<HTMLPreElement>;
-}
-
-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; };
-declare var applicationCache: ApplicationCache;
-declare var clientInformation: Navigator;
-declare var closed: boolean;
-declare var crypto: Crypto;
-declare var defaultStatus: string;
-declare var devicePixelRatio: number;
-declare var doNotTrack: string;
-declare var document: Document;
-declare var event: Event | undefined;
-declare var external: External;
-declare var frameElement: Element;
-declare var frames: Window;
-declare var history: History;
-declare var innerHeight: number;
-declare var innerWidth: number;
-declare var length: number;
-declare var location: Location;
-declare var locationbar: BarProp;
-declare var menubar: BarProp;
-declare var msCredentials: MSCredentials;
-declare const name: never;
-declare var navigator: Navigator;
-declare var offscreenBuffering: string | boolean;
-declare var onabort: (this: Window, ev: UIEvent) => any;
-declare var onafterprint: (this: Window, ev: Event) => any;
-declare var onbeforeprint: (this: Window, ev: Event) => any;
-declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-declare var onblur: (this: Window, ev: FocusEvent) => any;
-declare var oncanplay: (this: Window, ev: Event) => any;
-declare var oncanplaythrough: (this: Window, ev: Event) => any;
-declare var onchange: (this: Window, ev: Event) => any;
-declare var onclick: (this: Window, ev: MouseEvent) => any;
-declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
-declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
-declare var ondblclick: (this: Window, ev: MouseEvent) => any;
-declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
-declare var ondrag: (this: Window, ev: DragEvent) => any;
-declare var ondragend: (this: Window, ev: DragEvent) => any;
-declare var ondragenter: (this: Window, ev: DragEvent) => any;
-declare var ondragleave: (this: Window, ev: DragEvent) => any;
-declare var ondragover: (this: Window, ev: DragEvent) => any;
-declare var ondragstart: (this: Window, ev: DragEvent) => any;
-declare var ondrop: (this: Window, ev: DragEvent) => any;
-declare var ondurationchange: (this: Window, ev: Event) => any;
-declare var onemptied: (this: Window, ev: Event) => any;
-declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-declare var onerror: ErrorEventHandler;
-declare var onfocus: (this: Window, ev: FocusEvent) => any;
-declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
-declare var oninput: (this: Window, ev: Event) => any;
-declare var oninvalid: (this: Window, ev: Event) => any;
-declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
-declare var onload: (this: Window, ev: Event) => any;
-declare var onloadeddata: (this: Window, ev: Event) => any;
-declare var onloadedmetadata: (this: Window, ev: Event) => any;
-declare var onloadstart: (this: Window, ev: Event) => any;
-declare var onmessage: (this: Window, ev: MessageEvent) => any;
-declare var onmousedown: (this: Window, ev: MouseEvent) => any;
-declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
-declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
-declare var onmousemove: (this: Window, ev: MouseEvent) => any;
-declare var onmouseout: (this: Window, ev: MouseEvent) => any;
-declare var onmouseover: (this: Window, ev: MouseEvent) => any;
-declare var onmouseup: (this: Window, ev: MouseEvent) => any;
-declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
-declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-declare var onoffline: (this: Window, ev: Event) => any;
-declare var ononline: (this: Window, ev: Event) => any;
-declare var onorientationchange: (this: Window, ev: Event) => any;
-declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpause: (this: Window, ev: Event) => any;
-declare var onplay: (this: Window, ev: Event) => any;
-declare var onplaying: (this: Window, ev: Event) => any;
-declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
-declare var onprogress: (this: Window, ev: ProgressEvent) => any;
-declare var onratechange: (this: Window, ev: Event) => any;
-declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-declare var onreset: (this: Window, ev: Event) => any;
-declare var onresize: (this: Window, ev: UIEvent) => any;
-declare var onscroll: (this: Window, ev: UIEvent) => any;
-declare var onseeked: (this: Window, ev: Event) => any;
-declare var onseeking: (this: Window, ev: Event) => any;
-declare var onselect: (this: Window, ev: UIEvent) => any;
-declare var onstalled: (this: Window, ev: Event) => any;
-declare var onstorage: (this: Window, ev: StorageEvent) => any;
-declare var onsubmit: (this: Window, ev: Event) => any;
-declare var onsuspend: (this: Window, ev: Event) => any;
-declare var ontimeupdate: (this: Window, ev: Event) => any;
-declare var ontouchcancel: (ev: TouchEvent) => any;
-declare var ontouchend: (ev: TouchEvent) => any;
-declare var ontouchmove: (ev: TouchEvent) => any;
-declare var ontouchstart: (ev: TouchEvent) => any;
-declare var onunload: (this: Window, ev: Event) => any;
-declare var onvolumechange: (this: Window, ev: Event) => any;
-declare var onwaiting: (this: Window, ev: Event) => any;
-declare var opener: any;
-declare var orientation: string | number;
-declare var outerHeight: number;
-declare var outerWidth: number;
-declare var pageXOffset: number;
-declare var pageYOffset: number;
-declare var parent: Window;
-declare var performance: Performance;
-declare var personalbar: BarProp;
-declare var screen: Screen;
-declare var screenLeft: number;
-declare var screenTop: number;
-declare var screenX: number;
-declare var screenY: number;
-declare var scrollX: number;
-declare var scrollY: number;
-declare var scrollbars: BarProp;
-declare var self: Window;
-declare var status: string;
-declare var statusbar: BarProp;
-declare var styleMedia: StyleMedia;
-declare var toolbar: BarProp;
-declare var top: Window;
-declare var window: Window;
-declare function alert(message?: any): void;
-declare function blur(): void;
-declare function cancelAnimationFrame(handle: number): void;
-declare function captureEvents(): void;
-declare function close(): void;
-declare function confirm(message?: string): boolean;
-declare function focus(): void;
-declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
-declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
-declare function getSelection(): Selection;
-declare function matchMedia(mediaQuery: string): MediaQueryList;
-declare function moveBy(x?: number, y?: number): void;
-declare function moveTo(x?: number, y?: number): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
-declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
-declare function print(): void;
-declare function prompt(message?: string, _default?: string): string | null;
-declare function releaseEvents(): void;
-declare function requestAnimationFrame(callback: FrameRequestCallback): number;
-declare function resizeBy(x?: number, y?: number): void;
-declare function resizeTo(x?: number, y?: number): void;
-declare function scroll(x?: number, y?: number): void;
-declare function scrollBy(x?: number, y?: number): void;
-declare function scrollTo(x?: number, y?: number): void;
-declare function webkitCancelAnimationFrame(handle: number): void;
-declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
-declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
-declare function scroll(options?: ScrollToOptions): void;
-declare function scrollTo(options?: ScrollToOptions): void;
-declare function scrollBy(options?: ScrollToOptions): void;
-declare function toString(): string;
-declare function dispatchEvent(evt: Event): boolean;
-declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare function clearInterval(handle: number): void;
-declare function clearTimeout(handle: number): void;
-declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function clearImmediate(handle: number): void;
-declare function setImmediate(handler: (...args: any[]) => void): number;
-declare function setImmediate(handler: any, ...args: any[]): number;
-declare var sessionStorage: Storage;
-declare var localStorage: Storage;
-declare var console: Console;
-declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
-declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
-declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
-declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
-declare var onpointermove: (this: Window, ev: PointerEvent) => any;
-declare var onpointerout: (this: Window, ev: PointerEvent) => any;
-declare var onpointerover: (this: Window, ev: PointerEvent) => any;
-declare var onpointerup: (this: Window, ev: PointerEvent) => any;
-declare var onwheel: (this: Window, ev: WheelEvent) => any;
-declare var indexedDB: IDBFactory;
-declare function atob(encodedString: string): string;
-declare function btoa(rawString: string): string;
-declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
-declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-type AAGUID = string;
-type AlgorithmIdentifier = string | Algorithm;
-type ConstrainBoolean = boolean | ConstrainBooleanParameters;
-type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
-type ConstrainDouble = number | ConstrainDoubleRange;
-type ConstrainLong = number | ConstrainLongRange;
-type CryptoOperationData = ArrayBufferView;
-type GLbitfield = number;
-type GLboolean = boolean;
-type GLbyte = number;
-type GLclampf = number;
-type GLenum = number;
-type GLfloat = number;
-type GLint = number;
-type GLintptr = number;
-type GLshort = number;
-type GLsizei = number;
-type GLsizeiptr = number;
-type GLubyte = number;
-type GLuint = number;
-type GLushort = number;
-type IDBKeyPath = string;
-type KeyFormat = string;
-type KeyType = string;
-type KeyUsage = string;
-type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
-type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
-type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
-type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
-type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
-type payloadtype = number;
-type ScrollBehavior = "auto" | "instant" | "smooth";
-type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
-type IDBValidKey = number | string | Date | IDBArrayKey;
-type BufferSource = ArrayBuffer | ArrayBufferView;
-type MouseWheelEvent = WheelEvent;
+interface HmacKeyGenParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface DhKeyGenParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyAlgorithm extends KeyAlgorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface DhImportKeyParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface ConcatParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    algorithmId: Uint8Array;
+    partyUInfo: Uint8Array;
+    partyVInfo: Uint8Array;
+    publicInfo?: Uint8Array;
+    privateInfo?: Uint8Array;
+}
+
+interface HkdfCtrParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    label: BufferSource;
+    context: BufferSource;
+}
+
+interface Pbkdf2Params extends Algorithm {
+    salt: BufferSource;
+    iterations: number;
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaOtherPrimesInfo {
+    r: string;
+    d: string;
+    t: string;
+}
+
+interface JsonWebKey {
+    kty: string;
+    use?: string;
+    key_ops?: string[];
+    alg?: string;
+    kid?: string;
+    x5u?: string;
+    x5c?: string;
+    x5t?: string;
+    ext?: boolean;
+    crv?: string;
+    x?: string;
+    y?: string;
+    d?: string;
+    n?: string;
+    e?: string;
+    p?: string;
+    q?: string;
+    dp?: string;
+    dq?: string;
+    qi?: string;
+    oth?: RsaOtherPrimesInfo[];
+    k?: string;
+}
+
+interface ParentNode {
+    readonly children: HTMLCollection;
+    readonly firstElementChild: Element;
+    readonly lastElementChild: Element;
+    readonly childElementCount: number;
+}
+
+interface DocumentOrShadowRoot {
+    readonly activeElement: Element | null;
+    readonly stylesheets: StyleSheetList;
+    getSelection(): Selection | null;
+    elementFromPoint(x: number, y: number): Element | null;
+    elementsFromPoint(x: number, y: number): Element[];
+}
+
+interface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment {
+    readonly host: Element;
+    innerHTML: string;
+}
+
+interface ShadowRootInit {
+    mode: 'open'|'closed';
+    delegatesFocus?: boolean;
+}
+
+interface HTMLSlotElement extends HTMLElement {
+    name: string;
+    assignedNodes(options?: AssignedNodesOptions): Node[];
+}
+
+interface AssignedNodesOptions {
+    flatten?: boolean;
+}
+
+declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
+
+interface ErrorEventHandler {
+    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
+}
+interface PositionCallback {
+    (position: Position): void;
+}
+interface PositionErrorCallback {
+    (error: PositionError): void;
+}
+interface MediaQueryListListener {
+    (mql: MediaQueryList): void;
+}
+interface MSLaunchUriCallback {
+    (): void;
+}
+interface FrameRequestCallback {
+    (time: number): void;
+}
+interface MSUnsafeFunctionCallback {
+    (): any;
+}
+interface MSExecAtPriorityFunctionCallback {
+    (...args: any[]): any;
+}
+interface MutationCallback {
+    (mutations: MutationRecord[], observer: MutationObserver): void;
+}
+interface DecodeSuccessCallback {
+    (decodedData: AudioBuffer): void;
+}
+interface DecodeErrorCallback {
+    (error: DOMException): void;
+}
+interface FunctionStringCallback {
+    (data: string): void;
+}
+interface NavigatorUserMediaSuccessCallback {
+    (stream: MediaStream): void;
+}
+interface NavigatorUserMediaErrorCallback {
+    (error: MediaStreamError): void;
+}
+interface ForEachCallback {
+    (keyId: any, status: string): void;
+}
+interface HTMLElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "audio": HTMLAudioElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "del": HTMLModElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "embed": HTMLEmbedElement;
+    "fieldset": HTMLFieldSetElement;
+    "font": HTMLFontElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "h1": HTMLHeadingElement;
+    "h2": HTMLHeadingElement;
+    "h3": HTMLHeadingElement;
+    "h4": HTMLHeadingElement;
+    "h5": HTMLHeadingElement;
+    "h6": HTMLHeadingElement;
+    "head": HTMLHeadElement;
+    "hr": HTMLHRElement;
+    "html": HTMLHtmlElement;
+    "iframe": HTMLIFrameElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "marquee": HTMLMarqueeElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "meter": HTMLMeterElement;
+    "nextid": HTMLUnknownElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "picture": HTMLPictureElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "script": HTMLScriptElement;
+    "select": HTMLSelectElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "style": HTMLStyleElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "ul": HTMLUListElement;
+    "video": HTMLVideoElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementTagNameMap {
+    "a": HTMLAnchorElement;
+    "abbr": HTMLElement;
+    "acronym": HTMLElement;
+    "address": HTMLElement;
+    "applet": HTMLAppletElement;
+    "area": HTMLAreaElement;
+    "article": HTMLElement;
+    "aside": HTMLElement;
+    "audio": HTMLAudioElement;
+    "b": HTMLElement;
+    "base": HTMLBaseElement;
+    "basefont": HTMLBaseFontElement;
+    "bdo": HTMLElement;
+    "big": HTMLElement;
+    "blockquote": HTMLQuoteElement;
+    "body": HTMLBodyElement;
+    "br": HTMLBRElement;
+    "button": HTMLButtonElement;
+    "canvas": HTMLCanvasElement;
+    "caption": HTMLTableCaptionElement;
+    "center": HTMLElement;
+    "circle": SVGCircleElement;
+    "cite": HTMLElement;
+    "clippath": SVGClipPathElement;
+    "code": HTMLElement;
+    "col": HTMLTableColElement;
+    "colgroup": HTMLTableColElement;
+    "datalist": HTMLDataListElement;
+    "dd": HTMLElement;
+    "defs": SVGDefsElement;
+    "del": HTMLModElement;
+    "desc": SVGDescElement;
+    "dfn": HTMLElement;
+    "dir": HTMLDirectoryElement;
+    "div": HTMLDivElement;
+    "dl": HTMLDListElement;
+    "dt": HTMLElement;
+    "ellipse": SVGEllipseElement;
+    "em": HTMLElement;
+    "embed": HTMLEmbedElement;
+    "feblend": SVGFEBlendElement;
+    "fecolormatrix": SVGFEColorMatrixElement;
+    "fecomponenttransfer": SVGFEComponentTransferElement;
+    "fecomposite": SVGFECompositeElement;
+    "feconvolvematrix": SVGFEConvolveMatrixElement;
+    "fediffuselighting": SVGFEDiffuseLightingElement;
+    "fedisplacementmap": SVGFEDisplacementMapElement;
+    "fedistantlight": SVGFEDistantLightElement;
+    "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;
+    "fieldset": HTMLFieldSetElement;
+    "figcaption": HTMLElement;
+    "figure": HTMLElement;
+    "filter": SVGFilterElement;
+    "font": HTMLFontElement;
+    "footer": HTMLElement;
+    "foreignobject": SVGForeignObjectElement;
+    "form": HTMLFormElement;
+    "frame": HTMLFrameElement;
+    "frameset": HTMLFrameSetElement;
+    "g": SVGGElement;
+    "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;
+    "image": SVGImageElement;
+    "img": HTMLImageElement;
+    "input": HTMLInputElement;
+    "ins": HTMLModElement;
+    "isindex": HTMLUnknownElement;
+    "kbd": HTMLElement;
+    "keygen": HTMLElement;
+    "label": HTMLLabelElement;
+    "legend": HTMLLegendElement;
+    "li": HTMLLIElement;
+    "line": SVGLineElement;
+    "lineargradient": SVGLinearGradientElement;
+    "link": HTMLLinkElement;
+    "listing": HTMLPreElement;
+    "map": HTMLMapElement;
+    "mark": HTMLElement;
+    "marker": SVGMarkerElement;
+    "marquee": HTMLMarqueeElement;
+    "mask": SVGMaskElement;
+    "menu": HTMLMenuElement;
+    "meta": HTMLMetaElement;
+    "metadata": SVGMetadataElement;
+    "meter": HTMLMeterElement;
+    "nav": HTMLElement;
+    "nextid": HTMLUnknownElement;
+    "nobr": HTMLElement;
+    "noframes": HTMLElement;
+    "noscript": HTMLElement;
+    "object": HTMLObjectElement;
+    "ol": HTMLOListElement;
+    "optgroup": HTMLOptGroupElement;
+    "option": HTMLOptionElement;
+    "p": HTMLParagraphElement;
+    "param": HTMLParamElement;
+    "path": SVGPathElement;
+    "pattern": SVGPatternElement;
+    "picture": HTMLPictureElement;
+    "plaintext": HTMLElement;
+    "polygon": SVGPolygonElement;
+    "polyline": SVGPolylineElement;
+    "pre": HTMLPreElement;
+    "progress": HTMLProgressElement;
+    "q": HTMLQuoteElement;
+    "radialgradient": SVGRadialGradientElement;
+    "rect": SVGRectElement;
+    "rt": HTMLElement;
+    "ruby": HTMLElement;
+    "s": HTMLElement;
+    "samp": HTMLElement;
+    "script": HTMLScriptElement;
+    "section": HTMLElement;
+    "select": HTMLSelectElement;
+    "small": HTMLElement;
+    "source": HTMLSourceElement;
+    "span": HTMLSpanElement;
+    "stop": SVGStopElement;
+    "strike": HTMLElement;
+    "strong": HTMLElement;
+    "style": HTMLStyleElement;
+    "sub": HTMLElement;
+    "sup": HTMLElement;
+    "svg": SVGSVGElement;
+    "switch": SVGSwitchElement;
+    "symbol": SVGSymbolElement;
+    "table": HTMLTableElement;
+    "tbody": HTMLTableSectionElement;
+    "td": HTMLTableDataCellElement;
+    "template": HTMLTemplateElement;
+    "text": SVGTextElement;
+    "textpath": SVGTextPathElement;
+    "textarea": HTMLTextAreaElement;
+    "tfoot": HTMLTableSectionElement;
+    "th": HTMLTableHeaderCellElement;
+    "thead": HTMLTableSectionElement;
+    "title": HTMLTitleElement;
+    "tr": HTMLTableRowElement;
+    "track": HTMLTrackElement;
+    "tspan": SVGTSpanElement;
+    "tt": HTMLElement;
+    "u": HTMLElement;
+    "ul": HTMLUListElement;
+    "use": SVGUseElement;
+    "var": HTMLElement;
+    "video": HTMLVideoElement;
+    "view": SVGViewElement;
+    "wbr": HTMLElement;
+    "x-ms-webview": MSHTMLWebViewElement;
+    "xmp": HTMLPreElement;
+}
+
+interface ElementListTagNameMap {
+    "a": NodeListOf<HTMLAnchorElement>;
+    "abbr": NodeListOf<HTMLElement>;
+    "acronym": NodeListOf<HTMLElement>;
+    "address": NodeListOf<HTMLElement>;
+    "applet": NodeListOf<HTMLAppletElement>;
+    "area": NodeListOf<HTMLAreaElement>;
+    "article": NodeListOf<HTMLElement>;
+    "aside": NodeListOf<HTMLElement>;
+    "audio": NodeListOf<HTMLAudioElement>;
+    "b": NodeListOf<HTMLElement>;
+    "base": NodeListOf<HTMLBaseElement>;
+    "basefont": NodeListOf<HTMLBaseFontElement>;
+    "bdo": NodeListOf<HTMLElement>;
+    "big": NodeListOf<HTMLElement>;
+    "blockquote": NodeListOf<HTMLQuoteElement>;
+    "body": NodeListOf<HTMLBodyElement>;
+    "br": NodeListOf<HTMLBRElement>;
+    "button": NodeListOf<HTMLButtonElement>;
+    "canvas": NodeListOf<HTMLCanvasElement>;
+    "caption": NodeListOf<HTMLTableCaptionElement>;
+    "center": NodeListOf<HTMLElement>;
+    "circle": NodeListOf<SVGCircleElement>;
+    "cite": NodeListOf<HTMLElement>;
+    "clippath": NodeListOf<SVGClipPathElement>;
+    "code": NodeListOf<HTMLElement>;
+    "col": NodeListOf<HTMLTableColElement>;
+    "colgroup": NodeListOf<HTMLTableColElement>;
+    "datalist": NodeListOf<HTMLDataListElement>;
+    "dd": NodeListOf<HTMLElement>;
+    "defs": NodeListOf<SVGDefsElement>;
+    "del": NodeListOf<HTMLModElement>;
+    "desc": NodeListOf<SVGDescElement>;
+    "dfn": NodeListOf<HTMLElement>;
+    "dir": NodeListOf<HTMLDirectoryElement>;
+    "div": NodeListOf<HTMLDivElement>;
+    "dl": NodeListOf<HTMLDListElement>;
+    "dt": NodeListOf<HTMLElement>;
+    "ellipse": NodeListOf<SVGEllipseElement>;
+    "em": NodeListOf<HTMLElement>;
+    "embed": NodeListOf<HTMLEmbedElement>;
+    "feblend": NodeListOf<SVGFEBlendElement>;
+    "fecolormatrix": NodeListOf<SVGFEColorMatrixElement>;
+    "fecomponenttransfer": NodeListOf<SVGFEComponentTransferElement>;
+    "fecomposite": NodeListOf<SVGFECompositeElement>;
+    "feconvolvematrix": NodeListOf<SVGFEConvolveMatrixElement>;
+    "fediffuselighting": NodeListOf<SVGFEDiffuseLightingElement>;
+    "fedisplacementmap": NodeListOf<SVGFEDisplacementMapElement>;
+    "fedistantlight": NodeListOf<SVGFEDistantLightElement>;
+    "feflood": NodeListOf<SVGFEFloodElement>;
+    "fefunca": NodeListOf<SVGFEFuncAElement>;
+    "fefuncb": NodeListOf<SVGFEFuncBElement>;
+    "fefuncg": NodeListOf<SVGFEFuncGElement>;
+    "fefuncr": NodeListOf<SVGFEFuncRElement>;
+    "fegaussianblur": NodeListOf<SVGFEGaussianBlurElement>;
+    "feimage": NodeListOf<SVGFEImageElement>;
+    "femerge": NodeListOf<SVGFEMergeElement>;
+    "femergenode": NodeListOf<SVGFEMergeNodeElement>;
+    "femorphology": NodeListOf<SVGFEMorphologyElement>;
+    "feoffset": NodeListOf<SVGFEOffsetElement>;
+    "fepointlight": NodeListOf<SVGFEPointLightElement>;
+    "fespecularlighting": NodeListOf<SVGFESpecularLightingElement>;
+    "fespotlight": NodeListOf<SVGFESpotLightElement>;
+    "fetile": NodeListOf<SVGFETileElement>;
+    "feturbulence": NodeListOf<SVGFETurbulenceElement>;
+    "fieldset": NodeListOf<HTMLFieldSetElement>;
+    "figcaption": NodeListOf<HTMLElement>;
+    "figure": NodeListOf<HTMLElement>;
+    "filter": NodeListOf<SVGFilterElement>;
+    "font": NodeListOf<HTMLFontElement>;
+    "footer": NodeListOf<HTMLElement>;
+    "foreignobject": NodeListOf<SVGForeignObjectElement>;
+    "form": NodeListOf<HTMLFormElement>;
+    "frame": NodeListOf<HTMLFrameElement>;
+    "frameset": NodeListOf<HTMLFrameSetElement>;
+    "g": NodeListOf<SVGGElement>;
+    "h1": NodeListOf<HTMLHeadingElement>;
+    "h2": NodeListOf<HTMLHeadingElement>;
+    "h3": NodeListOf<HTMLHeadingElement>;
+    "h4": NodeListOf<HTMLHeadingElement>;
+    "h5": NodeListOf<HTMLHeadingElement>;
+    "h6": NodeListOf<HTMLHeadingElement>;
+    "head": NodeListOf<HTMLHeadElement>;
+    "header": NodeListOf<HTMLElement>;
+    "hgroup": NodeListOf<HTMLElement>;
+    "hr": NodeListOf<HTMLHRElement>;
+    "html": NodeListOf<HTMLHtmlElement>;
+    "i": NodeListOf<HTMLElement>;
+    "iframe": NodeListOf<HTMLIFrameElement>;
+    "image": NodeListOf<SVGImageElement>;
+    "img": NodeListOf<HTMLImageElement>;
+    "input": NodeListOf<HTMLInputElement>;
+    "ins": NodeListOf<HTMLModElement>;
+    "isindex": NodeListOf<HTMLUnknownElement>;
+    "kbd": NodeListOf<HTMLElement>;
+    "keygen": NodeListOf<HTMLElement>;
+    "label": NodeListOf<HTMLLabelElement>;
+    "legend": NodeListOf<HTMLLegendElement>;
+    "li": NodeListOf<HTMLLIElement>;
+    "line": NodeListOf<SVGLineElement>;
+    "lineargradient": NodeListOf<SVGLinearGradientElement>;
+    "link": NodeListOf<HTMLLinkElement>;
+    "listing": NodeListOf<HTMLPreElement>;
+    "map": NodeListOf<HTMLMapElement>;
+    "mark": NodeListOf<HTMLElement>;
+    "marker": NodeListOf<SVGMarkerElement>;
+    "marquee": NodeListOf<HTMLMarqueeElement>;
+    "mask": NodeListOf<SVGMaskElement>;
+    "menu": NodeListOf<HTMLMenuElement>;
+    "meta": NodeListOf<HTMLMetaElement>;
+    "metadata": NodeListOf<SVGMetadataElement>;
+    "meter": NodeListOf<HTMLMeterElement>;
+    "nav": NodeListOf<HTMLElement>;
+    "nextid": NodeListOf<HTMLUnknownElement>;
+    "nobr": NodeListOf<HTMLElement>;
+    "noframes": NodeListOf<HTMLElement>;
+    "noscript": NodeListOf<HTMLElement>;
+    "object": NodeListOf<HTMLObjectElement>;
+    "ol": NodeListOf<HTMLOListElement>;
+    "optgroup": NodeListOf<HTMLOptGroupElement>;
+    "option": NodeListOf<HTMLOptionElement>;
+    "p": NodeListOf<HTMLParagraphElement>;
+    "param": NodeListOf<HTMLParamElement>;
+    "path": NodeListOf<SVGPathElement>;
+    "pattern": NodeListOf<SVGPatternElement>;
+    "picture": NodeListOf<HTMLPictureElement>;
+    "plaintext": NodeListOf<HTMLElement>;
+    "polygon": NodeListOf<SVGPolygonElement>;
+    "polyline": NodeListOf<SVGPolylineElement>;
+    "pre": NodeListOf<HTMLPreElement>;
+    "progress": NodeListOf<HTMLProgressElement>;
+    "q": NodeListOf<HTMLQuoteElement>;
+    "radialgradient": NodeListOf<SVGRadialGradientElement>;
+    "rect": NodeListOf<SVGRectElement>;
+    "rt": NodeListOf<HTMLElement>;
+    "ruby": NodeListOf<HTMLElement>;
+    "s": NodeListOf<HTMLElement>;
+    "samp": NodeListOf<HTMLElement>;
+    "script": NodeListOf<HTMLScriptElement>;
+    "section": NodeListOf<HTMLElement>;
+    "select": NodeListOf<HTMLSelectElement>;
+    "small": NodeListOf<HTMLElement>;
+    "source": NodeListOf<HTMLSourceElement>;
+    "span": NodeListOf<HTMLSpanElement>;
+    "stop": NodeListOf<SVGStopElement>;
+    "strike": NodeListOf<HTMLElement>;
+    "strong": NodeListOf<HTMLElement>;
+    "style": NodeListOf<HTMLStyleElement>;
+    "sub": NodeListOf<HTMLElement>;
+    "sup": NodeListOf<HTMLElement>;
+    "svg": NodeListOf<SVGSVGElement>;
+    "switch": NodeListOf<SVGSwitchElement>;
+    "symbol": NodeListOf<SVGSymbolElement>;
+    "table": NodeListOf<HTMLTableElement>;
+    "tbody": NodeListOf<HTMLTableSectionElement>;
+    "td": NodeListOf<HTMLTableDataCellElement>;
+    "template": NodeListOf<HTMLTemplateElement>;
+    "text": NodeListOf<SVGTextElement>;
+    "textpath": NodeListOf<SVGTextPathElement>;
+    "textarea": NodeListOf<HTMLTextAreaElement>;
+    "tfoot": NodeListOf<HTMLTableSectionElement>;
+    "th": NodeListOf<HTMLTableHeaderCellElement>;
+    "thead": NodeListOf<HTMLTableSectionElement>;
+    "title": NodeListOf<HTMLTitleElement>;
+    "tr": NodeListOf<HTMLTableRowElement>;
+    "track": NodeListOf<HTMLTrackElement>;
+    "tspan": NodeListOf<SVGTSpanElement>;
+    "tt": NodeListOf<HTMLElement>;
+    "u": NodeListOf<HTMLElement>;
+    "ul": NodeListOf<HTMLUListElement>;
+    "use": NodeListOf<SVGUseElement>;
+    "var": NodeListOf<HTMLElement>;
+    "video": NodeListOf<HTMLVideoElement>;
+    "view": NodeListOf<SVGViewElement>;
+    "wbr": NodeListOf<HTMLElement>;
+    "x-ms-webview": NodeListOf<MSHTMLWebViewElement>;
+    "xmp": NodeListOf<HTMLPreElement>;
+}
+
+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; };
+declare var applicationCache: ApplicationCache;
+declare var clientInformation: Navigator;
+declare var closed: boolean;
+declare var crypto: Crypto;
+declare var defaultStatus: string;
+declare var devicePixelRatio: number;
+declare var doNotTrack: string;
+declare var document: Document;
+declare var event: Event | undefined;
+declare var external: External;
+declare var frameElement: Element;
+declare var frames: Window;
+declare var history: History;
+declare var innerHeight: number;
+declare var innerWidth: number;
+declare var length: number;
+declare var location: Location;
+declare var locationbar: BarProp;
+declare var menubar: BarProp;
+declare var msCredentials: MSCredentials;
+declare const name: never;
+declare var navigator: Navigator;
+declare var offscreenBuffering: string | boolean;
+declare var onabort: (this: Window, ev: UIEvent) => any;
+declare var onafterprint: (this: Window, ev: Event) => any;
+declare var onbeforeprint: (this: Window, ev: Event) => any;
+declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
+declare var onblur: (this: Window, ev: FocusEvent) => any;
+declare var oncanplay: (this: Window, ev: Event) => any;
+declare var oncanplaythrough: (this: Window, ev: Event) => any;
+declare var onchange: (this: Window, ev: Event) => any;
+declare var onclick: (this: Window, ev: MouseEvent) => any;
+declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
+declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
+declare var ondblclick: (this: Window, ev: MouseEvent) => any;
+declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
+declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
+declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => 
any;
+declare var ondrag: (this: Window, ev: DragEvent) => any;
+declare var ondragend: (this: Window, ev: DragEvent) => any;
+declare var ondragenter: (this: Window, ev: DragEvent) => any;
+declare var ondragleave: (this: Window, ev: DragEvent) => any;
+declare var ondragover: (this: Window, ev: DragEvent) => any;
+declare var ondragstart: (this: Window, ev: DragEvent) => any;
+declare var ondrop: (this: Window, ev: DragEvent) => any;
+declare var ondurationchange: (this: Window, ev: Event) => any;
+declare var onemptied: (this: Window, ev: Event) => any;
+declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
+declare var onerror: ErrorEventHandler;
+declare var onfocus: (this: Window, ev: FocusEvent) => any;
+declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
+declare var oninput: (this: Window, ev: Event) => any;
+declare var oninvalid: (this: Window, ev: Event) => any;
+declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
+declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
+declare var onload: (this: Window, ev: Event) => any;
+declare var onloadeddata: (this: Window, ev: Event) => any;
+declare var onloadedmetadata: (this: Window, ev: Event) => any;
+declare var onloadstart: (this: Window, ev: Event) => any;
+declare var onmessage: (this: Window, ev: MessageEvent) => any;
+declare var onmousedown: (this: Window, ev: MouseEvent) => any;
+declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
+declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
+declare var onmousemove: (this: Window, ev: MouseEvent) => any;
+declare var onmouseout: (this: Window, ev: MouseEvent) => any;
+declare var onmouseover: (this: Window, ev: MouseEvent) => any;
+declare var onmouseup: (this: Window, ev: MouseEvent) => any;
+declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
+declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
+declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
+declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
+declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
+declare var onoffline: (this: Window, ev: Event) => any;
+declare var ononline: (this: Window, ev: Event) => any;
+declare var onorientationchange: (this: Window, ev: Event) => any;
+declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
+declare var onpause: (this: Window, ev: Event) => any;
+declare var onplay: (this: Window, ev: Event) => any;
+declare var onplaying: (this: Window, ev: Event) => any;
+declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
+declare var onprogress: (this: Window, ev: ProgressEvent) => any;
+declare var onratechange: (this: Window, ev: Event) => any;
+declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
+declare var onreset: (this: Window, ev: Event) => any;
+declare var onresize: (this: Window, ev: UIEvent) => any;
+declare var onscroll: (this: Window, ev: UIEvent) => any;
+declare var onseeked: (this: Window, ev: Event) => any;
+declare var onseeking: (this: Window, ev: Event) => any;
+declare var onselect: (this: Window, ev: UIEvent) => any;
+declare var onstalled: (this: Window, ev: Event) => any;
+declare var onstorage: (this: Window, ev: StorageEvent) => any;
+declare var onsubmit: (this: Window, ev: Event) => any;
+declare var onsuspend: (this: Window, ev: Event) => any;
+declare var ontimeupdate: (this: Window, ev: Event) => any;
+declare var ontouchcancel: (ev: TouchEvent) => any;
+declare var ontouchend: (ev: TouchEvent) => any;
+declare var ontouchmove: (ev: TouchEvent) => any;
+declare var ontouchstart: (ev: TouchEvent) => any;
+declare var onunload: (this: Window, ev: Event) => any;
+declare var onvolumechange: (this: Window, ev: Event) => any;
+declare var onwaiting: (this: Window, ev: Event) => any;
+declare var opener: any;
+declare var orientation: string | number;
+declare var outerHeight: number;
+declare var outerWidth: number;
+declare var pageXOffset: number;
+declare var pageYOffset: number;
+declare var parent: Window;
+declare var performance: Performance;
+declare var personalbar: BarProp;
+declare var screen: Screen;
+declare var screenLeft: number;
+declare var screenTop: number;
+declare var screenX: number;
+declare var screenY: number;
+declare var scrollX: number;
+declare var scrollY: number;
+declare var scrollbars: BarProp;
+declare var self: Window;
+declare var status: string;
+declare var statusbar: BarProp;
+declare var styleMedia: StyleMedia;
+declare var toolbar: BarProp;
+declare var top: Window;
+declare var window: Window;
+declare function alert(message?: any): void;
+declare function blur(): void;
+declare function cancelAnimationFrame(handle: number): void;
+declare function captureEvents(): void;
+declare function close(): void;
+declare function confirm(message?: string): boolean;
+declare function focus(): void;
+declare function getComputedStyle(elt: Element, pseudoElt?: string): 
CSSStyleDeclaration;
+declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): 
CSSRuleList;
+declare function getSelection(): Selection;
+declare function matchMedia(mediaQuery: string): MediaQueryList;
+declare function moveBy(x?: number, y?: number): void;
+declare function moveTo(x?: number, y?: number): void;
+declare function msWriteProfilerMark(profilerMarkName: string): void;
+declare function open(url?: string, target?: string, features?: string, 
replace?: boolean): Window;
+declare function postMessage(message: any, targetOrigin: string, transfer?: 
any[]): void;
+declare function print(): void;
+declare function prompt(message?: string, _default?: string): string | null;
+declare function releaseEvents(): void;
+declare function requestAnimationFrame(callback: FrameRequestCallback): number;
+declare function resizeBy(x?: number, y?: number): void;
+declare function resizeTo(x?: number, y?: number): void;
+declare function scroll(x?: number, y?: number): void;
+declare function scrollBy(x?: number, y?: number): void;
+declare function scrollTo(x?: number, y?: number): void;
+declare function webkitCancelAnimationFrame(handle: number): void;
+declare function webkitConvertPointFromNodeToPage(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitConvertPointFromPageToNode(node: Node, pt: 
WebKitPoint): WebKitPoint;
+declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): 
number;
+declare function scroll(options?: ScrollToOptions): void;
+declare function scrollTo(options?: ScrollToOptions): void;
+declare function scrollBy(options?: ScrollToOptions): void;
+declare function toString(): string;
+declare function dispatchEvent(evt: Event): boolean;
+declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+declare function clearInterval(handle: number): void;
+declare function clearTimeout(handle: number): void;
+declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function clearImmediate(handle: number): void;
+declare function setImmediate(handler: (...args: any[]) => void): number;
+declare function setImmediate(handler: any, ...args: any[]): number;
+declare var sessionStorage: Storage;
+declare var localStorage: Storage;
+declare var console: Console;
+declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
+declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
+declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
+declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
+declare var onpointermove: (this: Window, ev: PointerEvent) => any;
+declare var onpointerout: (this: Window, ev: PointerEvent) => any;
+declare var onpointerover: (this: Window, ev: PointerEvent) => any;
+declare var onpointerup: (this: Window, ev: PointerEvent) => any;
+declare var onwheel: (this: Window, ev: WheelEvent) => any;
+declare var indexedDB: IDBFactory;
+declare function atob(encodedString: string): string;
+declare function btoa(rawString: string): string;
+declare function addEventListener<K extends keyof WindowEventMap>(type: K, 
listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): 
void;
+declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+type AAGUID = string;
+type AlgorithmIdentifier = string | Algorithm;
+type ConstrainBoolean = boolean | ConstrainBooleanParameters;
+type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
+type ConstrainDouble = number | ConstrainDoubleRange;
+type ConstrainLong = number | ConstrainLongRange;
+type CryptoOperationData = ArrayBufferView;
+type GLbitfield = number;
+type GLboolean = boolean;
+type GLbyte = number;
+type GLclampf = number;
+type GLenum = number;
+type GLfloat = number;
+type GLint = number;
+type GLintptr = number;
+type GLshort = number;
+type GLsizei = number;
+type GLsizeiptr = number;
+type GLubyte = number;
+type GLuint = number;
+type GLushort = number;
+type IDBKeyPath = string;
+type KeyFormat = string;
+type KeyType = string;
+type KeyUsage = string;
+type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
+type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
+type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
+type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
+type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
+type payloadtype = number;
+type ScrollBehavior = "auto" | "instant" | "smooth";
+type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
+type IDBValidKey = number | string | Date | IDBArrayKey;
+type BufferSource = ArrayBuffer | ArrayBufferView;
+type MouseWheelEvent = WheelEvent;
 type ScrollRestoration = "auto" | "manual";
 
-
-/////////////////////////////
-/// WorkerGlobalScope APIs 
-/////////////////////////////
-// These are only available in a Web Worker 
-declare function importScripts(...urls: string[]): void;
-
-
-
-
-/////////////////////////////
-/// 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;
-};
-
-/**
- * Allows enumerating over a COM collection, which may not have indexed item 
access.
- */
-interface Enumerator<T> {
-    /**
-     * 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>(collection: any): Enumerator<T>;
-    new (collection: any): Enumerator<any>;
-}
-
-declare var Enumerator: EnumeratorConstructor;
-
-/**
- * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
- */
-interface VBArray<T> {
-    /**
-     * 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>(safeArray: any): VBArray<T>;
-    new (safeArray: any): VBArray<any>;
-}
-
-declare var VBArray: VBArrayConstructor;
-
-/**
- * Automation date (VT_DATE)
- */
-interface VarDate { }
-
-interface DateConstructor {
-    new (vd: VarDate): Date;
-}
-
-interface Date {
-    getVarDate: () => VarDate;
-}
-
-
-/// <reference path="lib.dom.d.ts" />
-
-interface DOMTokenList {
-    [Symbol.iterator](): IterableIterator<string>;
-}
-
-interface NodeList {
-    [Symbol.iterator](): IterableIterator<Node>
-}
-
-interface NodeListOf<TNode extends Node> {
-    [Symbol.iterator](): IterableIterator<TNode>
-}
+
+/////////////////////////////
+/// WorkerGlobalScope APIs 
+/////////////////////////////
+// These are only available in a Web Worker 
+declare function importScripts(...urls: string[]): void;
+
+
+
+
+/////////////////////////////
+/// 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;
+};
+
+/**
+ * Allows enumerating over a COM collection, which may not have indexed item 
access.
+ */
+interface Enumerator<T> {
+    /**
+     * 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>(collection: any): Enumerator<T>;
+    new (collection: any): Enumerator<any>;
+}
+
+declare var Enumerator: EnumeratorConstructor;
+
+/**
+ * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
+ */
+interface VBArray<T> {
+    /**
+     * 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>(safeArray: any): VBArray<T>;
+    new (safeArray: any): VBArray<any>;
+}
+
+declare var VBArray: VBArrayConstructor;
+
+/**
+ * Automation date (VT_DATE)
+ */
+interface VarDate { }
+
+interface DateConstructor {
+    new (vd: VarDate): Date;
+}
+
+interface Date {
+    getVarDate: () => VarDate;
+}
+
+
+/// <reference path="lib.dom.d.ts" />
+
+interface DOMTokenList {
+    [Symbol.iterator](): IterableIterator<string>;
+}
+
+interface NodeList {
+    [Symbol.iterator](): IterableIterator<Node>
+}
+
+interface NodeListOf<TNode extends Node> {
+    [Symbol.iterator](): IterableIterator<TNode>
+}
diff --git a/node_modules/typescript/lib/lib.scripthost.d.ts 
b/node_modules/typescript/lib/lib.scripthost.d.ts
index 2d2f4df..2be78de 100644
--- a/node_modules/typescript/lib/lib.scripthost.d.ts
+++ b/node_modules/typescript/lib/lib.scripthost.d.ts
@@ -1,311 +1,311 @@
-/*! 
*****************************************************************************
-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;
-};
-
-/**
- * Allows enumerating over a COM collection, which may not have indexed item 
access.
- */
-interface Enumerator<T> {
-    /**
-     * 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>(collection: any): Enumerator<T>;
-    new (collection: any): Enumerator<any>;
-}
-
-declare var Enumerator: EnumeratorConstructor;
-
-/**
- * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
- */
-interface VBArray<T> {
-    /**
-     * 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>(safeArray: any): VBArray<T>;
-    new (safeArray: any): VBArray<any>;
-}
-
-declare var VBArray: VBArrayConstructor;
-
-/**
- * Automation date (VT_DATE)
- */
-interface VarDate { }
-
-interface DateConstructor {
-    new (vd: VarDate): Date;
-}
-
-interface Date {
-    getVarDate: () => VarDate;
-}
+/*! 
*****************************************************************************
+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;
+};
+
+/**
+ * Allows enumerating over a COM collection, which may not have indexed item 
access.
+ */
+interface Enumerator<T> {
+    /**
+     * 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>(collection: any): Enumerator<T>;
+    new (collection: any): Enumerator<any>;
+}
+
+declare var Enumerator: EnumeratorConstructor;
+
+/**
+ * Enables reading from a COM safe array, which might have an alternate lower 
bound, or multiple dimensions.
+ */
+interface VBArray<T> {
+    /**
+     * 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>(safeArray: any): VBArray<T>;
+    new (safeArray: any): VBArray<any>;
+}
+
+declare var VBArray: VBArrayConstructor;
+
+/**
+ * Automation date (VT_DATE)
+ */
+interface VarDate { }
+
+interface DateConstructor {
+    new (vd: VarDate): Date;
+}
+
+interface Date {
+    getVarDate: () => VarDate;
+}
diff --git a/node_modules/typescript/lib/lib.webworker.d.ts 
b/node_modules/typescript/lib/lib.webworker.d.ts
index 97eb981..4ee2566 100644
--- a/node_modules/typescript/lib/lib.webworker.d.ts
+++ b/node_modules/typescript/lib/lib.webworker.d.ts
@@ -1,1274 +1,1274 @@
-/*! 
*****************************************************************************
-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"/>
-
-
-
-/////////////////////////////
-/// IE Worker APIs
-/////////////////////////////
-
-interface Algorithm {
-    name: string;
-}
-
-interface EventInit {
-    scoped?: boolean;
-    bubbles?: boolean;
-    cancelable?: boolean;
-}
-
-interface IDBIndexParameters {
-    multiEntry?: boolean;
-    unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
-    autoIncrement?: boolean;
-    keyPath?: IDBKeyPath;
-}
-
-interface KeyAlgorithm {
-    name?: string;
-}
-
-interface EventListener {
-    (evt: Event): void;
-}
-
-interface AudioBuffer {
-    readonly duration: number;
-    readonly length: number;
-    readonly numberOfChannels: number;
-    readonly sampleRate: number;
-    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
-    getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
-    prototype: AudioBuffer;
-    new(): AudioBuffer;
-}
-
-interface Blob {
-    readonly size: number;
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-    slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
-    prototype: Blob;
-    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
-
-interface CloseEvent extends Event {
-    readonly code: number;
-    readonly reason: string;
-    readonly wasClean: boolean;
-    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
-    prototype: CloseEvent;
-    new(): CloseEvent;
-}
-
-interface Console {
-    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
-    clear(): void;
-    count(countTitle?: string): void;
-    debug(message?: string, ...optionalParams: any[]): void;
-    dir(value?: any, ...optionalParams: any[]): void;
-    dirxml(value: any): void;
-    error(message?: any, ...optionalParams: any[]): void;
-    exception(message?: string, ...optionalParams: any[]): void;
-    group(groupTitle?: string): void;
-    groupCollapsed(groupTitle?: string): void;
-    groupEnd(): void;
-    info(message?: any, ...optionalParams: any[]): void;
-    log(message?: any, ...optionalParams: any[]): void;
-    msIsIndependentlyComposed(element: any): boolean;
-    profile(reportName?: string): void;
-    profileEnd(): void;
-    select(element: any): void;
-    table(...data: any[]): void;
-    time(timerName?: string): void;
-    timeEnd(timerName?: string): void;
-    trace(message?: any, ...optionalParams: any[]): void;
-    warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
-    prototype: Console;
-    new(): Console;
-}
-
-interface Coordinates {
-    readonly accuracy: number;
-    readonly altitude: number | null;
-    readonly altitudeAccuracy: number | null;
-    readonly heading: number | null;
-    readonly latitude: number;
-    readonly longitude: number;
-    readonly speed: number | null;
-}
-
-declare var Coordinates: {
-    prototype: Coordinates;
-    new(): Coordinates;
-}
-
-interface CryptoKey {
-    readonly algorithm: KeyAlgorithm;
-    readonly extractable: boolean;
-    readonly type: string;
-    readonly usages: string[];
-}
-
-declare var CryptoKey: {
-    prototype: CryptoKey;
-    new(): CryptoKey;
-}
-
-interface DOMError {
-    readonly name: string;
-    toString(): string;
-}
-
-declare var DOMError: {
-    prototype: DOMError;
-    new(): DOMError;
-}
-
-interface DOMException {
-    readonly code: number;
-    readonly message: string;
-    readonly name: string;
-    toString(): string;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
-    prototype: DOMException;
-    new(): DOMException;
-    readonly ABORT_ERR: number;
-    readonly DATA_CLONE_ERR: number;
-    readonly DOMSTRING_SIZE_ERR: number;
-    readonly HIERARCHY_REQUEST_ERR: number;
-    readonly INDEX_SIZE_ERR: number;
-    readonly INUSE_ATTRIBUTE_ERR: number;
-    readonly INVALID_ACCESS_ERR: number;
-    readonly INVALID_CHARACTER_ERR: number;
-    readonly INVALID_MODIFICATION_ERR: number;
-    readonly INVALID_NODE_TYPE_ERR: number;
-    readonly INVALID_STATE_ERR: number;
-    readonly NAMESPACE_ERR: number;
-    readonly NETWORK_ERR: number;
-    readonly NOT_FOUND_ERR: number;
-    readonly NOT_SUPPORTED_ERR: number;
-    readonly NO_DATA_ALLOWED_ERR: number;
-    readonly NO_MODIFICATION_ALLOWED_ERR: number;
-    readonly PARSE_ERR: number;
-    readonly QUOTA_EXCEEDED_ERR: number;
-    readonly SECURITY_ERR: number;
-    readonly SERIALIZE_ERR: number;
-    readonly SYNTAX_ERR: number;
-    readonly TIMEOUT_ERR: number;
-    readonly TYPE_MISMATCH_ERR: number;
-    readonly URL_MISMATCH_ERR: number;
-    readonly VALIDATION_ERR: number;
-    readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMStringList {
-    readonly length: number;
-    contains(str: string): boolean;
-    item(index: number): string | null;
-    [index: number]: string;
-}
-
-declare var DOMStringList: {
-    prototype: DOMStringList;
-    new(): DOMStringList;
-}
-
-interface ErrorEvent extends Event {
-    readonly colno: number;
-    readonly error: any;
-    readonly filename: string;
-    readonly lineno: number;
-    readonly message: string;
-    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
-    prototype: ErrorEvent;
-    new(): ErrorEvent;
-}
-
-interface Event {
-    readonly bubbles: boolean;
-    cancelBubble: boolean;
-    readonly cancelable: boolean;
-    readonly currentTarget: EventTarget;
-    readonly defaultPrevented: boolean;
-    readonly eventPhase: number;
-    readonly isTrusted: boolean;
-    returnValue: boolean;
-    readonly srcElement: any;
-    readonly target: EventTarget;
-    readonly timeStamp: number;
-    readonly type: string;
-    readonly scoped: boolean;
-    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
-    preventDefault(): void;
-    stopImmediatePropagation(): void;
-    stopPropagation(): void;
-    deepPath(): EventTarget[];
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-declare var Event: {
-    prototype: Event;
-    new(type: string, eventInitDict?: EventInit): Event;
-    readonly AT_TARGET: number;
-    readonly BUBBLING_PHASE: number;
-    readonly CAPTURING_PHASE: number;
-}
-
-interface EventTarget {
-    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-    dispatchEvent(evt: Event): boolean;
-    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var EventTarget: {
-    prototype: EventTarget;
-    new(): EventTarget;
-}
-
-interface File extends Blob {
-    readonly lastModifiedDate: any;
-    readonly name: string;
-    readonly webkitRelativePath: string;
-}
-
-declare var File: {
-    prototype: File;
-    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
-}
-
-interface FileList {
-    readonly length: number;
-    item(index: number): File;
-    [index: number]: File;
-}
-
-declare var FileList: {
-    prototype: FileList;
-    new(): FileList;
-}
-
-interface FileReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(blob: Blob): void;
-    readAsBinaryString(blob: Blob): void;
-    readAsDataURL(blob: Blob): void;
-    readAsText(blob: Blob, encoding?: string): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var FileReader: {
-    prototype: FileReader;
-    new(): FileReader;
-}
-
-interface IDBCursor {
-    readonly direction: string;
-    key: IDBKeyRange | IDBValidKey;
-    readonly primaryKey: any;
-    source: IDBObjectStore | IDBIndex;
-    advance(count: number): void;
-    continue(key?: IDBKeyRange | IDBValidKey): void;
-    delete(): IDBRequest;
-    update(value: any): IDBRequest;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-declare var IDBCursor: {
-    prototype: IDBCursor;
-    new(): IDBCursor;
-    readonly NEXT: string;
-    readonly NEXT_NO_DUPLICATE: string;
-    readonly PREV: string;
-    readonly PREV_NO_DUPLICATE: string;
-}
-
-interface IDBCursorWithValue extends IDBCursor {
-    readonly value: any;
-}
-
-declare var IDBCursorWithValue: {
-    prototype: IDBCursorWithValue;
-    new(): IDBCursorWithValue;
-}
-
-interface IDBDatabaseEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBDatabase extends EventTarget {
-    readonly name: string;
-    readonly objectStoreNames: DOMStringList;
-    onabort: (this: IDBDatabase, ev: Event) => any;
-    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
-    version: number;
-    onversionchange: (ev: IDBVersionChangeEvent) => any;
-    close(): void;
-    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
-    deleteObjectStore(name: string): void;
-    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
-    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
-    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBDatabase: {
-    prototype: IDBDatabase;
-    new(): IDBDatabase;
-}
-
-interface IDBFactory {
-    cmp(first: any, second: any): number;
-    deleteDatabase(name: string): IDBOpenDBRequest;
-    open(name: string, version?: number): IDBOpenDBRequest;
-}
-
-declare var IDBFactory: {
-    prototype: IDBFactory;
-    new(): IDBFactory;
-}
-
-interface IDBIndex {
-    keyPath: string | string[];
-    readonly name: string;
-    readonly objectStore: IDBObjectStore;
-    readonly unique: boolean;
-    multiEntry: boolean;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-}
-
-declare var IDBIndex: {
-    prototype: IDBIndex;
-    new(): IDBIndex;
-}
-
-interface IDBKeyRange {
-    readonly lower: any;
-    readonly lowerOpen: boolean;
-    readonly upper: any;
-    readonly upperOpen: boolean;
-}
-
-declare var IDBKeyRange: {
-    prototype: IDBKeyRange;
-    new(): IDBKeyRange;
-    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
-    lowerBound(lower: any, open?: boolean): IDBKeyRange;
-    only(value: any): IDBKeyRange;
-    upperBound(upper: any, open?: boolean): IDBKeyRange;
-}
-
-interface IDBObjectStore {
-    readonly indexNames: DOMStringList;
-    keyPath: string | string[];
-    readonly name: string;
-    readonly transaction: IDBTransaction;
-    autoIncrement: boolean;
-    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    clear(): IDBRequest;
-    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
-    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
-    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
-    deleteIndex(indexName: string): void;
-    get(key: any): IDBRequest;
-    index(name: string): IDBIndex;
-    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
-    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-}
-
-declare var IDBObjectStore: {
-    prototype: IDBObjectStore;
-    new(): IDBObjectStore;
-}
-
-interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
-    "blocked": Event;
-    "upgradeneeded": IDBVersionChangeEvent;
-}
-
-interface IDBOpenDBRequest extends IDBRequest {
-    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
-    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
-    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBOpenDBRequest: {
-    prototype: IDBOpenDBRequest;
-    new(): IDBOpenDBRequest;
-}
-
-interface IDBRequestEventMap {
-    "error": ErrorEvent;
-    "success": Event;
-}
-
-interface IDBRequest extends EventTarget {
-    readonly error: DOMError;
-    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
-    onsuccess: (this: IDBRequest, ev: Event) => any;
-    readonly readyState: string;
-    readonly result: any;
-    source: IDBObjectStore | IDBIndex | IDBCursor;
-    readonly transaction: IDBTransaction;
-    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBRequest: {
-    prototype: IDBRequest;
-    new(): IDBRequest;
-}
-
-interface IDBTransactionEventMap {
-    "abort": Event;
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface IDBTransaction extends EventTarget {
-    readonly db: IDBDatabase;
-    readonly error: DOMError;
-    readonly mode: string;
-    onabort: (this: IDBTransaction, ev: Event) => any;
-    oncomplete: (this: IDBTransaction, ev: Event) => any;
-    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
-    abort(): void;
-    objectStore(name: string): IDBObjectStore;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBTransaction: {
-    prototype: IDBTransaction;
-    new(): IDBTransaction;
-    readonly READ_ONLY: string;
-    readonly READ_WRITE: string;
-    readonly VERSION_CHANGE: string;
-}
-
-interface IDBVersionChangeEvent extends Event {
-    readonly newVersion: number | null;
-    readonly oldVersion: number;
-}
-
-declare var IDBVersionChangeEvent: {
-    prototype: IDBVersionChangeEvent;
-    new(): IDBVersionChangeEvent;
-}
-
-interface ImageData {
-    data: Uint8ClampedArray;
-    readonly height: number;
-    readonly width: number;
-}
-
-declare var ImageData: {
-    prototype: ImageData;
-    new(width: number, height: number): ImageData;
-    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
-}
-
-interface MSApp {
-    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
-    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
-    createDataPackage(object: any): any;
-    createDataPackageFromSelection(): any;
-    createFileFromStorageFile(storageFile: any): File;
-    createStreamFromInputStream(type: string, inputStream: any): MSStream;
-    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
-    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
-    getCurrentPriority(): string;
-    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
-    getViewId(view: any): any;
-    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
-    pageHandlesAllApplicationActivations(enabled: boolean): void;
-    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
-    terminateApp(exceptionObject: any): void;
-    readonly CURRENT: string;
-    readonly HIGH: string;
-    readonly IDLE: string;
-    readonly NORMAL: string;
-}
-declare var MSApp: MSApp;
-
-interface MSAppAsyncOperationEventMap {
-    "complete": Event;
-    "error": ErrorEvent;
-}
-
-interface MSAppAsyncOperation extends EventTarget {
-    readonly error: DOMError;
-    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
-    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    start(): void;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSAppAsyncOperation: {
-    prototype: MSAppAsyncOperation;
-    new(): MSAppAsyncOperation;
-    readonly COMPLETED: number;
-    readonly ERROR: number;
-    readonly STARTED: number;
-}
-
-interface MSBlobBuilder {
-    append(data: any, endings?: string): void;
-    getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
-    prototype: MSBlobBuilder;
-    new(): MSBlobBuilder;
-}
-
-interface MSStream {
-    readonly type: string;
-    msClose(): void;
-    msDetachStream(): any;
-}
-
-declare var MSStream: {
-    prototype: MSStream;
-    new(): MSStream;
-}
-
-interface MSStreamReader extends EventTarget, MSBaseReader {
-    readonly error: DOMError;
-    readAsArrayBuffer(stream: MSStream, size?: number): void;
-    readAsBinaryString(stream: MSStream, size?: number): void;
-    readAsBlob(stream: MSStream, size?: number): void;
-    readAsDataURL(stream: MSStream, size?: number): void;
-    readAsText(stream: MSStream, encoding?: string, size?: number): void;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSStreamReader: {
-    prototype: MSStreamReader;
-    new(): MSStreamReader;
-}
-
-interface MediaQueryList {
-    readonly matches: boolean;
-    readonly media: string;
-    addListener(listener: MediaQueryListListener): void;
-    removeListener(listener: MediaQueryListListener): void;
-}
-
-declare var MediaQueryList: {
-    prototype: MediaQueryList;
-    new(): MediaQueryList;
-}
-
-interface MessageChannel {
-    readonly port1: MessagePort;
-    readonly port2: MessagePort;
-}
-
-declare var MessageChannel: {
-    prototype: MessageChannel;
-    new(): MessageChannel;
-}
-
-interface MessageEvent extends Event {
-    readonly data: any;
-    readonly origin: string;
-    readonly ports: any;
-    readonly source: any;
-    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
any): void;
-}
-
-declare var MessageEvent: {
-    prototype: MessageEvent;
-    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
-}
-
-interface MessagePortEventMap {
-    "message": MessageEvent;
-}
-
-interface MessagePort extends EventTarget {
-    onmessage: (this: MessagePort, ev: MessageEvent) => any;
-    close(): void;
-    postMessage(message?: any, ports?: any): void;
-    start(): void;
-    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MessagePort: {
-    prototype: MessagePort;
-    new(): MessagePort;
-}
-
-interface Position {
-    readonly coords: Coordinates;
-    readonly timestamp: number;
-}
-
-declare var Position: {
-    prototype: Position;
-    new(): Position;
-}
-
-interface PositionError {
-    readonly code: number;
-    readonly message: string;
-    toString(): string;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-declare var PositionError: {
-    prototype: PositionError;
-    new(): PositionError;
-    readonly PERMISSION_DENIED: number;
-    readonly POSITION_UNAVAILABLE: number;
-    readonly TIMEOUT: number;
-}
-
-interface ProgressEvent extends Event {
-    readonly lengthComputable: boolean;
-    readonly loaded: number;
-    readonly total: number;
-    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
-}
-
-declare var ProgressEvent: {
-    prototype: ProgressEvent;
-    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
-}
-
-interface WebSocketEventMap {
-    "close": CloseEvent;
-    "error": ErrorEvent;
-    "message": MessageEvent;
-    "open": Event;
-}
-
-interface WebSocket extends EventTarget {
-    binaryType: string;
-    readonly bufferedAmount: number;
-    readonly extensions: string;
-    onclose: (this: WebSocket, ev: CloseEvent) => any;
-    onerror: (this: WebSocket, ev: ErrorEvent) => any;
-    onmessage: (this: WebSocket, ev: MessageEvent) => any;
-    onopen: (this: WebSocket, ev: Event) => any;
-    readonly protocol: string;
-    readonly readyState: number;
-    readonly url: string;
-    close(code?: number, reason?: string): void;
-    send(data: any): void;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WebSocket: {
-    prototype: WebSocket;
-    new(url: string, protocols?: string | string[]): WebSocket;
-    readonly CLOSED: number;
-    readonly CLOSING: number;
-    readonly CONNECTING: number;
-    readonly OPEN: number;
-}
-
-interface WorkerEventMap extends AbstractWorkerEventMap {
-    "message": MessageEvent;
-}
-
-interface Worker extends EventTarget, AbstractWorker {
-    onmessage: (this: Worker, ev: MessageEvent) => any;
-    postMessage(message: any, ports?: any): void;
-    terminate(): void;
-    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Worker: {
-    prototype: Worker;
-    new(stringUrl: string): Worker;
-}
-
-interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
-    "readystatechange": Event;
-}
-
-interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
-    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
-    readonly readyState: number;
-    readonly response: any;
-    readonly responseText: string;
-    responseType: string;
-    readonly responseXML: any;
-    readonly status: number;
-    readonly statusText: string;
-    timeout: number;
-    readonly upload: XMLHttpRequestUpload;
-    withCredentials: boolean;
-    msCaching?: string;
-    readonly responseURL: string;
-    abort(): void;
-    getAllResponseHeaders(): string;
-    getResponseHeader(header: string): string | null;
-    msCachingEnabled(): boolean;
-    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
-    overrideMimeType(mime: string): void;
-    send(data?: string): void;
-    send(data?: any): void;
-    setRequestHeader(header: string, value: string): void;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequest: {
-    prototype: XMLHttpRequest;
-    new(): XMLHttpRequest;
-    readonly DONE: number;
-    readonly HEADERS_RECEIVED: number;
-    readonly LOADING: number;
-    readonly OPENED: number;
-    readonly UNSENT: number;
-    create(): XMLHttpRequest;
-}
-
-interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequestUpload: {
-    prototype: XMLHttpRequestUpload;
-    new(): XMLHttpRequestUpload;
-}
-
-interface AbstractWorkerEventMap {
-    "error": ErrorEvent;
-}
-
-interface AbstractWorker {
-    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
-    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface MSBaseReaderEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-}
-
-interface MSBaseReader {
-    onabort: (this: MSBaseReader, ev: Event) => any;
-    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
-    onload: (this: MSBaseReader, ev: Event) => any;
-    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
-    onloadstart: (this: MSBaseReader, ev: Event) => any;
-    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
-    readonly readyState: number;
-    readonly result: any;
-    abort(): void;
-    readonly DONE: number;
-    readonly EMPTY: number;
-    readonly LOADING: number;
-    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface NavigatorID {
-    readonly appName: string;
-    readonly appVersion: string;
-    readonly platform: string;
-    readonly product: string;
-    readonly productSub: string;
-    readonly userAgent: string;
-    readonly vendor: string;
-    readonly vendorSub: string;
-}
-
-interface NavigatorOnLine {
-    readonly onLine: boolean;
-}
-
-interface WindowBase64 {
-    atob(encodedString: string): string;
-    btoa(rawString: string): string;
-}
-
-interface WindowConsole {
-    readonly console: Console;
-}
-
-interface XMLHttpRequestEventTargetEventMap {
-    "abort": Event;
-    "error": ErrorEvent;
-    "load": Event;
-    "loadend": ProgressEvent;
-    "loadstart": Event;
-    "progress": ProgressEvent;
-    "timeout": ProgressEvent;
-}
-
-interface XMLHttpRequestEventTarget {
-    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
-    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
-    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
-    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface FileReaderSync {
-    readAsArrayBuffer(blob: Blob): any;
-    readAsBinaryString(blob: Blob): void;
-    readAsDataURL(blob: Blob): string;
-    readAsText(blob: Blob, encoding?: string): string;
-}
-
-declare var FileReaderSync: {
-    prototype: FileReaderSync;
-    new(): FileReaderSync;
-}
-
-interface WorkerGlobalScopeEventMap extends DedicatedWorkerGlobalScopeEventMap 
{
-    "error": ErrorEvent;
-}
-
-interface WorkerGlobalScope extends EventTarget, WorkerUtils, 
DedicatedWorkerGlobalScope, WindowConsole {
-    readonly location: WorkerLocation;
-    onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any;
-    readonly self: WorkerGlobalScope;
-    close(): void;
-    msWriteProfilerMark(profilerMarkName: string): void;
-    toString(): string;
-    addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, 
listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, 
useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WorkerGlobalScope: {
-    prototype: WorkerGlobalScope;
-    new(): WorkerGlobalScope;
-}
-
-interface WorkerLocation {
-    readonly hash: string;
-    readonly host: string;
-    readonly hostname: string;
-    readonly href: string;
-    readonly pathname: string;
-    readonly port: string;
-    readonly protocol: string;
-    readonly search: string;
-    toString(): string;
-}
-
-declare var WorkerLocation: {
-    prototype: WorkerLocation;
-    new(): WorkerLocation;
-}
-
-interface WorkerNavigator extends Object, NavigatorID, NavigatorOnLine {
-    readonly hardwareConcurrency: number;
-}
-
-declare var WorkerNavigator: {
-    prototype: WorkerNavigator;
-    new(): WorkerNavigator;
-}
-
-interface DedicatedWorkerGlobalScopeEventMap {
-    "message": MessageEvent;
-}
-
-interface DedicatedWorkerGlobalScope {
-    onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any;
-    postMessage(data: any): void;
-    addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: 
K, listener: (this: DedicatedWorkerGlobalScope, ev: 
DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
-    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface WorkerUtils extends Object, WindowBase64 {
-    readonly indexedDB: IDBFactory;
-    readonly msIndexedDB: IDBFactory;
-    readonly navigator: WorkerNavigator;
-    clearImmediate(handle: number): void;
-    clearInterval(handle: number): void;
-    clearTimeout(handle: number): void;
-    importScripts(...urls: string[]): void;
-    setImmediate(handler: (...args: any[]) => void): number;
-    setImmediate(handler: any, ...args: any[]): number;
-    setInterval(handler: (...args: any[]) => void, timeout: number): number;
-    setInterval(handler: any, timeout?: any, ...args: any[]): number;
-    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
-    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-}
-
-interface BlobPropertyBag {
-    type?: string;
-    endings?: string;
-}
-
-interface FilePropertyBag {
-    type?: string;
-    lastModified?: number;
-}
-
-interface EventListenerObject {
-    handleEvent(evt: Event): void;
-}
-
-interface MessageEventInit extends EventInit {
-    data?: any;
-    origin?: string;
-    lastEventId?: string;
-    channel?: string;
-    source?: any;
-    ports?: MessagePort[];
-}
-
-interface ProgressEventInit extends EventInit {
-    lengthComputable?: boolean;
-    loaded?: number;
-    total?: number;
-}
-
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
-interface RsaKeyGenParams extends Algorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
-    modulusLength: number;
-    publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaHashedImportParams {
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaPssParams {
-    saltLength: number;
-}
-
-interface RsaOaepParams extends Algorithm {
-    label?: BufferSource;
-}
-
-interface EcdsaParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-}
-
-interface EcKeyGenParams extends Algorithm {
-    namedCurve: string;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
-    typedCurve: string;
-}
-
-interface EcKeyImportParams {
-    namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface AesCtrParams extends Algorithm {
-    counter: BufferSource;
-    length: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
-    length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
-    length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
-    length: number;
-}
-
-interface AesCbcParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface AesCmacParams extends Algorithm {
-    length: number;
-}
-
-interface AesGcmParams extends Algorithm {
-    iv: BufferSource;
-    additionalData?: BufferSource;
-    tagLength?: number;
-}
-
-interface AesCfbParams extends Algorithm {
-    iv: BufferSource;
-}
-
-interface HmacImportParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
-    hash: AlgorithmIdentifier;
-    length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    length?: number;
-}
-
-interface DhKeyGenParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
-    public: CryptoKey;
-}
-
-interface DhImportKeyParams extends Algorithm {
-    prime: Uint8Array;
-    generator: Uint8Array;
-}
-
-interface ConcatParams extends Algorithm {
-    hash?: AlgorithmIdentifier;
-    algorithmId: Uint8Array;
-    partyUInfo: Uint8Array;
-    partyVInfo: Uint8Array;
-    publicInfo?: Uint8Array;
-    privateInfo?: Uint8Array;
-}
-
-interface HkdfCtrParams extends Algorithm {
-    hash: AlgorithmIdentifier;
-    label: BufferSource;
-    context: BufferSource;
-}
-
-interface Pbkdf2Params extends Algorithm {
-    salt: BufferSource;
-    iterations: number;
-    hash: AlgorithmIdentifier;
-}
-
-interface RsaOtherPrimesInfo {
-    r: string;
-    d: string;
-    t: string;
-}
-
-interface JsonWebKey {
-    kty: string;
-    use?: string;
-    key_ops?: string[];
-    alg?: string;
-    kid?: string;
-    x5u?: string;
-    x5c?: string;
-    x5t?: string;
-    ext?: boolean;
-    crv?: string;
-    x?: string;
-    y?: string;
-    d?: string;
-    n?: string;
-    e?: string;
-    p?: string;
-    q?: string;
-    dp?: string;
-    dq?: string;
-    qi?: string;
-    oth?: RsaOtherPrimesInfo[];
-    k?: string;
-}
-
-declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
-
-interface ErrorEventHandler {
-    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
-}
-interface PositionCallback {
-    (position: Position): void;
-}
-interface PositionErrorCallback {
-    (error: PositionError): void;
-}
-interface MediaQueryListListener {
-    (mql: MediaQueryList): void;
-}
-interface MSLaunchUriCallback {
-    (): void;
-}
-interface MSUnsafeFunctionCallback {
-    (): any;
-}
-interface MSExecAtPriorityFunctionCallback {
-    (...args: any[]): any;
-}
-interface DecodeSuccessCallback {
-    (decodedData: AudioBuffer): void;
-}
-interface DecodeErrorCallback {
-    (error: DOMException): void;
-}
-interface FunctionStringCallback {
-    (data: string): void;
-}
-declare var location: WorkerLocation;
-declare var onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any;
-declare var self: WorkerGlobalScope;
-declare function close(): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function toString(): string;
-declare function dispatchEvent(evt: Event): boolean;
-declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare var indexedDB: IDBFactory;
-declare var msIndexedDB: IDBFactory;
-declare var navigator: WorkerNavigator;
-declare function clearImmediate(handle: number): void;
-declare function clearInterval(handle: number): void;
-declare function clearTimeout(handle: number): void;
-declare function importScripts(...urls: string[]): void;
-declare function setImmediate(handler: (...args: any[]) => void): number;
-declare function setImmediate(handler: any, ...args: any[]): number;
-declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
-declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
-declare function atob(encodedString: string): string;
-declare function btoa(rawString: string): string;
-declare var onmessage: (this: WorkerGlobalScope, ev: MessageEvent) => any;
-declare function postMessage(data: any): void;
-declare var console: Console;
-declare function addEventListener<K extends keyof 
WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: 
WorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
-declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
-type AlgorithmIdentifier = string | Algorithm;
-type IDBKeyPath = string;
-type IDBValidKey = number | string | Date | IDBArrayKey;
+/*! 
*****************************************************************************
+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"/>
+
+
+
+/////////////////////////////
+/// IE Worker APIs
+/////////////////////////////
+
+interface Algorithm {
+    name: string;
+}
+
+interface EventInit {
+    scoped?: boolean;
+    bubbles?: boolean;
+    cancelable?: boolean;
+}
+
+interface IDBIndexParameters {
+    multiEntry?: boolean;
+    unique?: boolean;
+}
+
+interface IDBObjectStoreParameters {
+    autoIncrement?: boolean;
+    keyPath?: IDBKeyPath;
+}
+
+interface KeyAlgorithm {
+    name?: string;
+}
+
+interface EventListener {
+    (evt: Event): void;
+}
+
+interface AudioBuffer {
+    readonly duration: number;
+    readonly length: number;
+    readonly numberOfChannels: number;
+    readonly sampleRate: number;
+    copyFromChannel(destination: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    copyToChannel(source: Float32Array, channelNumber: number, 
startInChannel?: number): void;
+    getChannelData(channel: number): Float32Array;
+}
+
+declare var AudioBuffer: {
+    prototype: AudioBuffer;
+    new(): AudioBuffer;
+}
+
+interface Blob {
+    readonly size: number;
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+    slice(start?: number, end?: number, contentType?: string): Blob;
+}
+
+declare var Blob: {
+    prototype: Blob;
+    new (blobParts?: any[], options?: BlobPropertyBag): Blob;
+}
+
+interface CloseEvent extends Event {
+    readonly code: number;
+    readonly reason: string;
+    readonly wasClean: boolean;
+    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
+}
+
+declare var CloseEvent: {
+    prototype: CloseEvent;
+    new(): CloseEvent;
+}
+
+interface Console {
+    assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
+    clear(): void;
+    count(countTitle?: string): void;
+    debug(message?: string, ...optionalParams: any[]): void;
+    dir(value?: any, ...optionalParams: any[]): void;
+    dirxml(value: any): void;
+    error(message?: any, ...optionalParams: any[]): void;
+    exception(message?: string, ...optionalParams: any[]): void;
+    group(groupTitle?: string): void;
+    groupCollapsed(groupTitle?: string): void;
+    groupEnd(): void;
+    info(message?: any, ...optionalParams: any[]): void;
+    log(message?: any, ...optionalParams: any[]): void;
+    msIsIndependentlyComposed(element: any): boolean;
+    profile(reportName?: string): void;
+    profileEnd(): void;
+    select(element: any): void;
+    table(...data: any[]): void;
+    time(timerName?: string): void;
+    timeEnd(timerName?: string): void;
+    trace(message?: any, ...optionalParams: any[]): void;
+    warn(message?: any, ...optionalParams: any[]): void;
+}
+
+declare var Console: {
+    prototype: Console;
+    new(): Console;
+}
+
+interface Coordinates {
+    readonly accuracy: number;
+    readonly altitude: number | null;
+    readonly altitudeAccuracy: number | null;
+    readonly heading: number | null;
+    readonly latitude: number;
+    readonly longitude: number;
+    readonly speed: number | null;
+}
+
+declare var Coordinates: {
+    prototype: Coordinates;
+    new(): Coordinates;
+}
+
+interface CryptoKey {
+    readonly algorithm: KeyAlgorithm;
+    readonly extractable: boolean;
+    readonly type: string;
+    readonly usages: string[];
+}
+
+declare var CryptoKey: {
+    prototype: CryptoKey;
+    new(): CryptoKey;
+}
+
+interface DOMError {
+    readonly name: string;
+    toString(): string;
+}
+
+declare var DOMError: {
+    prototype: DOMError;
+    new(): DOMError;
+}
+
+interface DOMException {
+    readonly code: number;
+    readonly message: string;
+    readonly name: string;
+    toString(): string;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+declare var DOMException: {
+    prototype: DOMException;
+    new(): DOMException;
+    readonly ABORT_ERR: number;
+    readonly DATA_CLONE_ERR: number;
+    readonly DOMSTRING_SIZE_ERR: number;
+    readonly HIERARCHY_REQUEST_ERR: number;
+    readonly INDEX_SIZE_ERR: number;
+    readonly INUSE_ATTRIBUTE_ERR: number;
+    readonly INVALID_ACCESS_ERR: number;
+    readonly INVALID_CHARACTER_ERR: number;
+    readonly INVALID_MODIFICATION_ERR: number;
+    readonly INVALID_NODE_TYPE_ERR: number;
+    readonly INVALID_STATE_ERR: number;
+    readonly NAMESPACE_ERR: number;
+    readonly NETWORK_ERR: number;
+    readonly NOT_FOUND_ERR: number;
+    readonly NOT_SUPPORTED_ERR: number;
+    readonly NO_DATA_ALLOWED_ERR: number;
+    readonly NO_MODIFICATION_ALLOWED_ERR: number;
+    readonly PARSE_ERR: number;
+    readonly QUOTA_EXCEEDED_ERR: number;
+    readonly SECURITY_ERR: number;
+    readonly SERIALIZE_ERR: number;
+    readonly SYNTAX_ERR: number;
+    readonly TIMEOUT_ERR: number;
+    readonly TYPE_MISMATCH_ERR: number;
+    readonly URL_MISMATCH_ERR: number;
+    readonly VALIDATION_ERR: number;
+    readonly WRONG_DOCUMENT_ERR: number;
+}
+
+interface DOMStringList {
+    readonly length: number;
+    contains(str: string): boolean;
+    item(index: number): string | null;
+    [index: number]: string;
+}
+
+declare var DOMStringList: {
+    prototype: DOMStringList;
+    new(): DOMStringList;
+}
+
+interface ErrorEvent extends Event {
+    readonly colno: number;
+    readonly error: any;
+    readonly filename: string;
+    readonly lineno: number;
+    readonly message: string;
+    initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
+}
+
+declare var ErrorEvent: {
+    prototype: ErrorEvent;
+    new(): ErrorEvent;
+}
+
+interface Event {
+    readonly bubbles: boolean;
+    cancelBubble: boolean;
+    readonly cancelable: boolean;
+    readonly currentTarget: EventTarget;
+    readonly defaultPrevented: boolean;
+    readonly eventPhase: number;
+    readonly isTrusted: boolean;
+    returnValue: boolean;
+    readonly srcElement: any;
+    readonly target: EventTarget;
+    readonly timeStamp: number;
+    readonly type: string;
+    readonly scoped: boolean;
+    initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean): void;
+    preventDefault(): void;
+    stopImmediatePropagation(): void;
+    stopPropagation(): void;
+    deepPath(): EventTarget[];
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+declare var Event: {
+    prototype: Event;
+    new(type: string, eventInitDict?: EventInit): Event;
+    readonly AT_TARGET: number;
+    readonly BUBBLING_PHASE: number;
+    readonly CAPTURING_PHASE: number;
+}
+
+interface EventTarget {
+    addEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+    dispatchEvent(evt: Event): boolean;
+    removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var EventTarget: {
+    prototype: EventTarget;
+    new(): EventTarget;
+}
+
+interface File extends Blob {
+    readonly lastModifiedDate: any;
+    readonly name: string;
+    readonly webkitRelativePath: string;
+}
+
+declare var File: {
+    prototype: File;
+    new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: 
string, properties?: FilePropertyBag): File;
+}
+
+interface FileList {
+    readonly length: number;
+    item(index: number): File;
+    [index: number]: File;
+}
+
+declare var FileList: {
+    prototype: FileList;
+    new(): FileList;
+}
+
+interface FileReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(blob: Blob): void;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): void;
+    readAsText(blob: Blob, encoding?: string): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var FileReader: {
+    prototype: FileReader;
+    new(): FileReader;
+}
+
+interface IDBCursor {
+    readonly direction: string;
+    key: IDBKeyRange | IDBValidKey;
+    readonly primaryKey: any;
+    source: IDBObjectStore | IDBIndex;
+    advance(count: number): void;
+    continue(key?: IDBKeyRange | IDBValidKey): void;
+    delete(): IDBRequest;
+    update(value: any): IDBRequest;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+declare var IDBCursor: {
+    prototype: IDBCursor;
+    new(): IDBCursor;
+    readonly NEXT: string;
+    readonly NEXT_NO_DUPLICATE: string;
+    readonly PREV: string;
+    readonly PREV_NO_DUPLICATE: string;
+}
+
+interface IDBCursorWithValue extends IDBCursor {
+    readonly value: any;
+}
+
+declare var IDBCursorWithValue: {
+    prototype: IDBCursorWithValue;
+    new(): IDBCursorWithValue;
+}
+
+interface IDBDatabaseEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBDatabase extends EventTarget {
+    readonly name: string;
+    readonly objectStoreNames: DOMStringList;
+    onabort: (this: IDBDatabase, ev: Event) => any;
+    onerror: (this: IDBDatabase, ev: ErrorEvent) => any;
+    version: number;
+    onversionchange: (ev: IDBVersionChangeEvent) => any;
+    close(): void;
+    createObjectStore(name: string, optionalParameters?: 
IDBObjectStoreParameters): IDBObjectStore;
+    deleteObjectStore(name: string): void;
+    transaction(storeNames: string | string[], mode?: string): IDBTransaction;
+    addEventListener(type: "versionchange", listener: (ev: 
IDBVersionChangeEvent) => any, useCapture?: boolean): void;
+    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: 
(this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBDatabase: {
+    prototype: IDBDatabase;
+    new(): IDBDatabase;
+}
+
+interface IDBFactory {
+    cmp(first: any, second: any): number;
+    deleteDatabase(name: string): IDBOpenDBRequest;
+    open(name: string, version?: number): IDBOpenDBRequest;
+}
+
+declare var IDBFactory: {
+    prototype: IDBFactory;
+    new(): IDBFactory;
+}
+
+interface IDBIndex {
+    keyPath: string | string[];
+    readonly name: string;
+    readonly objectStore: IDBObjectStore;
+    readonly unique: boolean;
+    multiEntry: boolean;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    get(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+}
+
+declare var IDBIndex: {
+    prototype: IDBIndex;
+    new(): IDBIndex;
+}
+
+interface IDBKeyRange {
+    readonly lower: any;
+    readonly lowerOpen: boolean;
+    readonly upper: any;
+    readonly upperOpen: boolean;
+}
+
+declare var IDBKeyRange: {
+    prototype: IDBKeyRange;
+    new(): IDBKeyRange;
+    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): 
IDBKeyRange;
+    lowerBound(lower: any, open?: boolean): IDBKeyRange;
+    only(value: any): IDBKeyRange;
+    upperBound(upper: any, open?: boolean): IDBKeyRange;
+}
+
+interface IDBObjectStore {
+    readonly indexNames: DOMStringList;
+    keyPath: string | string[];
+    readonly name: string;
+    readonly transaction: IDBTransaction;
+    autoIncrement: boolean;
+    add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    clear(): IDBRequest;
+    count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
+    createIndex(name: string, keyPath: string | string[], optionalParameters?: 
IDBIndexParameters): IDBIndex;
+    delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
+    deleteIndex(indexName: string): void;
+    get(key: any): IDBRequest;
+    index(name: string): IDBIndex;
+    openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): 
IDBRequest;
+    put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
+}
+
+declare var IDBObjectStore: {
+    prototype: IDBObjectStore;
+    new(): IDBObjectStore;
+}
+
+interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
+    "blocked": Event;
+    "upgradeneeded": IDBVersionChangeEvent;
+}
+
+interface IDBOpenDBRequest extends IDBRequest {
+    onblocked: (this: IDBOpenDBRequest, ev: Event) => any;
+    onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => 
any;
+    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, 
listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBOpenDBRequest: {
+    prototype: IDBOpenDBRequest;
+    new(): IDBOpenDBRequest;
+}
+
+interface IDBRequestEventMap {
+    "error": ErrorEvent;
+    "success": Event;
+}
+
+interface IDBRequest extends EventTarget {
+    readonly error: DOMError;
+    onerror: (this: IDBRequest, ev: ErrorEvent) => any;
+    onsuccess: (this: IDBRequest, ev: Event) => any;
+    readonly readyState: string;
+    readonly result: any;
+    source: IDBObjectStore | IDBIndex | IDBCursor;
+    readonly transaction: IDBTransaction;
+    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: 
(this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBRequest: {
+    prototype: IDBRequest;
+    new(): IDBRequest;
+}
+
+interface IDBTransactionEventMap {
+    "abort": Event;
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface IDBTransaction extends EventTarget {
+    readonly db: IDBDatabase;
+    readonly error: DOMError;
+    readonly mode: string;
+    onabort: (this: IDBTransaction, ev: Event) => any;
+    oncomplete: (this: IDBTransaction, ev: Event) => any;
+    onerror: (this: IDBTransaction, ev: ErrorEvent) => any;
+    abort(): void;
+    objectStore(name: string): IDBObjectStore;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, 
listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var IDBTransaction: {
+    prototype: IDBTransaction;
+    new(): IDBTransaction;
+    readonly READ_ONLY: string;
+    readonly READ_WRITE: string;
+    readonly VERSION_CHANGE: string;
+}
+
+interface IDBVersionChangeEvent extends Event {
+    readonly newVersion: number | null;
+    readonly oldVersion: number;
+}
+
+declare var IDBVersionChangeEvent: {
+    prototype: IDBVersionChangeEvent;
+    new(): IDBVersionChangeEvent;
+}
+
+interface ImageData {
+    data: Uint8ClampedArray;
+    readonly height: number;
+    readonly width: number;
+}
+
+declare var ImageData: {
+    prototype: ImageData;
+    new(width: number, height: number): ImageData;
+    new(array: Uint8ClampedArray, width: number, height: number): ImageData;
+}
+
+interface MSApp {
+    clearTemporaryWebDataAsync(): MSAppAsyncOperation;
+    createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
+    createDataPackage(object: any): any;
+    createDataPackageFromSelection(): any;
+    createFileFromStorageFile(storageFile: any): File;
+    createStreamFromInputStream(type: string, inputStream: any): MSStream;
+    execAsyncAtPriority(asynchronousCallback: 
MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
+    execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, 
priority: string, ...args: any[]): any;
+    getCurrentPriority(): string;
+    getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
+    getViewId(view: any): any;
+    isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
+    pageHandlesAllApplicationActivations(enabled: boolean): void;
+    suppressSubdownloadCredentialPrompts(suppress: boolean): void;
+    terminateApp(exceptionObject: any): void;
+    readonly CURRENT: string;
+    readonly HIGH: string;
+    readonly IDLE: string;
+    readonly NORMAL: string;
+}
+declare var MSApp: MSApp;
+
+interface MSAppAsyncOperationEventMap {
+    "complete": Event;
+    "error": ErrorEvent;
+}
+
+interface MSAppAsyncOperation extends EventTarget {
+    readonly error: DOMError;
+    oncomplete: (this: MSAppAsyncOperation, ev: Event) => any;
+    onerror: (this: MSAppAsyncOperation, ev: ErrorEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    start(): void;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+    addEventListener<K extends keyof MSAppAsyncOperationEventMap>(type: K, 
listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => 
any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSAppAsyncOperation: {
+    prototype: MSAppAsyncOperation;
+    new(): MSAppAsyncOperation;
+    readonly COMPLETED: number;
+    readonly ERROR: number;
+    readonly STARTED: number;
+}
+
+interface MSBlobBuilder {
+    append(data: any, endings?: string): void;
+    getBlob(contentType?: string): Blob;
+}
+
+declare var MSBlobBuilder: {
+    prototype: MSBlobBuilder;
+    new(): MSBlobBuilder;
+}
+
+interface MSStream {
+    readonly type: string;
+    msClose(): void;
+    msDetachStream(): any;
+}
+
+declare var MSStream: {
+    prototype: MSStream;
+    new(): MSStream;
+}
+
+interface MSStreamReader extends EventTarget, MSBaseReader {
+    readonly error: DOMError;
+    readAsArrayBuffer(stream: MSStream, size?: number): void;
+    readAsBinaryString(stream: MSStream, size?: number): void;
+    readAsBlob(stream: MSStream, size?: number): void;
+    readAsDataURL(stream: MSStream, size?: number): void;
+    readAsText(stream: MSStream, encoding?: string, size?: number): void;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MSStreamReader: {
+    prototype: MSStreamReader;
+    new(): MSStreamReader;
+}
+
+interface MediaQueryList {
+    readonly matches: boolean;
+    readonly media: string;
+    addListener(listener: MediaQueryListListener): void;
+    removeListener(listener: MediaQueryListListener): void;
+}
+
+declare var MediaQueryList: {
+    prototype: MediaQueryList;
+    new(): MediaQueryList;
+}
+
+interface MessageChannel {
+    readonly port1: MessagePort;
+    readonly port2: MessagePort;
+}
+
+declare var MessageChannel: {
+    prototype: MessageChannel;
+    new(): MessageChannel;
+}
+
+interface MessageEvent extends Event {
+    readonly data: any;
+    readonly origin: string;
+    readonly ports: any;
+    readonly source: any;
+    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: 
any): void;
+}
+
+declare var MessageEvent: {
+    prototype: MessageEvent;
+    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
+}
+
+interface MessagePortEventMap {
+    "message": MessageEvent;
+}
+
+interface MessagePort extends EventTarget {
+    onmessage: (this: MessagePort, ev: MessageEvent) => any;
+    close(): void;
+    postMessage(message?: any, ports?: any): void;
+    start(): void;
+    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: 
(this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): 
void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var MessagePort: {
+    prototype: MessagePort;
+    new(): MessagePort;
+}
+
+interface Position {
+    readonly coords: Coordinates;
+    readonly timestamp: number;
+}
+
+declare var Position: {
+    prototype: Position;
+    new(): Position;
+}
+
+interface PositionError {
+    readonly code: number;
+    readonly message: string;
+    toString(): string;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+declare var PositionError: {
+    prototype: PositionError;
+    new(): PositionError;
+    readonly PERMISSION_DENIED: number;
+    readonly POSITION_UNAVAILABLE: number;
+    readonly TIMEOUT: number;
+}
+
+interface ProgressEvent extends Event {
+    readonly lengthComputable: boolean;
+    readonly loaded: number;
+    readonly total: number;
+    initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: 
boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): 
void;
+}
+
+declare var ProgressEvent: {
+    prototype: ProgressEvent;
+    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
+}
+
+interface WebSocketEventMap {
+    "close": CloseEvent;
+    "error": ErrorEvent;
+    "message": MessageEvent;
+    "open": Event;
+}
+
+interface WebSocket extends EventTarget {
+    binaryType: string;
+    readonly bufferedAmount: number;
+    readonly extensions: string;
+    onclose: (this: WebSocket, ev: CloseEvent) => any;
+    onerror: (this: WebSocket, ev: ErrorEvent) => any;
+    onmessage: (this: WebSocket, ev: MessageEvent) => any;
+    onopen: (this: WebSocket, ev: Event) => any;
+    readonly protocol: string;
+    readonly readyState: number;
+    readonly url: string;
+    close(code?: number, reason?: string): void;
+    send(data: any): void;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: 
(this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var WebSocket: {
+    prototype: WebSocket;
+    new(url: string, protocols?: string | string[]): WebSocket;
+    readonly CLOSED: number;
+    readonly CLOSING: number;
+    readonly CONNECTING: number;
+    readonly OPEN: number;
+}
+
+interface WorkerEventMap extends AbstractWorkerEventMap {
+    "message": MessageEvent;
+}
+
+interface Worker extends EventTarget, AbstractWorker {
+    onmessage: (this: Worker, ev: MessageEvent) => any;
+    postMessage(message: any, ports?: any): void;
+    terminate(): void;
+    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: 
Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Worker: {
+    prototype: Worker;
+    new(stringUrl: string): Worker;
+}
+
+interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
+    "readystatechange": Event;
+}
+
+interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
+    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
+    readonly readyState: number;
+    readonly response: any;
+    readonly responseText: string;
+    responseType: string;
+    readonly responseXML: any;
+    readonly status: number;
+    readonly statusText: string;
+    timeout: number;
+    readonly upload: XMLHttpRequestUpload;
+    withCredentials: boolean;
+    msCaching?: string;
+    readonly responseURL: string;
+    abort(): void;
+    getAllResponseHeaders(): string;
+    getResponseHeader(header: string): string | null;
+    msCachingEnabled(): boolean;
+    open(method: string, url: string, async?: boolean, user?: string, 
password?: string): void;
+    overrideMimeType(mime: string): void;
+    send(data?: string): void;
+    send(data?: any): void;
+    setRequestHeader(header: string, value: string): void;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, 
listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequest: {
+    prototype: XMLHttpRequest;
+    new(): XMLHttpRequest;
+    readonly DONE: number;
+    readonly HEADERS_RECEIVED: number;
+    readonly LOADING: number;
+    readonly OPENED: number;
+    readonly UNSENT: number;
+    create(): XMLHttpRequest;
+}
+
+interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var XMLHttpRequestUpload: {
+    prototype: XMLHttpRequestUpload;
+    new(): XMLHttpRequestUpload;
+}
+
+interface AbstractWorkerEventMap {
+    "error": ErrorEvent;
+}
+
+interface AbstractWorker {
+    onerror: (this: AbstractWorker, ev: ErrorEvent) => any;
+    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, 
listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface MSBaseReaderEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+}
+
+interface MSBaseReader {
+    onabort: (this: MSBaseReader, ev: Event) => any;
+    onerror: (this: MSBaseReader, ev: ErrorEvent) => any;
+    onload: (this: MSBaseReader, ev: Event) => any;
+    onloadend: (this: MSBaseReader, ev: ProgressEvent) => any;
+    onloadstart: (this: MSBaseReader, ev: Event) => any;
+    onprogress: (this: MSBaseReader, ev: ProgressEvent) => any;
+    readonly readyState: number;
+    readonly result: any;
+    abort(): void;
+    readonly DONE: number;
+    readonly EMPTY: number;
+    readonly LOADING: number;
+    addEventListener<K extends keyof MSBaseReaderEventMap>(type: K, listener: 
(this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: 
boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface NavigatorID {
+    readonly appName: string;
+    readonly appVersion: string;
+    readonly platform: string;
+    readonly product: string;
+    readonly productSub: string;
+    readonly userAgent: string;
+    readonly vendor: string;
+    readonly vendorSub: string;
+}
+
+interface NavigatorOnLine {
+    readonly onLine: boolean;
+}
+
+interface WindowBase64 {
+    atob(encodedString: string): string;
+    btoa(rawString: string): string;
+}
+
+interface WindowConsole {
+    readonly console: Console;
+}
+
+interface XMLHttpRequestEventTargetEventMap {
+    "abort": Event;
+    "error": ErrorEvent;
+    "load": Event;
+    "loadend": ProgressEvent;
+    "loadstart": Event;
+    "progress": ProgressEvent;
+    "timeout": ProgressEvent;
+}
+
+interface XMLHttpRequestEventTarget {
+    onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any;
+    onload: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any;
+    onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any;
+    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: 
K, listener: (this: XMLHttpRequestEventTarget, ev: 
XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface FileReaderSync {
+    readAsArrayBuffer(blob: Blob): any;
+    readAsBinaryString(blob: Blob): void;
+    readAsDataURL(blob: Blob): string;
+    readAsText(blob: Blob, encoding?: string): string;
+}
+
+declare var FileReaderSync: {
+    prototype: FileReaderSync;
+    new(): FileReaderSync;
+}
+
+interface WorkerGlobalScopeEventMap extends DedicatedWorkerGlobalScopeEventMap 
{
+    "error": ErrorEvent;
+}
+
+interface WorkerGlobalScope extends EventTarget, WorkerUtils, 
DedicatedWorkerGlobalScope, WindowConsole {
+    readonly location: WorkerLocation;
+    onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any;
+    readonly self: WorkerGlobalScope;
+    close(): void;
+    msWriteProfilerMark(profilerMarkName: string): void;
+    toString(): string;
+    addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, 
listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, 
useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var WorkerGlobalScope: {
+    prototype: WorkerGlobalScope;
+    new(): WorkerGlobalScope;
+}
+
+interface WorkerLocation {
+    readonly hash: string;
+    readonly host: string;
+    readonly hostname: string;
+    readonly href: string;
+    readonly pathname: string;
+    readonly port: string;
+    readonly protocol: string;
+    readonly search: string;
+    toString(): string;
+}
+
+declare var WorkerLocation: {
+    prototype: WorkerLocation;
+    new(): WorkerLocation;
+}
+
+interface WorkerNavigator extends Object, NavigatorID, NavigatorOnLine {
+    readonly hardwareConcurrency: number;
+}
+
+declare var WorkerNavigator: {
+    prototype: WorkerNavigator;
+    new(): WorkerNavigator;
+}
+
+interface DedicatedWorkerGlobalScopeEventMap {
+    "message": MessageEvent;
+}
+
+interface DedicatedWorkerGlobalScope {
+    onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any;
+    postMessage(data: any): void;
+    addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: 
K, listener: (this: DedicatedWorkerGlobalScope, ev: 
DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
+    addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface WorkerUtils extends Object, WindowBase64 {
+    readonly indexedDB: IDBFactory;
+    readonly msIndexedDB: IDBFactory;
+    readonly navigator: WorkerNavigator;
+    clearImmediate(handle: number): void;
+    clearInterval(handle: number): void;
+    clearTimeout(handle: number): void;
+    importScripts(...urls: string[]): void;
+    setImmediate(handler: (...args: any[]) => void): number;
+    setImmediate(handler: any, ...args: any[]): number;
+    setInterval(handler: (...args: any[]) => void, timeout: number): number;
+    setInterval(handler: any, timeout?: any, ...args: any[]): number;
+    setTimeout(handler: (...args: any[]) => void, timeout: number): number;
+    setTimeout(handler: any, timeout?: any, ...args: any[]): number;
+}
+
+interface BlobPropertyBag {
+    type?: string;
+    endings?: string;
+}
+
+interface FilePropertyBag {
+    type?: string;
+    lastModified?: number;
+}
+
+interface EventListenerObject {
+    handleEvent(evt: Event): void;
+}
+
+interface MessageEventInit extends EventInit {
+    data?: any;
+    origin?: string;
+    lastEventId?: string;
+    channel?: string;
+    source?: any;
+    ports?: MessagePort[];
+}
+
+interface ProgressEventInit extends EventInit {
+    lengthComputable?: boolean;
+    loaded?: number;
+    total?: number;
+}
+
+interface IDBArrayKey extends Array<IDBValidKey> {
+}
+
+interface RsaKeyGenParams extends Algorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyGenParams extends RsaKeyGenParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaKeyAlgorithm extends KeyAlgorithm {
+    modulusLength: number;
+    publicExponent: Uint8Array;
+}
+
+interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaHashedImportParams {
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaPssParams {
+    saltLength: number;
+}
+
+interface RsaOaepParams extends Algorithm {
+    label?: BufferSource;
+}
+
+interface EcdsaParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+}
+
+interface EcKeyGenParams extends Algorithm {
+    namedCurve: string;
+}
+
+interface EcKeyAlgorithm extends KeyAlgorithm {
+    typedCurve: string;
+}
+
+interface EcKeyImportParams {
+    namedCurve: string;
+}
+
+interface EcdhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface AesCtrParams extends Algorithm {
+    counter: BufferSource;
+    length: number;
+}
+
+interface AesKeyAlgorithm extends KeyAlgorithm {
+    length: number;
+}
+
+interface AesKeyGenParams extends Algorithm {
+    length: number;
+}
+
+interface AesDerivedKeyParams extends Algorithm {
+    length: number;
+}
+
+interface AesCbcParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface AesCmacParams extends Algorithm {
+    length: number;
+}
+
+interface AesGcmParams extends Algorithm {
+    iv: BufferSource;
+    additionalData?: BufferSource;
+    tagLength?: number;
+}
+
+interface AesCfbParams extends Algorithm {
+    iv: BufferSource;
+}
+
+interface HmacImportParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface HmacKeyAlgorithm extends KeyAlgorithm {
+    hash: AlgorithmIdentifier;
+    length: number;
+}
+
+interface HmacKeyGenParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    length?: number;
+}
+
+interface DhKeyGenParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyAlgorithm extends KeyAlgorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface DhKeyDeriveParams extends Algorithm {
+    public: CryptoKey;
+}
+
+interface DhImportKeyParams extends Algorithm {
+    prime: Uint8Array;
+    generator: Uint8Array;
+}
+
+interface ConcatParams extends Algorithm {
+    hash?: AlgorithmIdentifier;
+    algorithmId: Uint8Array;
+    partyUInfo: Uint8Array;
+    partyVInfo: Uint8Array;
+    publicInfo?: Uint8Array;
+    privateInfo?: Uint8Array;
+}
+
+interface HkdfCtrParams extends Algorithm {
+    hash: AlgorithmIdentifier;
+    label: BufferSource;
+    context: BufferSource;
+}
+
+interface Pbkdf2Params extends Algorithm {
+    salt: BufferSource;
+    iterations: number;
+    hash: AlgorithmIdentifier;
+}
+
+interface RsaOtherPrimesInfo {
+    r: string;
+    d: string;
+    t: string;
+}
+
+interface JsonWebKey {
+    kty: string;
+    use?: string;
+    key_ops?: string[];
+    alg?: string;
+    kid?: string;
+    x5u?: string;
+    x5c?: string;
+    x5t?: string;
+    ext?: boolean;
+    crv?: string;
+    x?: string;
+    y?: string;
+    d?: string;
+    n?: string;
+    e?: string;
+    p?: string;
+    q?: string;
+    dp?: string;
+    dq?: string;
+    qi?: string;
+    oth?: RsaOtherPrimesInfo[];
+    k?: string;
+}
+
+declare type EventListenerOrEventListenerObject = EventListener | 
EventListenerObject;
+
+interface ErrorEventHandler {
+    (message: string, filename?: string, lineno?: number, colno?: number, 
error?:Error): void;
+}
+interface PositionCallback {
+    (position: Position): void;
+}
+interface PositionErrorCallback {
+    (error: PositionError): void;
+}
+interface MediaQueryListListener {
+    (mql: MediaQueryList): void;
+}
+interface MSLaunchUriCallback {
+    (): void;
+}
+interface MSUnsafeFunctionCallback {
+    (): any;
+}
+interface MSExecAtPriorityFunctionCallback {
+    (...args: any[]): any;
+}
+interface DecodeSuccessCallback {
+    (decodedData: AudioBuffer): void;
+}
+interface DecodeErrorCallback {
+    (error: DOMException): void;
+}
+interface FunctionStringCallback {
+    (data: string): void;
+}
+declare var location: WorkerLocation;
+declare var onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any;
+declare var self: WorkerGlobalScope;
+declare function close(): void;
+declare function msWriteProfilerMark(profilerMarkName: string): void;
+declare function toString(): string;
+declare function dispatchEvent(evt: Event): boolean;
+declare function removeEventListener(type: string, listener?: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+declare var indexedDB: IDBFactory;
+declare var msIndexedDB: IDBFactory;
+declare var navigator: WorkerNavigator;
+declare function clearImmediate(handle: number): void;
+declare function clearInterval(handle: number): void;
+declare function clearTimeout(handle: number): void;
+declare function importScripts(...urls: string[]): void;
+declare function setImmediate(handler: (...args: any[]) => void): number;
+declare function setImmediate(handler: any, ...args: any[]): number;
+declare function setInterval(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setInterval(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function setTimeout(handler: (...args: any[]) => void, timeout: 
number): number;
+declare function setTimeout(handler: any, timeout?: any, ...args: any[]): 
number;
+declare function atob(encodedString: string): string;
+declare function btoa(rawString: string): string;
+declare var onmessage: (this: WorkerGlobalScope, ev: MessageEvent) => any;
+declare function postMessage(data: any): void;
+declare var console: Console;
+declare function addEventListener<K extends keyof 
WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: 
WorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
+declare function addEventListener(type: string, listener: 
EventListenerOrEventListenerObject, useCapture?: boolean): void;
+type AlgorithmIdentifier = string | Algorithm;
+type IDBKeyPath = string;
+type IDBValidKey = number | string | Date | IDBArrayKey;
 type BufferSource = ArrayBuffer | ArrayBufferView;
\ No newline at end of file
diff --git a/node_modules/typescript/lib/protocol.d.ts 
b/node_modules/typescript/lib/protocol.d.ts
index c2577c2..6734ba1 100644
--- a/node_modules/typescript/lib/protocol.d.ts
+++ b/node_modules/typescript/lib/protocol.d.ts
@@ -711,6 +711,10 @@ declare namespace ts.server.protocol {
          * List of removed files
          */
         removed: string[];
+        /**
+         * List of updated files
+         */
+        updated: string[];
     }
     /**
       * Information found in a configure request.
@@ -729,6 +733,10 @@ declare namespace ts.server.protocol {
          * The format options to use during formatting and other code editing 
features.
          */
         formatOptions?: FormatCodeSettings;
+        /**
+         * The host's additional supported file extensions
+         */
+        extraFileExtensions?: FileExtensionInfo[];
     }
     /**
       *  Configure request; value of command field is "configure".  Specifies
@@ -957,6 +965,10 @@ declare namespace ts.server.protocol {
           * Documentation associated with symbol.
           */
         documentation: string;
+        /**
+         * JSDoc tags associated with symbol.
+         */
+        tags: JSDocTagInfo[];
     }
     /**
       * Quickinfo response message.
@@ -1158,6 +1170,10 @@ declare namespace ts.server.protocol {
           * Documentation strings for the symbol.
           */
         documentation: SymbolDisplayPart[];
+        /**
+          * JSDoc tags for the symbol.
+          */
+        tags: JSDocTagInfo[];
     }
     interface CompletionsResponse extends Response {
         body?: CompletionEntry[];
@@ -1214,6 +1230,10 @@ declare namespace ts.server.protocol {
          * The signature's documentation
          */
         documentation: SymbolDisplayPart[];
+        /**
+         * The signature's JSDoc tags
+         */
+        tags: JSDocTagInfo[];
     }
     /**
      * Signature help items found in the response of a signature help request.
@@ -1662,6 +1682,34 @@ declare namespace ts.server.protocol {
          */
         typingsInstallerVersion: string;
     }
+    type BeginInstallTypesEventName = "beginInstallTypes";
+    type EndInstallTypesEventName = "endInstallTypes";
+    interface BeginInstallTypesEvent extends Event {
+        event: BeginInstallTypesEventName;
+        body: BeginInstallTypesEventBody;
+    }
+    interface EndInstallTypesEvent extends Event {
+        event: EndInstallTypesEventName;
+        body: EndInstallTypesEventBody;
+    }
+    interface InstallTypesEventBody {
+        /**
+         * correlation id to match begin and end events
+         */
+        eventId: number;
+        /**
+         * list of packages to install
+         */
+        packages: ReadonlyArray<string>;
+    }
+    interface BeginInstallTypesEventBody extends InstallTypesEventBody {
+    }
+    interface EndInstallTypesEventBody extends InstallTypesEventBody {
+        /**
+         * true if installation succeeded, otherwise false
+         */
+        success: boolean;
+    }
     interface NavBarResponse extends Response {
         body?: NavigationBarItem[];
     }
@@ -1686,12 +1734,14 @@ declare namespace ts.server.protocol {
         insertSpaceAfterCommaDelimiter?: boolean;
         insertSpaceAfterSemicolonInForStatements?: boolean;
         insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+        insertSpaceAfterConstructor?: boolean;
         insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
         insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
+        insertSpaceBeforeFunctionParenthesis?: boolean;
         placeOpenBraceOnNewLineForFunctions?: boolean;
         placeOpenBraceOnNewLineForControlBlocks?: boolean;
     }
@@ -1818,6 +1868,17 @@ declare namespace ts.server.protocol {
         [option: string]: string[] | boolean | undefined;
     }
 
+    interface FileExtensionInfo {
+        extension: string;
+        scriptKind: ScriptKind;
+        isMixedContent: boolean;
+    }
+
+    interface JSDocTagInfo {
+        name: string;
+        text?: string;
+    }
+
     interface MapLike<T> {
         [index: string]: T;
     }
diff --git a/node_modules/typescript/lib/tsc.js 
b/node_modules/typescript/lib/tsc.js
index e08661b..5146a0c 100644
--- a/node_modules/typescript/lib/tsc.js
+++ b/node_modules/typescript/lib/tsc.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 ts;
 (function (ts) {
     var OperationCanceledException = (function () {
@@ -132,7 +132,7 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 (function (ts) {
     var createObject = Object.create;
@@ -813,15 +813,6 @@ var ts;
         return result;
     }
     ts.reduceProperties = reduceProperties;
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
     function equalOwnProperties(left, right, equalityComparer) {
         if (left === right)
             return true;
@@ -1668,8 +1659,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -1680,11 +1682,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -2254,7 +2256,7 @@ var ts;
                 },
                 watchDirectory: function (directoryName, callback, recursive) {
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -2269,6 +2271,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 && 
s.charCodeAt(1) === 47;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -2468,7 +2473,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -2624,6 +2629,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -2667,6 +2673,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -2677,6 +2684,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -2983,6 +2991,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -3024,7 +3034,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -3077,6 +3087,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -3142,6 +3153,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -3197,6 +3209,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -3213,6 +3226,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 var ts;
@@ -4796,6 +4810,7 @@ var ts;
                 writeSpace: writeText,
                 writeStringLiteral: writeText,
                 writeParameter: writeText,
+                writeProperty: writeText,
                 writeSymbol: writeText,
                 writeLine: function () { return str_1 += " "; },
                 increaseIndent: ts.noop,
@@ -4868,17 +4883,17 @@ var ts;
     ts.hasChangesInResolutions = hasChangesInResolutions;
     function containsParseError(node) {
         aggregateChildData(node);
-        return (node.flags & 4194304) !== 0;
+        return (node.flags & 131072) !== 0;
     }
     ts.containsParseError = containsParseError;
     function aggregateChildData(node) {
-        if (!(node.flags & 8388608)) {
-            var thisNodeOrAnySubNodesHasError = ((node.flags & 1048576) !== 0) 
||
+        if (!(node.flags & 262144)) {
+            var thisNodeOrAnySubNodesHasError = ((node.flags & 32768) !== 0) ||
                 ts.forEachChild(node, containsParseError);
             if (thisNodeOrAnySubNodesHasError) {
-                node.flags |= 4194304;
+                node.flags |= 131072;
             }
-            node.flags |= 8388608;
+            node.flags |= 262144;
         }
     }
     function getSourceFileOfNode(node) {
@@ -5102,6 +5117,10 @@ var ts;
         return false;
     }
     ts.isExternalModuleAugmentation = isExternalModuleAugmentation;
+    function isEffectiveExternalModule(node, compilerOptions) {
+        return ts.isExternalModule(node) || compilerOptions.isolatedModules;
+    }
+    ts.isEffectiveExternalModule = isEffectiveExternalModule;
     function isBlockScope(node, parentNode) {
         switch (node.kind) {
             case 261:
@@ -5368,6 +5387,20 @@ var ts;
         return false;
     }
     ts.isPartOfTypeNode = isPartOfTypeNode;
+    function isChildOfLiteralType(node) {
+        while (node) {
+            if (node.kind === 171) {
+                return true;
+            }
+            node = node.parent;
+        }
+        return false;
+    }
+    ts.isChildOfLiteralType = isChildOfLiteralType;
+    function isPrefixUnaryExpression(node) {
+        return node.kind === 190;
+    }
+    ts.isPrefixUnaryExpression = isPrefixUnaryExpression;
     function forEachReturnStatement(body, visitor) {
         return traverse(body);
         function traverse(node) {
@@ -5426,6 +5459,18 @@ var ts;
         }
     }
     ts.forEachYieldExpression = forEachYieldExpression;
+    function getRestParameterElementType(node) {
+        if (node && node.kind === 162) {
+            return node.elementType;
+        }
+        else if (node && node.kind === 157) {
+            return ts.singleOrUndefined(node.typeArguments);
+        }
+        else {
+            return undefined;
+        }
+    }
+    ts.getRestParameterElementType = getRestParameterElementType;
     function isVariableLike(node) {
         if (node) {
             switch (node.kind) {
@@ -5857,7 +5902,7 @@ var ts;
     }
     ts.isSourceFileJavaScript = isSourceFileJavaScript;
     function isInJavaScriptFile(node) {
-        return node && !!(node.flags & 2097152);
+        return node && !!(node.flags & 65536);
     }
     ts.isInJavaScriptFile = isInJavaScriptFile;
     function isRequireCall(expression, checkArgumentIsStringLiteral) {
@@ -6042,6 +6087,7 @@ var ts;
             cache = ts.concatenate(cache, node.jsDoc);
         }
     }
+    ts.getJSDocs = getJSDocs;
     function getJSDocParameterTags(param) {
         if (!isParameter(param)) {
             return undefined;
@@ -6096,7 +6142,7 @@ var ts;
     }
     ts.hasDeclaredRestParameter = hasDeclaredRestParameter;
     function isRestParameter(node) {
-        if (node && (node.flags & 2097152)) {
+        if (node && (node.flags & 65536)) {
             if (node.type && node.type.kind === 275 ||
                 ts.forEach(getJSDocParameterTags(node), function (t) { return 
t.typeExpression && t.typeExpression.type.kind === 275; })) {
                 return true;
@@ -6541,7 +6587,6 @@ var ts;
             case 194:
             case 183:
             case 198:
-            case 297:
                 return 19;
             case 181:
             case 177:
@@ -6715,13 +6760,12 @@ var ts;
         "\u0085": "\\u0085"
     });
     function escapeString(s) {
-        s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, 
getReplacement) : s;
-        return s;
-        function getReplacement(c) {
-            return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
-        }
+        return s.replace(escapedCharsRegExp, getReplacement);
     }
     ts.escapeString = escapeString;
+    function getReplacement(c) {
+        return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
+    }
     function isIntrinsicJsxName(name) {
         var ch = name.substr(0, 1);
         return ch.toLowerCase() === ch;
@@ -7397,39 +7441,6 @@ var ts;
         }
         return output;
     }
-    ts.stringify = typeof JSON !== "undefined" && JSON.stringify
-        ? JSON.stringify
-        : stringifyFallback;
-    function stringifyFallback(value) {
-        return value === undefined ? undefined : stringifyValue(value);
-    }
-    function stringifyValue(value) {
-        return typeof value === "string" ? "\"" + escapeString(value) + "\""
-            : typeof value === "number" ? isFinite(value) ? String(value) : 
"null"
-                : typeof value === "boolean" ? value ? "true" : "false"
-                    : typeof value === "object" && value ? ts.isArray(value) ? 
cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value)
-                        : "null";
-    }
-    function cycleCheck(cb, value) {
-        ts.Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular 
structure to JSON");
-        value.__cycle = true;
-        var result = cb(value);
-        delete value.__cycle;
-        return result;
-    }
-    function stringifyArray(value) {
-        return "[" + ts.reduceLeft(value, stringifyElement, "") + "]";
-    }
-    function stringifyElement(memo, value) {
-        return (memo ? memo + "," : memo) + stringifyValue(value);
-    }
-    function stringifyObject(value) {
-        return "{" + ts.reduceOwnProperties(value, stringifyProperty, "") + 
"}";
-    }
-    function stringifyProperty(memo, value, key) {
-        return value === undefined || typeof value === "function" || key === 
"__cycle" ? memo
-            : (memo ? memo + "," : memo) + ("\"" + escapeString(key) + "\":" + 
stringifyValue(value));
-    }
     var base64Digits = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
     function convertToBase64(input) {
         var result = "";
@@ -7700,6 +7711,10 @@ var ts;
         return node.kind === 70;
     }
     ts.isIdentifier = isIdentifier;
+    function isVoidExpression(node) {
+        return node.kind === 188;
+    }
+    ts.isVoidExpression = isVoidExpression;
     function isGeneratedIdentifier(node) {
         return isIdentifier(node) && node.autoGenerateKind > 0;
     }
@@ -7928,8 +7943,7 @@ var ts;
             || kind === 98
             || kind === 100
             || kind === 96
-            || kind === 201
-            || kind === 297;
+            || kind === 201;
     }
     function isLeftHandSideExpression(node) {
         return 
isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
@@ -7957,7 +7971,6 @@ var ts;
             || kind === 196
             || kind === 200
             || kind === 198
-            || kind === 297
             || isUnaryExpressionKind(kind);
     }
     function isExpression(node) {
@@ -9920,12 +9933,6 @@ var ts;
         return node;
     }
     ts.updatePartiallyEmittedExpression = updatePartiallyEmittedExpression;
-    function createRawExpression(text) {
-        var node = createNode(297);
-        node.text = text;
-        return node;
-    }
-    ts.createRawExpression = createRawExpression;
     function createComma(left, right) {
         return createBinary(left, 25, right);
     }
@@ -11635,7 +11642,7 @@ var ts;
     var Parser;
     (function (Parser) {
         var scanner = ts.createScanner(5, true);
-        var disallowInAndDecoratorContext = 65536 | 262144;
+        var disallowInAndDecoratorContext = 2048 | 8192;
         var NodeConstructor;
         var TokenConstructor;
         var IdentifierConstructor;
@@ -11683,7 +11690,7 @@ var ts;
             identifiers = ts.createMap();
             identifierCount = 0;
             nodeCount = 0;
-            contextFlags = scriptKind === 1 || scriptKind === 2 ? 2097152 : 0;
+            contextFlags = scriptKind === 1 || scriptKind === 2 ? 65536 : 0;
             parseErrorBeforeNextFinishedNode = false;
             scanner.setText(sourceText);
             scanner.setOnError(scanError);
@@ -11778,16 +11785,16 @@ var ts;
             }
         }
         function setDisallowInContext(val) {
-            setContextFlag(val, 65536);
+            setContextFlag(val, 2048);
         }
         function setYieldContext(val) {
-            setContextFlag(val, 131072);
+            setContextFlag(val, 4096);
         }
         function setDecoratorContext(val) {
-            setContextFlag(val, 262144);
+            setContextFlag(val, 8192);
         }
         function setAwaitContext(val) {
-            setContextFlag(val, 524288);
+            setContextFlag(val, 16384);
         }
         function doOutsideOfContext(context, func) {
             var contextFlagsToClear = context & contextFlags;
@@ -11810,40 +11817,40 @@ var ts;
             return func();
         }
         function allowInAnd(func) {
-            return doOutsideOfContext(65536, func);
+            return doOutsideOfContext(2048, func);
         }
         function disallowInAnd(func) {
-            return doInsideOfContext(65536, func);
+            return doInsideOfContext(2048, func);
         }
         function doInYieldContext(func) {
-            return doInsideOfContext(131072, func);
+            return doInsideOfContext(4096, func);
         }
         function doInDecoratorContext(func) {
-            return doInsideOfContext(262144, func);
+            return doInsideOfContext(8192, func);
         }
         function doInAwaitContext(func) {
-            return doInsideOfContext(524288, func);
+            return doInsideOfContext(16384, func);
         }
         function doOutsideOfAwaitContext(func) {
-            return doOutsideOfContext(524288, func);
+            return doOutsideOfContext(16384, func);
         }
         function doInYieldAndAwaitContext(func) {
-            return doInsideOfContext(131072 | 524288, func);
+            return doInsideOfContext(4096 | 16384, func);
         }
         function inContext(flags) {
             return (contextFlags & flags) !== 0;
         }
         function inYieldContext() {
-            return inContext(131072);
+            return inContext(4096);
         }
         function inDisallowInContext() {
-            return inContext(65536);
+            return inContext(2048);
         }
         function inDecoratorContext() {
-            return inContext(262144);
+            return inContext(8192);
         }
         function inAwaitContext() {
-            return inContext(524288);
+            return inContext(16384);
         }
         function parseErrorAtCurrentToken(message, arg0) {
             var start = scanner.getTokenPos();
@@ -12005,7 +12012,7 @@ var ts;
             }
             if (parseErrorBeforeNextFinishedNode) {
                 parseErrorBeforeNextFinishedNode = false;
-                node.flags |= 1048576;
+                node.flags |= 32768;
             }
             return node;
         }
@@ -12323,7 +12330,7 @@ var ts;
             if (ts.containsParseError(node)) {
                 return undefined;
             }
-            var nodeContextFlags = node.flags & 3080192;
+            var nodeContextFlags = node.flags & 96256;
             if (nodeContextFlags !== contextFlags) {
                 return undefined;
             }
@@ -12996,6 +13003,8 @@ var ts;
                 case 16:
                 case 20:
                 case 26:
+                case 48:
+                case 47:
                 case 93:
                 case 9:
                 case 8:
@@ -13048,6 +13057,7 @@ var ts;
             return parseArrayTypeOrHigher();
         }
         function parseUnionOrIntersectionType(kind, parseConstituentType, 
operator) {
+            parseOptional(operator);
             var type = parseConstituentType();
             if (token() === operator) {
                 var types = createNodeArray([type], type.pos);
@@ -13128,7 +13138,7 @@ var ts;
             }
         }
         function parseType() {
-            return doOutsideOfContext(655360, parseTypeWorker);
+            return doOutsideOfContext(20480, parseTypeWorker);
         }
         function parseTypeWorker() {
             if (isStartOfFunctionType()) {
@@ -14759,7 +14769,7 @@ var ts;
             property.type = parseTypeAnnotation();
             property.initializer = ts.hasModifier(property, 32)
                 ? allowInAnd(parseNonParameterInitializer)
-                : doOutsideOfContext(131072 | 65536, 
parseNonParameterInitializer);
+                : doOutsideOfContext(4096 | 2048, 
parseNonParameterInitializer);
             parseSemicolon();
             return addJSDocComment(finishNode(property));
         }
@@ -15676,7 +15686,7 @@ var ts;
                                 break;
                             case 38:
                                 var asterisk = scanner.getTokenText();
-                                if (state === 1) {
+                                if (state === 1 || state === 2) {
                                     state = 2;
                                     pushComment(asterisk);
                                 }
@@ -15691,7 +15701,10 @@ var ts;
                                 break;
                             case 5:
                                 var whitespace = scanner.getTokenText();
-                                if (state === 2 || margin !== undefined && 
indent + whitespace.length > margin) {
+                                if (state === 2) {
+                                    comments.push(whitespace);
+                                }
+                                else if (margin !== undefined && indent + 
whitespace.length > margin) {
                                     comments.push(whitespace.slice(margin - 
indent - 1));
                                 }
                                 indent += whitespace.length;
@@ -15699,6 +15712,7 @@ var ts;
                             case 1:
                                 break;
                             default:
+                                state = 2;
                                 pushComment(scanner.getTokenText());
                                 break;
                         }
@@ -15788,7 +15802,7 @@ var ts;
                 }
                 function parseTagComments(indent) {
                     var comments = [];
-                    var state = 1;
+                    var state = 0;
                     var margin;
                     function pushComment(text) {
                         if (!margin) {
@@ -16733,7 +16747,7 @@ var ts;
                 activeLabels = undefined;
                 hasExplicitReturn = false;
                 bindChildren(node);
-                node.flags &= ~64896;
+                node.flags &= ~1408;
                 if (!(currentFlow.flags & 1) && containerFlags & 8 && 
ts.nodeIsPresent(node.body)) {
                     node.flags |= 128;
                     if (hasExplicitReturn)
@@ -17916,9 +17930,6 @@ var ts;
                     return bindParameter(node);
                 case 223:
                 case 174:
-                    if (node.dotDotDotToken && node.parent.kind === 172) {
-                        emitFlags |= 32768;
-                    }
                     return bindVariableDeclarationOrBindingElement(node);
                 case 147:
                 case 146:
@@ -17945,7 +17956,6 @@ var ts;
                         }
                         root = root.parent;
                     }
-                    emitFlags |= hasRest ? 32768 : 16384;
                     return;
                 case 153:
                 case 154:
@@ -18141,14 +18151,6 @@ var ts;
             }
         }
         function bindClassLikeDeclaration(node) {
-            if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
-                if (ts.getClassExtendsHeritageClauseElement(node) !== 
undefined) {
-                    emitFlags |= 1024;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
-                }
-            }
             if (node.kind === 226) {
                 bindBlockScopedDeclaration(node, 32, 899519);
             }
@@ -18192,11 +18194,6 @@ var ts;
             }
         }
         function bindParameter(node) {
-            if (!ts.isDeclarationFile(file) &&
-                !ts.isInAmbientContext(node) &&
-                ts.nodeIsDecorated(node)) {
-                emitFlags |= (2048 | 4096);
-            }
             if (inStrictMode) {
                 checkStrictModeEvalOrArguments(node, node.name);
             }
@@ -18214,7 +18211,7 @@ var ts;
         function bindFunctionDeclaration(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             checkStrictModeFunctionName(node);
@@ -18229,7 +18226,7 @@ var ts;
         function bindFunctionExpression(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow) {
@@ -18242,10 +18239,7 @@ var ts;
         function bindPropertyOrMethodOrAccessor(node, symbolFlags, 
symbolExcludes) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow && 
ts.isObjectLiteralOrClassExpressionMethod(node)) {
@@ -18945,9 +18939,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
         return { resolvedFileName: path, extension: extension, 
isExternalLibraryImport: isExternalLibraryImport };
@@ -18959,20 +18950,14 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2:
             case 0:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -19027,6 +19012,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -19097,7 +19083,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2, typeReferenceDirectiveName, 
initialLocationForSecondaryLookup, failedLookupLocations, 
moduleResolutionState));
+                var result = loadModuleFromNodeModules(2, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -19138,31 +19125,115 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_5 = ts.getDirectoryPath(current);
+                    if (parent_5 === current || 
directoryPathMap.contains(parent_5)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_5, result);
+                    current = parent_5;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -19287,33 +19358,33 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0) || tryResolve(1);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -19395,16 +19466,28 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    return resolvedFromAnyFile(fromFile);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
                 }
-                var x = tryAddingExtensions(typesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
+                }
+                if (extensions === 1) {
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1, 
failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -19421,6 +19504,20 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -19431,16 +19528,21 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true);
+        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true, undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -19454,25 +19556,39 @@ var ts;
             return loadModuleFromNodeModulesFolder(2, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0) || tryResolve(1);
-        return createResolvedModuleWithFailedLookupLocations(resolved, false, 
failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0) {
                     return loadModuleFromNodeModulesAtTypes(moduleName, 
containingDirectory, failedLookupLocations, state);
@@ -19480,7 +19596,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, false, state));
             }
         }
     }
@@ -19496,6 +19612,9 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, true, 
failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
             var result = callback(directory);
@@ -19535,6 +19654,8 @@ var ts;
     ts.getSymbolId = getSymbolId;
     function createTypeChecker(host, produceDiagnostics) {
         var cancellationToken;
+        var requestedExternalEmitHelpers;
+        var externalHelpersModule;
         var Symbol = ts.objectAllocator.getSymbolConstructor();
         var Type = ts.objectAllocator.getTypeConstructor();
         var Signature = ts.objectAllocator.getSignatureConstructor();
@@ -19842,9 +19963,7 @@ var ts;
                         (target.valueDeclaration.kind === 230 && 
source.valueDeclaration.kind !== 230))) {
                     target.valueDeclaration = source.valueDeclaration;
                 }
-                ts.forEach(source.declarations, function (node) {
-                    target.declarations.push(node);
-                });
+                ts.addRange(target.declarations, source.declarations);
                 if (source.members) {
                     if (!target.members)
                         target.members = ts.createMap();
@@ -19980,8 +20099,18 @@ var ts;
                 return ts.indexOf(sourceFiles, declarationFile) <= 
ts.indexOf(sourceFiles, useFile);
             }
             if (declaration.pos <= usage.pos) {
-                return declaration.kind !== 223 ||
-                    
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                if (declaration.kind === 174) {
+                    var errorBindingElement = ts.getAncestor(usage, 174);
+                    if (errorBindingElement) {
+                        return getAncestorBindingPattern(errorBindingElement) 
!== getAncestorBindingPattern(declaration) ||
+                            declaration.pos < errorBindingElement.pos;
+                    }
+                    return 
isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), usage);
+                }
+                else if (declaration.kind === 223) {
+                    return 
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                }
+                return true;
             }
             var container = ts.getEnclosingBlockScopeContainer(declaration);
             return isUsedInFunctionOrNonStaticProperty(usage, container);
@@ -20025,6 +20154,15 @@ var ts;
                 }
                 return false;
             }
+            function getAncestorBindingPattern(node) {
+                while (node) {
+                    if (ts.isBindingPattern(node)) {
+                        return node;
+                    }
+                    node = node.parent;
+                }
+                return undefined;
+            }
         }
         function resolveName(location, name, meaning, nameNotFoundMessage, 
nameArg) {
             var result;
@@ -20277,7 +20415,7 @@ var ts;
             ts.Debug.assert((result.flags & 2) !== 0);
             var declaration = ts.forEach(result.declarations, function (d) { 
return ts.isBlockOrCatchScoped(d) ? d : undefined; });
             ts.Debug.assert(declaration !== undefined, "Block-scoped variable 
declaration is undefined");
-            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), 
errorLocation)) {
+            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
                 error(errorLocation, 
ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, 
ts.declarationNameToString(declaration.name));
             }
         }
@@ -20304,7 +20442,7 @@ var ts;
             }
         }
         function getDeclarationOfAliasSymbol(symbol) {
-            return ts.forEach(symbol.declarations, function (d) { return 
ts.isAliasSymbolDeclaration(d) ? d : undefined; });
+            return ts.find(symbol.declarations, ts.isAliasSymbolDeclaration);
         }
         function getTargetOfImportEqualsDeclaration(node) {
             if (node.moduleReference.kind === 245) {
@@ -20571,9 +20709,8 @@ var ts;
             }
             if (!isRelative && resolvedModule && 
!ts.extensionIsTypeScript(resolvedModule.extension)) {
                 if (isForAugmentation) {
-                    ts.Debug.assert(!!moduleNotFoundError);
                     var diag = 
ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
-                    error(errorNode, diag, moduleName, 
resolvedModule.resolvedFileName);
+                    error(errorNode, diag, moduleReference, 
resolvedModule.resolvedFileName);
                 }
                 else if (compilerOptions.noImplicitAny && moduleNotFoundError) 
{
                     error(errorNode, 
ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
 moduleReference, resolvedModule.resolvedFileName);
@@ -20802,6 +20939,16 @@ var ts;
         }
         function getAccessibleSymbolChain(symbol, enclosingDeclaration, 
meaning, useOnlyExternalAliasing) {
             function getAccessibleSymbolChainFromSymbolTable(symbols) {
+                return getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
[]);
+            }
+            function getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
visitedSymbolTables) {
+                if (ts.contains(visitedSymbolTables, symbols)) {
+                    return undefined;
+                }
+                visitedSymbolTables.push(symbols);
+                var result = trySymbolTable(symbols);
+                visitedSymbolTables.pop();
+                return result;
                 function canQualifySymbol(symbolFromSymbolTable, meaning) {
                     if (!needsQualification(symbolFromSymbolTable, 
enclosingDeclaration, meaning)) {
                         return true;
@@ -20815,26 +20962,28 @@ var ts;
                             canQualifySymbol(symbolFromSymbolTable, meaning);
                     }
                 }
-                if (isAccessible(symbols[symbol.name])) {
-                    return [symbol];
-                }
-                return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
-                    if (symbolFromSymbolTable.flags & 8388608
-                        && symbolFromSymbolTable.name !== "export="
-                        && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
-                        if (!useOnlyExternalAliasing ||
-                            ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
-                            var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
-                            if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
-                                return [symbolFromSymbolTable];
-                            }
-                            var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : 
undefined;
-                            if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
-                                return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                function trySymbolTable(symbols) {
+                    if (isAccessible(symbols[symbol.name])) {
+                        return [symbol];
+                    }
+                    return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
+                        if (symbolFromSymbolTable.flags & 8388608
+                            && symbolFromSymbolTable.name !== "export="
+                            && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
+                            if (!useOnlyExternalAliasing ||
+                                ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
+                                var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
+                                if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
+                                    return [symbolFromSymbolTable];
+                                }
+                                var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTableWorker(resolvedImportedSymbol.exports, 
visitedSymbolTables) : undefined;
+                                if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
+                                    return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                                }
                             }
                         }
-                    }
-                });
+                    });
+                }
             }
             if (symbol) {
                 if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
@@ -21135,9 +21284,9 @@ var ts;
                     var accessibleSymbolChain = 
getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2));
                     if (!accessibleSymbolChain ||
                         needsQualification(accessibleSymbolChain[0], 
enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : 
getQualifiedLeftMeaning(meaning))) {
-                        var parent_5 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
-                        if (parent_5) {
-                            walkSymbol(parent_5, 
getQualifiedLeftMeaning(meaning), false);
+                        var parent_6 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
+                        if (parent_6) {
+                            walkSymbol(parent_6, 
getQualifiedLeftMeaning(meaning), false);
                         }
                     }
                     if (accessibleSymbolChain) {
@@ -21270,12 +21419,12 @@ var ts;
                             var length_1 = outerTypeParameters.length;
                             while (i < length_1) {
                                 var start = i;
-                                var parent_6 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
+                                var parent_7 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
                                 do {
                                     i++;
-                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_6);
+                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_7);
                                 if (!ts.rangeEquals(outerTypeParameters, 
typeArguments, start, i)) {
-                                    writeSymbolTypeReference(parent_6, 
typeArguments, start, i, flags);
+                                    writeSymbolTypeReference(parent_7, 
typeArguments, start, i, flags);
                                     writePunctuation(writer, 22);
                                 }
                             }
@@ -21556,7 +21705,7 @@ var ts;
                 }
                 ts.Debug.assert(bindingElement.kind === 174);
                 if (bindingElement.propertyName) {
-                    
writer.writeSymbol(ts.getTextOfNode(bindingElement.propertyName), 
bindingElement.symbol);
+                    
writer.writeProperty(ts.getTextOfNode(bindingElement.propertyName));
                     writePunctuation(writer, 55);
                     writeSpace(writer);
                 }
@@ -21699,12 +21848,12 @@ var ts;
                         if (ts.isExternalModuleAugmentation(node)) {
                             return true;
                         }
-                        var parent_7 = getDeclarationContainer(node);
+                        var parent_8 = getDeclarationContainer(node);
                         if (!(ts.getCombinedModifierFlags(node) & 1) &&
-                            !(node.kind !== 234 && parent_7.kind !== 261 && 
ts.isInAmbientContext(parent_7))) {
-                            return isGlobalSourceFile(parent_7);
+                            !(node.kind !== 234 && parent_8.kind !== 261 && 
ts.isInAmbientContext(parent_8))) {
+                            return isGlobalSourceFile(parent_8);
                         }
-                        return isDeclarationVisible(parent_7);
+                        return isDeclarationVisible(parent_8);
                     case 147:
                     case 146:
                     case 151:
@@ -21863,7 +22012,13 @@ var ts;
             return name.kind === 142 && 
!ts.isStringOrNumericLiteral(name.expression);
         }
         function getRestType(source, properties, symbol) {
-            ts.Debug.assert(!!(source.flags & 32768), "Rest types only support 
object types right now.");
+            source = filterType(source, function (t) { return !(t.flags & 
6144); });
+            if (source.flags & 8192) {
+                return emptyObjectType;
+            }
+            if (source.flags & 65536) {
+                return mapType(source, function (t) { return getRestType(t, 
properties, symbol); });
+            }
             var members = ts.createMap();
             var names = ts.createMap();
             for (var _i = 0, properties_2 = properties; _i < 
properties_2.length; _i++) {
@@ -21899,7 +22054,7 @@ var ts;
             var type;
             if (pattern.kind === 172) {
                 if (declaration.dotDotDotToken) {
-                    if (!(parentType.flags & 32768)) {
+                    if (!isValidSpreadType(parentType)) {
                         error(declaration, 
ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -21977,7 +22132,7 @@ var ts;
             return strictNullChecks && optional ? includeFalsyTypes(type, 
2048) : type;
         }
         function getTypeForVariableLikeDeclaration(declaration, 
includeOptionality) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = 
getTypeForVariableLikeDeclarationFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -21996,7 +22151,7 @@ var ts;
             if (declaration.type) {
                 return addOptionality(getTypeFromTypeNode(declaration.type), 
declaration.questionToken && includeOptionality);
             }
-            if ((compilerOptions.noImplicitAny || declaration.flags & 2097152) 
&&
+            if ((compilerOptions.noImplicitAny || declaration.flags & 65536) &&
                 declaration.kind === 223 && 
!ts.isBindingPattern(declaration.name) &&
                 !(ts.getCombinedModifierFlags(declaration) & 1) && 
!ts.isInAmbientContext(declaration)) {
                 if (!(ts.getCombinedNodeFlags(declaration) & 2) && 
(!declaration.initializer || isNullOrUndefined(declaration.initializer))) {
@@ -22057,13 +22212,18 @@ var ts;
         }
         function getTypeFromObjectBindingPattern(pattern, 
includePatternInType, reportErrors) {
             var members = ts.createMap();
+            var stringIndexInfo;
             var hasComputedProperties = false;
             ts.forEach(pattern.elements, function (e) {
                 var name = e.propertyName || e.name;
-                if (isComputedNonLiteralName(name) || e.dotDotDotToken) {
+                if (isComputedNonLiteralName(name)) {
                     hasComputedProperties = true;
                     return;
                 }
+                if (e.dotDotDotToken) {
+                    stringIndexInfo = createIndexInfo(anyType, false);
+                    return;
+                }
                 var text = ts.getTextOfPropertyName(name);
                 var flags = 4 | 67108864 | (e.initializer ? 536870912 : 0);
                 var symbol = createSymbol(flags, text);
@@ -22071,7 +22231,7 @@ var ts;
                 symbol.bindingElement = e;
                 members[symbol.name] = symbol;
             });
-            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, undefined, undefined);
+            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, stringIndexInfo, undefined);
             if (includePatternInType) {
                 result.pattern = pattern;
             }
@@ -22136,7 +22296,7 @@ var ts;
                 if (declaration.kind === 240) {
                     return links.type = 
checkExpression(declaration.expression);
                 }
-                if (declaration.flags & 2097152 && declaration.kind === 286 && 
declaration.typeExpression) {
+                if (declaration.flags & 65536 && declaration.kind === 286 && 
declaration.typeExpression) {
                     return links.type = 
getTypeFromTypeNode(declaration.typeExpression.type);
                 }
                 if (!pushTypeResolution(symbol, 0)) {
@@ -22145,7 +22305,7 @@ var ts;
                 var type = void 0;
                 if (declaration.kind === 192 ||
                     declaration.kind === 177 && declaration.parent.kind === 
192) {
-                    if (declaration.flags & 2097152) {
+                    if (declaration.flags & 65536) {
                         var jsdocType = ts.getJSDocType(declaration.parent);
                         if (jsdocType) {
                             return links.type = getTypeFromTypeNode(jsdocType);
@@ -22160,16 +22320,7 @@ var ts;
                     type = 
getWidenedTypeForVariableLikeDeclaration(declaration, true);
                 }
                 if (!popTypeResolution()) {
-                    if (symbol.valueDeclaration.type) {
-                        type = unknownType;
-                        error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
-                    }
-                    else {
-                        type = anyType;
-                        if (compilerOptions.noImplicitAny) {
-                            error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
-                        }
-                    }
+                    type = reportCircularityError(symbol);
                 }
                 links.type = type;
             }
@@ -22199,7 +22350,7 @@ var ts;
             if (!links.type) {
                 var getter = ts.getDeclarationOfKind(symbol, 151);
                 var setter = ts.getDeclarationOfKind(symbol, 152);
-                if (getter && getter.flags & 2097152) {
+                if (getter && getter.flags & 65536) {
                     var jsDocType = 
getTypeForVariableLikeDeclarationFromJSDocComment(getter);
                     if (jsDocType) {
                         return links.type = jsDocType;
@@ -22281,10 +22432,27 @@ var ts;
         function getTypeOfInstantiatedSymbol(symbol) {
             var links = getSymbolLinks(symbol);
             if (!links.type) {
-                links.type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!pushTypeResolution(symbol, 0)) {
+                    return unknownType;
+                }
+                var type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!popTypeResolution()) {
+                    type = reportCircularityError(symbol);
+                }
+                links.type = type;
             }
             return links.type;
         }
+        function reportCircularityError(symbol) {
+            if (symbol.valueDeclaration.type) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
+                return unknownType;
+            }
+            if (compilerOptions.noImplicitAny) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
+            }
+            return anyType;
+        }
         function getTypeOfSymbol(symbol) {
             if (symbol.flags & 16777216) {
                 return getTypeOfInstantiatedSymbol(symbol);
@@ -23052,37 +23220,42 @@ var ts;
         function resolveMappedTypeMembers(type) {
             var members = ts.createMap();
             var stringIndexInfo;
-            var numberIndexInfo;
             setStructuredTypeMembers(type, emptySymbols, emptyArray, 
emptyArray, undefined, undefined);
             var typeParameter = getTypeParameterFromMappedType(type);
             var constraintType = getConstraintTypeFromMappedType(type);
             var templateType = getTemplateTypeFromMappedType(type);
-            var isReadonly = !!type.declaration.readonlyToken;
-            var isOptional = !!type.declaration.questionToken;
-            var keyType = constraintType.flags & 16384 ? 
getApparentType(constraintType) : constraintType;
-            var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
-            forEachType(iterationType, function (t) {
+            var modifiersType = 
getApparentType(getModifiersTypeFromMappedType(type));
+            var templateReadonly = !!type.declaration.readonlyToken;
+            var templateOptional = !!type.declaration.questionToken;
+            if (type.declaration.typeParameter.constraint.kind === 168) {
+                forEachType(getLiteralTypeFromPropertyNames(modifiersType), 
addMemberForKeyType);
+                if (getIndexInfoOfType(modifiersType, 0)) {
+                    addMemberForKeyType(stringType);
+                }
+            }
+            else {
+                var keyType = constraintType.flags & 540672 ? 
getApparentType(constraintType) : constraintType;
+                var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
+                forEachType(iterationType, addMemberForKeyType);
+            }
+            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, undefined);
+            function addMemberForKeyType(t) {
                 var iterationMapper = createUnaryTypeMapper(typeParameter, t);
                 var templateMapper = type.mapper ? 
combineTypeMappers(type.mapper, iterationMapper) : iterationMapper;
                 var propType = instantiateType(templateType, templateMapper);
-                if (t.flags & (32 | 64 | 256)) {
+                if (t.flags & 32) {
                     var propName = t.text;
+                    var modifiersProp = getPropertyOfType(modifiersType, 
propName);
+                    var isOptional = templateOptional || !!(modifiersProp && 
modifiersProp.flags & 536870912);
                     var prop = createSymbol(4 | 67108864 | (isOptional ? 
536870912 : 0), propName);
-                    prop.type = addOptionality(propType, isOptional);
-                    prop.isReadonly = isReadonly;
+                    prop.type = propType;
+                    prop.isReadonly = templateReadonly || modifiersProp && 
isReadonlySymbol(modifiersProp);
                     members[propName] = prop;
                 }
                 else if (t.flags & 2) {
-                    stringIndexInfo = createIndexInfo(propType, isReadonly);
-                }
-                else if (t.flags & 4) {
-                    numberIndexInfo = createIndexInfo(propType, isReadonly);
+                    stringIndexInfo = createIndexInfo(propType, 
templateReadonly);
                 }
-            });
-            if (stringIndexInfo && numberIndexInfo && 
isTypeIdenticalTo(stringIndexInfo.type, numberIndexInfo.type)) {
-                numberIndexInfo = undefined;
             }
-            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, numberIndexInfo);
         }
         function getTypeParameterFromMappedType(type) {
             return type.typeParameter ||
@@ -23095,16 +23268,31 @@ var ts;
         function getTemplateTypeFromMappedType(type) {
             return type.templateType ||
                 (type.templateType = type.declaration.type ?
-                    
instantiateType(getTypeFromTypeNode(type.declaration.type), type.mapper || 
identityMapper) :
+                    
instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), 
!!type.declaration.questionToken), type.mapper || identityMapper) :
                     unknownType);
         }
+        function getModifiersTypeFromMappedType(type) {
+            if (!type.modifiersType) {
+                var constraintDeclaration = 
type.declaration.typeParameter.constraint;
+                if (constraintDeclaration.kind === 168) {
+                    type.modifiersType = 
instantiateType(getTypeFromTypeNode(constraintDeclaration.type), type.mapper || 
identityMapper);
+                }
+                else {
+                    var declaredType = 
getTypeFromMappedTypeNode(type.declaration);
+                    var constraint = 
getConstraintTypeFromMappedType(declaredType);
+                    var extendedConstraint = constraint && constraint.flags & 
16384 ? getConstraintOfTypeParameter(constraint) : constraint;
+                    type.modifiersType = extendedConstraint && 
extendedConstraint.flags & 262144 ? instantiateType(extendedConstraint.type, 
type.mapper || identityMapper) : emptyObjectType;
+                }
+            }
+            return type.modifiersType;
+        }
         function getErasedTemplateTypeFromMappedType(type) {
             return instantiateType(getTemplateTypeFromMappedType(type), 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), anyType));
         }
         function isGenericMappedType(type) {
             if (getObjectFlags(type) & 32) {
                 var constraintType = getConstraintTypeFromMappedType(type);
-                return !!(constraintType.flags & (16384 | 262144));
+                return maybeTypeOfKind(constraintType, 540672 | 262144);
             }
             return false;
         }
@@ -23178,23 +23366,18 @@ var ts;
                 getPropertiesOfUnionOrIntersectionType(type) :
                 getPropertiesOfObjectType(type);
         }
-        function getApparentTypeOfTypeParameter(type) {
+        function getApparentTypeOfTypeVariable(type) {
             if (!type.resolvedApparentType) {
-                var constraintType = getConstraintOfTypeParameter(type);
+                var constraintType = getConstraintOfTypeVariable(type);
                 while (constraintType && constraintType.flags & 16384) {
-                    constraintType = 
getConstraintOfTypeParameter(constraintType);
+                    constraintType = 
getConstraintOfTypeVariable(constraintType);
                 }
                 type.resolvedApparentType = 
getTypeWithThisArgument(constraintType || emptyObjectType, type);
             }
             return type.resolvedApparentType;
         }
-        function getApparentTypeOfIndexedAccess(type) {
-            return getIndexTypeOfType(getApparentType(type.objectType), 0) || 
type;
-        }
         function getApparentType(type) {
-            var t = type.flags & 16384 ? getApparentTypeOfTypeParameter(type) :
-                type.flags & 524288 ? getApparentTypeOfIndexedAccess(type) :
-                    type;
+            var t = type.flags & 540672 ? getApparentTypeOfTypeVariable(type) 
: type;
             return t.flags & 262178 ? globalStringType :
                 t.flags & 340 ? globalNumberType :
                     t.flags & 136 ? globalBooleanType :
@@ -23340,7 +23523,7 @@ var ts;
             return undefined;
         }
         function getTypeParametersFromJSDocTemplate(declaration) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var templateTag = ts.getJSDocTemplateTag(declaration);
                 if (templateTag) {
                     return 
getTypeParametersFromDeclaration(templateTag.typeParameters);
@@ -23368,7 +23551,7 @@ var ts;
             return result;
         }
         function isJSDocOptionalParameter(node) {
-            if (node.flags & 2097152) {
+            if (node.flags & 65536) {
                 if (node.type && node.type.kind === 273) {
                     return true;
                 }
@@ -23497,7 +23680,7 @@ var ts;
             else if (declaration.type) {
                 return getTypeFromTypeNode(declaration.type);
             }
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = getReturnTypeFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -23689,6 +23872,11 @@ var ts;
             }
             return typeParameter.constraint === noConstraintType ? undefined : 
typeParameter.constraint;
         }
+        function getConstraintOfTypeVariable(type) {
+            return type.flags & 16384 ? getConstraintOfTypeParameter(type) :
+                type.flags & 524288 ? type.constraint :
+                    undefined;
+        }
         function getParentSymbolOfTypeParameter(typeParameter) {
             return 
getSymbolOfNode(ts.getDeclarationOfKind(typeParameter.symbol, 143).parent);
         }
@@ -24149,6 +24337,9 @@ var ts;
                 typeSet.containsAny = true;
             }
             else if (!(type.flags & 8192) && (strictNullChecks || !(type.flags 
& 6144)) && !ts.contains(typeSet, type)) {
+                if (type.flags & 65536 && typeSet.unionIndex === undefined) {
+                    typeSet.unionIndex = typeSet.length;
+                }
                 typeSet.push(type);
             }
         }
@@ -24162,17 +24353,6 @@ var ts;
             if (types.length === 0) {
                 return emptyObjectType;
             }
-            var _loop_2 = function (i) {
-                var type_1 = types[i];
-                if (type_1.flags & 65536) {
-                    return { value: getUnionType(ts.map(type_1.types, function 
(t) { return getIntersectionType(ts.replaceElement(types, i, t)); }), false, 
aliasSymbol, aliasTypeArguments) };
-                }
-            };
-            for (var i = 0; i < types.length; i++) {
-                var state_2 = _loop_2(i);
-                if (typeof state_2 === "object")
-                    return state_2.value;
-            }
             var typeSet = [];
             addTypesToIntersection(typeSet, types);
             if (typeSet.containsAny) {
@@ -24181,6 +24361,11 @@ var ts;
             if (typeSet.length === 1) {
                 return typeSet[0];
             }
+            var unionIndex = typeSet.unionIndex;
+            if (unionIndex !== undefined) {
+                var unionType = typeSet[unionIndex];
+                return getUnionType(ts.map(unionType.types, function (t) { 
return getIntersectionType(ts.replaceElement(typeSet, unionIndex, t)); }), 
false, aliasSymbol, aliasTypeArguments);
+            }
             var id = getTypeListId(typeSet);
             var type = intersectionTypes[id];
             if (!type) {
@@ -24199,7 +24384,7 @@ var ts;
             }
             return links.resolvedType;
         }
-        function getIndexTypeForTypeParameter(type) {
+        function getIndexTypeForGenericType(type) {
             if (!type.resolvedIndexType) {
                 type.resolvedIndexType = createType(262144);
                 type.resolvedIndexType.type = type;
@@ -24215,7 +24400,7 @@ var ts;
             return getUnionType(ts.map(getPropertiesOfType(type), 
getLiteralTypeFromPropertyName));
         }
         function getIndexType(type) {
-            return type.flags & 16384 ? getIndexTypeForTypeParameter(type) :
+            return maybeTypeOfKind(type, 540672) ? 
getIndexTypeForGenericType(type) :
                 getObjectFlags(type) & 32 ? 
getConstraintTypeFromMappedType(type) :
                     type.flags & 1 || getIndexInfoOfType(type, 0) ? stringType 
:
                         getLiteralTypeFromPropertyNames(type);
@@ -24235,6 +24420,17 @@ var ts;
             var type = createType(524288);
             type.objectType = objectType;
             type.indexType = indexType;
+            if (type.objectType.flags & 229376) {
+                type.constraint = getIndexTypeOfType(type.objectType, 0);
+            }
+            else if (type.objectType.flags & 540672) {
+                var apparentType = 
getApparentTypeOfTypeVariable(type.objectType);
+                if (apparentType !== emptyObjectType) {
+                    type.constraint = isTypeOfKind(type.indexType, 262178) ?
+                        getIndexedAccessType(apparentType, type.indexType) :
+                        getIndexTypeOfType(apparentType, 0);
+                }
+            }
             return type;
         }
         function getPropertyTypeForIndexType(objectType, indexType, 
accessNode, cacheSymbol) {
@@ -24307,12 +24503,15 @@ var ts;
             }
             var mapper = 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), indexType);
             var templateMapper = type.mapper ? combineTypeMappers(type.mapper, 
mapper) : mapper;
-            return 
addOptionality(instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper), !!type.declaration.questionToken);
+            return instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper);
         }
         function getIndexedAccessType(objectType, indexType, accessNode) {
-            if (indexType.flags & 16384 ||
-                objectType.flags & 16384 && indexType.flags & 262144 ||
+            if (maybeTypeOfKind(indexType, 540672 | 262144) ||
+                maybeTypeOfKind(objectType, 540672) && !(accessNode && 
accessNode.kind === 178) ||
                 isGenericMappedType(objectType)) {
+                if (objectType.flags & 1) {
+                    return objectType;
+                }
                 if (accessNode) {
                     if (!isTypeAssignableTo(indexType, 
getIndexType(objectType))) {
                         error(accessNode, 
ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), 
typeToString(objectType));
@@ -24383,10 +24582,23 @@ var ts;
             return symbol ? 
getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : undefined;
         }
         function getSpreadType(left, right, isFromObjectLiteral) {
-            ts.Debug.assert(!!(left.flags & (32768 | 1)) && !!(right.flags & 
(32768 | 1)), "Only object types may be spread.");
             if (left.flags & 1 || right.flags & 1) {
                 return anyType;
             }
+            left = filterType(left, function (t) { return !(t.flags & 6144); 
});
+            if (left.flags & 8192) {
+                return right;
+            }
+            right = filterType(right, function (t) { return !(t.flags & 6144); 
});
+            if (right.flags & 8192) {
+                return left;
+            }
+            if (left.flags & 65536) {
+                return mapType(left, function (t) { return getSpreadType(t, 
right, isFromObjectLiteral); });
+            }
+            if (right.flags & 65536) {
+                return mapType(right, function (t) { return 
getSpreadType(left, t, isFromObjectLiteral); });
+            }
             var members = ts.createMap();
             var skippedPrivateMembers = ts.createMap();
             var stringIndexInfo;
@@ -24731,12 +24943,12 @@ var ts;
         function instantiateMappedType(type, mapper) {
             var constraintType = getConstraintTypeFromMappedType(type);
             if (constraintType.flags & 262144) {
-                var typeParameter_1 = constraintType.type;
-                var mappedTypeParameter = mapper(typeParameter_1);
-                if (typeParameter_1 !== mappedTypeParameter) {
-                    return mapType(mappedTypeParameter, function (t) {
+                var typeVariable_1 = constraintType.type;
+                var mappedTypeVariable = instantiateType(typeVariable_1, 
mapper);
+                if (typeVariable_1 !== mappedTypeVariable) {
+                    return mapType(mappedTypeVariable, function (t) {
                         if (isMappableType(t)) {
-                            var replacementMapper = 
createUnaryTypeMapper(typeParameter_1, t);
+                            var replacementMapper = 
createUnaryTypeMapper(typeVariable_1, t);
                             var combinedMapper = mapper.mappedTypes && 
mapper.mappedTypes.length === 1 ? replacementMapper : 
combineTypeMappers(replacementMapper, mapper);
                             combinedMapper.mappedTypes = mapper.mappedTypes;
                             return instantiateMappedObjectType(type, 
combinedMapper);
@@ -24763,7 +24975,7 @@ var ts;
                 return false;
             }
             var mappedTypes = mapper.mappedTypes;
-            var node = symbol.declarations[0].parent;
+            var node = symbol.declarations[0];
             while (node) {
                 switch (node.kind) {
                     case 158:
@@ -24799,6 +25011,15 @@ var ts;
                             }
                         }
                         break;
+                    case 274:
+                        var func = node;
+                        for (var _b = 0, _c = func.parameters; _b < _c.length; 
_b++) {
+                            var p = _c[_b];
+                            if (ts.contains(mappedTypes, getTypeOfNode(p))) {
+                                return true;
+                            }
+                        }
+                        break;
                     case 230:
                     case 261:
                         return false;
@@ -25218,6 +25439,23 @@ var ts;
                     
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
 targetType, sourceType);
                 }
             }
+            function 
isUnionOrIntersectionTypeWithoutNullableConstituents(type) {
+                if (!(type.flags & 196608)) {
+                    return false;
+                }
+                var seenNonNullable = false;
+                for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
+                    var t = _a[_i];
+                    if (t.flags & 6144) {
+                        continue;
+                    }
+                    if (seenNonNullable) {
+                        return true;
+                    }
+                    seenNonNullable = true;
+                }
+                return false;
+            }
             function isRelatedTo(source, target, reportErrors, headMessage) {
                 var result;
                 if (source.flags & 96 && source.flags & 1048576) {
@@ -25240,7 +25478,7 @@ var ts;
                         }
                         return 0;
                     }
-                    if (target.flags & 196608) {
+                    if 
(isUnionOrIntersectionTypeWithoutNullableConstituents(target)) {
                         source = getRegularTypeOfObjectLiteral(source);
                     }
                 }
@@ -25271,7 +25509,7 @@ var ts;
                         return result;
                     }
                 }
-                if (target.flags & 16384) {
+                else if (target.flags & 16384) {
                     if (getObjectFlags(source) & 32 && 
getConstraintTypeFromMappedType(source) === getIndexType(target)) {
                         if (!source.declaration.questionToken) {
                             var templateType = 
getTemplateTypeFromMappedType(source);
@@ -25296,10 +25534,12 @@ var ts;
                             return result;
                         }
                     }
-                    var constraint = getConstraintOfTypeParameter(target.type);
-                    if (constraint) {
-                        if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
-                            return result;
+                    if (target.type.flags & 540672) {
+                        var constraint = 
getConstraintOfTypeVariable(target.type);
+                        if (constraint) {
+                            if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
+                                return result;
+                            }
                         }
                     }
                 }
@@ -25309,12 +25549,19 @@ var ts;
                             return result;
                         }
                     }
+                    if (target.constraint) {
+                        if (result = isRelatedTo(source, target.constraint, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
                 }
                 if (source.flags & 16384) {
                     if (getObjectFlags(target) & 32 && 
getConstraintTypeFromMappedType(target) === getIndexType(source)) {
                         var indexedAccessType = getIndexedAccessType(source, 
getTypeParameterFromMappedType(target));
                         var templateType = 
getTemplateTypeFromMappedType(target);
                         if (result = isRelatedTo(indexedAccessType, 
templateType, reportErrors)) {
+                            errorInfo = saveErrorInfo;
                             return result;
                         }
                     }
@@ -25331,6 +25578,14 @@ var ts;
                         }
                     }
                 }
+                else if (source.flags & 524288) {
+                    if (source.constraint) {
+                        if (result = isRelatedTo(source.constraint, target, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
+                }
                 else {
                     if (getObjectFlags(source) & 4 && getObjectFlags(target) & 
4 && source.target === target.target) {
                         if (result = typeArgumentsRelatedTo(source, target, 
reportErrors)) {
@@ -25601,8 +25856,11 @@ var ts;
                         }
                     }
                 }
-                else if (relation !== identityRelation && 
isEmptyObjectType(resolveStructuredTypeMembers(target))) {
-                    return -1;
+                else if (relation !== identityRelation) {
+                    var resolved = resolveStructuredTypeMembers(target);
+                    if (isEmptyObjectType(resolved) || 
resolved.stringIndexInfo && resolved.stringIndexInfo.type.flags & 1) {
+                        return -1;
+                    }
                 }
                 return 0;
             }
@@ -26285,25 +26543,69 @@ var ts;
                 isFixed: false,
             };
         }
-        function couldContainTypeParameters(type) {
+        function couldContainTypeVariables(type) {
             var objectFlags = getObjectFlags(type);
-            return !!(type.flags & 16384 ||
-                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeParameters) ||
+            return !!(type.flags & 540672 ||
+                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeVariables) ||
                 objectFlags & 16 && type.symbol && type.symbol.flags & (8192 | 
2048 | 32) ||
                 objectFlags & 32 ||
-                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeParameters(type));
+                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeVariables(type));
         }
-        function couldUnionOrIntersectionContainTypeParameters(type) {
-            if (type.couldContainTypeParameters === undefined) {
-                type.couldContainTypeParameters = ts.forEach(type.types, 
couldContainTypeParameters);
+        function couldUnionOrIntersectionContainTypeVariables(type) {
+            if (type.couldContainTypeVariables === undefined) {
+                type.couldContainTypeVariables = ts.forEach(type.types, 
couldContainTypeVariables);
             }
-            return type.couldContainTypeParameters;
+            return type.couldContainTypeVariables;
         }
         function isTypeParameterAtTopLevel(type, typeParameter) {
             return type === typeParameter || type.flags & 196608 && 
ts.forEach(type.types, function (t) { return isTypeParameterAtTopLevel(t, 
typeParameter); });
         }
-        function inferTypes(context, originalSource, originalTarget) {
-            var typeParameters = context.signature.typeParameters;
+        function inferTypeForHomomorphicMappedType(source, target) {
+            var properties = getPropertiesOfType(source);
+            var indexInfo = getIndexInfoOfType(source, 0);
+            if (properties.length === 0 && !indexInfo) {
+                return undefined;
+            }
+            var typeVariable = 
getIndexedAccessType(getConstraintTypeFromMappedType(target).type, 
getTypeParameterFromMappedType(target));
+            var typeVariableArray = [typeVariable];
+            var typeInferences = createTypeInferencesObject();
+            var typeInferencesArray = [typeInferences];
+            var templateType = getTemplateTypeFromMappedType(target);
+            var readonlyMask = target.declaration.readonlyToken ? false : true;
+            var optionalMask = target.declaration.questionToken ? 0 : 
536870912;
+            var members = createSymbolTable(properties);
+            for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
+                var prop = properties_4[_i];
+                var inferredPropType = inferTargetType(getTypeOfSymbol(prop));
+                if (!inferredPropType) {
+                    return undefined;
+                }
+                var inferredProp = createSymbol(4 | 67108864 | prop.flags & 
optionalMask, prop.name);
+                inferredProp.declarations = prop.declarations;
+                inferredProp.type = inferredPropType;
+                inferredProp.isReadonly = readonlyMask && 
isReadonlySymbol(prop);
+                members[prop.name] = inferredProp;
+            }
+            if (indexInfo) {
+                var inferredIndexType = inferTargetType(indexInfo.type);
+                if (!inferredIndexType) {
+                    return undefined;
+                }
+                indexInfo = createIndexInfo(inferredIndexType, readonlyMask && 
indexInfo.isReadonly);
+            }
+            return createAnonymousType(undefined, members, emptyArray, 
emptyArray, indexInfo, undefined);
+            function inferTargetType(sourceType) {
+                typeInferences.primary = undefined;
+                typeInferences.secondary = undefined;
+                inferTypes(typeVariableArray, typeInferencesArray, sourceType, 
templateType);
+                var inferences = typeInferences.primary || 
typeInferences.secondary;
+                return inferences && getUnionType(inferences, true);
+            }
+        }
+        function inferTypesWithContext(context, originalSource, 
originalTarget) {
+            inferTypes(context.signature.typeParameters, context.inferences, 
originalSource, originalTarget);
+        }
+        function inferTypes(typeVariables, typeInferences, originalSource, 
originalTarget) {
             var sourceStack;
             var targetStack;
             var depth = 0;
@@ -26319,7 +26621,7 @@ var ts;
                 return false;
             }
             function inferFromTypes(source, target) {
-                if (!couldContainTypeParameters(target)) {
+                if (!couldContainTypeVariables(target)) {
                     return;
                 }
                 if (source.aliasSymbol && source.aliasTypeArguments && 
source.aliasSymbol === target.aliasSymbol) {
@@ -26358,13 +26660,13 @@ var ts;
                         target = removeTypesFromUnionOrIntersection(target, 
matchingTypes);
                     }
                 }
-                if (target.flags & 16384) {
+                if (target.flags & 540672) {
                     if (source.flags & 8388608) {
                         return;
                     }
-                    for (var i = 0; i < typeParameters.length; i++) {
-                        if (target === typeParameters[i]) {
-                            var inferences = context.inferences[i];
+                    for (var i = 0; i < typeVariables.length; i++) {
+                        if (target === typeVariables[i]) {
+                            var inferences = typeInferences[i];
                             if (!inferences.isFixed) {
                                 var candidates = inferiority ?
                                     inferences.secondary || 
(inferences.secondary = []) :
@@ -26372,7 +26674,7 @@ var ts;
                                 if (!ts.contains(candidates, source)) {
                                     candidates.push(source);
                                 }
-                                if (!isTypeParameterAtTopLevel(originalTarget, 
target)) {
+                                if (target.flags & 16384 && 
!isTypeParameterAtTopLevel(originalTarget, target)) {
                                     inferences.topLevel = false;
                                 }
                             }
@@ -26390,21 +26692,21 @@ var ts;
                 }
                 else if (target.flags & 196608) {
                     var targetTypes = target.types;
-                    var typeParameterCount = 0;
-                    var typeParameter = void 0;
+                    var typeVariableCount = 0;
+                    var typeVariable = void 0;
                     for (var _d = 0, targetTypes_2 = targetTypes; _d < 
targetTypes_2.length; _d++) {
                         var t = targetTypes_2[_d];
-                        if (t.flags & 16384 && ts.contains(typeParameters, t)) 
{
-                            typeParameter = t;
-                            typeParameterCount++;
+                        if (t.flags & 540672 && ts.contains(typeVariables, t)) 
{
+                            typeVariable = t;
+                            typeVariableCount++;
                         }
                         else {
                             inferFromTypes(source, t);
                         }
                     }
-                    if (typeParameterCount === 1) {
+                    if (typeVariableCount === 1) {
                         inferiority++;
-                        inferFromTypes(source, typeParameter);
+                        inferFromTypes(source, typeVariable);
                         inferiority--;
                     }
                 }
@@ -26444,9 +26746,16 @@ var ts;
             function inferFromObjectTypes(source, target) {
                 if (getObjectFlags(target) & 32) {
                     var constraintType = 
getConstraintTypeFromMappedType(target);
-                    if (getObjectFlags(source) & 32) {
-                        
inferFromTypes(getConstraintTypeFromMappedType(source), constraintType);
-                        inferFromTypes(getTemplateTypeFromMappedType(source), 
getTemplateTypeFromMappedType(target));
+                    if (constraintType.flags & 262144) {
+                        var index = ts.indexOf(typeVariables, 
constraintType.type);
+                        if (index >= 0 && !typeInferences[index].isFixed) {
+                            var inferredType = 
inferTypeForHomomorphicMappedType(source, target);
+                            if (inferredType) {
+                                inferiority++;
+                                inferFromTypes(inferredType, 
typeVariables[index]);
+                                inferiority--;
+                            }
+                        }
                         return;
                     }
                     if (constraintType.flags & 16384) {
@@ -26462,8 +26771,8 @@ var ts;
             }
             function inferFromProperties(source, target) {
                 var properties = getPropertiesOfObjectType(target);
-                for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
-                    var targetProp = properties_4[_i];
+                for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
+                    var targetProp = properties_5[_i];
                     var sourceProp = getPropertyOfObjectType(source, 
targetProp.name);
                     if (sourceProp) {
                         inferFromTypes(getTypeOfSymbol(sourceProp), 
getTypeOfSymbol(targetProp));
@@ -27622,7 +27931,7 @@ var ts;
                         error(node, 
ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
                     }
                 }
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     getNodeLinks(container).flags |= 8192;
                 }
                 return getTypeOfSymbol(symbol);
@@ -27807,18 +28116,21 @@ var ts;
             var baseConstructorType = 
getBaseConstructorTypeOfClass(classInstanceType);
             return baseConstructorType === nullWideningType;
         }
+        function checkThisBeforeSuper(node, container, diagnosticMessage) {
+            var containingClassDecl = container.parent;
+            var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
+            if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
+                var superCall = getSuperCallInConstructor(container);
+                if (!superCall || superCall.end > node.pos) {
+                    error(node, diagnosticMessage);
+                }
+            }
+        }
         function checkThisExpression(node) {
             var container = ts.getThisContainer(node, true);
             var needToCaptureLexicalThis = false;
             if (container.kind === 150) {
-                var containingClassDecl = container.parent;
-                var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
-                if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
-                    var superCall = getSuperCallInConstructor(container);
-                    if (!superCall || superCall.end > node.pos) {
-                        error(node, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
-                    }
-                }
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
             }
             if (container.kind === 185) {
                 container = ts.getThisContainer(container, false);
@@ -27932,6 +28244,9 @@ var ts;
                 }
                 return unknownType;
             }
+            if (!isCallExpression && container.kind === 150) {
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
+            }
             if ((ts.getModifierFlags(container) & 32) || isCallExpression) {
                 nodeCheckFlag = 512;
             }
@@ -28387,7 +28702,7 @@ var ts;
             return mapper && mapper.context;
         }
         function checkSpreadExpression(node, contextualMapper) {
-            var arrayOrIterableType = checkExpressionCached(node.expression, 
contextualMapper);
+            var arrayOrIterableType = checkExpression(node.expression, 
contextualMapper);
             return checkIteratedTypeOrElementType(arrayOrIterableType, 
node.expression, false);
         }
         function hasDefaultValue(node) {
@@ -28535,7 +28850,7 @@ var ts;
                         if (impliedProp) {
                             prop.flags |= impliedProp.flags & 536870912;
                         }
-                        else if 
(!compilerOptions.suppressExcessPropertyErrors) {
+                        else if (!compilerOptions.suppressExcessPropertyErrors 
&& !getIndexInfoOfType(contextualType, 0)) {
                             error(memberDecl.name, 
ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
 symbolToString(member), typeToString(contextualType));
                         }
                     }
@@ -28549,6 +28864,9 @@ var ts;
                     member = prop;
                 }
                 else if (memberDecl.kind === 259) {
+                    if (languageVersion < 5) {
+                        checkExternalEmitHelpers(memberDecl, 2);
+                    }
                     if (propertiesArray.length > 0) {
                         spread = getSpreadType(spread, 
createObjectLiteralType(), true);
                         propertiesArray = [];
@@ -28558,7 +28876,7 @@ var ts;
                         typeFlags = 0;
                     }
                     var type = checkExpression(memberDecl.expression);
-                    if (!(type.flags & (32768 | 1))) {
+                    if (!isValidSpreadType(type)) {
                         error(memberDecl, 
ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -28599,8 +28917,10 @@ var ts;
                 if (propertiesArray.length > 0) {
                     spread = getSpreadType(spread, createObjectLiteralType(), 
true);
                 }
-                spread.flags |= propagatedFlags;
-                spread.symbol = node.symbol;
+                if (spread.flags & 32768) {
+                    spread.flags |= propagatedFlags;
+                    spread.symbol = node.symbol;
+                }
                 return spread;
             }
             return createObjectLiteralType();
@@ -28623,6 +28943,11 @@ var ts;
                 return result;
             }
         }
+        function isValidSpreadType(type) {
+            return !!(type.flags & (1 | 4096 | 2048) ||
+                type.flags & 32768 && !isGenericMappedType(type) ||
+                type.flags & 196608 && !ts.forEach(type.types, function (t) { 
return !isValidSpreadType(t); }));
+        }
         function checkJsxSelfClosingElement(node) {
             checkJsxOpeningLikeElement(node);
             return jsxElementType || anyType;
@@ -28697,6 +29022,9 @@ var ts;
             return exprType;
         }
         function checkJsxSpreadAttribute(node, elementAttributesType, 
nameTable) {
+            if (compilerOptions.jsx === 2) {
+                checkExternalEmitHelpers(node, 2);
+            }
             var type = checkExpression(node.expression);
             var props = getPropertiesOfType(type);
             for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
@@ -29241,19 +29569,19 @@ var ts;
             for (var _i = 0, signatures_2 = signatures; _i < 
signatures_2.length; _i++) {
                 var signature = signatures_2[_i];
                 var symbol = signature.declaration && 
getSymbolOfNode(signature.declaration);
-                var parent_8 = signature.declaration && 
signature.declaration.parent;
+                var parent_9 = signature.declaration && 
signature.declaration.parent;
                 if (!lastSymbol || symbol === lastSymbol) {
-                    if (lastParent && parent_8 === lastParent) {
+                    if (lastParent && parent_9 === lastParent) {
                         index++;
                     }
                     else {
-                        lastParent = parent_8;
+                        lastParent = parent_9;
                         index = cutoffIndex;
                     }
                 }
                 else {
                     index = cutoffIndex = result.length;
-                    lastParent = parent_8;
+                    lastParent = parent_9;
                 }
                 lastSymbol = symbol;
                 if (signature.hasLiteralTypes) {
@@ -29342,7 +29670,7 @@ var ts;
         function instantiateSignatureInContextOf(signature, 
contextualSignature, contextualMapper) {
             var context = createInferenceContext(signature, true);
             forEachMatchingParameterType(contextualSignature, signature, 
function (source, target) {
-                inferTypes(context, instantiateType(source, contextualMapper), 
target);
+                inferTypesWithContext(context, instantiateType(source, 
contextualMapper), target);
             });
             return getSignatureInstantiation(signature, 
getInferredTypes(context));
         }
@@ -29361,7 +29689,7 @@ var ts;
             if (thisType) {
                 var thisArgumentNode = getThisArgumentOfCall(node);
                 var thisArgumentType = thisArgumentNode ? 
checkExpression(thisArgumentNode) : voidType;
-                inferTypes(context, thisArgumentType, thisType);
+                inferTypesWithContext(context, thisArgumentType, thisType);
             }
             var argCount = getEffectiveArgumentCount(node, args, signature);
             for (var i = 0; i < argCount; i++) {
@@ -29373,7 +29701,7 @@ var ts;
                         var mapper = excludeArgument && excludeArgument[i] !== 
undefined ? identityMapper : inferenceMapper;
                         argType = checkExpressionWithContextualType(arg, 
paramType, mapper);
                     }
-                    inferTypes(context, argType, paramType);
+                    inferTypesWithContext(context, argType, paramType);
                 }
             }
             if (excludeArgument) {
@@ -29381,7 +29709,7 @@ var ts;
                     if (excludeArgument[i] === false) {
                         var arg = args[i];
                         var paramType = getTypeAtPosition(signature, i);
-                        inferTypes(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
+                        inferTypesWithContext(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
                     }
                 }
             }
@@ -29875,12 +30203,13 @@ var ts;
                 if (containingClass) {
                     var containingType = getTypeOfNode(containingClass);
                     var baseTypes = getBaseTypes(containingType);
-                    if (baseTypes.length) {
+                    while (baseTypes.length) {
                         var baseType = baseTypes[0];
                         if (modifiers & 16 &&
                             baseType.symbol === declaration.parent.symbol) {
                             return true;
                         }
+                        baseTypes = getBaseTypes(baseType);
                     }
                 }
                 if (modifiers & 8) {
@@ -30071,7 +30400,7 @@ var ts;
                 for (var i = 0; i < len; i++) {
                     var declaration = signature.parameters[i].valueDeclaration;
                     if (declaration.type) {
-                        inferTypes(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
+                        inferTypesWithContext(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
                     }
                 }
             }
@@ -30124,7 +30453,7 @@ var ts;
                 assignBindingElementTypes(parameter.valueDeclaration);
             }
             else if (isInferentialContext(mapper)) {
-                inferTypes(mapper.context, links.type, 
instantiateType(contextualType, mapper));
+                inferTypesWithContext(mapper.context, links.type, 
instantiateType(contextualType, mapper));
             }
         }
         function getReturnTypeFromJSDocComment(func) {
@@ -30229,7 +30558,7 @@ var ts;
             if (!switchTypes.length) {
                 return false;
             }
-            return eachTypeContainedIn(type, switchTypes);
+            return eachTypeContainedIn(mapType(type, 
getRegularTypeOfLiteralType), switchTypes);
         }
         function functionHasImplicitReturn(func) {
             if (!(func.flags & 128)) {
@@ -30443,7 +30772,7 @@ var ts;
         }
         function checkAwaitExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 524288)) {
+                if (!(node.flags & 16384)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.await_expression_is_only_allowed_within_an_async_function);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -30560,15 +30889,15 @@ var ts;
             if (!(isTypeComparableTo(leftType, stringType) || 
isTypeOfKind(leftType, 340 | 512))) {
                 error(left, 
ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(right, 
ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             return booleanType;
         }
         function checkObjectLiteralAssignment(node, sourceType) {
             var properties = node.properties;
-            for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
-                var p = properties_5[_i];
+            for (var _i = 0, properties_6 = properties; _i < 
properties_6.length; _i++) {
+                var p = properties_6[_i];
                 checkObjectLiteralDestructuringPropertyAssignment(sourceType, 
p, properties);
             }
             return sourceType;
@@ -30601,6 +30930,9 @@ var ts;
                 }
             }
             else if (property.kind === 259) {
+                if (languageVersion < 5) {
+                    checkExternalEmitHelpers(property, 4);
+                }
                 var nonRestNames = [];
                 if (allProperties) {
                     for (var i = 0; i < allProperties.length - 1; i++) {
@@ -30951,7 +31283,7 @@ var ts;
         }
         function checkYieldExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 131072) || isYieldExpressionInClass(node)) {
+                if (!(node.flags & 4096) || isYieldExpressionInClass(node)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -31036,8 +31368,8 @@ var ts;
         }
         function isLiteralContextualType(contextualType) {
             if (contextualType) {
-                if (contextualType.flags & 16384) {
-                    var apparentType = 
getApparentTypeOfTypeParameter(contextualType);
+                if (contextualType.flags & 540672) {
+                    var apparentType = 
getApparentTypeOfTypeVariable(contextualType);
                     if (apparentType.flags & (2 | 4 | 8 | 16)) {
                         return true;
                     }
@@ -31292,9 +31624,9 @@ var ts;
                 case 158:
                 case 149:
                 case 148:
-                    var parent_9 = node.parent;
-                    if (node === parent_9.type) {
-                        return parent_9;
+                    var parent_10 = node.parent;
+                    if (node === parent_10.type) {
+                        return parent_10;
                     }
             }
         }
@@ -31327,6 +31659,12 @@ var ts;
                 node.kind === 154) {
                 checkGrammarFunctionLikeDeclaration(node);
             }
+            if (ts.isAsyncFunctionLike(node) && languageVersion < 4) {
+                checkExternalEmitHelpers(node, 64);
+                if (languageVersion < 2) {
+                    checkExternalEmitHelpers(node, 128);
+                }
+            }
             checkTypeParameters(node.typeParameters);
             ts.forEach(node.parameters, checkParameter);
             if (node.type) {
@@ -31686,7 +32024,7 @@ var ts;
             checkSourceElement(node.type);
             var type = getTypeFromMappedTypeNode(node);
             var constraintType = getConstraintTypeFromMappedType(type);
-            var keyType = constraintType.flags & 16384 ? 
getApparentTypeOfTypeParameter(constraintType) : constraintType;
+            var keyType = constraintType.flags & 540672 ? 
getApparentTypeOfTypeVariable(constraintType) : constraintType;
             checkTypeAssignableTo(keyType, stringType, 
node.typeParameter.constraint);
         }
         function isPrivateWithinAmbient(node) {
@@ -31975,7 +32313,7 @@ var ts;
             if (thenSignatures.length === 0) {
                 return undefined;
             }
-            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 131072);
+            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 524288);
             if (isTypeAny(onfulfilledParameterType)) {
                 return undefined;
             }
@@ -32111,6 +32449,9 @@ var ts;
                 markAliasSymbolAsReferenced(rootSymbol);
             }
         }
+        function getParameterTypeNodeForDecoratorCheck(node) {
+            return node.dotDotDotToken ? 
ts.getRestParameterElementType(node.type) : node.type;
+        }
         function checkDecorators(node) {
             if (!node.decorators) {
                 return;
@@ -32121,14 +32462,20 @@ var ts;
             if (!compilerOptions.experimentalDecorators) {
                 error(node, 
ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);
             }
+            var firstDecorator = node.decorators[0];
+            checkExternalEmitHelpers(firstDecorator, 8);
+            if (node.kind === 144) {
+                checkExternalEmitHelpers(firstDecorator, 32);
+            }
             if (compilerOptions.emitDecoratorMetadata) {
+                checkExternalEmitHelpers(firstDecorator, 16);
                 switch (node.kind) {
                     case 226:
                         var constructor = ts.getFirstConstructorWithBody(node);
                         if (constructor) {
                             for (var _i = 0, _a = constructor.parameters; _i < 
_a.length; _i++) {
                                 var parameter = _a[_i];
-                                markTypeNodeAsReferenced(parameter.type);
+                                
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                             }
                         }
                         break;
@@ -32137,11 +32484,13 @@ var ts;
                     case 152:
                         for (var _b = 0, _c = node.parameters; _b < _c.length; 
_b++) {
                             var parameter = _c[_b];
-                            markTypeNodeAsReferenced(parameter.type);
+                            
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                         }
                         markTypeNodeAsReferenced(node.type);
                         break;
                     case 147:
+                        
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));
+                        break;
                     case 144:
                         markTypeNodeAsReferenced(node.type);
                         break;
@@ -32250,7 +32599,7 @@ var ts;
         }
         function checkUnusedLocalsAndParameters(node) {
             if (node.parent.kind !== 227 && noUnusedIdentifiers && 
!ts.isInAmbientContext(node)) {
-                var _loop_3 = function (key) {
+                var _loop_2 = function (key) {
                     var local = node.locals[key];
                     if (!local.isReferenced) {
                         if (local.valueDeclaration && 
ts.getRootDeclaration(local.valueDeclaration).kind === 144) {
@@ -32268,10 +32617,17 @@ var ts;
                     }
                 };
                 for (var key in node.locals) {
-                    _loop_3(key);
+                    _loop_2(key);
                 }
             }
         }
+        function isRemovedPropertyFromObjectSpread(node) {
+            if (ts.isBindingElement(node) && 
ts.isObjectBindingPattern(node.parent)) {
+                var lastElement = ts.lastOrUndefined(node.parent.elements);
+                return lastElement !== node && !!lastElement.dotDotDotToken;
+            }
+            return false;
+        }
         function errorUnusedLocal(node, name) {
             if (isIdentifierThatStartsWithUnderScore(node)) {
                 var declaration = ts.getRootDeclaration(node.parent);
@@ -32281,7 +32637,9 @@ var ts;
                     return;
                 }
             }
-            error(node, ts.Diagnostics._0_is_declared_but_never_used, name);
+            if (!isRemovedPropertyFromObjectSpread(node.kind === 70 ? 
node.parent : node)) {
+                error(node, ts.Diagnostics._0_is_declared_but_never_used, 
name);
+            }
         }
         function parameterNameStartsWithUnderscore(parameterName) {
             return parameterName && 
isIdentifierThatStartsWithUnderScore(parameterName);
@@ -32336,7 +32694,7 @@ var ts;
                         for (var _i = 0, _a = local.declarations; _i < 
_a.length; _i++) {
                             var declaration = _a[_i];
                             if (!ts.isAmbientModule(declaration)) {
-                                error(declaration.name, 
ts.Diagnostics._0_is_declared_but_never_used, local.name);
+                                errorUnusedLocal(declaration.name, local.name);
                             }
                         }
                     }
@@ -32438,14 +32796,14 @@ var ts;
             }
         }
         function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {
-            if (!needCollisionCheckForIdentifier(node, name, "Promise")) {
+            if (languageVersion >= 4 || !needCollisionCheckForIdentifier(node, 
name, "Promise")) {
                 return;
             }
             if (node.kind === 230 && ts.getModuleInstanceState(node) !== 1) {
                 return;
             }
             var parent = getDeclarationContainer(node);
-            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 8192) {
+            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 1024) {
                 error(name, 
ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
 ts.declarationNameToString(name), ts.declarationNameToString(name));
             }
         }
@@ -32504,7 +32862,8 @@ var ts;
                     }
                     var enclosingContainer = 
ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);
                     if (enclosingContainer === func) {
-                        if (symbol.valueDeclaration.kind === 144) {
+                        if (symbol.valueDeclaration.kind === 144 ||
+                            symbol.valueDeclaration.kind === 174) {
                             if (symbol.valueDeclaration.pos < node.pos) {
                                 return;
                             }
@@ -32542,16 +32901,19 @@ var ts;
                 }
             }
             if (node.kind === 174) {
+                if (node.parent.kind === 172 && languageVersion < 5 && 
!ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(node, 4);
+                }
                 if (node.propertyName && node.propertyName.kind === 142) {
                     checkComputedPropertyName(node.propertyName);
                 }
-                var parent_10 = node.parent.parent;
-                var parentType = getTypeForBindingElementParent(parent_10);
+                var parent_11 = node.parent.parent;
+                var parentType = getTypeForBindingElementParent(parent_11);
                 var name_24 = node.propertyName || node.name;
                 var property = getPropertyOfType(parentType, 
ts.getTextOfPropertyName(name_24));
                 markPropertyAsReferenced(property);
-                if (parent_10.initializer && property && 
getParentOfSymbol(property)) {
-                    checkClassPropertyAccess(parent_10, parent_10.initializer, 
parentType, property);
+                if (parent_11.initializer && property && 
getParentOfSymbol(property)) {
+                    checkClassPropertyAccess(parent_11, parent_11.initializer, 
parentType, property);
                 }
             }
             if (ts.isBindingPattern(node.name)) {
@@ -32733,7 +33095,7 @@ var ts;
                     checkReferenceExpression(varExpr, 
ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access);
                 }
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(node.expression, 
ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             checkSourceElement(node.statement);
@@ -32951,7 +33313,7 @@ var ts;
         }
         function checkWithStatement(node) {
             if (!checkGrammarStatementInAmbientContext(node)) {
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);
                 }
             }
@@ -33197,6 +33559,9 @@ var ts;
             checkClassForDuplicateDeclarations(node);
             var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node);
             if (baseTypeNode) {
+                if (languageVersion < 2 && !ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(baseTypeNode.parent, 1);
+                }
                 var baseTypes = getBaseTypes(type);
                 if (baseTypes.length && produceDiagnostics) {
                     var baseType_1 = baseTypes[0];
@@ -33372,8 +33737,8 @@ var ts;
             for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; 
_i++) {
                 var base = baseTypes_2[_i];
                 var properties = 
getPropertiesOfObjectType(getTypeWithThisArgument(base, type.thisType));
-                for (var _a = 0, properties_6 = properties; _a < 
properties_6.length; _a++) {
-                    var prop = properties_6[_a];
+                for (var _a = 0, properties_7 = properties; _a < 
properties_7.length; _a++) {
+                    var prop = properties_7[_a];
                     var existing = seen[prop.name];
                     if (!existing) {
                         seen[prop.name] = { prop: prop, containingType: base };
@@ -34954,9 +35319,9 @@ var ts;
             }
             var location = reference;
             if (startInDeclarationContainer) {
-                var parent_11 = reference.parent;
-                if (ts.isDeclaration(parent_11) && reference === 
parent_11.name) {
-                    location = getDeclarationContainer(parent_11);
+                var parent_12 = reference.parent;
+                if (ts.isDeclaration(parent_12) && reference === 
parent_12.name) {
+                    location = getDeclarationContainer(parent_12);
                 }
             }
             return resolveName(location, reference.text, 107455 | 1048576 | 
8388608, undefined, undefined);
@@ -35069,9 +35434,9 @@ var ts;
                 }
                 var current = symbol;
                 while (true) {
-                    var parent_12 = getParentOfSymbol(current);
-                    if (parent_12) {
-                        current = parent_12;
+                    var parent_13 = getParentOfSymbol(current);
+                    if (parent_13) {
+                        current = parent_13;
                     }
                     else {
                         break;
@@ -35104,8 +35469,6 @@ var ts;
                 ts.bindSourceFile(file, compilerOptions);
             }
             var augmentations;
-            var requestedExternalEmitHelpers = 0;
-            var firstFileRequestingExternalHelpers;
             for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) 
{
                 var file = _c[_b];
                 if (!ts.isExternalOrCommonJsModule(file)) {
@@ -35125,15 +35488,6 @@ var ts;
                         }
                     }
                 }
-                if ((compilerOptions.isolatedModules || 
ts.isExternalModule(file)) && !file.isDeclarationFile) {
-                    var fileRequestedExternalEmitHelpers = file.flags & 64512;
-                    if (fileRequestedExternalEmitHelpers) {
-                        requestedExternalEmitHelpers |= 
fileRequestedExternalEmitHelpers;
-                        if (firstFileRequestingExternalHelpers === undefined) {
-                            firstFileRequestingExternalHelpers = file;
-                        }
-                    }
-                }
             }
             if (augmentations) {
                 for (var _d = 0, augmentations_1 = augmentations; _d < 
augmentations_1.length; _d++) {
@@ -35188,44 +35542,46 @@ var ts;
             var symbol = getGlobalSymbol("ReadonlyArray", 793064, undefined);
             globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, 
1);
             anyReadonlyArrayType = globalReadonlyArrayType ? 
createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : 
anyArrayType;
-            if (compilerOptions.importHelpers && 
firstFileRequestingExternalHelpers) {
-                var helpersModule = 
resolveExternalModule(firstFileRequestingExternalHelpers, 
ts.externalHelpersModuleNameText, ts.Diagnostics.Cannot_find_module_0, 
undefined);
-                if (helpersModule) {
-                    var exports = helpersModule.exports;
-                    if (requestedExternalEmitHelpers & 1024 && languageVersion 
< 2) {
-                        verifyHelperSymbol(exports, "__extends", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 16384 &&
-                        (languageVersion < 5 || compilerOptions.jsx === 2)) {
-                        verifyHelperSymbol(exports, "__assign", 107455);
-                    }
-                    if (languageVersion < 5 && requestedExternalEmitHelpers & 
32768) {
-                        verifyHelperSymbol(exports, "__rest", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 2048) {
-                        verifyHelperSymbol(exports, "__decorate", 107455);
-                        if (compilerOptions.emitDecoratorMetadata) {
-                            verifyHelperSymbol(exports, "__metadata", 107455);
-                        }
-                    }
-                    if (requestedExternalEmitHelpers & 4096) {
-                        verifyHelperSymbol(exports, "__param", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 8192) {
-                        verifyHelperSymbol(exports, "__awaiter", 107455);
-                        if (languageVersion < 2) {
-                            verifyHelperSymbol(exports, "__generator", 107455);
+        }
+        function checkExternalEmitHelpers(location, helpers) {
+            if ((requestedExternalEmitHelpers & helpers) !== helpers && 
compilerOptions.importHelpers) {
+                var sourceFile = ts.getSourceFileOfNode(location);
+                if (ts.isEffectiveExternalModule(sourceFile, compilerOptions)) 
{
+                    var helpersModule = resolveHelpersModule(sourceFile, 
location);
+                    if (helpersModule !== unknownSymbol) {
+                        var uncheckedHelpers = helpers & 
~requestedExternalEmitHelpers;
+                        for (var helper = 1; helper <= 128; helper <<= 1) {
+                            if (uncheckedHelpers & helper) {
+                                var name_27 = getHelperName(helper);
+                                var symbol = getSymbol(helpersModule.exports, 
ts.escapeIdentifier(name_27), 107455);
+                                if (!symbol) {
+                                    error(location, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,
 ts.externalHelpersModuleNameText, name_27);
+                                }
+                            }
                         }
                     }
+                    requestedExternalEmitHelpers |= helpers;
                 }
             }
         }
-        function verifyHelperSymbol(symbols, name, meaning) {
-            var symbol = getSymbol(symbols, ts.escapeIdentifier(name), 
meaning);
-            if (!symbol) {
-                error(undefined, 
ts.Diagnostics.Module_0_has_no_exported_member_1, 
ts.externalHelpersModuleNameText, name);
+        function getHelperName(helper) {
+            switch (helper) {
+                case 1: return "__extends";
+                case 2: return "__assign";
+                case 4: return "__rest";
+                case 8: return "__decorate";
+                case 16: return "__metadata";
+                case 32: return "__param";
+                case 64: return "__awaiter";
+                case 128: return "__generator";
             }
         }
+        function resolveHelpersModule(node, errorNode) {
+            if (!externalHelpersModule) {
+                externalHelpersModule = resolveExternalModule(node, 
ts.externalHelpersModuleNameText, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
 errorNode) || unknownSymbol;
+            }
+            return externalHelpersModule;
+        }
         function createInstantiatedPromiseLikeType() {
             var promiseLikeType = getGlobalPromiseLikeType();
             if (promiseLikeType !== emptyGenericType) {
@@ -35748,9 +36104,9 @@ var ts;
                 if (prop.kind === 259) {
                     continue;
                 }
-                var name_27 = prop.name;
-                if (name_27.kind === 142) {
-                    checkGrammarComputedPropertyName(name_27);
+                var name_28 = prop.name;
+                if (name_28.kind === 142) {
+                    checkGrammarComputedPropertyName(name_28);
                 }
                 if (prop.kind === 258 && !inDestructuring && 
prop.objectAssignmentInitializer) {
                     return grammarErrorOnNode(prop.equalsToken, 
ts.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);
@@ -35766,8 +36122,8 @@ var ts;
                 var currentKind = void 0;
                 if (prop.kind === 257 || prop.kind === 258) {
                     checkGrammarForInvalidQuestionMark(prop.questionToken, 
ts.Diagnostics.An_object_member_cannot_be_declared_optional);
-                    if (name_27.kind === 8) {
-                        checkGrammarNumericLiteral(name_27);
+                    if (name_28.kind === 8) {
+                        checkGrammarNumericLiteral(name_28);
                     }
                     currentKind = Property;
                 }
@@ -35783,7 +36139,7 @@ var ts;
                 else {
                     ts.Debug.fail("Unexpected syntax kind:" + prop.kind);
                 }
-                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_27);
+                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_28);
                 if (effectiveName === undefined) {
                     continue;
                 }
@@ -35793,18 +36149,18 @@ var ts;
                 else {
                     var existingKind = seen[effectiveName];
                     if (currentKind === Property && existingKind === Property) 
{
-                        grammarErrorOnNode(name_27, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_27));
+                        grammarErrorOnNode(name_28, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_28));
                     }
                     else if ((currentKind & GetOrSetAccessor) && (existingKind 
& GetOrSetAccessor)) {
                         if (existingKind !== GetOrSetAccessor && currentKind 
!== existingKind) {
                             seen[effectiveName] = currentKind | existingKind;
                         }
                         else {
-                            return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
+                            return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
                         }
                     }
                     else {
-                        return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
+                        return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
                     }
                 }
             }
@@ -35817,12 +36173,12 @@ var ts;
                     continue;
                 }
                 var jsxAttr = attr;
-                var name_28 = jsxAttr.name;
-                if (!seen[name_28.text]) {
-                    seen[name_28.text] = true;
+                var name_29 = jsxAttr.name;
+                if (!seen[name_29.text]) {
+                    seen[name_29.text] = true;
                 }
                 else {
-                    return grammarErrorOnNode(name_28, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
+                    return grammarErrorOnNode(name_29, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
                 }
                 var initializer = jsxAttr.initializer;
                 if (initializer && initializer.kind === 252 && 
!initializer.expression) {
@@ -35875,6 +36231,9 @@ var ts;
             else if (accessor.body === undefined && 
!(ts.getModifierFlags(accessor) & 128)) {
                 return grammarErrorAtPos(ts.getSourceFileOfNode(accessor), 
accessor.end - 1, ";".length, ts.Diagnostics._0_expected, "{");
             }
+            else if (accessor.body && ts.getModifierFlags(accessor) & 128) {
+                return grammarErrorOnNode(accessor, 
ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);
+            }
             else if (accessor.typeParameters) {
                 return grammarErrorOnNode(accessor.name, 
ts.Diagnostics.An_accessor_cannot_have_type_parameters);
             }
@@ -36192,8 +36551,19 @@ var ts;
             }
         }
         function checkGrammarNumericLiteral(node) {
-            if (node.isOctalLiteral && languageVersion >= 1) {
-                return grammarErrorOnNode(node, 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher);
+            if (node.isOctalLiteral) {
+                var diagnosticMessage = void 0;
+                if (languageVersion >= 1) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
+                }
+                else if (ts.isChildOfLiteralType(node)) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
+                }
+                if (diagnosticMessage) {
+                    var withMinus = ts.isPrefixUnaryExpression(node.parent) && 
node.parent.operator === 37;
+                    var literal = (withMinus ? "-" : "") + "0o" + node.text;
+                    return grammarErrorOnNode(withMinus ? node.parent : node, 
diagnosticMessage, literal);
+                }
             }
         }
         function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {
@@ -36994,7 +37364,7 @@ var ts;
         return subtreeFlags;
     }
     function aggregateTransformFlagsForSubtree(node) {
-        if (ts.hasModifier(node, 2) || ts.isTypeNode(node)) {
+        if (ts.hasModifier(node, 2) || (ts.isTypeNode(node) && node.kind !== 
199)) {
             return 0;
         }
         return reduceEachChild(node, 0, aggregateTransformFlagsForChildNode, 
aggregateTransformFlagsForChildNodes);
@@ -37137,10 +37507,10 @@ var ts;
             }
         }
         for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < 
pendingDeclarations_1.length; _i++) {
-            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_29 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
-            var variable = ts.createVariableDeclaration(name_29, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
+            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_30 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
+            var variable = ts.createVariableDeclaration(name_30, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
             variable.original = original;
-            if (ts.isIdentifier(name_29)) {
+            if (ts.isIdentifier(name_30)) {
                 ts.setEmitFlags(variable, 64);
             }
             ts.aggregateTransformFlags(variable);
@@ -37286,8 +37656,8 @@ var ts;
             return ts.createElementAccess(value, argumentExpression);
         }
         else {
-            var name_30 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
-            return ts.createPropertyAccess(value, name_30);
+            var name_31 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
+            return ts.createPropertyAccess(value, name_31);
         }
     }
     function ensureIdentifier(flattenContext, value, 
reuseIdentifierExpressions, location) {
@@ -37329,7 +37699,7 @@ var ts;
     var restHelper = {
         name: "typescript:rest",
         scoped: false,
-        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (typeof Object.getOwnPropertySymbols === 
\"function\")\n                    for (var i = 0, p = 
Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n  
                      t[p[i]] = s[p[i]];\n     [...]
+        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (s != null && typeof 
Object.getOwnPropertySymbols === \"function\")\n                    for (var i 
= 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if 
(e.indexOf(p[i]) < 0)\n                        t[p[i]] = s [...]
     };
     function createRestCall(context, value, elements, computedTempVariables, 
location) {
         context.requestEmitHelper(restHelper);
@@ -37534,6 +37904,7 @@ var ts;
                 case 145:
                 case 228:
                 case 147:
+                    return undefined;
                 case 150:
                     return visitConstructor(node);
                 case 227:
@@ -37772,8 +38143,8 @@ var ts;
                 && member.initializer !== undefined;
         }
         function addInitializedPropertyStatements(statements, properties, 
receiver) {
-            for (var _i = 0, properties_7 = properties; _i < 
properties_7.length; _i++) {
-                var property = properties_7[_i];
+            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
+                var property = properties_8[_i];
                 var statement = 
ts.createStatement(transformInitializedProperty(property, receiver));
                 ts.setSourceMapRange(statement, 
ts.moveRangePastModifiers(property));
                 ts.setCommentRange(statement, property);
@@ -37782,8 +38153,8 @@ var ts;
         }
         function generateInitializedPropertyExpressions(properties, receiver) {
             var expressions = [];
-            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
-                var property = properties_8[_i];
+            for (var _i = 0, properties_9 = properties; _i < 
properties_9.length; _i++) {
+                var property = properties_9[_i];
                 var expression = transformInitializedProperty(property, 
receiver);
                 expression.startsOnNewLine = true;
                 ts.setSourceMapRange(expression, 
ts.moveRangePastModifiers(property));
@@ -37856,10 +38227,11 @@ var ts;
                 return undefined;
             }
             var _a = ts.getAllAccessorDeclarations(node.members, accessor), 
firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, 
setAccessor = _a.setAccessor;
-            if (accessor !== firstAccessor) {
+            var firstAccessorWithDecorators = firstAccessor.decorators ? 
firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : 
undefined;
+            if (!firstAccessorWithDecorators || accessor !== 
firstAccessorWithDecorators) {
                 return undefined;
             }
-            var decorators = firstAccessor.decorators || (secondAccessor && 
secondAccessor.decorators);
+            var decorators = firstAccessorWithDecorators.decorators;
             var parameters = getDecoratorsOfParameters(setAccessor);
             if (!decorators && !parameters) {
                 return undefined;
@@ -37884,14 +38256,14 @@ var ts;
             }
             return { decorators: decorators };
         }
-        function transformAllDecoratorsOfDeclaration(node, allDecorators) {
+        function transformAllDecoratorsOfDeclaration(node, container, 
allDecorators) {
             if (!allDecorators) {
                 return undefined;
             }
             var decoratorExpressions = [];
             ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, 
transformDecorator));
             ts.addRange(decoratorExpressions, 
ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));
-            addTypeMetadata(node, decoratorExpressions);
+            addTypeMetadata(node, container, decoratorExpressions);
             return decoratorExpressions;
         }
         function addClassElementDecorationStatements(statements, node, 
isStatic) {
@@ -37916,7 +38288,7 @@ var ts;
         }
         function generateClassElementDecorationExpression(node, member) {
             var allDecorators = getAllDecoratorsOfClassElement(node, member);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -37939,7 +38311,7 @@ var ts;
         }
         function generateConstructorDecorationExpression(node) {
             var allDecorators = getAllDecoratorsOfConstructor(node);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -37967,35 +38339,35 @@ var ts;
             }
             return expressions;
         }
-        function addTypeMetadata(node, decoratorExpressions) {
+        function addTypeMetadata(node, container, decoratorExpressions) {
             if (USE_NEW_TYPE_METADATA_FORMAT) {
-                addNewTypeMetadata(node, decoratorExpressions);
+                addNewTypeMetadata(node, container, decoratorExpressions);
             }
             else {
-                addOldTypeMetadata(node, decoratorExpressions);
+                addOldTypeMetadata(node, container, decoratorExpressions);
             }
         }
-        function addOldTypeMetadata(node, decoratorExpressions) {
+        function addOldTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 if (shouldAddTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:type", serializeTypeOfNode(node)));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node)));
+                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node, container)));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:returntype", serializeReturnTypeOfNode(node)));
                 }
             }
         }
-        function addNewTypeMetadata(node, decoratorExpressions) {
+        function addNewTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 var properties = void 0;
                 if (shouldAddTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("type", ts.createArrowFunction(undefined, 
undefined, [], undefined, ts.createToken(35), serializeTypeOfNode(node))));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node))));
+                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node, container))));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("returnType", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeReturnTypeOfNode(node))));
@@ -38016,12 +38388,16 @@ var ts;
             return node.kind === 149;
         }
         function shouldAddParamTypesMetadata(node) {
-            var kind = node.kind;
-            return kind === 226
-                || kind === 197
-                || kind === 149
-                || kind === 151
-                || kind === 152;
+            switch (node.kind) {
+                case 226:
+                case 197:
+                    return ts.getFirstConstructorWithBody(node) !== undefined;
+                case 149:
+                case 151:
+                case 152:
+                    return true;
+            }
+            return false;
         }
         function serializeTypeOfNode(node) {
             switch (node.kind) {
@@ -38039,18 +38415,7 @@ var ts;
                     return ts.createVoidZero();
             }
         }
-        function getRestParameterElementType(node) {
-            if (node && node.kind === 162) {
-                return node.elementType;
-            }
-            else if (node && node.kind === 157) {
-                return ts.singleOrUndefined(node.typeArguments);
-            }
-            else {
-                return undefined;
-            }
-        }
-        function serializeParameterTypesOfNode(node) {
+        function serializeParameterTypesOfNode(node, container) {
             var valueDeclaration = ts.isClassLike(node)
                 ? ts.getFirstConstructorWithBody(node)
                 : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)
@@ -38058,7 +38423,7 @@ var ts;
                     : undefined;
             var expressions = [];
             if (valueDeclaration) {
-                var parameters = valueDeclaration.parameters;
+                var parameters = 
getParametersOfDecoratedDeclaration(valueDeclaration, container);
                 var numParameters = parameters.length;
                 for (var i = 0; i < numParameters; i++) {
                     var parameter = parameters[i];
@@ -38066,7 +38431,7 @@ var ts;
                         continue;
                     }
                     if (parameter.dotDotDotToken) {
-                        
expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));
+                        
expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));
                     }
                     else {
                         expressions.push(serializeTypeOfNode(parameter));
@@ -38075,6 +38440,15 @@ var ts;
             }
             return ts.createArrayLiteral(expressions);
         }
+        function getParametersOfDecoratedDeclaration(node, container) {
+            if (container && node.kind === 151) {
+                var setAccessor = 
ts.getAllAccessorDeclarations(container.members, node).setAccessor;
+                if (setAccessor) {
+                    return setAccessor.parameters;
+                }
+            }
+            return node.parameters;
+        }
         function serializeReturnTypeOfNode(node) {
             if (ts.isFunctionLike(node) && node.type) {
                 return serializeTypeNode(node.type);
@@ -38090,6 +38464,9 @@ var ts;
             }
             switch (node.kind) {
                 case 104:
+                case 137:
+                case 94:
+                case 129:
                     return ts.createVoidZero();
                 case 166:
                     return serializeTypeNode(node.type);
@@ -38128,29 +38505,7 @@ var ts;
                     return serializeTypeReferenceNode(node);
                 case 165:
                 case 164:
-                    {
-                        var unionOrIntersection = node;
-                        var serializedUnion = void 0;
-                        for (var _i = 0, _a = unionOrIntersection.types; _i < 
_a.length; _i++) {
-                            var typeNode = _a[_i];
-                            var serializedIndividual = 
serializeTypeNode(typeNode);
-                            if (serializedIndividual.kind !== 70) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            if (serializedIndividual.text === "Object") {
-                                return serializedIndividual;
-                            }
-                            if (serializedUnion && serializedUnion.text !== 
serializedIndividual.text) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            serializedUnion = serializedIndividual;
-                        }
-                        if (serializedUnion) {
-                            return serializedUnion;
-                        }
-                    }
+                    return serializeUnionOrIntersectionType(node);
                 case 160:
                 case 168:
                 case 169:
@@ -38165,6 +38520,32 @@ var ts;
             }
             return ts.createIdentifier("Object");
         }
+        function serializeUnionOrIntersectionType(node) {
+            var serializedUnion;
+            for (var _i = 0, _a = node.types; _i < _a.length; _i++) {
+                var typeNode = _a[_i];
+                var serializedIndividual = serializeTypeNode(typeNode);
+                if (ts.isVoidExpression(serializedIndividual)) {
+                    if (!serializedUnion) {
+                        serializedUnion = serializedIndividual;
+                    }
+                }
+                else if (ts.isIdentifier(serializedIndividual) && 
serializedIndividual.text === "Object") {
+                    return serializedIndividual;
+                }
+                else if (serializedUnion && 
!ts.isVoidExpression(serializedUnion)) {
+                    if (!ts.isIdentifier(serializedUnion) ||
+                        !ts.isIdentifier(serializedIndividual) ||
+                        serializedUnion.text !== serializedIndividual.text) {
+                        return ts.createIdentifier("Object");
+                    }
+                }
+                else {
+                    serializedUnion = serializedIndividual;
+                }
+            }
+            return serializedUnion;
+        }
         function serializeTypeReferenceNode(node) {
             switch (resolver.getTypeReferenceSerializationKind(node.typeName, 
currentScope)) {
                 case ts.TypeReferenceSerializationKind.Unknown:
@@ -38199,14 +38580,14 @@ var ts;
         function serializeEntityNameAsExpression(node, useFallback) {
             switch (node.kind) {
                 case 70:
-                    var name_31 = ts.getMutableClone(node);
-                    name_31.flags &= ~8;
-                    name_31.original = undefined;
-                    name_31.parent = currentScope;
+                    var name_32 = ts.getMutableClone(node);
+                    name_32.flags &= ~8;
+                    name_32.original = undefined;
+                    name_32.parent = currentScope;
                     if (useFallback) {
-                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_31), 
ts.createLiteral("undefined")), name_31);
+                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_32), 
ts.createLiteral("undefined")), name_32);
                     }
-                    return name_31;
+                    return name_32;
                 case 141:
                     return serializeQualifiedNameAsExpression(node, 
useFallback);
             }
@@ -38236,7 +38617,7 @@ var ts;
                     : name.expression;
             }
             else if (ts.isIdentifier(name)) {
-                return ts.createLiteral(name.text);
+                return ts.createLiteral(ts.unescapeIdentifier(name.text));
             }
             else {
                 return ts.getSynthesizedClone(name);
@@ -38477,9 +38858,9 @@ var ts;
         }
         function isFirstEmittedDeclarationInScope(node) {
             if (currentScopeFirstDeclarationsOfName) {
-                var name_32 = node.symbol && node.symbol.name;
-                if (name_32) {
-                    return currentScopeFirstDeclarationsOfName[name_32] === 
node;
+                var name_33 = node.symbol && node.symbol.name;
+                if (name_33) {
+                    return currentScopeFirstDeclarationsOfName[name_33] === 
node;
                 }
             }
             return false;
@@ -38552,7 +38933,7 @@ var ts;
             var blockLocation;
             var body = node.body;
             if (body.kind === 231) {
-                ts.addRange(statements, ts.visitNodes(body.statements, 
namespaceElementVisitor, ts.isStatement));
+                saveStateAndInvoke(body, function (body) { return 
ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, 
ts.isStatement)); });
                 statementsLocation = body.statements;
                 blockLocation = body;
             }
@@ -38768,14 +39149,14 @@ var ts;
         }
         function substituteShorthandPropertyAssignment(node) {
             if (enabledSubstitutions & 2) {
-                var name_33 = node.name;
-                var exportedName = trySubstituteNamespaceExportedName(name_33);
+                var name_34 = node.name;
+                var exportedName = trySubstituteNamespaceExportedName(name_34);
                 if (exportedName) {
                     if (node.objectAssignmentInitializer) {
                         var initializer = ts.createAssignment(exportedName, 
node.objectAssignmentInitializer);
-                        return ts.createPropertyAssignment(name_33, 
initializer, node);
+                        return ts.createPropertyAssignment(name_34, 
initializer, node);
                     }
-                    return ts.createPropertyAssignment(name_33, exportedName, 
node);
+                    return ts.createPropertyAssignment(name_34, exportedName, 
node);
                 }
             }
             return node;
@@ -39228,6 +39609,9 @@ var ts;
                 return decoded ? ts.createLiteral(decoded, node) : node;
             }
             else if (node.kind === 252) {
+                if (node.expression === undefined) {
+                    return ts.createLiteral(true);
+                }
                 return visitJsxExpression(node);
             }
             else {
@@ -39296,12 +39680,12 @@ var ts;
                 return getTagName(node.openingElement);
             }
             else {
-                var name_34 = node.tagName;
-                if (ts.isIdentifier(name_34) && 
ts.isIntrinsicJsxName(name_34.text)) {
-                    return ts.createLiteral(name_34.text);
+                var name_35 = node.tagName;
+                if (ts.isIdentifier(name_35) && 
ts.isIntrinsicJsxName(name_35.text)) {
+                    return ts.createLiteral(name_35.text);
                 }
                 else {
-                    return ts.createExpressionFromEntityName(name_34);
+                    return ts.createExpressionFromEntityName(name_35);
                 }
             }
         }
@@ -39819,7 +40203,7 @@ var ts;
         name: "typescript:awaiter",
         scoped: false,
         priority: 5,
-        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
+        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
     };
     var asyncSuperHelper = {
         name: "typescript:async-super",
@@ -40321,7 +40705,8 @@ var ts;
                 addRestParameterIfNeeded(statements, constructor, 
hasSynthesizedSuper);
                 ts.Debug.assert(statementOffset >= 0, "statementOffset not 
initialized correctly!");
             }
-            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
!!extendsClauseElement, hasSynthesizedSuper, statementOffset);
+            var isDerivedClass = extendsClauseElement && 
ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 94;
+            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
isDerivedClass, hasSynthesizedSuper, statementOffset);
             if (superCaptureStatus === 1 || superCaptureStatus === 2) {
                 statementOffset++;
             }
@@ -40332,7 +40717,7 @@ var ts;
                 });
                 ts.addRange(statements, body);
             }
-            if (extendsClauseElement
+            if (isDerivedClass
                 && superCaptureStatus !== 2
                 && !(constructor && 
isSufficientlyCoveredByReturnStatements(constructor.body))) {
                 statements.push(ts.createReturn(ts.createIdentifier("_this")));
@@ -40363,8 +40748,8 @@ var ts;
             }
             return false;
         }
-        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
hasExtendsClause, hasSynthesizedSuper, statementOffset) {
-            if (!hasExtendsClause) {
+        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
isDerivedClass, hasSynthesizedSuper, statementOffset) {
+            if (!isDerivedClass) {
                 if (ctor) {
                     addCaptureThisForNodeIfNeeded(statements, ctor);
                 }
@@ -40389,7 +40774,9 @@ var ts;
                     superCallExpression = 
ts.setOriginalNode(saveStateAndInvoke(superCall, 
visitImmediateSuperCallInBody), superCall);
                 }
             }
-            if (superCallExpression && statementOffset === 
ctorStatements.length - 1) {
+            if (superCallExpression
+                && statementOffset === ctorStatements.length - 1
+                && !(ctor.transformFlags & (16384 | 32768))) {
                 var returnStatement = ts.createReturn(superCallExpression);
                 if (superCallExpression.kind !== 192
                     || superCallExpression.left.kind !== 179) {
@@ -40399,17 +40786,17 @@ var ts;
                 statements.push(returnStatement);
                 return 2;
             }
-            captureThisForNode(statements, ctor, superCallExpression, 
firstStatement);
+            captureThisForNode(statements, ctor, superCallExpression || 
createActualThis(), firstStatement);
             if (superCallExpression) {
                 return 1;
             }
             return 0;
         }
+        function createActualThis() {
+            return ts.setEmitFlags(ts.createThis(), 4);
+        }
         function createDefaultSuperCallOrThis() {
-            var actualThis = ts.createThis();
-            ts.setEmitFlags(actualThis, 4);
-            var superCall = 
ts.createFunctionApply(ts.createIdentifier("_super"), actualThis, 
ts.createIdentifier("arguments"));
-            return ts.createLogicalOr(superCall, actualThis);
+            return 
ts.createLogicalOr(ts.createLogicalAnd(ts.createStrictInequality(ts.createIdentifier("_super"),
 ts.createNull()), ts.createFunctionApply(ts.createIdentifier("_super"), 
createActualThis(), ts.createIdentifier("arguments"))), createActualThis());
         }
         function visitParameter(node) {
             if (node.dotDotDotToken) {
@@ -40434,15 +40821,15 @@ var ts;
             }
             for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {
                 var parameter = _a[_i];
-                var name_35 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
+                var name_36 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
                 if (dotDotDotToken) {
                     continue;
                 }
-                if (ts.isBindingPattern(name_35)) {
-                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_35, initializer);
+                if (ts.isBindingPattern(name_36)) {
+                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_36, initializer);
                 }
                 else if (initializer) {
-                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_35, initializer);
+                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_36, initializer);
                 }
             }
         }
@@ -40972,15 +41359,23 @@ var ts;
                     convertedLoopState.hoistedLocalVariables = 
outerConvertedLoopState.hoistedLocalVariables;
                 }
             }
-            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement);
+            startLexicalEnvironment();
+            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement, false, ts.liftToBlock);
+            var lexicalEnvironment = endLexicalEnvironment();
             var currentState = convertedLoopState;
             convertedLoopState = outerConvertedLoopState;
-            if (loopOutParameters.length) {
+            if (loopOutParameters.length || lexicalEnvironment) {
                 var statements_4 = ts.isBlock(loopBody) ? 
loopBody.statements.slice() : [loopBody];
-                copyOutParameters(loopOutParameters, 1, statements_4);
+                if (loopOutParameters.length) {
+                    copyOutParameters(loopOutParameters, 1, statements_4);
+                }
+                ts.addRange(statements_4, lexicalEnvironment);
                 loopBody = ts.createBlock(statements_4, undefined, true);
             }
-            if (!ts.isBlock(loopBody)) {
+            if (ts.isBlock(loopBody)) {
+                loopBody.multiLine = true;
+            }
+            else {
                 loopBody = ts.createBlock([loopBody], undefined, true);
             }
             var isAsyncBlockContainingAwait = enclosingNonArrowFunction
@@ -41898,7 +42293,7 @@ var ts;
                 emitYield(expression, node);
             }
             markLabel(resumeLabel);
-            return createGeneratorResume();
+            return createGeneratorResume(node);
         }
         function visitArrayLiteralExpression(node) {
             return visitElements(node.elements, undefined, undefined, 
node.multiLine);
@@ -42052,7 +42447,9 @@ var ts;
         function transformAndEmitVariableDeclarationList(node) {
             for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {
                 var variable = _a[_i];
-                hoistVariableDeclaration(variable.name);
+                var name_37 = ts.getSynthesizedClone(variable.name);
+                ts.setCommentRange(name_37, variable.name);
+                hoistVariableDeclaration(name_37);
             }
             var variables = ts.getInitializedVariables(node);
             var numVariables = variables.length;
@@ -42082,7 +42479,7 @@ var ts;
                 if (containsYield(node.thenStatement) || 
containsYield(node.elseStatement)) {
                     var endLabel = defineLabel();
                     var elseLabel = node.elseStatement ? defineLabel() : 
undefined;
-                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));
+                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), 
node.expression);
                     transformAndEmitEmbeddedStatement(node.thenStatement);
                     if (node.elseStatement) {
                         emitBreak(endLabel);
@@ -42447,9 +42844,9 @@ var ts;
                 if (ts.isIdentifier(original) && original.parent) {
                     var declaration = 
resolver.getReferencedValueDeclaration(original);
                     if (declaration) {
-                        var name_36 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
-                        if (name_36) {
-                            var clone_6 = ts.getMutableClone(name_36);
+                        var name_38 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
+                        if (name_38) {
+                            var clone_6 = ts.getMutableClone(name_38);
                             ts.setSourceMapRange(clone_6, node);
                             ts.setCommentRange(clone_6, node);
                             return clone_6;
@@ -43062,41 +43459,41 @@ var ts;
         function writeReturn(expression, operationLocation) {
             lastOperationWasAbrupt = true;
             lastOperationWasCompletion = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(2), expression]
-                : [createInstruction(2)]), operationLocation));
+                : [createInstruction(2)]), operationLocation), 384));
         }
         function writeBreak(label, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeBreakWhenTrue(label, condition, operationLocation) {
-            writeStatement(ts.createIf(condition, 
ts.createReturn(ts.createArrayLiteral([
+            writeStatement(ts.setEmitFlags(ts.createIf(condition, 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeBreakWhenFalse(label, condition, operationLocation) {
-            writeStatement(ts.createIf(ts.createLogicalNot(condition), 
ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createIf(ts.createLogicalNot(condition), 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeYield(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(4), expression]
-                : [createInstruction(4)]), operationLocation));
+                : [createInstruction(4)]), operationLocation), 384));
         }
         function writeYieldStar(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(5),
                 expression
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeEndfinally() {
             lastOperationWasAbrupt = true;
@@ -43121,6 +43518,17 @@ var ts;
 var ts;
 (function (ts) {
     function transformES5(context) {
+        var compilerOptions = context.getCompilerOptions();
+        var previousOnEmitNode;
+        var noSubstitution;
+        if (compilerOptions.jsx === 1) {
+            previousOnEmitNode = context.onEmitNode;
+            context.onEmitNode = onEmitNode;
+            context.enableEmitNotification(248);
+            context.enableEmitNotification(249);
+            context.enableEmitNotification(247);
+            noSubstitution = [];
+        }
         var previousOnSubstituteNode = context.onSubstituteNode;
         context.onSubstituteNode = onSubstituteNode;
         context.enableSubstitution(177);
@@ -43129,7 +43537,21 @@ var ts;
         function transformSourceFile(node) {
             return node;
         }
+        function onEmitNode(emitContext, node, emitCallback) {
+            switch (node.kind) {
+                case 248:
+                case 249:
+                case 247:
+                    var tagName = node.tagName;
+                    noSubstitution[ts.getOriginalNodeId(tagName)] = true;
+                    break;
+            }
+            previousOnEmitNode(emitContext, node, emitCallback);
+        }
         function onSubstituteNode(emitContext, node) {
+            if (node.id && noSubstitution && noSubstitution[node.id]) {
+                return previousOnSubstituteNode(emitContext, node);
+            }
             node = previousOnSubstituteNode(emitContext, node);
             if (ts.isPropertyAccessExpression(node)) {
                 return substitutePropertyAccessExpression(node);
@@ -43283,11 +43705,11 @@ var ts;
             ], undefined, moduleBodyBlock);
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
             var dependencies = ts.createArrayLiteral(ts.map(dependencyGroups, 
function (dependencyGroup) { return dependencyGroup.name; }));
-            var updated = ts.updateSourceFileNode(node, ts.createNodeArray([
+            var updated = ts.setEmitFlags(ts.updateSourceFileNode(node, 
ts.createNodeArray([
                 
ts.createStatement(ts.createCall(ts.createPropertyAccess(ts.createIdentifier("System"),
 "register"), undefined, moduleName
                     ? [moduleName, dependencies, moduleBodyFunction]
                     : [dependencies, moduleBodyFunction]))
-            ], node.statements));
+            ], node.statements)), 1024);
             if (!(compilerOptions.outFile || compilerOptions.out)) {
                 ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) 
{ return !helper.scoped; });
             }
@@ -44112,14 +44534,7 @@ var ts;
         function transformAMDModule(node) {
             var define = ts.createIdentifier("define");
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
-            return transformAsynchronousModule(node, define, moduleName, true);
-        }
-        function transformUMDModule(node) {
-            var define = ts.createRawExpression(umdHelper);
-            return transformAsynchronousModule(node, define, undefined, false);
-        }
-        function transformAsynchronousModule(node, define, moduleName, 
includeNonAmdDependencies) {
-            var _a = collectAsynchronousDependencies(node, 
includeNonAmdDependencies), aliasedModuleNames = _a.aliasedModuleNames, 
unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = 
_a.importAliasNames;
+            var _a = collectAsynchronousDependencies(node, true), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
             return ts.updateSourceFileNode(node, ts.createNodeArray([
                 ts.createStatement(ts.createCall(define, undefined, 
(moduleName ? [moduleName] : []).concat([
                     ts.createArrayLiteral([
@@ -44133,6 +44548,36 @@ var ts;
                 ])))
             ], node.statements));
         }
+        function transformUMDModule(node) {
+            var _a = collectAsynchronousDependencies(node, false), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
+            var umdHeader = ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [ts.createParameter(undefined, undefined, undefined, 
"factory")], undefined, ts.createBlock([
+                
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("module"),
 "object"), 
ts.createTypeCheck(ts.createPropertyAccess(ts.createIdentifier("module"), 
"exports"), "object")), ts.createBlock([
+                    ts.createVariableStatement(undefined, [
+                        ts.createVariableDeclaration("v", undefined, 
ts.createCall(ts.createIdentifier("factory"), undefined, [
+                            ts.createIdentifier("require"),
+                            ts.createIdentifier("exports")
+                        ]))
+                    ]),
+                    
ts.setEmitFlags(ts.createIf(ts.createStrictInequality(ts.createIdentifier("v"), 
ts.createIdentifier("undefined")), 
ts.createStatement(ts.createAssignment(ts.createPropertyAccess(ts.createIdentifier("module"),
 "exports"), ts.createIdentifier("v")))), 1)
+                ]), 
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("define"),
 "function"), ts.createPropertyAccess(ts.createIdentifier("define"), "amd")), 
ts.createBlock([
+                    
ts.createStatement(ts.createCall(ts.createIdentifier("define"), undefined, [
+                        ts.createArrayLiteral([
+                            ts.createLiteral("require"),
+                            ts.createLiteral("exports")
+                        ].concat(aliasedModuleNames, unaliasedModuleNames)),
+                        ts.createIdentifier("factory")
+                    ]))
+                ])))
+            ], undefined, true));
+            return ts.updateSourceFileNode(node, ts.createNodeArray([
+                ts.createStatement(ts.createCall(umdHeader, undefined, [
+                    ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [
+                        ts.createParameter(undefined, undefined, undefined, 
"require"),
+                        ts.createParameter(undefined, undefined, undefined, 
"exports")
+                    ].concat(importAliasNames), undefined, 
transformAsynchronousModuleBody(node))
+                ]))
+            ], node.statements));
+        }
         function collectAsynchronousDependencies(node, 
includeNonAmdDependencies) {
             var aliasedModuleNames = [];
             var unaliasedModuleNames = [];
@@ -44618,8 +45063,8 @@ var ts;
                         return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent), 
ts.createIdentifier("default"), node);
                     }
                     else if (ts.isImportSpecifier(importDeclaration)) {
-                        var name_37 = importDeclaration.propertyName || 
importDeclaration.name;
-                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_37), node);
+                        var name_39 = importDeclaration.propertyName || 
importDeclaration.name;
+                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_39), node);
                     }
                 }
             }
@@ -44683,7 +45128,6 @@ var ts;
         scoped: true,
         text: "\n            function __export(m) {\n                for (var 
p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"
     };
-    var umdHelper = "\n        (function (dependencies, factory) {\n           
 if (typeof module === 'object' && typeof module.exports === 'object') {\n      
          var v = factory(require, exports); if (v !== undefined) 
module.exports = v;\n            }\n            else if (typeof define === 
'function' && define.amd) {\n                define(dependencies, factory);\n   
         }\n        })";
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
@@ -44725,7 +45169,7 @@ var ts;
     }
     ts.getTransformers = getTransformers;
     function transformFiles(resolver, host, sourceFiles, transformers) {
-        var enabledSyntaxKindFeatures = new Array(298);
+        var enabledSyntaxKindFeatures = new Array(297);
         var lexicalEnvironmentDisabled = false;
         var lexicalEnvironmentVariableDeclarations;
         var lexicalEnvironmentFunctionDeclarations;
@@ -45109,7 +45553,7 @@ var ts;
                 return;
             }
             encodeLastRecordedSourceMapSpan();
-            return ts.stringify({
+            return JSON.stringify({
                 version: 3,
                 file: sourceMapData.sourceMapFile,
                 sourceRoot: sourceMapData.sourceMapSourceRoot,
@@ -45275,6 +45719,9 @@ var ts;
             }
             if (!skipTrailingComments) {
                 emitLeadingComments(detachedRange.end, true);
+                if (hasWrittenComment && !writer.isAtStartOfLine()) {
+                    writer.writeLine();
+                }
             }
             if (extendedDiagnostics) {
                 ts.performance.measure("commentTime", 
"beginEmitBodyWithDetachedCommetns");
@@ -45546,6 +45993,7 @@ var ts;
             writer.writeSpace = writer.write;
             writer.writeStringLiteral = writer.writeLiteral;
             writer.writeParameter = writer.write;
+            writer.writeProperty = writer.write;
             writer.writeSymbol = writer.write;
             setWriter(writer);
         }
@@ -45876,9 +46324,9 @@ var ts;
             var count = 0;
             while (true) {
                 count++;
-                var name_38 = baseName + "_" + count;
-                if (!(name_38 in currentIdentifiers)) {
-                    return name_38;
+                var name_40 = baseName + "_" + count;
+                if (!(name_40 in currentIdentifiers)) {
+                    return name_40;
                 }
             }
         }
@@ -46767,6 +47215,10 @@ var ts;
                         return symbolAccessibilityResult.errorModuleName ?
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
+                    case 155:
+                        return symbolAccessibilityResult.errorModuleName ?
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
                     case 149:
                     case 148:
                         if (ts.hasModifier(node.parent, 32)) {
@@ -47398,8 +47850,6 @@ var ts;
                     return emitJsxSelfClosingElement(node);
                 case 294:
                     return emitPartiallyEmittedExpression(node);
-                case 297:
-                    return writeLines(node.text);
             }
         }
         function emitNumericLiteral(node) {
@@ -47886,27 +48336,27 @@ var ts;
             writeToken(18, openParenPos, node);
             emitExpression(node.expression);
             writeToken(19, node.expression.end, node);
-            emitEmbeddedStatement(node.thenStatement);
+            emitEmbeddedStatement(node, node.thenStatement);
             if (node.elseStatement) {
-                writeLine();
+                writeLineOrSpace(node);
                 writeToken(81, node.thenStatement.end, node);
                 if (node.elseStatement.kind === 208) {
                     write(" ");
                     emit(node.elseStatement);
                 }
                 else {
-                    emitEmbeddedStatement(node.elseStatement);
+                    emitEmbeddedStatement(node, node.elseStatement);
                 }
             }
         }
         function emitDoStatement(node) {
             write("do");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
             if (ts.isBlock(node.statement)) {
                 write(" ");
             }
             else {
-                writeLine();
+                writeLineOrSpace(node);
             }
             write("while (");
             emitExpression(node.expression);
@@ -47916,7 +48366,7 @@ var ts;
             write("while (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -47928,7 +48378,7 @@ var ts;
             write(";");
             emitExpressionWithPrefix(" ", node.incrementor);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForInStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -47938,7 +48388,7 @@ var ts;
             write(" in ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForOfStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -47948,7 +48398,7 @@ var ts;
             write(" of ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForBinding(node) {
             if (node !== undefined) {
@@ -47979,7 +48429,7 @@ var ts;
             write("with (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitSwitchStatement(node) {
             var openParenPos = writeToken(97, node.pos);
@@ -48003,9 +48453,12 @@ var ts;
         function emitTryStatement(node) {
             write("try ");
             emit(node.tryBlock);
-            emit(node.catchClause);
+            if (node.catchClause) {
+                writeLineOrSpace(node);
+                emit(node.catchClause);
+            }
             if (node.finallyBlock) {
-                writeLine();
+                writeLineOrSpace(node);
                 write("finally ");
                 emit(node.finallyBlock);
             }
@@ -48531,8 +48984,8 @@ var ts;
                 write(suffix);
             }
         }
-        function emitEmbeddedStatement(node) {
-            if (ts.isBlock(node)) {
+        function emitEmbeddedStatement(parent, node) {
+            if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1) {
                 write(" ");
                 emit(node);
             }
@@ -48661,6 +49114,14 @@ var ts;
                 write(getClosingBracket(format));
             }
         }
+        function writeLineOrSpace(node) {
+            if (ts.getEmitFlags(node) & 1) {
+                write(" ");
+            }
+            else {
+                writeLine();
+            }
+        }
         function writeIfAny(nodes, text) {
             if (nodes && nodes.length > 0) {
                 write(text);
@@ -48841,21 +49302,21 @@ var ts;
         }
         function makeTempVariableName(flags) {
             if (flags && !(tempFlags & flags)) {
-                var name_39 = flags === 268435456 ? "_i" : "_n";
-                if (isUniqueName(name_39)) {
+                var name_41 = flags === 268435456 ? "_i" : "_n";
+                if (isUniqueName(name_41)) {
                     tempFlags |= flags;
-                    return name_39;
+                    return name_41;
                 }
             }
             while (true) {
                 var count = tempFlags & 268435455;
                 tempFlags++;
                 if (count !== 8 && count !== 13) {
-                    var name_40 = count < 26
+                    var name_42 = count < 26
                         ? "_" + String.fromCharCode(97 + count)
                         : "_" + (count - 26);
-                    if (isUniqueName(name_40)) {
-                        return name_40;
+                    if (isUniqueName(name_42)) {
+                        return name_42;
                     }
                 }
             }
@@ -49191,10 +49652,10 @@ var ts;
         var resolutions = [];
         var cache = ts.createMap();
         for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {
-            var name_41 = names_1[_i];
-            var result = name_41 in cache
-                ? cache[name_41]
-                : cache[name_41] = loader(name_41, containingFile);
+            var name_43 = names_1[_i];
+            var result = name_43 in cache
+                ? cache[name_43]
+                : cache[name_43] = loader(name_43, containingFile);
             resolutions.push(result);
         }
         return resolutions;
@@ -49219,6 +49680,7 @@ var ts;
         var currentDirectory = host.getCurrentDirectory();
         var supportedExtensions = ts.getSupportedExtensions(options);
         var hasEmitBlockingDiagnostics = 
ts.createFileMap(getCanonicalFileName);
+        var moduleResolutionCache;
         var resolveModuleNamesWorker;
         if (host.resolveModuleNames) {
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return host.resolveModuleNames(moduleNames, containingFile).map(function 
(resolved) {
@@ -49231,7 +49693,8 @@ var ts;
             }); };
         }
         else {
-            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host).resolvedModule; 
};
+            moduleResolutionCache = 
ts.createModuleResolutionCache(currentDirectory, function (x) { return 
host.getCanonicalFileName(x); });
+            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host, 
moduleResolutionCache).resolvedModule; };
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return loadWithLocalCache(moduleNames, containingFile, loader_1); };
         }
         var resolveTypeReferenceDirectiveNamesWorker;
@@ -49267,6 +49730,7 @@ var ts;
                 }
             }
         }
+        moduleResolutionCache = undefined;
         oldProgram = undefined;
         program = {
             getRootFileNames: function () { return rootNames; },
@@ -50569,7 +51033,7 @@ var ts;
                 "es2017": 4,
                 "esnext": 5,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -50817,14 +51281,7 @@ var ts;
     }
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     function parseListTypeOption(opt, value, errors) {
@@ -51008,9 +51465,9 @@ var ts;
         function serializeCompilerOptions(options) {
             var result = ts.createMap();
             var optionsNameMap = getOptionNameMap().optionNameMap;
-            for (var name_42 in options) {
-                if (ts.hasProperty(options, name_42)) {
-                    switch (name_42) {
+            for (var name_44 in options) {
+                if (ts.hasProperty(options, name_44)) {
+                    switch (name_44) {
                         case "init":
                         case "watch":
                         case "version":
@@ -51018,12 +51475,12 @@ var ts;
                         case "project":
                             break;
                         default:
-                            var value = options[name_42];
-                            var optionDefinition = 
optionsNameMap[name_42.toLowerCase()];
+                            var value = options[name_44];
+                            var optionDefinition = 
optionsNameMap[name_44.toLowerCase()];
                             if (optionDefinition) {
                                 var customTypeMap = 
getCustomTypeMapOfCommandLineOption(optionDefinition);
                                 if (!customTypeMap) {
-                                    result[name_42] = value;
+                                    result[name_44] = value;
                                 }
                                 else {
                                     if (optionDefinition.type === "list") {
@@ -51032,10 +51489,10 @@ var ts;
                                             var element = _a[_i];
                                             
convertedValue.push(getNameOfCompilerOptionValue(element, customTypeMap));
                                         }
-                                        result[name_42] = convertedValue;
+                                        result[name_44] = convertedValue;
                                     }
                                     else {
-                                        result[name_42] = 
getNameOfCompilerOptionValue(value, customTypeMap);
+                                        result[name_44] = 
getNameOfCompilerOptionValue(value, customTypeMap);
                                     }
                                 }
                             }
@@ -51064,9 +51521,10 @@ var ts;
         }
         return output;
     }
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -51189,7 +51647,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -51293,7 +51751,7 @@ var ts;
     var invalidDotDotAfterRecursiveWildcardPattern = 
/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/;
     var watchRecursivePattern = /\/[^/]*?[*?][^/]*\//;
     var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         var keyMapper = host.useCaseSensitiveFileNames ? 
caseSensitiveKeyMapper : caseInsensitiveKeyMapper;
         var literalFileMap = ts.createMap();
@@ -51305,7 +51763,7 @@ var ts;
             exclude = validateSpecs(exclude, errors, true);
         }
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         if (fileNames) {
             for (var _i = 0, fileNames_1 = fileNames; _i < fileNames_1.length; 
_i++) {
                 var fileName = fileNames_1[_i];
@@ -51884,17 +52342,17 @@ var ts;
             var nameSize = 0;
             var valueSize = 0;
             for (var _i = 0, statistics_1 = statistics; _i < 
statistics_1.length; _i++) {
-                var _a = statistics_1[_i], name_43 = _a.name, value = _a.value;
-                if (name_43.length > nameSize) {
-                    nameSize = name_43.length;
+                var _a = statistics_1[_i], name_45 = _a.name, value = _a.value;
+                if (name_45.length > nameSize) {
+                    nameSize = name_45.length;
                 }
                 if (value.length > valueSize) {
                     valueSize = value.length;
                 }
             }
             for (var _b = 0, statistics_2 = statistics; _b < 
statistics_2.length; _b++) {
-                var _c = statistics_2[_b], name_44 = _c.name, value = _c.value;
-                ts.sys.write(padRight(name_44 + ":", nameSize + 2) + 
padLeft(value.toString(), valueSize) + ts.sys.newLine);
+                var _c = statistics_2[_b], name_46 = _c.name, value = _c.value;
+                ts.sys.write(padRight(name_46 + ":", nameSize + 2) + 
padLeft(value.toString(), valueSize) + ts.sys.newLine);
             }
         }
         function reportStatisticalValue(name, value) {
diff --git a/node_modules/typescript/lib/tsserver.js 
b/node_modules/typescript/lib/tsserver.js
index 51ba6b3..be80ac4 100644
--- a/node_modules/typescript/lib/tsserver.js
+++ b/node_modules/typescript/lib/tsserver.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
@@ -137,7 +137,7 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 (function (ts) {
     var createObject = Object.create;
@@ -818,15 +818,6 @@ var ts;
         return result;
     }
     ts.reduceProperties = reduceProperties;
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
     function equalOwnProperties(left, right, equalityComparer) {
         if (left === right)
             return true;
@@ -1673,8 +1664,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -1685,11 +1687,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -2259,7 +2261,7 @@ var ts;
                 },
                 watchDirectory: function (directoryName, callback, recursive) {
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -2274,6 +2276,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 && 
s.charCodeAt(1) === 47;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -2473,7 +2478,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -2629,6 +2634,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -2672,6 +2678,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -2682,6 +2689,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -2988,6 +2996,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -3029,7 +3039,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -3082,6 +3092,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -3147,6 +3158,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -3202,6 +3214,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -3218,6 +3231,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 var ts;
@@ -5038,7 +5052,7 @@ var ts;
                 "es2017": 4,
                 "esnext": 5,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -5286,14 +5300,7 @@ var ts;
     }
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     function parseListTypeOption(opt, value, errors) {
@@ -5533,9 +5540,10 @@ var ts;
         }
         return output;
     }
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -5658,7 +5666,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -5762,7 +5770,7 @@ var ts;
     var invalidDotDotAfterRecursiveWildcardPattern = 
/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/;
     var watchRecursivePattern = /\/[^/]*?[*?][^/]*\//;
     var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         var keyMapper = host.useCaseSensitiveFileNames ? 
caseSensitiveKeyMapper : caseInsensitiveKeyMapper;
         var literalFileMap = ts.createMap();
@@ -5774,7 +5782,7 @@ var ts;
             exclude = validateSpecs(exclude, errors, true);
         }
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         if (fileNames) {
             for (var _i = 0, fileNames_1 = fileNames; _i < fileNames_1.length; 
_i++) {
                 var fileName = fileNames_1[_i];
@@ -6069,7 +6077,8 @@ var ts;
     (function (server) {
         server.ActionSet = "action::set";
         server.ActionInvalidate = "action::invalidate";
-        server.EventInstall = "event::install";
+        server.EventBeginInstallTypes = "event::beginInstallTypes";
+        server.EventEndInstallTypes = "event::endInstallTypes";
         var Arguments;
         (function (Arguments) {
             Arguments.GlobalCacheLocation = "--globalTypingsCacheLocation";
@@ -6153,6 +6162,7 @@ var ts;
                 newLineCharacter: host.newLine || "\n",
                 convertTabsToSpaces: true,
                 indentStyle: ts.IndentStyle.Smart,
+                insertSpaceAfterConstructor: false,
                 insertSpaceAfterCommaDelimiter: true,
                 insertSpaceAfterSemicolonInForStatements: true,
                 insertSpaceBeforeAndAfterBinaryOperators: true,
@@ -6162,6 +6172,7 @@ var ts;
                 insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,
                 insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: 
false,
                 insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: 
false,
+                insertSpaceBeforeFunctionParenthesis: false,
                 placeOpenBraceOnNewLineForFunctions: false,
                 placeOpenBraceOnNewLineForControlBlocks: false,
             };
@@ -6297,9 +6308,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
         return { resolvedFileName: path, extension: extension, 
isExternalLibraryImport: isExternalLibraryImport };
@@ -6311,20 +6319,14 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2:
             case 0:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -6379,6 +6381,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -6449,7 +6452,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2, typeReferenceDirectiveName, 
initialLocationForSecondaryLookup, failedLookupLocations, 
moduleResolutionState));
+                var result = loadModuleFromNodeModules(2, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -6490,31 +6494,115 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_1 = ts.getDirectoryPath(current);
+                    if (parent_1 === current || 
directoryPathMap.contains(parent_1)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_1, result);
+                    current = parent_1;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -6639,33 +6727,33 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0) || tryResolve(1);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -6747,16 +6835,28 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    return resolvedFromAnyFile(fromFile);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
                 }
-                var x = tryAddingExtensions(typesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
+                }
+                if (extensions === 1) {
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1, 
failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -6773,6 +6873,20 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -6783,16 +6897,21 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true);
+        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true, undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -6806,25 +6925,39 @@ var ts;
             return loadModuleFromNodeModulesFolder(2, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0) || tryResolve(1);
-        return createResolvedModuleWithFailedLookupLocations(resolved, false, 
failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0) {
                     return loadModuleFromNodeModulesAtTypes(moduleName, 
containingDirectory, failedLookupLocations, state);
@@ -6832,7 +6965,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, false, state));
             }
         }
     }
@@ -6848,6 +6981,9 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, true, 
failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
             var result = callback(directory);
@@ -6891,6 +7027,7 @@ var ts;
                 writeSpace: writeText,
                 writeStringLiteral: writeText,
                 writeParameter: writeText,
+                writeProperty: writeText,
                 writeSymbol: writeText,
                 writeLine: function () { return str_1 += " "; },
                 increaseIndent: ts.noop,
@@ -6963,17 +7100,17 @@ var ts;
     ts.hasChangesInResolutions = hasChangesInResolutions;
     function containsParseError(node) {
         aggregateChildData(node);
-        return (node.flags & 4194304) !== 0;
+        return (node.flags & 131072) !== 0;
     }
     ts.containsParseError = containsParseError;
     function aggregateChildData(node) {
-        if (!(node.flags & 8388608)) {
-            var thisNodeOrAnySubNodesHasError = ((node.flags & 1048576) !== 0) 
||
+        if (!(node.flags & 262144)) {
+            var thisNodeOrAnySubNodesHasError = ((node.flags & 32768) !== 0) ||
                 ts.forEachChild(node, containsParseError);
             if (thisNodeOrAnySubNodesHasError) {
-                node.flags |= 4194304;
+                node.flags |= 131072;
             }
-            node.flags |= 8388608;
+            node.flags |= 262144;
         }
     }
     function getSourceFileOfNode(node) {
@@ -7197,6 +7334,10 @@ var ts;
         return false;
     }
     ts.isExternalModuleAugmentation = isExternalModuleAugmentation;
+    function isEffectiveExternalModule(node, compilerOptions) {
+        return ts.isExternalModule(node) || compilerOptions.isolatedModules;
+    }
+    ts.isEffectiveExternalModule = isEffectiveExternalModule;
     function isBlockScope(node, parentNode) {
         switch (node.kind) {
             case 261:
@@ -7421,23 +7562,23 @@ var ts;
             case 141:
             case 177:
             case 98:
-                var parent_1 = node.parent;
-                if (parent_1.kind === 160) {
+                var parent_2 = node.parent;
+                if (parent_2.kind === 160) {
                     return false;
                 }
-                if (156 <= parent_1.kind && parent_1.kind <= 171) {
+                if (156 <= parent_2.kind && parent_2.kind <= 171) {
                     return true;
                 }
-                switch (parent_1.kind) {
+                switch (parent_2.kind) {
                     case 199:
-                        return 
!isExpressionWithTypeArgumentsInClassExtendsClause(parent_1);
+                        return 
!isExpressionWithTypeArgumentsInClassExtendsClause(parent_2);
                     case 143:
-                        return node === parent_1.constraint;
+                        return node === parent_2.constraint;
                     case 147:
                     case 146:
                     case 144:
                     case 223:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 225:
                     case 184:
                     case 185:
@@ -7446,16 +7587,16 @@ var ts;
                     case 148:
                     case 151:
                     case 152:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 153:
                     case 154:
                     case 155:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 182:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 179:
                     case 180:
-                        return parent_1.typeArguments && 
ts.indexOf(parent_1.typeArguments, node) >= 0;
+                        return parent_2.typeArguments && 
ts.indexOf(parent_2.typeArguments, node) >= 0;
                     case 181:
                         return false;
                 }
@@ -7463,6 +7604,20 @@ var ts;
         return false;
     }
     ts.isPartOfTypeNode = isPartOfTypeNode;
+    function isChildOfLiteralType(node) {
+        while (node) {
+            if (node.kind === 171) {
+                return true;
+            }
+            node = node.parent;
+        }
+        return false;
+    }
+    ts.isChildOfLiteralType = isChildOfLiteralType;
+    function isPrefixUnaryExpression(node) {
+        return node.kind === 190;
+    }
+    ts.isPrefixUnaryExpression = isPrefixUnaryExpression;
     function forEachReturnStatement(body, visitor) {
         return traverse(body);
         function traverse(node) {
@@ -7521,6 +7676,18 @@ var ts;
         }
     }
     ts.forEachYieldExpression = forEachYieldExpression;
+    function getRestParameterElementType(node) {
+        if (node && node.kind === 162) {
+            return node.elementType;
+        }
+        else if (node && node.kind === 157) {
+            return ts.singleOrUndefined(node.typeArguments);
+        }
+        else {
+            return undefined;
+        }
+    }
+    ts.getRestParameterElementType = getRestParameterElementType;
     function isVariableLike(node) {
         if (node) {
             switch (node.kind) {
@@ -7722,13 +7889,13 @@ var ts;
     function getImmediatelyInvokedFunctionExpression(func) {
         if (func.kind === 184 || func.kind === 185) {
             var prev = func;
-            var parent_2 = func.parent;
-            while (parent_2.kind === 183) {
-                prev = parent_2;
-                parent_2 = parent_2.parent;
+            var parent_3 = func.parent;
+            while (parent_3.kind === 183) {
+                prev = parent_3;
+                parent_3 = parent_3.parent;
             }
-            if (parent_2.kind === 179 && parent_2.expression === prev) {
-                return parent_2;
+            if (parent_3.kind === 179 && parent_3.expression === prev) {
+                return parent_3;
             }
         }
     }
@@ -7874,8 +8041,8 @@ var ts;
             case 8:
             case 9:
             case 98:
-                var parent_3 = node.parent;
-                switch (parent_3.kind) {
+                var parent_4 = node.parent;
+                switch (parent_4.kind) {
                     case 223:
                     case 144:
                     case 147:
@@ -7883,7 +8050,7 @@ var ts;
                     case 260:
                     case 257:
                     case 174:
-                        return parent_3.initializer === node;
+                        return parent_4.initializer === node;
                     case 207:
                     case 208:
                     case 209:
@@ -7894,33 +8061,33 @@ var ts;
                     case 253:
                     case 220:
                     case 218:
-                        return parent_3.expression === node;
+                        return parent_4.expression === node;
                     case 211:
-                        var forStatement = parent_3;
+                        var forStatement = parent_4;
                         return (forStatement.initializer === node && 
forStatement.initializer.kind !== 224) ||
                             forStatement.condition === node ||
                             forStatement.incrementor === node;
                     case 212:
                     case 213:
-                        var forInStatement = parent_3;
+                        var forInStatement = parent_4;
                         return (forInStatement.initializer === node && 
forInStatement.initializer.kind !== 224) ||
                             forInStatement.expression === node;
                     case 182:
                     case 200:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 202:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 142:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 145:
                     case 252:
                     case 251:
                     case 259:
                         return true;
                     case 199:
-                        return parent_3.expression === node && 
isExpressionWithTypeArgumentsInClassExtendsClause(parent_3);
+                        return parent_4.expression === node && 
isExpressionWithTypeArgumentsInClassExtendsClause(parent_4);
                     default:
-                        if (isPartOfExpression(parent_3)) {
+                        if (isPartOfExpression(parent_4)) {
                             return true;
                         }
                 }
@@ -7952,7 +8119,7 @@ var ts;
     }
     ts.isSourceFileJavaScript = isSourceFileJavaScript;
     function isInJavaScriptFile(node) {
-        return node && !!(node.flags & 2097152);
+        return node && !!(node.flags & 65536);
     }
     ts.isInJavaScriptFile = isInJavaScriptFile;
     function isRequireCall(expression, checkArgumentIsStringLiteral) {
@@ -8137,6 +8304,7 @@ var ts;
             cache = ts.concatenate(cache, node.jsDoc);
         }
     }
+    ts.getJSDocs = getJSDocs;
     function getJSDocParameterTags(param) {
         if (!isParameter(param)) {
             return undefined;
@@ -8191,7 +8359,7 @@ var ts;
     }
     ts.hasDeclaredRestParameter = hasDeclaredRestParameter;
     function isRestParameter(node) {
-        if (node && (node.flags & 2097152)) {
+        if (node && (node.flags & 65536)) {
             if (node.type && node.type.kind === 275 ||
                 ts.forEach(getJSDocParameterTags(node), function (t) { return 
t.typeExpression && t.typeExpression.type.kind === 275; })) {
                 return true;
@@ -8636,7 +8804,6 @@ var ts;
             case 194:
             case 183:
             case 198:
-            case 297:
                 return 19;
             case 181:
             case 177:
@@ -8810,13 +8977,12 @@ var ts;
         "\u0085": "\\u0085"
     });
     function escapeString(s) {
-        s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, 
getReplacement) : s;
-        return s;
-        function getReplacement(c) {
-            return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
-        }
+        return s.replace(escapedCharsRegExp, getReplacement);
     }
     ts.escapeString = escapeString;
+    function getReplacement(c) {
+        return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
+    }
     function isIntrinsicJsxName(name) {
         var ch = name.substr(0, 1);
         return ch.toLowerCase() === ch;
@@ -9492,39 +9658,6 @@ var ts;
         }
         return output;
     }
-    ts.stringify = typeof JSON !== "undefined" && JSON.stringify
-        ? JSON.stringify
-        : stringifyFallback;
-    function stringifyFallback(value) {
-        return value === undefined ? undefined : stringifyValue(value);
-    }
-    function stringifyValue(value) {
-        return typeof value === "string" ? "\"" + escapeString(value) + "\""
-            : typeof value === "number" ? isFinite(value) ? String(value) : 
"null"
-                : typeof value === "boolean" ? value ? "true" : "false"
-                    : typeof value === "object" && value ? ts.isArray(value) ? 
cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value)
-                        : "null";
-    }
-    function cycleCheck(cb, value) {
-        ts.Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular 
structure to JSON");
-        value.__cycle = true;
-        var result = cb(value);
-        delete value.__cycle;
-        return result;
-    }
-    function stringifyArray(value) {
-        return "[" + ts.reduceLeft(value, stringifyElement, "") + "]";
-    }
-    function stringifyElement(memo, value) {
-        return (memo ? memo + "," : memo) + stringifyValue(value);
-    }
-    function stringifyObject(value) {
-        return "{" + ts.reduceOwnProperties(value, stringifyProperty, "") + 
"}";
-    }
-    function stringifyProperty(memo, value, key) {
-        return value === undefined || typeof value === "function" || key === 
"__cycle" ? memo
-            : (memo ? memo + "," : memo) + ("\"" + escapeString(key) + "\":" + 
stringifyValue(value));
-    }
     var base64Digits = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
     function convertToBase64(input) {
         var result = "";
@@ -9795,6 +9928,10 @@ var ts;
         return node.kind === 70;
     }
     ts.isIdentifier = isIdentifier;
+    function isVoidExpression(node) {
+        return node.kind === 188;
+    }
+    ts.isVoidExpression = isVoidExpression;
     function isGeneratedIdentifier(node) {
         return isIdentifier(node) && node.autoGenerateKind > 0;
     }
@@ -10023,8 +10160,7 @@ var ts;
             || kind === 98
             || kind === 100
             || kind === 96
-            || kind === 201
-            || kind === 297;
+            || kind === 201;
     }
     function isLeftHandSideExpression(node) {
         return 
isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
@@ -10052,7 +10188,6 @@ var ts;
             || kind === 196
             || kind === 200
             || kind === 198
-            || kind === 297
             || isUnaryExpressionKind(kind);
     }
     function isExpression(node) {
@@ -12015,12 +12150,6 @@ var ts;
         return node;
     }
     ts.updatePartiallyEmittedExpression = updatePartiallyEmittedExpression;
-    function createRawExpression(text) {
-        var node = createNode(297);
-        node.text = text;
-        return node;
-    }
-    ts.createRawExpression = createRawExpression;
     function createComma(left, right) {
         return createBinary(left, 25, right);
     }
@@ -13730,7 +13859,7 @@ var ts;
     var Parser;
     (function (Parser) {
         var scanner = ts.createScanner(5, true);
-        var disallowInAndDecoratorContext = 65536 | 262144;
+        var disallowInAndDecoratorContext = 2048 | 8192;
         var NodeConstructor;
         var TokenConstructor;
         var IdentifierConstructor;
@@ -13778,7 +13907,7 @@ var ts;
             identifiers = ts.createMap();
             identifierCount = 0;
             nodeCount = 0;
-            contextFlags = scriptKind === 1 || scriptKind === 2 ? 2097152 : 0;
+            contextFlags = scriptKind === 1 || scriptKind === 2 ? 65536 : 0;
             parseErrorBeforeNextFinishedNode = false;
             scanner.setText(sourceText);
             scanner.setOnError(scanError);
@@ -13873,16 +14002,16 @@ var ts;
             }
         }
         function setDisallowInContext(val) {
-            setContextFlag(val, 65536);
+            setContextFlag(val, 2048);
         }
         function setYieldContext(val) {
-            setContextFlag(val, 131072);
+            setContextFlag(val, 4096);
         }
         function setDecoratorContext(val) {
-            setContextFlag(val, 262144);
+            setContextFlag(val, 8192);
         }
         function setAwaitContext(val) {
-            setContextFlag(val, 524288);
+            setContextFlag(val, 16384);
         }
         function doOutsideOfContext(context, func) {
             var contextFlagsToClear = context & contextFlags;
@@ -13905,40 +14034,40 @@ var ts;
             return func();
         }
         function allowInAnd(func) {
-            return doOutsideOfContext(65536, func);
+            return doOutsideOfContext(2048, func);
         }
         function disallowInAnd(func) {
-            return doInsideOfContext(65536, func);
+            return doInsideOfContext(2048, func);
         }
         function doInYieldContext(func) {
-            return doInsideOfContext(131072, func);
+            return doInsideOfContext(4096, func);
         }
         function doInDecoratorContext(func) {
-            return doInsideOfContext(262144, func);
+            return doInsideOfContext(8192, func);
         }
         function doInAwaitContext(func) {
-            return doInsideOfContext(524288, func);
+            return doInsideOfContext(16384, func);
         }
         function doOutsideOfAwaitContext(func) {
-            return doOutsideOfContext(524288, func);
+            return doOutsideOfContext(16384, func);
         }
         function doInYieldAndAwaitContext(func) {
-            return doInsideOfContext(131072 | 524288, func);
+            return doInsideOfContext(4096 | 16384, func);
         }
         function inContext(flags) {
             return (contextFlags & flags) !== 0;
         }
         function inYieldContext() {
-            return inContext(131072);
+            return inContext(4096);
         }
         function inDisallowInContext() {
-            return inContext(65536);
+            return inContext(2048);
         }
         function inDecoratorContext() {
-            return inContext(262144);
+            return inContext(8192);
         }
         function inAwaitContext() {
-            return inContext(524288);
+            return inContext(16384);
         }
         function parseErrorAtCurrentToken(message, arg0) {
             var start = scanner.getTokenPos();
@@ -14100,7 +14229,7 @@ var ts;
             }
             if (parseErrorBeforeNextFinishedNode) {
                 parseErrorBeforeNextFinishedNode = false;
-                node.flags |= 1048576;
+                node.flags |= 32768;
             }
             return node;
         }
@@ -14418,7 +14547,7 @@ var ts;
             if (ts.containsParseError(node)) {
                 return undefined;
             }
-            var nodeContextFlags = node.flags & 3080192;
+            var nodeContextFlags = node.flags & 96256;
             if (nodeContextFlags !== contextFlags) {
                 return undefined;
             }
@@ -15091,6 +15220,8 @@ var ts;
                 case 16:
                 case 20:
                 case 26:
+                case 48:
+                case 47:
                 case 93:
                 case 9:
                 case 8:
@@ -15143,6 +15274,7 @@ var ts;
             return parseArrayTypeOrHigher();
         }
         function parseUnionOrIntersectionType(kind, parseConstituentType, 
operator) {
+            parseOptional(operator);
             var type = parseConstituentType();
             if (token() === operator) {
                 var types = createNodeArray([type], type.pos);
@@ -15223,7 +15355,7 @@ var ts;
             }
         }
         function parseType() {
-            return doOutsideOfContext(655360, parseTypeWorker);
+            return doOutsideOfContext(20480, parseTypeWorker);
         }
         function parseTypeWorker() {
             if (isStartOfFunctionType()) {
@@ -16854,7 +16986,7 @@ var ts;
             property.type = parseTypeAnnotation();
             property.initializer = ts.hasModifier(property, 32)
                 ? allowInAnd(parseNonParameterInitializer)
-                : doOutsideOfContext(131072 | 65536, 
parseNonParameterInitializer);
+                : doOutsideOfContext(4096 | 2048, 
parseNonParameterInitializer);
             parseSemicolon();
             return addJSDocComment(finishNode(property));
         }
@@ -17771,7 +17903,7 @@ var ts;
                                 break;
                             case 38:
                                 var asterisk = scanner.getTokenText();
-                                if (state === 1) {
+                                if (state === 1 || state === 2) {
                                     state = 2;
                                     pushComment(asterisk);
                                 }
@@ -17786,7 +17918,10 @@ var ts;
                                 break;
                             case 5:
                                 var whitespace = scanner.getTokenText();
-                                if (state === 2 || margin !== undefined && 
indent + whitespace.length > margin) {
+                                if (state === 2) {
+                                    comments.push(whitespace);
+                                }
+                                else if (margin !== undefined && indent + 
whitespace.length > margin) {
                                     comments.push(whitespace.slice(margin - 
indent - 1));
                                 }
                                 indent += whitespace.length;
@@ -17794,6 +17929,7 @@ var ts;
                             case 1:
                                 break;
                             default:
+                                state = 2;
                                 pushComment(scanner.getTokenText());
                                 break;
                         }
@@ -17883,7 +18019,7 @@ var ts;
                 }
                 function parseTagComments(indent) {
                     var comments = [];
-                    var state = 1;
+                    var state = 0;
                     var margin;
                     function pushComment(text) {
                         if (!margin) {
@@ -18828,7 +18964,7 @@ var ts;
                 activeLabels = undefined;
                 hasExplicitReturn = false;
                 bindChildren(node);
-                node.flags &= ~64896;
+                node.flags &= ~1408;
                 if (!(currentFlow.flags & 1) && containerFlags & 8 && 
ts.nodeIsPresent(node.body)) {
                     node.flags |= 128;
                     if (hasExplicitReturn)
@@ -20011,9 +20147,6 @@ var ts;
                     return bindParameter(node);
                 case 223:
                 case 174:
-                    if (node.dotDotDotToken && node.parent.kind === 172) {
-                        emitFlags |= 32768;
-                    }
                     return bindVariableDeclarationOrBindingElement(node);
                 case 147:
                 case 146:
@@ -20040,7 +20173,6 @@ var ts;
                         }
                         root = root.parent;
                     }
-                    emitFlags |= hasRest ? 32768 : 16384;
                     return;
                 case 153:
                 case 154:
@@ -20156,12 +20288,12 @@ var ts;
                 return;
             }
             else {
-                var parent_4 = node.parent;
-                if (!ts.isExternalModule(parent_4)) {
+                var parent_5 = node.parent;
+                if (!ts.isExternalModule(parent_5)) {
                     file.bindDiagnostics.push(ts.createDiagnosticForNode(node, 
ts.Diagnostics.Global_module_exports_may_only_appear_in_module_files));
                     return;
                 }
-                if (!parent_4.isDeclarationFile) {
+                if (!parent_5.isDeclarationFile) {
                     file.bindDiagnostics.push(ts.createDiagnosticForNode(node, 
ts.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files));
                     return;
                 }
@@ -20236,14 +20368,6 @@ var ts;
             }
         }
         function bindClassLikeDeclaration(node) {
-            if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
-                if (ts.getClassExtendsHeritageClauseElement(node) !== 
undefined) {
-                    emitFlags |= 1024;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
-                }
-            }
             if (node.kind === 226) {
                 bindBlockScopedDeclaration(node, 32, 899519);
             }
@@ -20287,11 +20411,6 @@ var ts;
             }
         }
         function bindParameter(node) {
-            if (!ts.isDeclarationFile(file) &&
-                !ts.isInAmbientContext(node) &&
-                ts.nodeIsDecorated(node)) {
-                emitFlags |= (2048 | 4096);
-            }
             if (inStrictMode) {
                 checkStrictModeEvalOrArguments(node, node.name);
             }
@@ -20309,7 +20428,7 @@ var ts;
         function bindFunctionDeclaration(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             checkStrictModeFunctionName(node);
@@ -20324,7 +20443,7 @@ var ts;
         function bindFunctionExpression(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow) {
@@ -20337,10 +20456,7 @@ var ts;
         function bindPropertyOrMethodOrAccessor(node, symbolFlags, 
symbolExcludes) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow && 
ts.isObjectLiteralOrClassExpressionMethod(node)) {
@@ -21048,6 +21164,8 @@ var ts;
     ts.getSymbolId = getSymbolId;
     function createTypeChecker(host, produceDiagnostics) {
         var cancellationToken;
+        var requestedExternalEmitHelpers;
+        var externalHelpersModule;
         var Symbol = ts.objectAllocator.getSymbolConstructor();
         var Type = ts.objectAllocator.getTypeConstructor();
         var Signature = ts.objectAllocator.getSignatureConstructor();
@@ -21355,9 +21473,7 @@ var ts;
                         (target.valueDeclaration.kind === 230 && 
source.valueDeclaration.kind !== 230))) {
                     target.valueDeclaration = source.valueDeclaration;
                 }
-                ts.forEach(source.declarations, function (node) {
-                    target.declarations.push(node);
-                });
+                ts.addRange(target.declarations, source.declarations);
                 if (source.members) {
                     if (!target.members)
                         target.members = ts.createMap();
@@ -21493,8 +21609,18 @@ var ts;
                 return ts.indexOf(sourceFiles, declarationFile) <= 
ts.indexOf(sourceFiles, useFile);
             }
             if (declaration.pos <= usage.pos) {
-                return declaration.kind !== 223 ||
-                    
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                if (declaration.kind === 174) {
+                    var errorBindingElement = ts.getAncestor(usage, 174);
+                    if (errorBindingElement) {
+                        return getAncestorBindingPattern(errorBindingElement) 
!== getAncestorBindingPattern(declaration) ||
+                            declaration.pos < errorBindingElement.pos;
+                    }
+                    return 
isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), usage);
+                }
+                else if (declaration.kind === 223) {
+                    return 
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                }
+                return true;
             }
             var container = ts.getEnclosingBlockScopeContainer(declaration);
             return isUsedInFunctionOrNonStaticProperty(usage, container);
@@ -21538,6 +21664,15 @@ var ts;
                 }
                 return false;
             }
+            function getAncestorBindingPattern(node) {
+                while (node) {
+                    if (ts.isBindingPattern(node)) {
+                        return node;
+                    }
+                    node = node.parent;
+                }
+                return undefined;
+            }
         }
         function resolveName(location, name, meaning, nameNotFoundMessage, 
nameArg) {
             var result;
@@ -21790,7 +21925,7 @@ var ts;
             ts.Debug.assert((result.flags & 2) !== 0);
             var declaration = ts.forEach(result.declarations, function (d) { 
return ts.isBlockOrCatchScoped(d) ? d : undefined; });
             ts.Debug.assert(declaration !== undefined, "Block-scoped variable 
declaration is undefined");
-            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), 
errorLocation)) {
+            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
                 error(errorLocation, 
ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, 
ts.declarationNameToString(declaration.name));
             }
         }
@@ -21817,7 +21952,7 @@ var ts;
             }
         }
         function getDeclarationOfAliasSymbol(symbol) {
-            return ts.forEach(symbol.declarations, function (d) { return 
ts.isAliasSymbolDeclaration(d) ? d : undefined; });
+            return ts.find(symbol.declarations, ts.isAliasSymbolDeclaration);
         }
         function getTargetOfImportEqualsDeclaration(node) {
             if (node.moduleReference.kind === 245) {
@@ -22084,9 +22219,8 @@ var ts;
             }
             if (!isRelative && resolvedModule && 
!ts.extensionIsTypeScript(resolvedModule.extension)) {
                 if (isForAugmentation) {
-                    ts.Debug.assert(!!moduleNotFoundError);
                     var diag = 
ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
-                    error(errorNode, diag, moduleName, 
resolvedModule.resolvedFileName);
+                    error(errorNode, diag, moduleReference, 
resolvedModule.resolvedFileName);
                 }
                 else if (compilerOptions.noImplicitAny && moduleNotFoundError) 
{
                     error(errorNode, 
ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
 moduleReference, resolvedModule.resolvedFileName);
@@ -22315,6 +22449,16 @@ var ts;
         }
         function getAccessibleSymbolChain(symbol, enclosingDeclaration, 
meaning, useOnlyExternalAliasing) {
             function getAccessibleSymbolChainFromSymbolTable(symbols) {
+                return getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
[]);
+            }
+            function getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
visitedSymbolTables) {
+                if (ts.contains(visitedSymbolTables, symbols)) {
+                    return undefined;
+                }
+                visitedSymbolTables.push(symbols);
+                var result = trySymbolTable(symbols);
+                visitedSymbolTables.pop();
+                return result;
                 function canQualifySymbol(symbolFromSymbolTable, meaning) {
                     if (!needsQualification(symbolFromSymbolTable, 
enclosingDeclaration, meaning)) {
                         return true;
@@ -22328,26 +22472,28 @@ var ts;
                             canQualifySymbol(symbolFromSymbolTable, meaning);
                     }
                 }
-                if (isAccessible(symbols[symbol.name])) {
-                    return [symbol];
-                }
-                return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
-                    if (symbolFromSymbolTable.flags & 8388608
-                        && symbolFromSymbolTable.name !== "export="
-                        && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
-                        if (!useOnlyExternalAliasing ||
-                            ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
-                            var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
-                            if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
-                                return [symbolFromSymbolTable];
-                            }
-                            var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : 
undefined;
-                            if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
-                                return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                function trySymbolTable(symbols) {
+                    if (isAccessible(symbols[symbol.name])) {
+                        return [symbol];
+                    }
+                    return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
+                        if (symbolFromSymbolTable.flags & 8388608
+                            && symbolFromSymbolTable.name !== "export="
+                            && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
+                            if (!useOnlyExternalAliasing ||
+                                ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
+                                var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
+                                if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
+                                    return [symbolFromSymbolTable];
+                                }
+                                var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTableWorker(resolvedImportedSymbol.exports, 
visitedSymbolTables) : undefined;
+                                if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
+                                    return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                                }
                             }
                         }
-                    }
-                });
+                    });
+                }
             }
             if (symbol) {
                 if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
@@ -22648,9 +22794,9 @@ var ts;
                     var accessibleSymbolChain = 
getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2));
                     if (!accessibleSymbolChain ||
                         needsQualification(accessibleSymbolChain[0], 
enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : 
getQualifiedLeftMeaning(meaning))) {
-                        var parent_5 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
-                        if (parent_5) {
-                            walkSymbol(parent_5, 
getQualifiedLeftMeaning(meaning), false);
+                        var parent_6 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
+                        if (parent_6) {
+                            walkSymbol(parent_6, 
getQualifiedLeftMeaning(meaning), false);
                         }
                     }
                     if (accessibleSymbolChain) {
@@ -22783,12 +22929,12 @@ var ts;
                             var length_1 = outerTypeParameters.length;
                             while (i < length_1) {
                                 var start = i;
-                                var parent_6 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
+                                var parent_7 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
                                 do {
                                     i++;
-                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_6);
+                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_7);
                                 if (!ts.rangeEquals(outerTypeParameters, 
typeArguments, start, i)) {
-                                    writeSymbolTypeReference(parent_6, 
typeArguments, start, i, flags);
+                                    writeSymbolTypeReference(parent_7, 
typeArguments, start, i, flags);
                                     writePunctuation(writer, 22);
                                 }
                             }
@@ -23069,7 +23215,7 @@ var ts;
                 }
                 ts.Debug.assert(bindingElement.kind === 174);
                 if (bindingElement.propertyName) {
-                    
writer.writeSymbol(ts.getTextOfNode(bindingElement.propertyName), 
bindingElement.symbol);
+                    
writer.writeProperty(ts.getTextOfNode(bindingElement.propertyName));
                     writePunctuation(writer, 55);
                     writeSpace(writer);
                 }
@@ -23212,12 +23358,12 @@ var ts;
                         if (ts.isExternalModuleAugmentation(node)) {
                             return true;
                         }
-                        var parent_7 = getDeclarationContainer(node);
+                        var parent_8 = getDeclarationContainer(node);
                         if (!(ts.getCombinedModifierFlags(node) & 1) &&
-                            !(node.kind !== 234 && parent_7.kind !== 261 && 
ts.isInAmbientContext(parent_7))) {
-                            return isGlobalSourceFile(parent_7);
+                            !(node.kind !== 234 && parent_8.kind !== 261 && 
ts.isInAmbientContext(parent_8))) {
+                            return isGlobalSourceFile(parent_8);
                         }
-                        return isDeclarationVisible(parent_7);
+                        return isDeclarationVisible(parent_8);
                     case 147:
                     case 146:
                     case 151:
@@ -23376,7 +23522,13 @@ var ts;
             return name.kind === 142 && 
!ts.isStringOrNumericLiteral(name.expression);
         }
         function getRestType(source, properties, symbol) {
-            ts.Debug.assert(!!(source.flags & 32768), "Rest types only support 
object types right now.");
+            source = filterType(source, function (t) { return !(t.flags & 
6144); });
+            if (source.flags & 8192) {
+                return emptyObjectType;
+            }
+            if (source.flags & 65536) {
+                return mapType(source, function (t) { return getRestType(t, 
properties, symbol); });
+            }
             var members = ts.createMap();
             var names = ts.createMap();
             for (var _i = 0, properties_2 = properties; _i < 
properties_2.length; _i++) {
@@ -23412,7 +23564,7 @@ var ts;
             var type;
             if (pattern.kind === 172) {
                 if (declaration.dotDotDotToken) {
-                    if (!(parentType.flags & 32768)) {
+                    if (!isValidSpreadType(parentType)) {
                         error(declaration, 
ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -23490,7 +23642,7 @@ var ts;
             return strictNullChecks && optional ? includeFalsyTypes(type, 
2048) : type;
         }
         function getTypeForVariableLikeDeclaration(declaration, 
includeOptionality) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = 
getTypeForVariableLikeDeclarationFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -23509,7 +23661,7 @@ var ts;
             if (declaration.type) {
                 return addOptionality(getTypeFromTypeNode(declaration.type), 
declaration.questionToken && includeOptionality);
             }
-            if ((compilerOptions.noImplicitAny || declaration.flags & 2097152) 
&&
+            if ((compilerOptions.noImplicitAny || declaration.flags & 65536) &&
                 declaration.kind === 223 && 
!ts.isBindingPattern(declaration.name) &&
                 !(ts.getCombinedModifierFlags(declaration) & 1) && 
!ts.isInAmbientContext(declaration)) {
                 if (!(ts.getCombinedNodeFlags(declaration) & 2) && 
(!declaration.initializer || isNullOrUndefined(declaration.initializer))) {
@@ -23570,13 +23722,18 @@ var ts;
         }
         function getTypeFromObjectBindingPattern(pattern, 
includePatternInType, reportErrors) {
             var members = ts.createMap();
+            var stringIndexInfo;
             var hasComputedProperties = false;
             ts.forEach(pattern.elements, function (e) {
                 var name = e.propertyName || e.name;
-                if (isComputedNonLiteralName(name) || e.dotDotDotToken) {
+                if (isComputedNonLiteralName(name)) {
                     hasComputedProperties = true;
                     return;
                 }
+                if (e.dotDotDotToken) {
+                    stringIndexInfo = createIndexInfo(anyType, false);
+                    return;
+                }
                 var text = ts.getTextOfPropertyName(name);
                 var flags = 4 | 67108864 | (e.initializer ? 536870912 : 0);
                 var symbol = createSymbol(flags, text);
@@ -23584,7 +23741,7 @@ var ts;
                 symbol.bindingElement = e;
                 members[symbol.name] = symbol;
             });
-            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, undefined, undefined);
+            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, stringIndexInfo, undefined);
             if (includePatternInType) {
                 result.pattern = pattern;
             }
@@ -23649,7 +23806,7 @@ var ts;
                 if (declaration.kind === 240) {
                     return links.type = 
checkExpression(declaration.expression);
                 }
-                if (declaration.flags & 2097152 && declaration.kind === 286 && 
declaration.typeExpression) {
+                if (declaration.flags & 65536 && declaration.kind === 286 && 
declaration.typeExpression) {
                     return links.type = 
getTypeFromTypeNode(declaration.typeExpression.type);
                 }
                 if (!pushTypeResolution(symbol, 0)) {
@@ -23658,7 +23815,7 @@ var ts;
                 var type = void 0;
                 if (declaration.kind === 192 ||
                     declaration.kind === 177 && declaration.parent.kind === 
192) {
-                    if (declaration.flags & 2097152) {
+                    if (declaration.flags & 65536) {
                         var jsdocType = ts.getJSDocType(declaration.parent);
                         if (jsdocType) {
                             return links.type = getTypeFromTypeNode(jsdocType);
@@ -23673,16 +23830,7 @@ var ts;
                     type = 
getWidenedTypeForVariableLikeDeclaration(declaration, true);
                 }
                 if (!popTypeResolution()) {
-                    if (symbol.valueDeclaration.type) {
-                        type = unknownType;
-                        error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
-                    }
-                    else {
-                        type = anyType;
-                        if (compilerOptions.noImplicitAny) {
-                            error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
-                        }
-                    }
+                    type = reportCircularityError(symbol);
                 }
                 links.type = type;
             }
@@ -23712,7 +23860,7 @@ var ts;
             if (!links.type) {
                 var getter = ts.getDeclarationOfKind(symbol, 151);
                 var setter = ts.getDeclarationOfKind(symbol, 152);
-                if (getter && getter.flags & 2097152) {
+                if (getter && getter.flags & 65536) {
                     var jsDocType = 
getTypeForVariableLikeDeclarationFromJSDocComment(getter);
                     if (jsDocType) {
                         return links.type = jsDocType;
@@ -23794,10 +23942,27 @@ var ts;
         function getTypeOfInstantiatedSymbol(symbol) {
             var links = getSymbolLinks(symbol);
             if (!links.type) {
-                links.type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!pushTypeResolution(symbol, 0)) {
+                    return unknownType;
+                }
+                var type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!popTypeResolution()) {
+                    type = reportCircularityError(symbol);
+                }
+                links.type = type;
             }
             return links.type;
         }
+        function reportCircularityError(symbol) {
+            if (symbol.valueDeclaration.type) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
+                return unknownType;
+            }
+            if (compilerOptions.noImplicitAny) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
+            }
+            return anyType;
+        }
         function getTypeOfSymbol(symbol) {
             if (symbol.flags & 16777216) {
                 return getTypeOfInstantiatedSymbol(symbol);
@@ -24565,37 +24730,42 @@ var ts;
         function resolveMappedTypeMembers(type) {
             var members = ts.createMap();
             var stringIndexInfo;
-            var numberIndexInfo;
             setStructuredTypeMembers(type, emptySymbols, emptyArray, 
emptyArray, undefined, undefined);
             var typeParameter = getTypeParameterFromMappedType(type);
             var constraintType = getConstraintTypeFromMappedType(type);
             var templateType = getTemplateTypeFromMappedType(type);
-            var isReadonly = !!type.declaration.readonlyToken;
-            var isOptional = !!type.declaration.questionToken;
-            var keyType = constraintType.flags & 16384 ? 
getApparentType(constraintType) : constraintType;
-            var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
-            forEachType(iterationType, function (t) {
+            var modifiersType = 
getApparentType(getModifiersTypeFromMappedType(type));
+            var templateReadonly = !!type.declaration.readonlyToken;
+            var templateOptional = !!type.declaration.questionToken;
+            if (type.declaration.typeParameter.constraint.kind === 168) {
+                forEachType(getLiteralTypeFromPropertyNames(modifiersType), 
addMemberForKeyType);
+                if (getIndexInfoOfType(modifiersType, 0)) {
+                    addMemberForKeyType(stringType);
+                }
+            }
+            else {
+                var keyType = constraintType.flags & 540672 ? 
getApparentType(constraintType) : constraintType;
+                var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
+                forEachType(iterationType, addMemberForKeyType);
+            }
+            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, undefined);
+            function addMemberForKeyType(t) {
                 var iterationMapper = createUnaryTypeMapper(typeParameter, t);
                 var templateMapper = type.mapper ? 
combineTypeMappers(type.mapper, iterationMapper) : iterationMapper;
                 var propType = instantiateType(templateType, templateMapper);
-                if (t.flags & (32 | 64 | 256)) {
+                if (t.flags & 32) {
                     var propName = t.text;
+                    var modifiersProp = getPropertyOfType(modifiersType, 
propName);
+                    var isOptional = templateOptional || !!(modifiersProp && 
modifiersProp.flags & 536870912);
                     var prop = createSymbol(4 | 67108864 | (isOptional ? 
536870912 : 0), propName);
-                    prop.type = addOptionality(propType, isOptional);
-                    prop.isReadonly = isReadonly;
+                    prop.type = propType;
+                    prop.isReadonly = templateReadonly || modifiersProp && 
isReadonlySymbol(modifiersProp);
                     members[propName] = prop;
                 }
                 else if (t.flags & 2) {
-                    stringIndexInfo = createIndexInfo(propType, isReadonly);
-                }
-                else if (t.flags & 4) {
-                    numberIndexInfo = createIndexInfo(propType, isReadonly);
+                    stringIndexInfo = createIndexInfo(propType, 
templateReadonly);
                 }
-            });
-            if (stringIndexInfo && numberIndexInfo && 
isTypeIdenticalTo(stringIndexInfo.type, numberIndexInfo.type)) {
-                numberIndexInfo = undefined;
             }
-            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, numberIndexInfo);
         }
         function getTypeParameterFromMappedType(type) {
             return type.typeParameter ||
@@ -24608,16 +24778,31 @@ var ts;
         function getTemplateTypeFromMappedType(type) {
             return type.templateType ||
                 (type.templateType = type.declaration.type ?
-                    
instantiateType(getTypeFromTypeNode(type.declaration.type), type.mapper || 
identityMapper) :
+                    
instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), 
!!type.declaration.questionToken), type.mapper || identityMapper) :
                     unknownType);
         }
+        function getModifiersTypeFromMappedType(type) {
+            if (!type.modifiersType) {
+                var constraintDeclaration = 
type.declaration.typeParameter.constraint;
+                if (constraintDeclaration.kind === 168) {
+                    type.modifiersType = 
instantiateType(getTypeFromTypeNode(constraintDeclaration.type), type.mapper || 
identityMapper);
+                }
+                else {
+                    var declaredType = 
getTypeFromMappedTypeNode(type.declaration);
+                    var constraint = 
getConstraintTypeFromMappedType(declaredType);
+                    var extendedConstraint = constraint && constraint.flags & 
16384 ? getConstraintOfTypeParameter(constraint) : constraint;
+                    type.modifiersType = extendedConstraint && 
extendedConstraint.flags & 262144 ? instantiateType(extendedConstraint.type, 
type.mapper || identityMapper) : emptyObjectType;
+                }
+            }
+            return type.modifiersType;
+        }
         function getErasedTemplateTypeFromMappedType(type) {
             return instantiateType(getTemplateTypeFromMappedType(type), 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), anyType));
         }
         function isGenericMappedType(type) {
             if (getObjectFlags(type) & 32) {
                 var constraintType = getConstraintTypeFromMappedType(type);
-                return !!(constraintType.flags & (16384 | 262144));
+                return maybeTypeOfKind(constraintType, 540672 | 262144);
             }
             return false;
         }
@@ -24691,23 +24876,18 @@ var ts;
                 getPropertiesOfUnionOrIntersectionType(type) :
                 getPropertiesOfObjectType(type);
         }
-        function getApparentTypeOfTypeParameter(type) {
+        function getApparentTypeOfTypeVariable(type) {
             if (!type.resolvedApparentType) {
-                var constraintType = getConstraintOfTypeParameter(type);
+                var constraintType = getConstraintOfTypeVariable(type);
                 while (constraintType && constraintType.flags & 16384) {
-                    constraintType = 
getConstraintOfTypeParameter(constraintType);
+                    constraintType = 
getConstraintOfTypeVariable(constraintType);
                 }
                 type.resolvedApparentType = 
getTypeWithThisArgument(constraintType || emptyObjectType, type);
             }
             return type.resolvedApparentType;
         }
-        function getApparentTypeOfIndexedAccess(type) {
-            return getIndexTypeOfType(getApparentType(type.objectType), 0) || 
type;
-        }
         function getApparentType(type) {
-            var t = type.flags & 16384 ? getApparentTypeOfTypeParameter(type) :
-                type.flags & 524288 ? getApparentTypeOfIndexedAccess(type) :
-                    type;
+            var t = type.flags & 540672 ? getApparentTypeOfTypeVariable(type) 
: type;
             return t.flags & 262178 ? globalStringType :
                 t.flags & 340 ? globalNumberType :
                     t.flags & 136 ? globalBooleanType :
@@ -24853,7 +25033,7 @@ var ts;
             return undefined;
         }
         function getTypeParametersFromJSDocTemplate(declaration) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var templateTag = ts.getJSDocTemplateTag(declaration);
                 if (templateTag) {
                     return 
getTypeParametersFromDeclaration(templateTag.typeParameters);
@@ -24881,7 +25061,7 @@ var ts;
             return result;
         }
         function isJSDocOptionalParameter(node) {
-            if (node.flags & 2097152) {
+            if (node.flags & 65536) {
                 if (node.type && node.type.kind === 273) {
                     return true;
                 }
@@ -25010,7 +25190,7 @@ var ts;
             else if (declaration.type) {
                 return getTypeFromTypeNode(declaration.type);
             }
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = getReturnTypeFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -25202,6 +25382,11 @@ var ts;
             }
             return typeParameter.constraint === noConstraintType ? undefined : 
typeParameter.constraint;
         }
+        function getConstraintOfTypeVariable(type) {
+            return type.flags & 16384 ? getConstraintOfTypeParameter(type) :
+                type.flags & 524288 ? type.constraint :
+                    undefined;
+        }
         function getParentSymbolOfTypeParameter(typeParameter) {
             return 
getSymbolOfNode(ts.getDeclarationOfKind(typeParameter.symbol, 143).parent);
         }
@@ -25662,6 +25847,9 @@ var ts;
                 typeSet.containsAny = true;
             }
             else if (!(type.flags & 8192) && (strictNullChecks || !(type.flags 
& 6144)) && !ts.contains(typeSet, type)) {
+                if (type.flags & 65536 && typeSet.unionIndex === undefined) {
+                    typeSet.unionIndex = typeSet.length;
+                }
                 typeSet.push(type);
             }
         }
@@ -25675,17 +25863,6 @@ var ts;
             if (types.length === 0) {
                 return emptyObjectType;
             }
-            var _loop_2 = function (i) {
-                var type_1 = types[i];
-                if (type_1.flags & 65536) {
-                    return { value: getUnionType(ts.map(type_1.types, function 
(t) { return getIntersectionType(ts.replaceElement(types, i, t)); }), false, 
aliasSymbol, aliasTypeArguments) };
-                }
-            };
-            for (var i = 0; i < types.length; i++) {
-                var state_2 = _loop_2(i);
-                if (typeof state_2 === "object")
-                    return state_2.value;
-            }
             var typeSet = [];
             addTypesToIntersection(typeSet, types);
             if (typeSet.containsAny) {
@@ -25694,6 +25871,11 @@ var ts;
             if (typeSet.length === 1) {
                 return typeSet[0];
             }
+            var unionIndex = typeSet.unionIndex;
+            if (unionIndex !== undefined) {
+                var unionType = typeSet[unionIndex];
+                return getUnionType(ts.map(unionType.types, function (t) { 
return getIntersectionType(ts.replaceElement(typeSet, unionIndex, t)); }), 
false, aliasSymbol, aliasTypeArguments);
+            }
             var id = getTypeListId(typeSet);
             var type = intersectionTypes[id];
             if (!type) {
@@ -25712,7 +25894,7 @@ var ts;
             }
             return links.resolvedType;
         }
-        function getIndexTypeForTypeParameter(type) {
+        function getIndexTypeForGenericType(type) {
             if (!type.resolvedIndexType) {
                 type.resolvedIndexType = createType(262144);
                 type.resolvedIndexType.type = type;
@@ -25728,7 +25910,7 @@ var ts;
             return getUnionType(ts.map(getPropertiesOfType(type), 
getLiteralTypeFromPropertyName));
         }
         function getIndexType(type) {
-            return type.flags & 16384 ? getIndexTypeForTypeParameter(type) :
+            return maybeTypeOfKind(type, 540672) ? 
getIndexTypeForGenericType(type) :
                 getObjectFlags(type) & 32 ? 
getConstraintTypeFromMappedType(type) :
                     type.flags & 1 || getIndexInfoOfType(type, 0) ? stringType 
:
                         getLiteralTypeFromPropertyNames(type);
@@ -25748,6 +25930,17 @@ var ts;
             var type = createType(524288);
             type.objectType = objectType;
             type.indexType = indexType;
+            if (type.objectType.flags & 229376) {
+                type.constraint = getIndexTypeOfType(type.objectType, 0);
+            }
+            else if (type.objectType.flags & 540672) {
+                var apparentType = 
getApparentTypeOfTypeVariable(type.objectType);
+                if (apparentType !== emptyObjectType) {
+                    type.constraint = isTypeOfKind(type.indexType, 262178) ?
+                        getIndexedAccessType(apparentType, type.indexType) :
+                        getIndexTypeOfType(apparentType, 0);
+                }
+            }
             return type;
         }
         function getPropertyTypeForIndexType(objectType, indexType, 
accessNode, cacheSymbol) {
@@ -25820,12 +26013,15 @@ var ts;
             }
             var mapper = 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), indexType);
             var templateMapper = type.mapper ? combineTypeMappers(type.mapper, 
mapper) : mapper;
-            return 
addOptionality(instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper), !!type.declaration.questionToken);
+            return instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper);
         }
         function getIndexedAccessType(objectType, indexType, accessNode) {
-            if (indexType.flags & 16384 ||
-                objectType.flags & 16384 && indexType.flags & 262144 ||
+            if (maybeTypeOfKind(indexType, 540672 | 262144) ||
+                maybeTypeOfKind(objectType, 540672) && !(accessNode && 
accessNode.kind === 178) ||
                 isGenericMappedType(objectType)) {
+                if (objectType.flags & 1) {
+                    return objectType;
+                }
                 if (accessNode) {
                     if (!isTypeAssignableTo(indexType, 
getIndexType(objectType))) {
                         error(accessNode, 
ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), 
typeToString(objectType));
@@ -25896,10 +26092,23 @@ var ts;
             return symbol ? 
getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : undefined;
         }
         function getSpreadType(left, right, isFromObjectLiteral) {
-            ts.Debug.assert(!!(left.flags & (32768 | 1)) && !!(right.flags & 
(32768 | 1)), "Only object types may be spread.");
             if (left.flags & 1 || right.flags & 1) {
                 return anyType;
             }
+            left = filterType(left, function (t) { return !(t.flags & 6144); 
});
+            if (left.flags & 8192) {
+                return right;
+            }
+            right = filterType(right, function (t) { return !(t.flags & 6144); 
});
+            if (right.flags & 8192) {
+                return left;
+            }
+            if (left.flags & 65536) {
+                return mapType(left, function (t) { return getSpreadType(t, 
right, isFromObjectLiteral); });
+            }
+            if (right.flags & 65536) {
+                return mapType(right, function (t) { return 
getSpreadType(left, t, isFromObjectLiteral); });
+            }
             var members = ts.createMap();
             var skippedPrivateMembers = ts.createMap();
             var stringIndexInfo;
@@ -26244,12 +26453,12 @@ var ts;
         function instantiateMappedType(type, mapper) {
             var constraintType = getConstraintTypeFromMappedType(type);
             if (constraintType.flags & 262144) {
-                var typeParameter_1 = constraintType.type;
-                var mappedTypeParameter = mapper(typeParameter_1);
-                if (typeParameter_1 !== mappedTypeParameter) {
-                    return mapType(mappedTypeParameter, function (t) {
+                var typeVariable_1 = constraintType.type;
+                var mappedTypeVariable = instantiateType(typeVariable_1, 
mapper);
+                if (typeVariable_1 !== mappedTypeVariable) {
+                    return mapType(mappedTypeVariable, function (t) {
                         if (isMappableType(t)) {
-                            var replacementMapper = 
createUnaryTypeMapper(typeParameter_1, t);
+                            var replacementMapper = 
createUnaryTypeMapper(typeVariable_1, t);
                             var combinedMapper = mapper.mappedTypes && 
mapper.mappedTypes.length === 1 ? replacementMapper : 
combineTypeMappers(replacementMapper, mapper);
                             combinedMapper.mappedTypes = mapper.mappedTypes;
                             return instantiateMappedObjectType(type, 
combinedMapper);
@@ -26276,7 +26485,7 @@ var ts;
                 return false;
             }
             var mappedTypes = mapper.mappedTypes;
-            var node = symbol.declarations[0].parent;
+            var node = symbol.declarations[0];
             while (node) {
                 switch (node.kind) {
                     case 158:
@@ -26312,6 +26521,15 @@ var ts;
                             }
                         }
                         break;
+                    case 274:
+                        var func = node;
+                        for (var _b = 0, _c = func.parameters; _b < _c.length; 
_b++) {
+                            var p = _c[_b];
+                            if (ts.contains(mappedTypes, getTypeOfNode(p))) {
+                                return true;
+                            }
+                        }
+                        break;
                     case 230:
                     case 261:
                         return false;
@@ -26731,6 +26949,23 @@ var ts;
                     
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
 targetType, sourceType);
                 }
             }
+            function 
isUnionOrIntersectionTypeWithoutNullableConstituents(type) {
+                if (!(type.flags & 196608)) {
+                    return false;
+                }
+                var seenNonNullable = false;
+                for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
+                    var t = _a[_i];
+                    if (t.flags & 6144) {
+                        continue;
+                    }
+                    if (seenNonNullable) {
+                        return true;
+                    }
+                    seenNonNullable = true;
+                }
+                return false;
+            }
             function isRelatedTo(source, target, reportErrors, headMessage) {
                 var result;
                 if (source.flags & 96 && source.flags & 1048576) {
@@ -26753,7 +26988,7 @@ var ts;
                         }
                         return 0;
                     }
-                    if (target.flags & 196608) {
+                    if 
(isUnionOrIntersectionTypeWithoutNullableConstituents(target)) {
                         source = getRegularTypeOfObjectLiteral(source);
                     }
                 }
@@ -26784,7 +27019,7 @@ var ts;
                         return result;
                     }
                 }
-                if (target.flags & 16384) {
+                else if (target.flags & 16384) {
                     if (getObjectFlags(source) & 32 && 
getConstraintTypeFromMappedType(source) === getIndexType(target)) {
                         if (!source.declaration.questionToken) {
                             var templateType = 
getTemplateTypeFromMappedType(source);
@@ -26809,10 +27044,12 @@ var ts;
                             return result;
                         }
                     }
-                    var constraint = getConstraintOfTypeParameter(target.type);
-                    if (constraint) {
-                        if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
-                            return result;
+                    if (target.type.flags & 540672) {
+                        var constraint = 
getConstraintOfTypeVariable(target.type);
+                        if (constraint) {
+                            if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
+                                return result;
+                            }
                         }
                     }
                 }
@@ -26822,12 +27059,19 @@ var ts;
                             return result;
                         }
                     }
+                    if (target.constraint) {
+                        if (result = isRelatedTo(source, target.constraint, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
                 }
                 if (source.flags & 16384) {
                     if (getObjectFlags(target) & 32 && 
getConstraintTypeFromMappedType(target) === getIndexType(source)) {
                         var indexedAccessType = getIndexedAccessType(source, 
getTypeParameterFromMappedType(target));
                         var templateType = 
getTemplateTypeFromMappedType(target);
                         if (result = isRelatedTo(indexedAccessType, 
templateType, reportErrors)) {
+                            errorInfo = saveErrorInfo;
                             return result;
                         }
                     }
@@ -26844,6 +27088,14 @@ var ts;
                         }
                     }
                 }
+                else if (source.flags & 524288) {
+                    if (source.constraint) {
+                        if (result = isRelatedTo(source.constraint, target, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
+                }
                 else {
                     if (getObjectFlags(source) & 4 && getObjectFlags(target) & 
4 && source.target === target.target) {
                         if (result = typeArgumentsRelatedTo(source, target, 
reportErrors)) {
@@ -27114,8 +27366,11 @@ var ts;
                         }
                     }
                 }
-                else if (relation !== identityRelation && 
isEmptyObjectType(resolveStructuredTypeMembers(target))) {
-                    return -1;
+                else if (relation !== identityRelation) {
+                    var resolved = resolveStructuredTypeMembers(target);
+                    if (isEmptyObjectType(resolved) || 
resolved.stringIndexInfo && resolved.stringIndexInfo.type.flags & 1) {
+                        return -1;
+                    }
                 }
                 return 0;
             }
@@ -27798,25 +28053,69 @@ var ts;
                 isFixed: false,
             };
         }
-        function couldContainTypeParameters(type) {
+        function couldContainTypeVariables(type) {
             var objectFlags = getObjectFlags(type);
-            return !!(type.flags & 16384 ||
-                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeParameters) ||
+            return !!(type.flags & 540672 ||
+                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeVariables) ||
                 objectFlags & 16 && type.symbol && type.symbol.flags & (8192 | 
2048 | 32) ||
                 objectFlags & 32 ||
-                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeParameters(type));
+                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeVariables(type));
         }
-        function couldUnionOrIntersectionContainTypeParameters(type) {
-            if (type.couldContainTypeParameters === undefined) {
-                type.couldContainTypeParameters = ts.forEach(type.types, 
couldContainTypeParameters);
+        function couldUnionOrIntersectionContainTypeVariables(type) {
+            if (type.couldContainTypeVariables === undefined) {
+                type.couldContainTypeVariables = ts.forEach(type.types, 
couldContainTypeVariables);
             }
-            return type.couldContainTypeParameters;
+            return type.couldContainTypeVariables;
         }
         function isTypeParameterAtTopLevel(type, typeParameter) {
             return type === typeParameter || type.flags & 196608 && 
ts.forEach(type.types, function (t) { return isTypeParameterAtTopLevel(t, 
typeParameter); });
         }
-        function inferTypes(context, originalSource, originalTarget) {
-            var typeParameters = context.signature.typeParameters;
+        function inferTypeForHomomorphicMappedType(source, target) {
+            var properties = getPropertiesOfType(source);
+            var indexInfo = getIndexInfoOfType(source, 0);
+            if (properties.length === 0 && !indexInfo) {
+                return undefined;
+            }
+            var typeVariable = 
getIndexedAccessType(getConstraintTypeFromMappedType(target).type, 
getTypeParameterFromMappedType(target));
+            var typeVariableArray = [typeVariable];
+            var typeInferences = createTypeInferencesObject();
+            var typeInferencesArray = [typeInferences];
+            var templateType = getTemplateTypeFromMappedType(target);
+            var readonlyMask = target.declaration.readonlyToken ? false : true;
+            var optionalMask = target.declaration.questionToken ? 0 : 
536870912;
+            var members = createSymbolTable(properties);
+            for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
+                var prop = properties_4[_i];
+                var inferredPropType = inferTargetType(getTypeOfSymbol(prop));
+                if (!inferredPropType) {
+                    return undefined;
+                }
+                var inferredProp = createSymbol(4 | 67108864 | prop.flags & 
optionalMask, prop.name);
+                inferredProp.declarations = prop.declarations;
+                inferredProp.type = inferredPropType;
+                inferredProp.isReadonly = readonlyMask && 
isReadonlySymbol(prop);
+                members[prop.name] = inferredProp;
+            }
+            if (indexInfo) {
+                var inferredIndexType = inferTargetType(indexInfo.type);
+                if (!inferredIndexType) {
+                    return undefined;
+                }
+                indexInfo = createIndexInfo(inferredIndexType, readonlyMask && 
indexInfo.isReadonly);
+            }
+            return createAnonymousType(undefined, members, emptyArray, 
emptyArray, indexInfo, undefined);
+            function inferTargetType(sourceType) {
+                typeInferences.primary = undefined;
+                typeInferences.secondary = undefined;
+                inferTypes(typeVariableArray, typeInferencesArray, sourceType, 
templateType);
+                var inferences = typeInferences.primary || 
typeInferences.secondary;
+                return inferences && getUnionType(inferences, true);
+            }
+        }
+        function inferTypesWithContext(context, originalSource, 
originalTarget) {
+            inferTypes(context.signature.typeParameters, context.inferences, 
originalSource, originalTarget);
+        }
+        function inferTypes(typeVariables, typeInferences, originalSource, 
originalTarget) {
             var sourceStack;
             var targetStack;
             var depth = 0;
@@ -27832,7 +28131,7 @@ var ts;
                 return false;
             }
             function inferFromTypes(source, target) {
-                if (!couldContainTypeParameters(target)) {
+                if (!couldContainTypeVariables(target)) {
                     return;
                 }
                 if (source.aliasSymbol && source.aliasTypeArguments && 
source.aliasSymbol === target.aliasSymbol) {
@@ -27871,13 +28170,13 @@ var ts;
                         target = removeTypesFromUnionOrIntersection(target, 
matchingTypes);
                     }
                 }
-                if (target.flags & 16384) {
+                if (target.flags & 540672) {
                     if (source.flags & 8388608) {
                         return;
                     }
-                    for (var i = 0; i < typeParameters.length; i++) {
-                        if (target === typeParameters[i]) {
-                            var inferences = context.inferences[i];
+                    for (var i = 0; i < typeVariables.length; i++) {
+                        if (target === typeVariables[i]) {
+                            var inferences = typeInferences[i];
                             if (!inferences.isFixed) {
                                 var candidates = inferiority ?
                                     inferences.secondary || 
(inferences.secondary = []) :
@@ -27885,7 +28184,7 @@ var ts;
                                 if (!ts.contains(candidates, source)) {
                                     candidates.push(source);
                                 }
-                                if (!isTypeParameterAtTopLevel(originalTarget, 
target)) {
+                                if (target.flags & 16384 && 
!isTypeParameterAtTopLevel(originalTarget, target)) {
                                     inferences.topLevel = false;
                                 }
                             }
@@ -27903,21 +28202,21 @@ var ts;
                 }
                 else if (target.flags & 196608) {
                     var targetTypes = target.types;
-                    var typeParameterCount = 0;
-                    var typeParameter = void 0;
+                    var typeVariableCount = 0;
+                    var typeVariable = void 0;
                     for (var _d = 0, targetTypes_2 = targetTypes; _d < 
targetTypes_2.length; _d++) {
                         var t = targetTypes_2[_d];
-                        if (t.flags & 16384 && ts.contains(typeParameters, t)) 
{
-                            typeParameter = t;
-                            typeParameterCount++;
+                        if (t.flags & 540672 && ts.contains(typeVariables, t)) 
{
+                            typeVariable = t;
+                            typeVariableCount++;
                         }
                         else {
                             inferFromTypes(source, t);
                         }
                     }
-                    if (typeParameterCount === 1) {
+                    if (typeVariableCount === 1) {
                         inferiority++;
-                        inferFromTypes(source, typeParameter);
+                        inferFromTypes(source, typeVariable);
                         inferiority--;
                     }
                 }
@@ -27957,9 +28256,16 @@ var ts;
             function inferFromObjectTypes(source, target) {
                 if (getObjectFlags(target) & 32) {
                     var constraintType = 
getConstraintTypeFromMappedType(target);
-                    if (getObjectFlags(source) & 32) {
-                        
inferFromTypes(getConstraintTypeFromMappedType(source), constraintType);
-                        inferFromTypes(getTemplateTypeFromMappedType(source), 
getTemplateTypeFromMappedType(target));
+                    if (constraintType.flags & 262144) {
+                        var index = ts.indexOf(typeVariables, 
constraintType.type);
+                        if (index >= 0 && !typeInferences[index].isFixed) {
+                            var inferredType = 
inferTypeForHomomorphicMappedType(source, target);
+                            if (inferredType) {
+                                inferiority++;
+                                inferFromTypes(inferredType, 
typeVariables[index]);
+                                inferiority--;
+                            }
+                        }
                         return;
                     }
                     if (constraintType.flags & 16384) {
@@ -27975,8 +28281,8 @@ var ts;
             }
             function inferFromProperties(source, target) {
                 var properties = getPropertiesOfObjectType(target);
-                for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
-                    var targetProp = properties_4[_i];
+                for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
+                    var targetProp = properties_5[_i];
                     var sourceProp = getPropertyOfObjectType(source, 
targetProp.name);
                     if (sourceProp) {
                         inferFromTypes(getTypeOfSymbol(sourceProp), 
getTypeOfSymbol(targetProp));
@@ -29135,7 +29441,7 @@ var ts;
                         error(node, 
ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
                     }
                 }
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     getNodeLinks(container).flags |= 8192;
                 }
                 return getTypeOfSymbol(symbol);
@@ -29320,18 +29626,21 @@ var ts;
             var baseConstructorType = 
getBaseConstructorTypeOfClass(classInstanceType);
             return baseConstructorType === nullWideningType;
         }
+        function checkThisBeforeSuper(node, container, diagnosticMessage) {
+            var containingClassDecl = container.parent;
+            var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
+            if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
+                var superCall = getSuperCallInConstructor(container);
+                if (!superCall || superCall.end > node.pos) {
+                    error(node, diagnosticMessage);
+                }
+            }
+        }
         function checkThisExpression(node) {
             var container = ts.getThisContainer(node, true);
             var needToCaptureLexicalThis = false;
             if (container.kind === 150) {
-                var containingClassDecl = container.parent;
-                var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
-                if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
-                    var superCall = getSuperCallInConstructor(container);
-                    if (!superCall || superCall.end > node.pos) {
-                        error(node, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
-                    }
-                }
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
             }
             if (container.kind === 185) {
                 container = ts.getThisContainer(container, false);
@@ -29445,6 +29754,9 @@ var ts;
                 }
                 return unknownType;
             }
+            if (!isCallExpression && container.kind === 150) {
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
+            }
             if ((ts.getModifierFlags(container) & 32) || isCallExpression) {
                 nodeCheckFlag = 512;
             }
@@ -29900,7 +30212,7 @@ var ts;
             return mapper && mapper.context;
         }
         function checkSpreadExpression(node, contextualMapper) {
-            var arrayOrIterableType = checkExpressionCached(node.expression, 
contextualMapper);
+            var arrayOrIterableType = checkExpression(node.expression, 
contextualMapper);
             return checkIteratedTypeOrElementType(arrayOrIterableType, 
node.expression, false);
         }
         function hasDefaultValue(node) {
@@ -30048,7 +30360,7 @@ var ts;
                         if (impliedProp) {
                             prop.flags |= impliedProp.flags & 536870912;
                         }
-                        else if 
(!compilerOptions.suppressExcessPropertyErrors) {
+                        else if (!compilerOptions.suppressExcessPropertyErrors 
&& !getIndexInfoOfType(contextualType, 0)) {
                             error(memberDecl.name, 
ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
 symbolToString(member), typeToString(contextualType));
                         }
                     }
@@ -30062,6 +30374,9 @@ var ts;
                     member = prop;
                 }
                 else if (memberDecl.kind === 259) {
+                    if (languageVersion < 5) {
+                        checkExternalEmitHelpers(memberDecl, 2);
+                    }
                     if (propertiesArray.length > 0) {
                         spread = getSpreadType(spread, 
createObjectLiteralType(), true);
                         propertiesArray = [];
@@ -30071,7 +30386,7 @@ var ts;
                         typeFlags = 0;
                     }
                     var type = checkExpression(memberDecl.expression);
-                    if (!(type.flags & (32768 | 1))) {
+                    if (!isValidSpreadType(type)) {
                         error(memberDecl, 
ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -30112,8 +30427,10 @@ var ts;
                 if (propertiesArray.length > 0) {
                     spread = getSpreadType(spread, createObjectLiteralType(), 
true);
                 }
-                spread.flags |= propagatedFlags;
-                spread.symbol = node.symbol;
+                if (spread.flags & 32768) {
+                    spread.flags |= propagatedFlags;
+                    spread.symbol = node.symbol;
+                }
                 return spread;
             }
             return createObjectLiteralType();
@@ -30136,6 +30453,11 @@ var ts;
                 return result;
             }
         }
+        function isValidSpreadType(type) {
+            return !!(type.flags & (1 | 4096 | 2048) ||
+                type.flags & 32768 && !isGenericMappedType(type) ||
+                type.flags & 196608 && !ts.forEach(type.types, function (t) { 
return !isValidSpreadType(t); }));
+        }
         function checkJsxSelfClosingElement(node) {
             checkJsxOpeningLikeElement(node);
             return jsxElementType || anyType;
@@ -30210,6 +30532,9 @@ var ts;
             return exprType;
         }
         function checkJsxSpreadAttribute(node, elementAttributesType, 
nameTable) {
+            if (compilerOptions.jsx === 2) {
+                checkExternalEmitHelpers(node, 2);
+            }
             var type = checkExpression(node.expression);
             var props = getPropertiesOfType(type);
             for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
@@ -30754,19 +31079,19 @@ var ts;
             for (var _i = 0, signatures_2 = signatures; _i < 
signatures_2.length; _i++) {
                 var signature = signatures_2[_i];
                 var symbol = signature.declaration && 
getSymbolOfNode(signature.declaration);
-                var parent_8 = signature.declaration && 
signature.declaration.parent;
+                var parent_9 = signature.declaration && 
signature.declaration.parent;
                 if (!lastSymbol || symbol === lastSymbol) {
-                    if (lastParent && parent_8 === lastParent) {
+                    if (lastParent && parent_9 === lastParent) {
                         index++;
                     }
                     else {
-                        lastParent = parent_8;
+                        lastParent = parent_9;
                         index = cutoffIndex;
                     }
                 }
                 else {
                     index = cutoffIndex = result.length;
-                    lastParent = parent_8;
+                    lastParent = parent_9;
                 }
                 lastSymbol = symbol;
                 if (signature.hasLiteralTypes) {
@@ -30855,7 +31180,7 @@ var ts;
         function instantiateSignatureInContextOf(signature, 
contextualSignature, contextualMapper) {
             var context = createInferenceContext(signature, true);
             forEachMatchingParameterType(contextualSignature, signature, 
function (source, target) {
-                inferTypes(context, instantiateType(source, contextualMapper), 
target);
+                inferTypesWithContext(context, instantiateType(source, 
contextualMapper), target);
             });
             return getSignatureInstantiation(signature, 
getInferredTypes(context));
         }
@@ -30874,7 +31199,7 @@ var ts;
             if (thisType) {
                 var thisArgumentNode = getThisArgumentOfCall(node);
                 var thisArgumentType = thisArgumentNode ? 
checkExpression(thisArgumentNode) : voidType;
-                inferTypes(context, thisArgumentType, thisType);
+                inferTypesWithContext(context, thisArgumentType, thisType);
             }
             var argCount = getEffectiveArgumentCount(node, args, signature);
             for (var i = 0; i < argCount; i++) {
@@ -30886,7 +31211,7 @@ var ts;
                         var mapper = excludeArgument && excludeArgument[i] !== 
undefined ? identityMapper : inferenceMapper;
                         argType = checkExpressionWithContextualType(arg, 
paramType, mapper);
                     }
-                    inferTypes(context, argType, paramType);
+                    inferTypesWithContext(context, argType, paramType);
                 }
             }
             if (excludeArgument) {
@@ -30894,7 +31219,7 @@ var ts;
                     if (excludeArgument[i] === false) {
                         var arg = args[i];
                         var paramType = getTypeAtPosition(signature, i);
-                        inferTypes(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
+                        inferTypesWithContext(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
                     }
                 }
             }
@@ -31388,12 +31713,13 @@ var ts;
                 if (containingClass) {
                     var containingType = getTypeOfNode(containingClass);
                     var baseTypes = getBaseTypes(containingType);
-                    if (baseTypes.length) {
+                    while (baseTypes.length) {
                         var baseType = baseTypes[0];
                         if (modifiers & 16 &&
                             baseType.symbol === declaration.parent.symbol) {
                             return true;
                         }
+                        baseTypes = getBaseTypes(baseType);
                     }
                 }
                 if (modifiers & 8) {
@@ -31584,7 +31910,7 @@ var ts;
                 for (var i = 0; i < len; i++) {
                     var declaration = signature.parameters[i].valueDeclaration;
                     if (declaration.type) {
-                        inferTypes(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
+                        inferTypesWithContext(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
                     }
                 }
             }
@@ -31637,7 +31963,7 @@ var ts;
                 assignBindingElementTypes(parameter.valueDeclaration);
             }
             else if (isInferentialContext(mapper)) {
-                inferTypes(mapper.context, links.type, 
instantiateType(contextualType, mapper));
+                inferTypesWithContext(mapper.context, links.type, 
instantiateType(contextualType, mapper));
             }
         }
         function getReturnTypeFromJSDocComment(func) {
@@ -31742,7 +32068,7 @@ var ts;
             if (!switchTypes.length) {
                 return false;
             }
-            return eachTypeContainedIn(type, switchTypes);
+            return eachTypeContainedIn(mapType(type, 
getRegularTypeOfLiteralType), switchTypes);
         }
         function functionHasImplicitReturn(func) {
             if (!(func.flags & 128)) {
@@ -31956,7 +32282,7 @@ var ts;
         }
         function checkAwaitExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 524288)) {
+                if (!(node.flags & 16384)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.await_expression_is_only_allowed_within_an_async_function);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -32073,15 +32399,15 @@ var ts;
             if (!(isTypeComparableTo(leftType, stringType) || 
isTypeOfKind(leftType, 340 | 512))) {
                 error(left, 
ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(right, 
ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             return booleanType;
         }
         function checkObjectLiteralAssignment(node, sourceType) {
             var properties = node.properties;
-            for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
-                var p = properties_5[_i];
+            for (var _i = 0, properties_6 = properties; _i < 
properties_6.length; _i++) {
+                var p = properties_6[_i];
                 checkObjectLiteralDestructuringPropertyAssignment(sourceType, 
p, properties);
             }
             return sourceType;
@@ -32114,6 +32440,9 @@ var ts;
                 }
             }
             else if (property.kind === 259) {
+                if (languageVersion < 5) {
+                    checkExternalEmitHelpers(property, 4);
+                }
                 var nonRestNames = [];
                 if (allProperties) {
                     for (var i = 0; i < allProperties.length - 1; i++) {
@@ -32464,7 +32793,7 @@ var ts;
         }
         function checkYieldExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 131072) || isYieldExpressionInClass(node)) {
+                if (!(node.flags & 4096) || isYieldExpressionInClass(node)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -32549,8 +32878,8 @@ var ts;
         }
         function isLiteralContextualType(contextualType) {
             if (contextualType) {
-                if (contextualType.flags & 16384) {
-                    var apparentType = 
getApparentTypeOfTypeParameter(contextualType);
+                if (contextualType.flags & 540672) {
+                    var apparentType = 
getApparentTypeOfTypeVariable(contextualType);
                     if (apparentType.flags & (2 | 4 | 8 | 16)) {
                         return true;
                     }
@@ -32805,9 +33134,9 @@ var ts;
                 case 158:
                 case 149:
                 case 148:
-                    var parent_9 = node.parent;
-                    if (node === parent_9.type) {
-                        return parent_9;
+                    var parent_10 = node.parent;
+                    if (node === parent_10.type) {
+                        return parent_10;
                     }
             }
         }
@@ -32840,6 +33169,12 @@ var ts;
                 node.kind === 154) {
                 checkGrammarFunctionLikeDeclaration(node);
             }
+            if (ts.isAsyncFunctionLike(node) && languageVersion < 4) {
+                checkExternalEmitHelpers(node, 64);
+                if (languageVersion < 2) {
+                    checkExternalEmitHelpers(node, 128);
+                }
+            }
             checkTypeParameters(node.typeParameters);
             ts.forEach(node.parameters, checkParameter);
             if (node.type) {
@@ -33199,7 +33534,7 @@ var ts;
             checkSourceElement(node.type);
             var type = getTypeFromMappedTypeNode(node);
             var constraintType = getConstraintTypeFromMappedType(type);
-            var keyType = constraintType.flags & 16384 ? 
getApparentTypeOfTypeParameter(constraintType) : constraintType;
+            var keyType = constraintType.flags & 540672 ? 
getApparentTypeOfTypeVariable(constraintType) : constraintType;
             checkTypeAssignableTo(keyType, stringType, 
node.typeParameter.constraint);
         }
         function isPrivateWithinAmbient(node) {
@@ -33488,7 +33823,7 @@ var ts;
             if (thenSignatures.length === 0) {
                 return undefined;
             }
-            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 131072);
+            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 524288);
             if (isTypeAny(onfulfilledParameterType)) {
                 return undefined;
             }
@@ -33624,6 +33959,9 @@ var ts;
                 markAliasSymbolAsReferenced(rootSymbol);
             }
         }
+        function getParameterTypeNodeForDecoratorCheck(node) {
+            return node.dotDotDotToken ? 
ts.getRestParameterElementType(node.type) : node.type;
+        }
         function checkDecorators(node) {
             if (!node.decorators) {
                 return;
@@ -33634,14 +33972,20 @@ var ts;
             if (!compilerOptions.experimentalDecorators) {
                 error(node, 
ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);
             }
+            var firstDecorator = node.decorators[0];
+            checkExternalEmitHelpers(firstDecorator, 8);
+            if (node.kind === 144) {
+                checkExternalEmitHelpers(firstDecorator, 32);
+            }
             if (compilerOptions.emitDecoratorMetadata) {
+                checkExternalEmitHelpers(firstDecorator, 16);
                 switch (node.kind) {
                     case 226:
                         var constructor = ts.getFirstConstructorWithBody(node);
                         if (constructor) {
                             for (var _i = 0, _a = constructor.parameters; _i < 
_a.length; _i++) {
                                 var parameter = _a[_i];
-                                markTypeNodeAsReferenced(parameter.type);
+                                
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                             }
                         }
                         break;
@@ -33650,11 +33994,13 @@ var ts;
                     case 152:
                         for (var _b = 0, _c = node.parameters; _b < _c.length; 
_b++) {
                             var parameter = _c[_b];
-                            markTypeNodeAsReferenced(parameter.type);
+                            
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                         }
                         markTypeNodeAsReferenced(node.type);
                         break;
                     case 147:
+                        
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));
+                        break;
                     case 144:
                         markTypeNodeAsReferenced(node.type);
                         break;
@@ -33763,7 +34109,7 @@ var ts;
         }
         function checkUnusedLocalsAndParameters(node) {
             if (node.parent.kind !== 227 && noUnusedIdentifiers && 
!ts.isInAmbientContext(node)) {
-                var _loop_3 = function (key) {
+                var _loop_2 = function (key) {
                     var local = node.locals[key];
                     if (!local.isReferenced) {
                         if (local.valueDeclaration && 
ts.getRootDeclaration(local.valueDeclaration).kind === 144) {
@@ -33781,10 +34127,17 @@ var ts;
                     }
                 };
                 for (var key in node.locals) {
-                    _loop_3(key);
+                    _loop_2(key);
                 }
             }
         }
+        function isRemovedPropertyFromObjectSpread(node) {
+            if (ts.isBindingElement(node) && 
ts.isObjectBindingPattern(node.parent)) {
+                var lastElement = ts.lastOrUndefined(node.parent.elements);
+                return lastElement !== node && !!lastElement.dotDotDotToken;
+            }
+            return false;
+        }
         function errorUnusedLocal(node, name) {
             if (isIdentifierThatStartsWithUnderScore(node)) {
                 var declaration = ts.getRootDeclaration(node.parent);
@@ -33794,7 +34147,9 @@ var ts;
                     return;
                 }
             }
-            error(node, ts.Diagnostics._0_is_declared_but_never_used, name);
+            if (!isRemovedPropertyFromObjectSpread(node.kind === 70 ? 
node.parent : node)) {
+                error(node, ts.Diagnostics._0_is_declared_but_never_used, 
name);
+            }
         }
         function parameterNameStartsWithUnderscore(parameterName) {
             return parameterName && 
isIdentifierThatStartsWithUnderScore(parameterName);
@@ -33849,7 +34204,7 @@ var ts;
                         for (var _i = 0, _a = local.declarations; _i < 
_a.length; _i++) {
                             var declaration = _a[_i];
                             if (!ts.isAmbientModule(declaration)) {
-                                error(declaration.name, 
ts.Diagnostics._0_is_declared_but_never_used, local.name);
+                                errorUnusedLocal(declaration.name, local.name);
                             }
                         }
                     }
@@ -33951,14 +34306,14 @@ var ts;
             }
         }
         function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {
-            if (!needCollisionCheckForIdentifier(node, name, "Promise")) {
+            if (languageVersion >= 4 || !needCollisionCheckForIdentifier(node, 
name, "Promise")) {
                 return;
             }
             if (node.kind === 230 && ts.getModuleInstanceState(node) !== 1) {
                 return;
             }
             var parent = getDeclarationContainer(node);
-            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 8192) {
+            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 1024) {
                 error(name, 
ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
 ts.declarationNameToString(name), ts.declarationNameToString(name));
             }
         }
@@ -34017,7 +34372,8 @@ var ts;
                     }
                     var enclosingContainer = 
ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);
                     if (enclosingContainer === func) {
-                        if (symbol.valueDeclaration.kind === 144) {
+                        if (symbol.valueDeclaration.kind === 144 ||
+                            symbol.valueDeclaration.kind === 174) {
                             if (symbol.valueDeclaration.pos < node.pos) {
                                 return;
                             }
@@ -34055,16 +34411,19 @@ var ts;
                 }
             }
             if (node.kind === 174) {
+                if (node.parent.kind === 172 && languageVersion < 5 && 
!ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(node, 4);
+                }
                 if (node.propertyName && node.propertyName.kind === 142) {
                     checkComputedPropertyName(node.propertyName);
                 }
-                var parent_10 = node.parent.parent;
-                var parentType = getTypeForBindingElementParent(parent_10);
+                var parent_11 = node.parent.parent;
+                var parentType = getTypeForBindingElementParent(parent_11);
                 var name_26 = node.propertyName || node.name;
                 var property = getPropertyOfType(parentType, 
ts.getTextOfPropertyName(name_26));
                 markPropertyAsReferenced(property);
-                if (parent_10.initializer && property && 
getParentOfSymbol(property)) {
-                    checkClassPropertyAccess(parent_10, parent_10.initializer, 
parentType, property);
+                if (parent_11.initializer && property && 
getParentOfSymbol(property)) {
+                    checkClassPropertyAccess(parent_11, parent_11.initializer, 
parentType, property);
                 }
             }
             if (ts.isBindingPattern(node.name)) {
@@ -34246,7 +34605,7 @@ var ts;
                     checkReferenceExpression(varExpr, 
ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access);
                 }
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(node.expression, 
ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             checkSourceElement(node.statement);
@@ -34464,7 +34823,7 @@ var ts;
         }
         function checkWithStatement(node) {
             if (!checkGrammarStatementInAmbientContext(node)) {
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);
                 }
             }
@@ -34710,6 +35069,9 @@ var ts;
             checkClassForDuplicateDeclarations(node);
             var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node);
             if (baseTypeNode) {
+                if (languageVersion < 2 && !ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(baseTypeNode.parent, 1);
+                }
                 var baseTypes = getBaseTypes(type);
                 if (baseTypes.length && produceDiagnostics) {
                     var baseType_1 = baseTypes[0];
@@ -34885,8 +35247,8 @@ var ts;
             for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; 
_i++) {
                 var base = baseTypes_2[_i];
                 var properties = 
getPropertiesOfObjectType(getTypeWithThisArgument(base, type.thisType));
-                for (var _a = 0, properties_6 = properties; _a < 
properties_6.length; _a++) {
-                    var prop = properties_6[_a];
+                for (var _a = 0, properties_7 = properties; _a < 
properties_7.length; _a++) {
+                    var prop = properties_7[_a];
                     var existing = seen[prop.name];
                     if (!existing) {
                         seen[prop.name] = { prop: prop, containingType: base };
@@ -36467,9 +36829,9 @@ var ts;
             }
             var location = reference;
             if (startInDeclarationContainer) {
-                var parent_11 = reference.parent;
-                if (ts.isDeclaration(parent_11) && reference === 
parent_11.name) {
-                    location = getDeclarationContainer(parent_11);
+                var parent_12 = reference.parent;
+                if (ts.isDeclaration(parent_12) && reference === 
parent_12.name) {
+                    location = getDeclarationContainer(parent_12);
                 }
             }
             return resolveName(location, reference.text, 107455 | 1048576 | 
8388608, undefined, undefined);
@@ -36582,9 +36944,9 @@ var ts;
                 }
                 var current = symbol;
                 while (true) {
-                    var parent_12 = getParentOfSymbol(current);
-                    if (parent_12) {
-                        current = parent_12;
+                    var parent_13 = getParentOfSymbol(current);
+                    if (parent_13) {
+                        current = parent_13;
                     }
                     else {
                         break;
@@ -36617,8 +36979,6 @@ var ts;
                 ts.bindSourceFile(file, compilerOptions);
             }
             var augmentations;
-            var requestedExternalEmitHelpers = 0;
-            var firstFileRequestingExternalHelpers;
             for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) 
{
                 var file = _c[_b];
                 if (!ts.isExternalOrCommonJsModule(file)) {
@@ -36638,15 +36998,6 @@ var ts;
                         }
                     }
                 }
-                if ((compilerOptions.isolatedModules || 
ts.isExternalModule(file)) && !file.isDeclarationFile) {
-                    var fileRequestedExternalEmitHelpers = file.flags & 64512;
-                    if (fileRequestedExternalEmitHelpers) {
-                        requestedExternalEmitHelpers |= 
fileRequestedExternalEmitHelpers;
-                        if (firstFileRequestingExternalHelpers === undefined) {
-                            firstFileRequestingExternalHelpers = file;
-                        }
-                    }
-                }
             }
             if (augmentations) {
                 for (var _d = 0, augmentations_1 = augmentations; _d < 
augmentations_1.length; _d++) {
@@ -36701,43 +37052,45 @@ var ts;
             var symbol = getGlobalSymbol("ReadonlyArray", 793064, undefined);
             globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, 
1);
             anyReadonlyArrayType = globalReadonlyArrayType ? 
createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : 
anyArrayType;
-            if (compilerOptions.importHelpers && 
firstFileRequestingExternalHelpers) {
-                var helpersModule = 
resolveExternalModule(firstFileRequestingExternalHelpers, 
ts.externalHelpersModuleNameText, ts.Diagnostics.Cannot_find_module_0, 
undefined);
-                if (helpersModule) {
-                    var exports_2 = helpersModule.exports;
-                    if (requestedExternalEmitHelpers & 1024 && languageVersion 
< 2) {
-                        verifyHelperSymbol(exports_2, "__extends", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 16384 &&
-                        (languageVersion < 5 || compilerOptions.jsx === 2)) {
-                        verifyHelperSymbol(exports_2, "__assign", 107455);
-                    }
-                    if (languageVersion < 5 && requestedExternalEmitHelpers & 
32768) {
-                        verifyHelperSymbol(exports_2, "__rest", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 2048) {
-                        verifyHelperSymbol(exports_2, "__decorate", 107455);
-                        if (compilerOptions.emitDecoratorMetadata) {
-                            verifyHelperSymbol(exports_2, "__metadata", 
107455);
-                        }
-                    }
-                    if (requestedExternalEmitHelpers & 4096) {
-                        verifyHelperSymbol(exports_2, "__param", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 8192) {
-                        verifyHelperSymbol(exports_2, "__awaiter", 107455);
-                        if (languageVersion < 2) {
-                            verifyHelperSymbol(exports_2, "__generator", 
107455);
+        }
+        function checkExternalEmitHelpers(location, helpers) {
+            if ((requestedExternalEmitHelpers & helpers) !== helpers && 
compilerOptions.importHelpers) {
+                var sourceFile = ts.getSourceFileOfNode(location);
+                if (ts.isEffectiveExternalModule(sourceFile, compilerOptions)) 
{
+                    var helpersModule = resolveHelpersModule(sourceFile, 
location);
+                    if (helpersModule !== unknownSymbol) {
+                        var uncheckedHelpers = helpers & 
~requestedExternalEmitHelpers;
+                        for (var helper = 1; helper <= 128; helper <<= 1) {
+                            if (uncheckedHelpers & helper) {
+                                var name_29 = getHelperName(helper);
+                                var symbol = getSymbol(helpersModule.exports, 
ts.escapeIdentifier(name_29), 107455);
+                                if (!symbol) {
+                                    error(location, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,
 ts.externalHelpersModuleNameText, name_29);
+                                }
+                            }
                         }
                     }
+                    requestedExternalEmitHelpers |= helpers;
                 }
             }
         }
-        function verifyHelperSymbol(symbols, name, meaning) {
-            var symbol = getSymbol(symbols, ts.escapeIdentifier(name), 
meaning);
-            if (!symbol) {
-                error(undefined, 
ts.Diagnostics.Module_0_has_no_exported_member_1, 
ts.externalHelpersModuleNameText, name);
+        function getHelperName(helper) {
+            switch (helper) {
+                case 1: return "__extends";
+                case 2: return "__assign";
+                case 4: return "__rest";
+                case 8: return "__decorate";
+                case 16: return "__metadata";
+                case 32: return "__param";
+                case 64: return "__awaiter";
+                case 128: return "__generator";
+            }
+        }
+        function resolveHelpersModule(node, errorNode) {
+            if (!externalHelpersModule) {
+                externalHelpersModule = resolveExternalModule(node, 
ts.externalHelpersModuleNameText, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
 errorNode) || unknownSymbol;
             }
+            return externalHelpersModule;
         }
         function createInstantiatedPromiseLikeType() {
             var promiseLikeType = getGlobalPromiseLikeType();
@@ -37261,9 +37614,9 @@ var ts;
                 if (prop.kind === 259) {
                     continue;
                 }
-                var name_29 = prop.name;
-                if (name_29.kind === 142) {
-                    checkGrammarComputedPropertyName(name_29);
+                var name_30 = prop.name;
+                if (name_30.kind === 142) {
+                    checkGrammarComputedPropertyName(name_30);
                 }
                 if (prop.kind === 258 && !inDestructuring && 
prop.objectAssignmentInitializer) {
                     return grammarErrorOnNode(prop.equalsToken, 
ts.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);
@@ -37279,8 +37632,8 @@ var ts;
                 var currentKind = void 0;
                 if (prop.kind === 257 || prop.kind === 258) {
                     checkGrammarForInvalidQuestionMark(prop.questionToken, 
ts.Diagnostics.An_object_member_cannot_be_declared_optional);
-                    if (name_29.kind === 8) {
-                        checkGrammarNumericLiteral(name_29);
+                    if (name_30.kind === 8) {
+                        checkGrammarNumericLiteral(name_30);
                     }
                     currentKind = Property;
                 }
@@ -37296,7 +37649,7 @@ var ts;
                 else {
                     ts.Debug.fail("Unexpected syntax kind:" + prop.kind);
                 }
-                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_29);
+                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_30);
                 if (effectiveName === undefined) {
                     continue;
                 }
@@ -37306,18 +37659,18 @@ var ts;
                 else {
                     var existingKind = seen[effectiveName];
                     if (currentKind === Property && existingKind === Property) 
{
-                        grammarErrorOnNode(name_29, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_29));
+                        grammarErrorOnNode(name_30, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_30));
                     }
                     else if ((currentKind & GetOrSetAccessor) && (existingKind 
& GetOrSetAccessor)) {
                         if (existingKind !== GetOrSetAccessor && currentKind 
!== existingKind) {
                             seen[effectiveName] = currentKind | existingKind;
                         }
                         else {
-                            return grammarErrorOnNode(name_29, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
+                            return grammarErrorOnNode(name_30, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
                         }
                     }
                     else {
-                        return grammarErrorOnNode(name_29, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
+                        return grammarErrorOnNode(name_30, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
                     }
                 }
             }
@@ -37330,12 +37683,12 @@ var ts;
                     continue;
                 }
                 var jsxAttr = attr;
-                var name_30 = jsxAttr.name;
-                if (!seen[name_30.text]) {
-                    seen[name_30.text] = true;
+                var name_31 = jsxAttr.name;
+                if (!seen[name_31.text]) {
+                    seen[name_31.text] = true;
                 }
                 else {
-                    return grammarErrorOnNode(name_30, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
+                    return grammarErrorOnNode(name_31, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
                 }
                 var initializer = jsxAttr.initializer;
                 if (initializer && initializer.kind === 252 && 
!initializer.expression) {
@@ -37388,6 +37741,9 @@ var ts;
             else if (accessor.body === undefined && 
!(ts.getModifierFlags(accessor) & 128)) {
                 return grammarErrorAtPos(ts.getSourceFileOfNode(accessor), 
accessor.end - 1, ";".length, ts.Diagnostics._0_expected, "{");
             }
+            else if (accessor.body && ts.getModifierFlags(accessor) & 128) {
+                return grammarErrorOnNode(accessor, 
ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);
+            }
             else if (accessor.typeParameters) {
                 return grammarErrorOnNode(accessor.name, 
ts.Diagnostics.An_accessor_cannot_have_type_parameters);
             }
@@ -37705,8 +38061,19 @@ var ts;
             }
         }
         function checkGrammarNumericLiteral(node) {
-            if (node.isOctalLiteral && languageVersion >= 1) {
-                return grammarErrorOnNode(node, 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher);
+            if (node.isOctalLiteral) {
+                var diagnosticMessage = void 0;
+                if (languageVersion >= 1) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
+                }
+                else if (ts.isChildOfLiteralType(node)) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
+                }
+                if (diagnosticMessage) {
+                    var withMinus = ts.isPrefixUnaryExpression(node.parent) && 
node.parent.operator === 37;
+                    var literal = (withMinus ? "-" : "") + "0o" + node.text;
+                    return grammarErrorOnNode(withMinus ? node.parent : node, 
diagnosticMessage, literal);
+                }
             }
         }
         function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {
@@ -38507,7 +38874,7 @@ var ts;
         return subtreeFlags;
     }
     function aggregateTransformFlagsForSubtree(node) {
-        if (ts.hasModifier(node, 2) || ts.isTypeNode(node)) {
+        if (ts.hasModifier(node, 2) || (ts.isTypeNode(node) && node.kind !== 
199)) {
             return 0;
         }
         return reduceEachChild(node, 0, aggregateTransformFlagsForChildNode, 
aggregateTransformFlagsForChildNodes);
@@ -38650,10 +39017,10 @@ var ts;
             }
         }
         for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < 
pendingDeclarations_1.length; _i++) {
-            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_31 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
-            var variable = ts.createVariableDeclaration(name_31, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
+            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_32 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
+            var variable = ts.createVariableDeclaration(name_32, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
             variable.original = original;
-            if (ts.isIdentifier(name_31)) {
+            if (ts.isIdentifier(name_32)) {
                 ts.setEmitFlags(variable, 64);
             }
             ts.aggregateTransformFlags(variable);
@@ -38799,8 +39166,8 @@ var ts;
             return ts.createElementAccess(value, argumentExpression);
         }
         else {
-            var name_32 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
-            return ts.createPropertyAccess(value, name_32);
+            var name_33 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
+            return ts.createPropertyAccess(value, name_33);
         }
     }
     function ensureIdentifier(flattenContext, value, 
reuseIdentifierExpressions, location) {
@@ -38842,7 +39209,7 @@ var ts;
     var restHelper = {
         name: "typescript:rest",
         scoped: false,
-        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (typeof Object.getOwnPropertySymbols === 
\"function\")\n                    for (var i = 0, p = 
Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n  
                      t[p[i]] = s[p[i]];\n     [...]
+        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (s != null && typeof 
Object.getOwnPropertySymbols === \"function\")\n                    for (var i 
= 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if 
(e.indexOf(p[i]) < 0)\n                        t[p[i]] = s [...]
     };
     function createRestCall(context, value, elements, computedTempVariables, 
location) {
         context.requestEmitHelper(restHelper);
@@ -39047,6 +39414,7 @@ var ts;
                 case 145:
                 case 228:
                 case 147:
+                    return undefined;
                 case 150:
                     return visitConstructor(node);
                 case 227:
@@ -39285,8 +39653,8 @@ var ts;
                 && member.initializer !== undefined;
         }
         function addInitializedPropertyStatements(statements, properties, 
receiver) {
-            for (var _i = 0, properties_7 = properties; _i < 
properties_7.length; _i++) {
-                var property = properties_7[_i];
+            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
+                var property = properties_8[_i];
                 var statement = 
ts.createStatement(transformInitializedProperty(property, receiver));
                 ts.setSourceMapRange(statement, 
ts.moveRangePastModifiers(property));
                 ts.setCommentRange(statement, property);
@@ -39295,8 +39663,8 @@ var ts;
         }
         function generateInitializedPropertyExpressions(properties, receiver) {
             var expressions = [];
-            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
-                var property = properties_8[_i];
+            for (var _i = 0, properties_9 = properties; _i < 
properties_9.length; _i++) {
+                var property = properties_9[_i];
                 var expression = transformInitializedProperty(property, 
receiver);
                 expression.startsOnNewLine = true;
                 ts.setSourceMapRange(expression, 
ts.moveRangePastModifiers(property));
@@ -39369,10 +39737,11 @@ var ts;
                 return undefined;
             }
             var _a = ts.getAllAccessorDeclarations(node.members, accessor), 
firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, 
setAccessor = _a.setAccessor;
-            if (accessor !== firstAccessor) {
+            var firstAccessorWithDecorators = firstAccessor.decorators ? 
firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : 
undefined;
+            if (!firstAccessorWithDecorators || accessor !== 
firstAccessorWithDecorators) {
                 return undefined;
             }
-            var decorators = firstAccessor.decorators || (secondAccessor && 
secondAccessor.decorators);
+            var decorators = firstAccessorWithDecorators.decorators;
             var parameters = getDecoratorsOfParameters(setAccessor);
             if (!decorators && !parameters) {
                 return undefined;
@@ -39397,14 +39766,14 @@ var ts;
             }
             return { decorators: decorators };
         }
-        function transformAllDecoratorsOfDeclaration(node, allDecorators) {
+        function transformAllDecoratorsOfDeclaration(node, container, 
allDecorators) {
             if (!allDecorators) {
                 return undefined;
             }
             var decoratorExpressions = [];
             ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, 
transformDecorator));
             ts.addRange(decoratorExpressions, 
ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));
-            addTypeMetadata(node, decoratorExpressions);
+            addTypeMetadata(node, container, decoratorExpressions);
             return decoratorExpressions;
         }
         function addClassElementDecorationStatements(statements, node, 
isStatic) {
@@ -39429,7 +39798,7 @@ var ts;
         }
         function generateClassElementDecorationExpression(node, member) {
             var allDecorators = getAllDecoratorsOfClassElement(node, member);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -39452,7 +39821,7 @@ var ts;
         }
         function generateConstructorDecorationExpression(node) {
             var allDecorators = getAllDecoratorsOfConstructor(node);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -39480,35 +39849,35 @@ var ts;
             }
             return expressions;
         }
-        function addTypeMetadata(node, decoratorExpressions) {
+        function addTypeMetadata(node, container, decoratorExpressions) {
             if (USE_NEW_TYPE_METADATA_FORMAT) {
-                addNewTypeMetadata(node, decoratorExpressions);
+                addNewTypeMetadata(node, container, decoratorExpressions);
             }
             else {
-                addOldTypeMetadata(node, decoratorExpressions);
+                addOldTypeMetadata(node, container, decoratorExpressions);
             }
         }
-        function addOldTypeMetadata(node, decoratorExpressions) {
+        function addOldTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 if (shouldAddTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:type", serializeTypeOfNode(node)));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node)));
+                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node, container)));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:returntype", serializeReturnTypeOfNode(node)));
                 }
             }
         }
-        function addNewTypeMetadata(node, decoratorExpressions) {
+        function addNewTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 var properties = void 0;
                 if (shouldAddTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("type", ts.createArrowFunction(undefined, 
undefined, [], undefined, ts.createToken(35), serializeTypeOfNode(node))));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node))));
+                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node, container))));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("returnType", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeReturnTypeOfNode(node))));
@@ -39529,12 +39898,16 @@ var ts;
             return node.kind === 149;
         }
         function shouldAddParamTypesMetadata(node) {
-            var kind = node.kind;
-            return kind === 226
-                || kind === 197
-                || kind === 149
-                || kind === 151
-                || kind === 152;
+            switch (node.kind) {
+                case 226:
+                case 197:
+                    return ts.getFirstConstructorWithBody(node) !== undefined;
+                case 149:
+                case 151:
+                case 152:
+                    return true;
+            }
+            return false;
         }
         function serializeTypeOfNode(node) {
             switch (node.kind) {
@@ -39552,18 +39925,7 @@ var ts;
                     return ts.createVoidZero();
             }
         }
-        function getRestParameterElementType(node) {
-            if (node && node.kind === 162) {
-                return node.elementType;
-            }
-            else if (node && node.kind === 157) {
-                return ts.singleOrUndefined(node.typeArguments);
-            }
-            else {
-                return undefined;
-            }
-        }
-        function serializeParameterTypesOfNode(node) {
+        function serializeParameterTypesOfNode(node, container) {
             var valueDeclaration = ts.isClassLike(node)
                 ? ts.getFirstConstructorWithBody(node)
                 : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)
@@ -39571,7 +39933,7 @@ var ts;
                     : undefined;
             var expressions = [];
             if (valueDeclaration) {
-                var parameters = valueDeclaration.parameters;
+                var parameters = 
getParametersOfDecoratedDeclaration(valueDeclaration, container);
                 var numParameters = parameters.length;
                 for (var i = 0; i < numParameters; i++) {
                     var parameter = parameters[i];
@@ -39579,7 +39941,7 @@ var ts;
                         continue;
                     }
                     if (parameter.dotDotDotToken) {
-                        
expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));
+                        
expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));
                     }
                     else {
                         expressions.push(serializeTypeOfNode(parameter));
@@ -39588,6 +39950,15 @@ var ts;
             }
             return ts.createArrayLiteral(expressions);
         }
+        function getParametersOfDecoratedDeclaration(node, container) {
+            if (container && node.kind === 151) {
+                var setAccessor = 
ts.getAllAccessorDeclarations(container.members, node).setAccessor;
+                if (setAccessor) {
+                    return setAccessor.parameters;
+                }
+            }
+            return node.parameters;
+        }
         function serializeReturnTypeOfNode(node) {
             if (ts.isFunctionLike(node) && node.type) {
                 return serializeTypeNode(node.type);
@@ -39603,6 +39974,9 @@ var ts;
             }
             switch (node.kind) {
                 case 104:
+                case 137:
+                case 94:
+                case 129:
                     return ts.createVoidZero();
                 case 166:
                     return serializeTypeNode(node.type);
@@ -39641,29 +40015,7 @@ var ts;
                     return serializeTypeReferenceNode(node);
                 case 165:
                 case 164:
-                    {
-                        var unionOrIntersection = node;
-                        var serializedUnion = void 0;
-                        for (var _i = 0, _a = unionOrIntersection.types; _i < 
_a.length; _i++) {
-                            var typeNode = _a[_i];
-                            var serializedIndividual = 
serializeTypeNode(typeNode);
-                            if (serializedIndividual.kind !== 70) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            if (serializedIndividual.text === "Object") {
-                                return serializedIndividual;
-                            }
-                            if (serializedUnion && serializedUnion.text !== 
serializedIndividual.text) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            serializedUnion = serializedIndividual;
-                        }
-                        if (serializedUnion) {
-                            return serializedUnion;
-                        }
-                    }
+                    return serializeUnionOrIntersectionType(node);
                 case 160:
                 case 168:
                 case 169:
@@ -39678,6 +40030,32 @@ var ts;
             }
             return ts.createIdentifier("Object");
         }
+        function serializeUnionOrIntersectionType(node) {
+            var serializedUnion;
+            for (var _i = 0, _a = node.types; _i < _a.length; _i++) {
+                var typeNode = _a[_i];
+                var serializedIndividual = serializeTypeNode(typeNode);
+                if (ts.isVoidExpression(serializedIndividual)) {
+                    if (!serializedUnion) {
+                        serializedUnion = serializedIndividual;
+                    }
+                }
+                else if (ts.isIdentifier(serializedIndividual) && 
serializedIndividual.text === "Object") {
+                    return serializedIndividual;
+                }
+                else if (serializedUnion && 
!ts.isVoidExpression(serializedUnion)) {
+                    if (!ts.isIdentifier(serializedUnion) ||
+                        !ts.isIdentifier(serializedIndividual) ||
+                        serializedUnion.text !== serializedIndividual.text) {
+                        return ts.createIdentifier("Object");
+                    }
+                }
+                else {
+                    serializedUnion = serializedIndividual;
+                }
+            }
+            return serializedUnion;
+        }
         function serializeTypeReferenceNode(node) {
             switch (resolver.getTypeReferenceSerializationKind(node.typeName, 
currentScope)) {
                 case ts.TypeReferenceSerializationKind.Unknown:
@@ -39712,14 +40090,14 @@ var ts;
         function serializeEntityNameAsExpression(node, useFallback) {
             switch (node.kind) {
                 case 70:
-                    var name_33 = ts.getMutableClone(node);
-                    name_33.flags &= ~8;
-                    name_33.original = undefined;
-                    name_33.parent = currentScope;
+                    var name_34 = ts.getMutableClone(node);
+                    name_34.flags &= ~8;
+                    name_34.original = undefined;
+                    name_34.parent = currentScope;
                     if (useFallback) {
-                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_33), 
ts.createLiteral("undefined")), name_33);
+                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_34), 
ts.createLiteral("undefined")), name_34);
                     }
-                    return name_33;
+                    return name_34;
                 case 141:
                     return serializeQualifiedNameAsExpression(node, 
useFallback);
             }
@@ -39749,7 +40127,7 @@ var ts;
                     : name.expression;
             }
             else if (ts.isIdentifier(name)) {
-                return ts.createLiteral(name.text);
+                return ts.createLiteral(ts.unescapeIdentifier(name.text));
             }
             else {
                 return ts.getSynthesizedClone(name);
@@ -39990,9 +40368,9 @@ var ts;
         }
         function isFirstEmittedDeclarationInScope(node) {
             if (currentScopeFirstDeclarationsOfName) {
-                var name_34 = node.symbol && node.symbol.name;
-                if (name_34) {
-                    return currentScopeFirstDeclarationsOfName[name_34] === 
node;
+                var name_35 = node.symbol && node.symbol.name;
+                if (name_35) {
+                    return currentScopeFirstDeclarationsOfName[name_35] === 
node;
                 }
             }
             return false;
@@ -40065,7 +40443,7 @@ var ts;
             var blockLocation;
             var body = node.body;
             if (body.kind === 231) {
-                ts.addRange(statements, ts.visitNodes(body.statements, 
namespaceElementVisitor, ts.isStatement));
+                saveStateAndInvoke(body, function (body) { return 
ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, 
ts.isStatement)); });
                 statementsLocation = body.statements;
                 blockLocation = body;
             }
@@ -40281,14 +40659,14 @@ var ts;
         }
         function substituteShorthandPropertyAssignment(node) {
             if (enabledSubstitutions & 2) {
-                var name_35 = node.name;
-                var exportedName = trySubstituteNamespaceExportedName(name_35);
+                var name_36 = node.name;
+                var exportedName = trySubstituteNamespaceExportedName(name_36);
                 if (exportedName) {
                     if (node.objectAssignmentInitializer) {
                         var initializer = ts.createAssignment(exportedName, 
node.objectAssignmentInitializer);
-                        return ts.createPropertyAssignment(name_35, 
initializer, node);
+                        return ts.createPropertyAssignment(name_36, 
initializer, node);
                     }
-                    return ts.createPropertyAssignment(name_35, exportedName, 
node);
+                    return ts.createPropertyAssignment(name_36, exportedName, 
node);
                 }
             }
             return node;
@@ -40741,6 +41119,9 @@ var ts;
                 return decoded ? ts.createLiteral(decoded, node) : node;
             }
             else if (node.kind === 252) {
+                if (node.expression === undefined) {
+                    return ts.createLiteral(true);
+                }
                 return visitJsxExpression(node);
             }
             else {
@@ -40809,12 +41190,12 @@ var ts;
                 return getTagName(node.openingElement);
             }
             else {
-                var name_36 = node.tagName;
-                if (ts.isIdentifier(name_36) && 
ts.isIntrinsicJsxName(name_36.text)) {
-                    return ts.createLiteral(name_36.text);
+                var name_37 = node.tagName;
+                if (ts.isIdentifier(name_37) && 
ts.isIntrinsicJsxName(name_37.text)) {
+                    return ts.createLiteral(name_37.text);
                 }
                 else {
-                    return ts.createExpressionFromEntityName(name_36);
+                    return ts.createExpressionFromEntityName(name_37);
                 }
             }
         }
@@ -41332,7 +41713,7 @@ var ts;
         name: "typescript:awaiter",
         scoped: false,
         priority: 5,
-        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
+        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
     };
     var asyncSuperHelper = {
         name: "typescript:async-super",
@@ -41834,7 +42215,8 @@ var ts;
                 addRestParameterIfNeeded(statements, constructor, 
hasSynthesizedSuper);
                 ts.Debug.assert(statementOffset >= 0, "statementOffset not 
initialized correctly!");
             }
-            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
!!extendsClauseElement, hasSynthesizedSuper, statementOffset);
+            var isDerivedClass = extendsClauseElement && 
ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 94;
+            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
isDerivedClass, hasSynthesizedSuper, statementOffset);
             if (superCaptureStatus === 1 || superCaptureStatus === 2) {
                 statementOffset++;
             }
@@ -41845,7 +42227,7 @@ var ts;
                 });
                 ts.addRange(statements, body);
             }
-            if (extendsClauseElement
+            if (isDerivedClass
                 && superCaptureStatus !== 2
                 && !(constructor && 
isSufficientlyCoveredByReturnStatements(constructor.body))) {
                 statements.push(ts.createReturn(ts.createIdentifier("_this")));
@@ -41876,8 +42258,8 @@ var ts;
             }
             return false;
         }
-        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
hasExtendsClause, hasSynthesizedSuper, statementOffset) {
-            if (!hasExtendsClause) {
+        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
isDerivedClass, hasSynthesizedSuper, statementOffset) {
+            if (!isDerivedClass) {
                 if (ctor) {
                     addCaptureThisForNodeIfNeeded(statements, ctor);
                 }
@@ -41902,7 +42284,9 @@ var ts;
                     superCallExpression = 
ts.setOriginalNode(saveStateAndInvoke(superCall, 
visitImmediateSuperCallInBody), superCall);
                 }
             }
-            if (superCallExpression && statementOffset === 
ctorStatements.length - 1) {
+            if (superCallExpression
+                && statementOffset === ctorStatements.length - 1
+                && !(ctor.transformFlags & (16384 | 32768))) {
                 var returnStatement = ts.createReturn(superCallExpression);
                 if (superCallExpression.kind !== 192
                     || superCallExpression.left.kind !== 179) {
@@ -41912,17 +42296,17 @@ var ts;
                 statements.push(returnStatement);
                 return 2;
             }
-            captureThisForNode(statements, ctor, superCallExpression, 
firstStatement);
+            captureThisForNode(statements, ctor, superCallExpression || 
createActualThis(), firstStatement);
             if (superCallExpression) {
                 return 1;
             }
             return 0;
         }
+        function createActualThis() {
+            return ts.setEmitFlags(ts.createThis(), 4);
+        }
         function createDefaultSuperCallOrThis() {
-            var actualThis = ts.createThis();
-            ts.setEmitFlags(actualThis, 4);
-            var superCall = 
ts.createFunctionApply(ts.createIdentifier("_super"), actualThis, 
ts.createIdentifier("arguments"));
-            return ts.createLogicalOr(superCall, actualThis);
+            return 
ts.createLogicalOr(ts.createLogicalAnd(ts.createStrictInequality(ts.createIdentifier("_super"),
 ts.createNull()), ts.createFunctionApply(ts.createIdentifier("_super"), 
createActualThis(), ts.createIdentifier("arguments"))), createActualThis());
         }
         function visitParameter(node) {
             if (node.dotDotDotToken) {
@@ -41947,15 +42331,15 @@ var ts;
             }
             for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {
                 var parameter = _a[_i];
-                var name_37 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
+                var name_38 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
                 if (dotDotDotToken) {
                     continue;
                 }
-                if (ts.isBindingPattern(name_37)) {
-                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_37, initializer);
+                if (ts.isBindingPattern(name_38)) {
+                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_38, initializer);
                 }
                 else if (initializer) {
-                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_37, initializer);
+                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_38, initializer);
                 }
             }
         }
@@ -42485,15 +42869,23 @@ var ts;
                     convertedLoopState.hoistedLocalVariables = 
outerConvertedLoopState.hoistedLocalVariables;
                 }
             }
-            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement);
+            startLexicalEnvironment();
+            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement, false, ts.liftToBlock);
+            var lexicalEnvironment = endLexicalEnvironment();
             var currentState = convertedLoopState;
             convertedLoopState = outerConvertedLoopState;
-            if (loopOutParameters.length) {
+            if (loopOutParameters.length || lexicalEnvironment) {
                 var statements_4 = ts.isBlock(loopBody) ? 
loopBody.statements.slice() : [loopBody];
-                copyOutParameters(loopOutParameters, 1, statements_4);
+                if (loopOutParameters.length) {
+                    copyOutParameters(loopOutParameters, 1, statements_4);
+                }
+                ts.addRange(statements_4, lexicalEnvironment);
                 loopBody = ts.createBlock(statements_4, undefined, true);
             }
-            if (!ts.isBlock(loopBody)) {
+            if (ts.isBlock(loopBody)) {
+                loopBody.multiLine = true;
+            }
+            else {
                 loopBody = ts.createBlock([loopBody], undefined, true);
             }
             var isAsyncBlockContainingAwait = enclosingNonArrowFunction
@@ -43411,7 +43803,7 @@ var ts;
                 emitYield(expression, node);
             }
             markLabel(resumeLabel);
-            return createGeneratorResume();
+            return createGeneratorResume(node);
         }
         function visitArrayLiteralExpression(node) {
             return visitElements(node.elements, undefined, undefined, 
node.multiLine);
@@ -43565,7 +43957,9 @@ var ts;
         function transformAndEmitVariableDeclarationList(node) {
             for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {
                 var variable = _a[_i];
-                hoistVariableDeclaration(variable.name);
+                var name_39 = ts.getSynthesizedClone(variable.name);
+                ts.setCommentRange(name_39, variable.name);
+                hoistVariableDeclaration(name_39);
             }
             var variables = ts.getInitializedVariables(node);
             var numVariables = variables.length;
@@ -43595,7 +43989,7 @@ var ts;
                 if (containsYield(node.thenStatement) || 
containsYield(node.elseStatement)) {
                     var endLabel = defineLabel();
                     var elseLabel = node.elseStatement ? defineLabel() : 
undefined;
-                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));
+                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), 
node.expression);
                     transformAndEmitEmbeddedStatement(node.thenStatement);
                     if (node.elseStatement) {
                         emitBreak(endLabel);
@@ -43960,9 +44354,9 @@ var ts;
                 if (ts.isIdentifier(original) && original.parent) {
                     var declaration = 
resolver.getReferencedValueDeclaration(original);
                     if (declaration) {
-                        var name_38 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
-                        if (name_38) {
-                            var clone_6 = ts.getMutableClone(name_38);
+                        var name_40 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
+                        if (name_40) {
+                            var clone_6 = ts.getMutableClone(name_40);
                             ts.setSourceMapRange(clone_6, node);
                             ts.setCommentRange(clone_6, node);
                             return clone_6;
@@ -44575,41 +44969,41 @@ var ts;
         function writeReturn(expression, operationLocation) {
             lastOperationWasAbrupt = true;
             lastOperationWasCompletion = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(2), expression]
-                : [createInstruction(2)]), operationLocation));
+                : [createInstruction(2)]), operationLocation), 384));
         }
         function writeBreak(label, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeBreakWhenTrue(label, condition, operationLocation) {
-            writeStatement(ts.createIf(condition, 
ts.createReturn(ts.createArrayLiteral([
+            writeStatement(ts.setEmitFlags(ts.createIf(condition, 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeBreakWhenFalse(label, condition, operationLocation) {
-            writeStatement(ts.createIf(ts.createLogicalNot(condition), 
ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createIf(ts.createLogicalNot(condition), 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeYield(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(4), expression]
-                : [createInstruction(4)]), operationLocation));
+                : [createInstruction(4)]), operationLocation), 384));
         }
         function writeYieldStar(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(5),
                 expression
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeEndfinally() {
             lastOperationWasAbrupt = true;
@@ -44634,6 +45028,17 @@ var ts;
 var ts;
 (function (ts) {
     function transformES5(context) {
+        var compilerOptions = context.getCompilerOptions();
+        var previousOnEmitNode;
+        var noSubstitution;
+        if (compilerOptions.jsx === 1) {
+            previousOnEmitNode = context.onEmitNode;
+            context.onEmitNode = onEmitNode;
+            context.enableEmitNotification(248);
+            context.enableEmitNotification(249);
+            context.enableEmitNotification(247);
+            noSubstitution = [];
+        }
         var previousOnSubstituteNode = context.onSubstituteNode;
         context.onSubstituteNode = onSubstituteNode;
         context.enableSubstitution(177);
@@ -44642,7 +45047,21 @@ var ts;
         function transformSourceFile(node) {
             return node;
         }
+        function onEmitNode(emitContext, node, emitCallback) {
+            switch (node.kind) {
+                case 248:
+                case 249:
+                case 247:
+                    var tagName = node.tagName;
+                    noSubstitution[ts.getOriginalNodeId(tagName)] = true;
+                    break;
+            }
+            previousOnEmitNode(emitContext, node, emitCallback);
+        }
         function onSubstituteNode(emitContext, node) {
+            if (node.id && noSubstitution && noSubstitution[node.id]) {
+                return previousOnSubstituteNode(emitContext, node);
+            }
             node = previousOnSubstituteNode(emitContext, node);
             if (ts.isPropertyAccessExpression(node)) {
                 return substitutePropertyAccessExpression(node);
@@ -44738,14 +45157,7 @@ var ts;
         function transformAMDModule(node) {
             var define = ts.createIdentifier("define");
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
-            return transformAsynchronousModule(node, define, moduleName, true);
-        }
-        function transformUMDModule(node) {
-            var define = ts.createRawExpression(umdHelper);
-            return transformAsynchronousModule(node, define, undefined, false);
-        }
-        function transformAsynchronousModule(node, define, moduleName, 
includeNonAmdDependencies) {
-            var _a = collectAsynchronousDependencies(node, 
includeNonAmdDependencies), aliasedModuleNames = _a.aliasedModuleNames, 
unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = 
_a.importAliasNames;
+            var _a = collectAsynchronousDependencies(node, true), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
             return ts.updateSourceFileNode(node, ts.createNodeArray([
                 ts.createStatement(ts.createCall(define, undefined, 
(moduleName ? [moduleName] : []).concat([
                     ts.createArrayLiteral([
@@ -44759,6 +45171,36 @@ var ts;
                 ])))
             ], node.statements));
         }
+        function transformUMDModule(node) {
+            var _a = collectAsynchronousDependencies(node, false), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
+            var umdHeader = ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [ts.createParameter(undefined, undefined, undefined, 
"factory")], undefined, ts.createBlock([
+                
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("module"),
 "object"), 
ts.createTypeCheck(ts.createPropertyAccess(ts.createIdentifier("module"), 
"exports"), "object")), ts.createBlock([
+                    ts.createVariableStatement(undefined, [
+                        ts.createVariableDeclaration("v", undefined, 
ts.createCall(ts.createIdentifier("factory"), undefined, [
+                            ts.createIdentifier("require"),
+                            ts.createIdentifier("exports")
+                        ]))
+                    ]),
+                    
ts.setEmitFlags(ts.createIf(ts.createStrictInequality(ts.createIdentifier("v"), 
ts.createIdentifier("undefined")), 
ts.createStatement(ts.createAssignment(ts.createPropertyAccess(ts.createIdentifier("module"),
 "exports"), ts.createIdentifier("v")))), 1)
+                ]), 
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("define"),
 "function"), ts.createPropertyAccess(ts.createIdentifier("define"), "amd")), 
ts.createBlock([
+                    
ts.createStatement(ts.createCall(ts.createIdentifier("define"), undefined, [
+                        ts.createArrayLiteral([
+                            ts.createLiteral("require"),
+                            ts.createLiteral("exports")
+                        ].concat(aliasedModuleNames, unaliasedModuleNames)),
+                        ts.createIdentifier("factory")
+                    ]))
+                ])))
+            ], undefined, true));
+            return ts.updateSourceFileNode(node, ts.createNodeArray([
+                ts.createStatement(ts.createCall(umdHeader, undefined, [
+                    ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [
+                        ts.createParameter(undefined, undefined, undefined, 
"require"),
+                        ts.createParameter(undefined, undefined, undefined, 
"exports")
+                    ].concat(importAliasNames), undefined, 
transformAsynchronousModuleBody(node))
+                ]))
+            ], node.statements));
+        }
         function collectAsynchronousDependencies(node, 
includeNonAmdDependencies) {
             var aliasedModuleNames = [];
             var unaliasedModuleNames = [];
@@ -45244,8 +45686,8 @@ var ts;
                         return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent), 
ts.createIdentifier("default"), node);
                     }
                     else if (ts.isImportSpecifier(importDeclaration)) {
-                        var name_39 = importDeclaration.propertyName || 
importDeclaration.name;
-                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_39), node);
+                        var name_41 = importDeclaration.propertyName || 
importDeclaration.name;
+                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_41), node);
                     }
                 }
             }
@@ -45309,7 +45751,6 @@ var ts;
         scoped: true,
         text: "\n            function __export(m) {\n                for (var 
p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"
     };
-    var umdHelper = "\n        (function (dependencies, factory) {\n           
 if (typeof module === 'object' && typeof module.exports === 'object') {\n      
          var v = factory(require, exports); if (v !== undefined) 
module.exports = v;\n            }\n            else if (typeof define === 
'function' && define.amd) {\n                define(dependencies, factory);\n   
         }\n        })";
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
@@ -45359,11 +45800,11 @@ var ts;
             ], undefined, moduleBodyBlock);
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
             var dependencies = ts.createArrayLiteral(ts.map(dependencyGroups, 
function (dependencyGroup) { return dependencyGroup.name; }));
-            var updated = ts.updateSourceFileNode(node, ts.createNodeArray([
+            var updated = ts.setEmitFlags(ts.updateSourceFileNode(node, 
ts.createNodeArray([
                 
ts.createStatement(ts.createCall(ts.createPropertyAccess(ts.createIdentifier("System"),
 "register"), undefined, moduleName
                     ? [moduleName, dependencies, moduleBodyFunction]
                     : [dependencies, moduleBodyFunction]))
-            ], node.statements));
+            ], node.statements)), 1024);
             if (!(compilerOptions.outFile || compilerOptions.out)) {
                 ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) 
{ return !helper.scoped; });
             }
@@ -46238,7 +46679,7 @@ var ts;
     }
     ts.getTransformers = getTransformers;
     function transformFiles(resolver, host, sourceFiles, transformers) {
-        var enabledSyntaxKindFeatures = new Array(298);
+        var enabledSyntaxKindFeatures = new Array(297);
         var lexicalEnvironmentDisabled = false;
         var lexicalEnvironmentVariableDeclarations;
         var lexicalEnvironmentFunctionDeclarations;
@@ -46526,6 +46967,7 @@ var ts;
             writer.writeSpace = writer.write;
             writer.writeStringLiteral = writer.writeLiteral;
             writer.writeParameter = writer.write;
+            writer.writeProperty = writer.write;
             writer.writeSymbol = writer.write;
             setWriter(writer);
         }
@@ -46856,9 +47298,9 @@ var ts;
             var count = 0;
             while (true) {
                 count++;
-                var name_40 = baseName + "_" + count;
-                if (!(name_40 in currentIdentifiers)) {
-                    return name_40;
+                var name_42 = baseName + "_" + count;
+                if (!(name_42 in currentIdentifiers)) {
+                    return name_42;
                 }
             }
         }
@@ -47747,6 +48189,10 @@ var ts;
                         return symbolAccessibilityResult.errorModuleName ?
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
+                    case 155:
+                        return symbolAccessibilityResult.errorModuleName ?
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
                     case 149:
                     case 148:
                         if (ts.hasModifier(node.parent, 32)) {
@@ -48131,7 +48577,7 @@ var ts;
                 return;
             }
             encodeLastRecordedSourceMapSpan();
-            return ts.stringify({
+            return JSON.stringify({
                 version: 3,
                 file: sourceMapData.sourceMapFile,
                 sourceRoot: sourceMapData.sourceMapSourceRoot,
@@ -48297,6 +48743,9 @@ var ts;
             }
             if (!skipTrailingComments) {
                 emitLeadingComments(detachedRange.end, true);
+                if (hasWrittenComment && !writer.isAtStartOfLine()) {
+                    writer.writeLine();
+                }
             }
             if (extendedDiagnostics) {
                 ts.performance.measure("commentTime", 
"beginEmitBodyWithDetachedCommetns");
@@ -48911,8 +49360,6 @@ var ts;
                     return emitJsxSelfClosingElement(node);
                 case 294:
                     return emitPartiallyEmittedExpression(node);
-                case 297:
-                    return writeLines(node.text);
             }
         }
         function emitNumericLiteral(node) {
@@ -49399,27 +49846,27 @@ var ts;
             writeToken(18, openParenPos, node);
             emitExpression(node.expression);
             writeToken(19, node.expression.end, node);
-            emitEmbeddedStatement(node.thenStatement);
+            emitEmbeddedStatement(node, node.thenStatement);
             if (node.elseStatement) {
-                writeLine();
+                writeLineOrSpace(node);
                 writeToken(81, node.thenStatement.end, node);
                 if (node.elseStatement.kind === 208) {
                     write(" ");
                     emit(node.elseStatement);
                 }
                 else {
-                    emitEmbeddedStatement(node.elseStatement);
+                    emitEmbeddedStatement(node, node.elseStatement);
                 }
             }
         }
         function emitDoStatement(node) {
             write("do");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
             if (ts.isBlock(node.statement)) {
                 write(" ");
             }
             else {
-                writeLine();
+                writeLineOrSpace(node);
             }
             write("while (");
             emitExpression(node.expression);
@@ -49429,7 +49876,7 @@ var ts;
             write("while (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49441,7 +49888,7 @@ var ts;
             write(";");
             emitExpressionWithPrefix(" ", node.incrementor);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForInStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49451,7 +49898,7 @@ var ts;
             write(" in ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForOfStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49461,7 +49908,7 @@ var ts;
             write(" of ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForBinding(node) {
             if (node !== undefined) {
@@ -49492,7 +49939,7 @@ var ts;
             write("with (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitSwitchStatement(node) {
             var openParenPos = writeToken(97, node.pos);
@@ -49516,9 +49963,12 @@ var ts;
         function emitTryStatement(node) {
             write("try ");
             emit(node.tryBlock);
-            emit(node.catchClause);
+            if (node.catchClause) {
+                writeLineOrSpace(node);
+                emit(node.catchClause);
+            }
             if (node.finallyBlock) {
-                writeLine();
+                writeLineOrSpace(node);
                 write("finally ");
                 emit(node.finallyBlock);
             }
@@ -50044,8 +50494,8 @@ var ts;
                 write(suffix);
             }
         }
-        function emitEmbeddedStatement(node) {
-            if (ts.isBlock(node)) {
+        function emitEmbeddedStatement(parent, node) {
+            if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1) {
                 write(" ");
                 emit(node);
             }
@@ -50174,6 +50624,14 @@ var ts;
                 write(getClosingBracket(format));
             }
         }
+        function writeLineOrSpace(node) {
+            if (ts.getEmitFlags(node) & 1) {
+                write(" ");
+            }
+            else {
+                writeLine();
+            }
+        }
         function writeIfAny(nodes, text) {
             if (nodes && nodes.length > 0) {
                 write(text);
@@ -50354,21 +50812,21 @@ var ts;
         }
         function makeTempVariableName(flags) {
             if (flags && !(tempFlags & flags)) {
-                var name_41 = flags === 268435456 ? "_i" : "_n";
-                if (isUniqueName(name_41)) {
+                var name_43 = flags === 268435456 ? "_i" : "_n";
+                if (isUniqueName(name_43)) {
                     tempFlags |= flags;
-                    return name_41;
+                    return name_43;
                 }
             }
             while (true) {
                 var count = tempFlags & 268435455;
                 tempFlags++;
                 if (count !== 8 && count !== 13) {
-                    var name_42 = count < 26
+                    var name_44 = count < 26
                         ? "_" + String.fromCharCode(97 + count)
                         : "_" + (count - 26);
-                    if (isUniqueName(name_42)) {
-                        return name_42;
+                    if (isUniqueName(name_44)) {
+                        return name_44;
                     }
                 }
             }
@@ -50704,10 +51162,10 @@ var ts;
         var resolutions = [];
         var cache = ts.createMap();
         for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {
-            var name_43 = names_1[_i];
-            var result = name_43 in cache
-                ? cache[name_43]
-                : cache[name_43] = loader(name_43, containingFile);
+            var name_45 = names_1[_i];
+            var result = name_45 in cache
+                ? cache[name_45]
+                : cache[name_45] = loader(name_45, containingFile);
             resolutions.push(result);
         }
         return resolutions;
@@ -50732,6 +51190,7 @@ var ts;
         var currentDirectory = host.getCurrentDirectory();
         var supportedExtensions = ts.getSupportedExtensions(options);
         var hasEmitBlockingDiagnostics = 
ts.createFileMap(getCanonicalFileName);
+        var moduleResolutionCache;
         var resolveModuleNamesWorker;
         if (host.resolveModuleNames) {
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return host.resolveModuleNames(moduleNames, containingFile).map(function 
(resolved) {
@@ -50744,7 +51203,8 @@ var ts;
             }); };
         }
         else {
-            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host).resolvedModule; 
};
+            moduleResolutionCache = 
ts.createModuleResolutionCache(currentDirectory, function (x) { return 
host.getCanonicalFileName(x); });
+            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host, 
moduleResolutionCache).resolvedModule; };
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return loadWithLocalCache(moduleNames, containingFile, loader_1); };
         }
         var resolveTypeReferenceDirectiveNamesWorker;
@@ -50780,6 +51240,7 @@ var ts;
                 }
             }
         }
+        moduleResolutionCache = undefined;
         oldProgram = undefined;
         program = {
             getRootFileNames: function () { return rootNames; },
@@ -51825,7 +52286,9 @@ var ts;
                 this.text = text;
             }
             StringScriptSnapshot.prototype.getText = function (start, end) {
-                return this.text.substring(start, end);
+                return start === 0 && end === this.text.length
+                    ? this.text
+                    : this.text.substring(start, end);
             };
             StringScriptSnapshot.prototype.getLength = function () {
                 return this.text.length;
@@ -52896,6 +53359,7 @@ var ts;
             writeSpace: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.space); },
             writeStringLiteral: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.stringLiteral); },
             writeParameter: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.parameterName); },
+            writeProperty: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.propertyName); },
             writeSymbol: writeSymbol,
             writeLine: writeLine,
             increaseIndent: function () { indent++; },
@@ -54397,13 +54861,13 @@ var ts;
             function getJavaScriptCompletionEntries(sourceFile, position, 
uniqueNames) {
                 var entries = [];
                 var nameTable = ts.getNameTable(sourceFile);
-                for (var name_44 in nameTable) {
-                    if (nameTable[name_44] === position) {
+                for (var name_46 in nameTable) {
+                    if (nameTable[name_46] === position) {
                         continue;
                     }
-                    if (!uniqueNames[name_44]) {
-                        uniqueNames[name_44] = name_44;
-                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_44), 
compilerOptions.target, true);
+                    if (!uniqueNames[name_46]) {
+                        uniqueNames[name_46] = name_46;
+                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_46), 
compilerOptions.target, true);
                         if (displayName) {
                             var entry = {
                                 name: displayName,
@@ -54825,11 +55289,11 @@ var ts;
                     if (currentConfigPath) {
                         paths.push(currentConfigPath);
                         currentDir = ts.getDirectoryPath(currentConfigPath);
-                        var parent_13 = ts.getDirectoryPath(currentDir);
-                        if (currentDir === parent_13) {
+                        var parent_14 = ts.getDirectoryPath(currentDir);
+                        if (currentDir === parent_14) {
                             break;
                         }
-                        currentDir = parent_13;
+                        currentDir = parent_14;
                     }
                     else {
                         break;
@@ -54909,13 +55373,14 @@ var ts;
                 var symbols = completionData.symbols, location_3 = 
completionData.location;
                 var symbol = ts.forEach(symbols, function (s) { return 
getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, 
false, location_3) === entryName ? s : undefined; });
                 if (symbol) {
-                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7), displayParts = _a.displayParts, 
documentation = _a.documentation, symbolKind = _a.symbolKind;
+                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7), displayParts = _a.displayParts, 
documentation = _a.documentation, symbolKind = _a.symbolKind, tags = _a.tags;
                     return {
                         name: entryName,
                         kindModifiers: 
ts.SymbolDisplay.getSymbolModifiers(symbol),
                         kind: symbolKind,
                         displayParts: displayParts,
-                        documentation: documentation
+                        documentation: documentation,
+                        tags: tags
                     };
                 }
             }
@@ -54926,7 +55391,8 @@ var ts;
                     kind: ts.ScriptElementKind.keyword,
                     kindModifiers: ts.ScriptElementKindModifier.none,
                     displayParts: [ts.displayPart(entryName, 
ts.SymbolDisplayPartKind.keyword)],
-                    documentation: undefined
+                    documentation: undefined,
+                    tags: undefined
                 };
             }
             return undefined;
@@ -54998,13 +55464,13 @@ var ts;
                     log("Returning an empty list because completion was 
requested in an invalid position.");
                     return undefined;
                 }
-                var parent_14 = contextToken.parent, kind = contextToken.kind;
+                var parent_15 = contextToken.parent, kind = contextToken.kind;
                 if (kind === 22) {
-                    if (parent_14.kind === 177) {
+                    if (parent_15.kind === 177) {
                         node = contextToken.parent.expression;
                         isRightOfDot = true;
                     }
-                    else if (parent_14.kind === 141) {
+                    else if (parent_15.kind === 141) {
                         node = contextToken.parent.left;
                         isRightOfDot = true;
                     }
@@ -55301,9 +55767,9 @@ var ts;
                     switch (contextToken.kind) {
                         case 16:
                         case 25:
-                            var parent_15 = contextToken.parent;
-                            if (parent_15 && (parent_15.kind === 176 || 
parent_15.kind === 172)) {
-                                return parent_15;
+                            var parent_16 = contextToken.parent;
+                            if (parent_16 && (parent_16.kind === 176 || 
parent_16.kind === 172)) {
+                                return parent_16;
                             }
                             break;
                     }
@@ -55326,34 +55792,34 @@ var ts;
             }
             function tryGetContainingJsxElement(contextToken) {
                 if (contextToken) {
-                    var parent_16 = contextToken.parent;
+                    var parent_17 = contextToken.parent;
                     switch (contextToken.kind) {
                         case 27:
                         case 40:
                         case 70:
                         case 250:
                         case 251:
-                            if (parent_16 && (parent_16.kind === 247 || 
parent_16.kind === 248)) {
-                                return parent_16;
+                            if (parent_17 && (parent_17.kind === 247 || 
parent_17.kind === 248)) {
+                                return parent_17;
                             }
-                            else if (parent_16.kind === 250) {
-                                return parent_16.parent;
+                            else if (parent_17.kind === 250) {
+                                return parent_17.parent;
                             }
                             break;
                         case 9:
-                            if (parent_16 && ((parent_16.kind === 250) || 
(parent_16.kind === 251))) {
-                                return parent_16.parent;
+                            if (parent_17 && ((parent_17.kind === 250) || 
(parent_17.kind === 251))) {
+                                return parent_17.parent;
                             }
                             break;
                         case 17:
-                            if (parent_16 &&
-                                parent_16.kind === 252 &&
-                                parent_16.parent &&
-                                (parent_16.parent.kind === 250)) {
-                                return parent_16.parent.parent;
+                            if (parent_17 &&
+                                parent_17.kind === 252 &&
+                                parent_17.parent &&
+                                (parent_17.parent.kind === 250)) {
+                                return parent_17.parent.parent;
                             }
-                            if (parent_16 && parent_16.kind === 251) {
-                                return parent_16.parent;
+                            if (parent_17 && parent_17.kind === 251) {
+                                return parent_17.parent;
                             }
                             break;
                     }
@@ -55476,8 +55942,8 @@ var ts;
                     if (element.getStart() <= position && position <= 
element.getEnd()) {
                         continue;
                     }
-                    var name_45 = element.propertyName || element.name;
-                    existingImportsOrExports[name_45.text] = true;
+                    var name_47 = element.propertyName || element.name;
+                    existingImportsOrExports[name_47.text] = true;
                 }
                 if (!ts.someProperties(existingImportsOrExports)) {
                     return ts.filter(exportsOfModule, function (e) { return 
e.name !== "default"; });
@@ -55774,17 +56240,17 @@ var ts;
                 function getThrowStatementOwner(throwStatement) {
                     var child = throwStatement;
                     while (child.parent) {
-                        var parent_17 = child.parent;
-                        if (ts.isFunctionBlock(parent_17) || parent_17.kind 
=== 261) {
-                            return parent_17;
+                        var parent_18 = child.parent;
+                        if (ts.isFunctionBlock(parent_18) || parent_18.kind 
=== 261) {
+                            return parent_18;
                         }
-                        if (parent_17.kind === 221) {
-                            var tryStatement = parent_17;
+                        if (parent_18.kind === 221) {
+                            var tryStatement = parent_18;
                             if (tryStatement.tryBlock === child && 
tryStatement.catchClause) {
                                 return child;
                             }
                         }
-                        child = parent_17;
+                        child = parent_18;
                     }
                     return undefined;
                 }
@@ -56619,24 +57085,24 @@ var ts;
                     }
                     var containingTypeReference = 
getContainingTypeReference(refNode);
                     if (containingTypeReference) {
-                        var parent_18 = containingTypeReference.parent;
-                        if (ts.isVariableLike(parent_18) && parent_18.type === 
containingTypeReference && parent_18.initializer && 
isImplementationExpression(parent_18.initializer)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.initializer));
+                        var parent_19 = containingTypeReference.parent;
+                        if (ts.isVariableLike(parent_19) && parent_19.type === 
containingTypeReference && parent_19.initializer && 
isImplementationExpression(parent_19.initializer)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.initializer));
                         }
-                        else if (ts.isFunctionLike(parent_18) && 
parent_18.type === containingTypeReference && parent_18.body) {
-                            if (parent_18.body.kind === 204) {
-                                ts.forEachReturnStatement(parent_18.body, 
function (returnStatement) {
+                        else if (ts.isFunctionLike(parent_19) && 
parent_19.type === containingTypeReference && parent_19.body) {
+                            if (parent_19.body.kind === 204) {
+                                ts.forEachReturnStatement(parent_19.body, 
function (returnStatement) {
                                     if (returnStatement.expression && 
isImplementationExpression(returnStatement.expression)) {
                                         
maybeAdd(getReferenceEntryFromNode(returnStatement.expression));
                                     }
                                 });
                             }
-                            else if 
(isImplementationExpression(parent_18.body)) {
-                                
maybeAdd(getReferenceEntryFromNode(parent_18.body));
+                            else if 
(isImplementationExpression(parent_19.body)) {
+                                
maybeAdd(getReferenceEntryFromNode(parent_19.body));
                             }
                         }
-                        else if (ts.isAssertionExpression(parent_18) && 
isImplementationExpression(parent_18.expression)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.expression));
+                        else if (ts.isAssertionExpression(parent_19) && 
isImplementationExpression(parent_19.expression)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.expression));
                         }
                     }
                 }
@@ -56897,8 +57363,8 @@ var ts;
                         if (!node_2 || node_2.kind !== 9) {
                             return;
                         }
-                        var type_2 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
-                        if (type_2 === searchType) {
+                        var type_1 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
+                        if (type_1 === searchType) {
                             references.push(getReferenceEntryFromNode(node_2));
                         }
                     }
@@ -57451,6 +57917,7 @@ var ts;
             "lends",
             "link",
             "memberOf",
+            "method",
             "name",
             "namespace",
             "param",
@@ -57490,6 +57957,29 @@ var ts;
             return documentationComment;
         }
         JsDoc.getJsDocCommentsFromDeclarations = 
getJsDocCommentsFromDeclarations;
+        function getJsDocTagsFromDeclarations(declarations) {
+            var tags = [];
+            forEachUnique(declarations, function (declaration) {
+                var jsDocs = ts.getJSDocs(declaration);
+                if (!jsDocs) {
+                    return;
+                }
+                for (var _i = 0, jsDocs_1 = jsDocs; _i < jsDocs_1.length; 
_i++) {
+                    var doc = jsDocs_1[_i];
+                    var tagsForDoc = doc.tags;
+                    if (tagsForDoc) {
+                        tags.push.apply(tags, tagsForDoc.filter(function (tag) 
{ return tag.kind === 279; }).map(function (jsDocTag) {
+                            return {
+                                name: jsDocTag.tagName.text,
+                                text: jsDocTag.comment
+                            };
+                        }));
+                    }
+                }
+            });
+            return tags;
+        }
+        JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
         function forEachUnique(array, callback) {
             if (array) {
                 for (var i = 0, len = array.length; i < len; i++) {
@@ -57548,13 +58038,19 @@ var ts;
             var posLineAndChar = 
sourceFile.getLineAndCharacterOfPosition(position);
             var lineStart = sourceFile.getLineStarts()[posLineAndChar.line];
             var indentationStr = sourceFile.text.substr(lineStart, 
posLineAndChar.character);
+            var isJavaScriptFile = 
ts.hasJavaScriptFileExtension(sourceFile.fileName);
             var docParams = "";
             for (var i = 0, numParams = parameters.length; i < numParams; i++) 
{
                 var currentName = parameters[i].name;
                 var paramName = currentName.kind === 70 ?
                     currentName.text :
                     "param" + i;
-                docParams += indentationStr + " * @param " + paramName + 
newLine;
+                if (isJavaScriptFile) {
+                    docParams += indentationStr + " * @param {any} " + 
paramName + newLine;
+                }
+                else {
+                    docParams += indentationStr + " * @param " + paramName + 
newLine;
+                }
             }
             var preamble = "/**" + newLine +
                 indentationStr + " * ";
@@ -57612,10 +58108,10 @@ var ts;
                     return;
                 }
                 var nameToDeclarations = sourceFile.getNamedDeclarations();
-                for (var name_46 in nameToDeclarations) {
-                    var declarations = nameToDeclarations[name_46];
+                for (var name_48 in nameToDeclarations) {
+                    var declarations = nameToDeclarations[name_48];
                     if (declarations) {
-                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_46);
+                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_48);
                         if (!matches) {
                             continue;
                         }
@@ -57626,14 +58122,14 @@ var ts;
                                 if (!containers) {
                                     return undefined;
                                 }
-                                matches = 
patternMatcher.getMatches(containers, name_46);
+                                matches = 
patternMatcher.getMatches(containers, name_48);
                                 if (!matches) {
                                     continue;
                                 }
                             }
                             var fileName = sourceFile.fileName;
                             var matchKind = bestMatchKind(matches);
-                            rawItems.push({ name: name_46, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
+                            rawItems.push({ name: name_48, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
                         }
                     }
                 }
@@ -57886,9 +58382,9 @@ var ts;
                 case 174:
                 case 223:
                     var decl = node;
-                    var name_47 = decl.name;
-                    if (ts.isBindingPattern(name_47)) {
-                        addChildrenRecursively(name_47);
+                    var name_49 = decl.name;
+                    if (ts.isBindingPattern(name_49)) {
+                        addChildrenRecursively(name_49);
                     }
                     else if (decl.initializer && 
isFunctionOrClassExpression(decl.initializer)) {
                         addChildrenRecursively(decl.initializer);
@@ -58352,24 +58848,24 @@ var ts;
                 switch (n.kind) {
                     case 204:
                         if (!ts.isFunctionBlock(n)) {
-                            var parent_19 = n.parent;
+                            var parent_20 = n.parent;
                             var openBrace = ts.findChildOfKind(n, 16, 
sourceFile);
                             var closeBrace = ts.findChildOfKind(n, 17, 
sourceFile);
-                            if (parent_19.kind === 209 ||
-                                parent_19.kind === 212 ||
-                                parent_19.kind === 213 ||
-                                parent_19.kind === 211 ||
-                                parent_19.kind === 208 ||
-                                parent_19.kind === 210 ||
-                                parent_19.kind === 217 ||
-                                parent_19.kind === 256) {
-                                addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                            if (parent_20.kind === 209 ||
+                                parent_20.kind === 212 ||
+                                parent_20.kind === 213 ||
+                                parent_20.kind === 211 ||
+                                parent_20.kind === 208 ||
+                                parent_20.kind === 210 ||
+                                parent_20.kind === 217 ||
+                                parent_20.kind === 256) {
+                                addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                 break;
                             }
-                            if (parent_19.kind === 221) {
-                                var tryStatement = parent_19;
+                            if (parent_20.kind === 221) {
+                                var tryStatement = parent_20;
                                 if (tryStatement.tryBlock === n) {
-                                    addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                                    addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                     break;
                                 }
                                 else if (tryStatement.finallyBlock === n) {
@@ -59476,7 +59972,8 @@ var ts;
                     suffixDisplayParts: suffixDisplayParts,
                     separatorDisplayParts: [ts.punctuationPart(25), 
ts.spacePart()],
                     parameters: signatureHelpParameters,
-                    documentation: candidateSignature.getDocumentationComment()
+                    documentation: 
candidateSignature.getDocumentationComment(),
+                    tags: candidateSignature.getJsDocTags()
                 };
             });
             var argumentIndex = argumentListInfo.argumentIndex;
@@ -59613,6 +60110,7 @@ var ts;
             if (semanticMeaning === void 0) { semanticMeaning = 
ts.getMeaningFromLocation(location); }
             var displayParts = [];
             var documentation;
+            var tags;
             var symbolFlags = symbol.flags;
             var symbolKind = 
getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, 
symbol, symbolFlags, location);
             var hasAddedSymbolInfo;
@@ -59893,6 +60391,7 @@ var ts;
             }
             if (!documentation) {
                 documentation = symbol.getDocumentationComment();
+                tags = symbol.getJsDocTags();
                 if (documentation.length === 0 && symbol.flags & 4) {
                     if (symbol.parent && 
ts.forEach(symbol.parent.declarations, function (declaration) { return 
declaration.kind === 261; })) {
                         for (var _i = 0, _a = symbol.declarations; _i < 
_a.length; _i++) {
@@ -59905,6 +60404,7 @@ var ts;
                                 continue;
                             }
                             documentation = 
rhsSymbol.getDocumentationComment();
+                            tags = rhsSymbol.getJsDocTags();
                             if (documentation.length > 0) {
                                 break;
                             }
@@ -59912,7 +60412,7 @@ var ts;
                     }
                 }
             }
-            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind };
+            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind, tags: tags };
             function addNewLineIfDisplayPartsExist() {
                 if (displayParts.length) {
                     displayParts.push(ts.lineBreakPart());
@@ -59963,6 +60463,7 @@ var ts;
                     displayParts.push(ts.punctuationPart(19));
                 }
                 documentation = signature.getDocumentationComment();
+                tags = signature.getJsDocTags();
             }
             function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) 
{
                 var typeParameterParts = ts.mapToDisplayParts(function 
(writer) {
@@ -59983,8 +60484,8 @@ var ts;
                 if (declaration.kind !== 223 && declaration.kind !== 225) {
                     return false;
                 }
-                for (var parent_20 = declaration.parent; 
!ts.isFunctionBlock(parent_20); parent_20 = parent_20.parent) {
-                    if (parent_20.kind === 261 || parent_20.kind === 231) {
+                for (var parent_21 = declaration.parent; 
!ts.isFunctionBlock(parent_21); parent_21 = parent_21.parent) {
+                    if (parent_21.kind === 261 || parent_21.kind === 231) {
                         return false;
                     }
                 }
@@ -60068,7 +60569,7 @@ var ts;
             return typeof o.type === "object" && !ts.forEachProperty(o.type, 
function (v) { return typeof v !== "number"; });
         });
         options = ts.clone(options);
-        var _loop_4 = function (opt) {
+        var _loop_3 = function (opt) {
             if (!ts.hasProperty(options, opt.name)) {
                 return "continue";
             }
@@ -60084,7 +60585,7 @@ var ts;
         };
         for (var _i = 0, commandLineOptionsStringToEnum_1 = 
commandLineOptionsStringToEnum; _i < commandLineOptionsStringToEnum_1.length; 
_i++) {
             var opt = commandLineOptionsStringToEnum_1[_i];
-            _loop_4(opt);
+            _loop_3(opt);
         }
         return options;
     }
@@ -60548,6 +61049,7 @@ var ts;
                 this.SpaceAfterLetConstInVariableDeclaration = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([109,
 75]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsStartOfVariableDeclarationList), 2));
                 this.NoSpaceBeforeOpenParenInFuncCall = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8));
                 this.SpaceAfterFunctionInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create3(88, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2));
+                this.SpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 2));
                 this.NoSpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 8));
                 this.SpaceAfterVoidOperator = new 
formatting.Rule(formatting.RuleDescriptor.create3(104, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsVoidOpContext), 2));
                 this.NoSpaceBetweenReturnAndSemicolon = new 
formatting.Rule(formatting.RuleDescriptor.create1(95, 24), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
@@ -60556,9 +61058,10 @@ var ts;
                 this.SpaceAfterGetSetInMember = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([124,
 133]), 70), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2));
                 this.SpaceBeforeBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.BinaryKeywordOperators), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2));
                 this.SpaceAfterBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators,
 formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2));
+                this.SpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122, 18), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.NoSpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122, 18), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
                 this.NoSpaceAfterModuleImport = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([127,
 131]), 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
-                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116,
 74, 123, 78, 82, 83, 84, 124, 107, 90, 108, 127, 128, 111, 113, 112, 133, 114, 
136, 138]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
+                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116,
 74, 123, 78, 82, 83, 84, 124, 107, 90, 108, 127, 128, 111, 113, 112, 130, 133, 
114, 136, 138, 126]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.SpaceBeforeCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.FromTokens([84, 107, 138])), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.SpaceAfterModuleName = new 
formatting.Rule(formatting.RuleDescriptor.create1(9, 16), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2));
                 this.SpaceBeforeArrow = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 35), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
@@ -60614,7 +61117,7 @@ var ts;
                     this.NoSpaceBetweenTagAndTemplateString,
                     this.SpaceBeforeJsxAttribute, 
this.SpaceBeforeSlashInJsxOpeningElement, 
this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement,
                     this.NoSpaceBeforeEqualInJsxAttribute, 
this.NoSpaceAfterEqualInJsxAttribute,
-                    this.NoSpaceAfterConstructor, 
this.NoSpaceAfterModuleImport,
+                    this.NoSpaceAfterModuleImport,
                     this.SpaceAfterCertainTypeScriptKeywords, 
this.SpaceBeforeCertainTypeScriptKeywords,
                     this.SpaceAfterModuleName,
                     this.SpaceBeforeArrow, this.SpaceAfterArrow,
@@ -60637,7 +61140,6 @@ var ts;
                     this.NoSpaceBeforeOpenBracket,
                     this.NoSpaceAfterCloseBracket,
                     this.SpaceAfterSemicolon,
-                    this.NoSpaceBeforeOpenParenInFuncDecl,
                     this.SpaceBetweenStatements, this.SpaceAfterTryFinally
                 ];
                 this.SpaceAfterComma = new 
formatting.Rule(formatting.RuleDescriptor.create3(25, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsNonJsxElementContext, Rules.IsNextTokenNotCloseBracket), 2));
@@ -60678,9 +61180,9 @@ var ts;
             }
             Rules.prototype.getRuleName = function (rule) {
                 var o = this;
-                for (var name_48 in o) {
-                    if (o[name_48] === rule) {
-                        return name_48;
+                for (var name_50 in o) {
+                    if (o[name_50] === rule) {
+                        return name_50;
                     }
                 }
                 throw new Error("Unknown rule");
@@ -60712,6 +61214,7 @@ var ts;
                     case 146:
                         return context.currentTokenSpan.kind === 57 || 
context.nextTokenSpan.kind === 57;
                     case 212:
+                    case 143:
                         return context.currentTokenSpan.kind === 91 || 
context.nextTokenSpan.kind === 91;
                     case 213:
                         return context.currentTokenSpan.kind === 140 || 
context.nextTokenSpan.kind === 140;
@@ -60798,11 +61301,17 @@ var ts;
                     case 226:
                     case 230:
                     case 229:
-                    case 204:
                     case 256:
                     case 231:
                     case 218:
                         return true;
+                    case 204: {
+                        var blockParent = context.currentTokenParent.parent;
+                        if (blockParent.kind !== 185 &&
+                            blockParent.kind !== 184) {
+                            return true;
+                        }
+                    }
                 }
                 return false;
             };
@@ -60897,6 +61406,7 @@ var ts;
                 switch (parent.kind) {
                     case 157:
                     case 182:
+                    case 228:
                     case 226:
                     case 197:
                     case 227:
@@ -61212,6 +61722,12 @@ var ts;
             };
             RulesProvider.prototype.createActiveRules = function (options) {
                 var rules = this.globalRules.HighPriorityCommonRules.slice(0);
+                if (options.insertSpaceAfterConstructor) {
+                    rules.push(this.globalRules.SpaceAfterConstructor);
+                }
+                else {
+                    rules.push(this.globalRules.NoSpaceAfterConstructor);
+                }
                 if (options.insertSpaceAfterCommaDelimiter) {
                     rules.push(this.globalRules.SpaceAfterComma);
                 }
@@ -61290,6 +61806,12 @@ var ts;
                     rules.push(this.globalRules.NoSpaceBeforeBinaryOperator);
                     rules.push(this.globalRules.NoSpaceAfterBinaryOperator);
                 }
+                if (options.insertSpaceBeforeFunctionParenthesis) {
+                    
rules.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl);
+                }
+                else {
+                    
rules.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl);
+                }
                 if (options.placeOpenBraceOnNewLineForControlBlocks) {
                     
rules.push(this.globalRules.NewLineBeforeOpenBraceInControl);
                 }
@@ -61588,17 +62110,30 @@ var ts;
                         switch (kind) {
                             case 16:
                             case 17:
-                            case 20:
-                            case 21:
                             case 18:
                             case 19:
                             case 81:
                             case 105:
                             case 56:
                                 return indentation;
-                            default:
-                                return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
+                            case 40:
+                            case 28: {
+                                if (container.kind === 248 ||
+                                    container.kind === 249 ||
+                                    container.kind === 247) {
+                                    return indentation;
+                                }
+                                break;
+                            }
+                            case 20:
+                            case 21: {
+                                if (container.kind !== 170) {
+                                    return indentation;
+                                }
+                                break;
+                            }
                         }
+                        return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
                     },
                     getIndentation: function () { return indentation; },
                     getDelta: function (child) { return 
getEffectiveDelta(delta, child); },
@@ -61639,7 +62174,7 @@ var ts;
                     if (tokenInfo.token.end > node.end) {
                         break;
                     }
-                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation);
+                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation, node);
                 }
                 function processChildNode(child, inheritedIndentation, parent, 
parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, 
isListItem, isFirstListItem) {
                     var childStartPos = child.getStart(sourceFile);
@@ -61669,7 +62204,7 @@ var ts;
                         if (tokenInfo.token.end > childStartPos) {
                             break;
                         }
-                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation);
+                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation, node);
                     }
                     if (!formattingScanner.isOnToken()) {
                         return inheritedIndentation;
@@ -61704,10 +62239,10 @@ var ts;
                                 startLine = 
sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;
                                 var indentation_1 = 
computeIndentation(tokenInfo.token, startLine, -1, parent, 
parentDynamicIndentation, parentStartLine);
                                 listDynamicIndentation = 
getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, 
indentation_1.delta);
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                             else {
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation, parent);
                             }
                         }
                     }
@@ -61720,7 +62255,7 @@ var ts;
                         if (formattingScanner.isOnToken()) {
                             var tokenInfo = 
formattingScanner.readTokenInfo(parent);
                             if (tokenInfo.token.kind === listEndToken && 
ts.rangeContainsRange(parent, tokenInfo.token)) {
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                         }
                     }
@@ -62404,6 +62939,7 @@ var ts;
                     case 231:
                     case 176:
                     case 161:
+                    case 170:
                     case 163:
                     case 232:
                     case 254:
@@ -62581,579 +63117,6 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    var codefix;
-    (function (codefix) {
-        var ModuleSpecifierComparison;
-        (function (ModuleSpecifierComparison) {
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Better"] = 0] 
= "Better";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Equal"] = 1] 
= "Equal";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Worse"] = 2] 
= "Worse";
-        })(ModuleSpecifierComparison || (ModuleSpecifierComparison = {}));
-        var ImportCodeActionMap = (function () {
-            function ImportCodeActionMap() {
-                this.symbolIdToActionMap = ts.createMap();
-            }
-            ImportCodeActionMap.prototype.addAction = function (symbolId, 
newAction) {
-                if (!newAction) {
-                    return;
-                }
-                if (!this.symbolIdToActionMap[symbolId]) {
-                    this.symbolIdToActionMap[symbolId] = [newAction];
-                    return;
-                }
-                if (newAction.kind === "CodeChange") {
-                    this.symbolIdToActionMap[symbolId].push(newAction);
-                    return;
-                }
-                var updatedNewImports = [];
-                for (var _i = 0, _a = this.symbolIdToActionMap[symbolId]; _i < 
_a.length; _i++) {
-                    var existingAction = _a[_i];
-                    if (existingAction.kind === "CodeChange") {
-                        updatedNewImports.push(existingAction);
-                        continue;
-                    }
-                    switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
-                        case ModuleSpecifierComparison.Better:
-                            if (newAction.kind === "NewImport") {
-                                return;
-                            }
-                        case ModuleSpecifierComparison.Equal:
-                            updatedNewImports.push(existingAction);
-                            break;
-                        case ModuleSpecifierComparison.Worse:
-                            continue;
-                    }
-                }
-                updatedNewImports.push(newAction);
-                this.symbolIdToActionMap[symbolId] = updatedNewImports;
-            };
-            ImportCodeActionMap.prototype.addActions = function (symbolId, 
newActions) {
-                for (var _i = 0, newActions_1 = newActions; _i < 
newActions_1.length; _i++) {
-                    var newAction = newActions_1[_i];
-                    this.addAction(symbolId, newAction);
-                }
-            };
-            ImportCodeActionMap.prototype.getAllActions = function () {
-                var result = [];
-                for (var symbolId in this.symbolIdToActionMap) {
-                    result = ts.concatenate(result, 
this.symbolIdToActionMap[symbolId]);
-                }
-                return result;
-            };
-            ImportCodeActionMap.prototype.compareModuleSpecifiers = function 
(moduleSpecifier1, moduleSpecifier2) {
-                if (moduleSpecifier1 === moduleSpecifier2) {
-                    return ModuleSpecifierComparison.Equal;
-                }
-                if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
-                    return ModuleSpecifierComparison.Better;
-                }
-                if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
-                    return ModuleSpecifierComparison.Worse;
-                }
-                if (ts.isExternalModuleNameRelative(moduleSpecifier1) && 
ts.isExternalModuleNameRelative(moduleSpecifier2)) {
-                    var regex = new RegExp(ts.directorySeparator, "g");
-                    var moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
-                    var moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
-                    return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
-                        ? ModuleSpecifierComparison.Better
-                        : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
-                            ? ModuleSpecifierComparison.Equal
-                            : ModuleSpecifierComparison.Worse;
-                }
-                return ModuleSpecifierComparison.Equal;
-            };
-            return ImportCodeActionMap;
-        }());
-        codefix.registerCodeFix({
-            errorCodes: [ts.Diagnostics.Cannot_find_name_0.code],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var checker = context.program.getTypeChecker();
-                var allSourceFiles = context.program.getSourceFiles();
-                var useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
-                var token = ts.getTokenAtPosition(sourceFile, 
context.span.start);
-                var name = token.getText();
-                var symbolIdActionMap = new ImportCodeActionMap();
-                var cachedImportDeclarations = ts.createMap();
-                var cachedNewImportInsertPosition;
-                var allPotentialModules = checker.getAmbientModules();
-                for (var _i = 0, allSourceFiles_1 = allSourceFiles; _i < 
allSourceFiles_1.length; _i++) {
-                    var otherSourceFile = allSourceFiles_1[_i];
-                    if (otherSourceFile !== sourceFile && 
ts.isExternalOrCommonJsModule(otherSourceFile)) {
-                        allPotentialModules.push(otherSourceFile.symbol);
-                    }
-                }
-                var currentTokenMeaning = ts.getMeaningFromLocation(token);
-                for (var _a = 0, allPotentialModules_1 = allPotentialModules; 
_a < allPotentialModules_1.length; _a++) {
-                    var moduleSymbol = allPotentialModules_1[_a];
-                    context.cancellationToken.throwIfCancellationRequested();
-                    var defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
-                    if (defaultExport) {
-                        var localSymbol = 
ts.getLocalSymbolForExportDefault(defaultExport);
-                        if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
-                            var symbolId = getUniqueSymbolId(localSymbol);
-                            symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, true));
-                        }
-                    }
-                    var exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
-                    if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
-                        var symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
-                        symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
-                    }
-                }
-                return symbolIdActionMap.getAllActions();
-                function getImportDeclarations(moduleSymbol) {
-                    var moduleSymbolId = getUniqueSymbolId(moduleSymbol);
-                    if (cachedImportDeclarations[moduleSymbolId]) {
-                        return cachedImportDeclarations[moduleSymbolId];
-                    }
-                    var existingDeclarations = [];
-                    for (var _i = 0, _a = sourceFile.imports; _i < _a.length; 
_i++) {
-                        var importModuleSpecifier = _a[_i];
-                        var importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
-                        if (importSymbol === moduleSymbol) {
-                            
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
-                        }
-                    }
-                    cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
-                    return existingDeclarations;
-                    function getImportDeclaration(moduleSpecifier) {
-                        var node = moduleSpecifier;
-                        while (node) {
-                            if (node.kind === 235) {
-                                return node;
-                            }
-                            if (node.kind === 234) {
-                                return node;
-                            }
-                            node = node.parent;
-                        }
-                        return undefined;
-                    }
-                }
-                function getUniqueSymbolId(symbol) {
-                    if (symbol.flags & 8388608) {
-                        return 
ts.getSymbolId(checker.getAliasedSymbol(symbol));
-                    }
-                    return ts.getSymbolId(symbol);
-                }
-                function checkSymbolHasMeaning(symbol, meaning) {
-                    var declarations = symbol.getDeclarations();
-                    return declarations ? ts.some(symbol.declarations, 
function (decl) { return !!(ts.getMeaningFromDeclaration(decl) & meaning); }) : 
false;
-                }
-                function getCodeActionForImport(moduleSymbol, isDefault) {
-                    var existingDeclarations = 
getImportDeclarations(moduleSymbol);
-                    if (existingDeclarations.length > 0) {
-                        return 
getCodeActionsForExistingImport(existingDeclarations);
-                    }
-                    else {
-                        return [getCodeActionForNewImport()];
-                    }
-                    function getCodeActionsForExistingImport(declarations) {
-                        var actions = [];
-                        var namespaceImportDeclaration;
-                        var namedImportDeclaration;
-                        var existingModuleSpecifier;
-                        for (var _i = 0, declarations_11 = declarations; _i < 
declarations_11.length; _i++) {
-                            var declaration = declarations_11[_i];
-                            if (declaration.kind === 235) {
-                                var namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
-                                if (namedBindings && namedBindings.kind === 
237) {
-                                    namespaceImportDeclaration = declaration;
-                                }
-                                else {
-                                    namedImportDeclaration = declaration;
-                                }
-                                existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
-                            }
-                            else {
-                                namespaceImportDeclaration = declaration;
-                                existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
-                            }
-                        }
-                        if (namespaceImportDeclaration) {
-                            
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
-                        }
-                        if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
-                            (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
-                            var textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
-                            var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
-                            
actions.push(createCodeAction(ts.Diagnostics.Add_0_to_existing_import_declaration_from_1,
 [name, moduleSpecifierWithoutQuotes], textChange.newText, textChange.span, 
sourceFile.fileName, "InsertingIntoExistingImport", 
moduleSpecifierWithoutQuotes));
-                        }
-                        else {
-                            
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
-                        }
-                        return actions;
-                        function 
getModuleSpecifierFromImportEqualsDeclaration(declaration) {
-                            if (declaration.moduleReference && 
declaration.moduleReference.kind === 245) {
-                                return 
declaration.moduleReference.expression.getText();
-                            }
-                            return declaration.moduleReference.getText();
-                        }
-                        function getTextChangeForImportClause(importClause) {
-                            var newImportText = isDefault ? "default as " + 
name : name;
-                            var importList = importClause.namedBindings;
-                            if (!importList && importClause.name) {
-                                var start = importClause.name.getEnd();
-                                return {
-                                    newText: ", { " + newImportText + " }",
-                                    span: { start: start, length: 0 }
-                                };
-                            }
-                            if (importList.elements.length === 0) {
-                                var start = importList.getStart();
-                                return {
-                                    newText: "{ " + newImportText + " }",
-                                    span: { start: start, length: 
importList.getEnd() - start }
-                                };
-                            }
-                            var insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
-                            var startLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getStart());
-                            var endLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getEnd());
-                            var oneImportPerLine = endLine - startLine > 
importList.elements.length;
-                            return {
-                                newText: "," + (oneImportPerLine ? 
context.newLineCharacter : " ") + newImportText,
-                                span: { start: insertPoint, length: 0 }
-                            };
-                        }
-                        function getCodeActionForNamespaceImport(declaration) {
-                            var namespacePrefix;
-                            if (declaration.kind === 235) {
-                                namespacePrefix = 
declaration.importClause.namedBindings.name.getText();
-                            }
-                            else {
-                                namespacePrefix = declaration.name.getText();
-                            }
-                            namespacePrefix = ts.stripQuotes(namespacePrefix);
-                            return 
createCodeAction(ts.Diagnostics.Change_0_to_1, [name, namespacePrefix + "." + 
name], namespacePrefix + ".", { start: token.getStart(), length: 0 }, 
sourceFile.fileName, "CodeChange");
-                        }
-                    }
-                    function getCodeActionForNewImport(moduleSpecifier) {
-                        if (!cachedNewImportInsertPosition) {
-                            var lastModuleSpecifierEnd = -1;
-                            for (var _i = 0, _a = sourceFile.imports; _i < 
_a.length; _i++) {
-                                var moduleSpecifier_1 = _a[_i];
-                                var end = moduleSpecifier_1.getEnd();
-                                if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
-                                    lastModuleSpecifierEnd = end;
-                                }
-                            }
-                            cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
-                        }
-                        var getCanonicalFileName = 
ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
-                        var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
-                        var importStatementText = isDefault
-                            ? "import " + name + " from \"" + 
moduleSpecifierWithoutQuotes + "\""
-                            : "import { " + name + " } from \"" + 
moduleSpecifierWithoutQuotes + "\"";
-                        var newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
-                            ? importStatementText + ";" + 
context.newLineCharacter + context.newLineCharacter
-                            : "" + context.newLineCharacter + 
importStatementText + ";";
-                        return 
createCodeAction(ts.Diagnostics.Import_0_from_1, [name, "\"" + 
moduleSpecifierWithoutQuotes + "\""], newText, { start: 
cachedNewImportInsertPosition, length: 0 }, sourceFile.fileName, "NewImport", 
moduleSpecifierWithoutQuotes);
-                        function getModuleSpecifierForNewImport() {
-                            var fileName = sourceFile.path;
-                            var moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
-                            var sourceDirectory = 
ts.getDirectoryPath(fileName);
-                            var options = context.program.getCompilerOptions();
-                            return tryGetModuleNameFromAmbientModule() ||
-                                tryGetModuleNameFromBaseUrl() ||
-                                tryGetModuleNameFromRootDirs() ||
-                                tryGetModuleNameFromTypeRoots() ||
-                                tryGetModuleNameAsNodeModule() ||
-                                
ts.removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
-                            function tryGetModuleNameFromAmbientModule() {
-                                if (moduleSymbol.valueDeclaration.kind !== 
261) {
-                                    return moduleSymbol.name;
-                                }
-                            }
-                            function tryGetModuleNameFromBaseUrl() {
-                                if (!options.baseUrl) {
-                                    return undefined;
-                                }
-                                var normalizedBaseUrl = 
ts.toPath(options.baseUrl, ts.getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
-                                var relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
-                                if (!relativeName) {
-                                    return undefined;
-                                }
-                                relativeName = 
removeExtensionAndIndexPostFix(relativeName);
-                                if (options.paths) {
-                                    for (var key in options.paths) {
-                                        for (var _i = 0, _a = 
options.paths[key]; _i < _a.length; _i++) {
-                                            var pattern = _a[_i];
-                                            var indexOfStar = 
pattern.indexOf("*");
-                                            if (indexOfStar === 0 && 
pattern.length === 1) {
-                                                continue;
-                                            }
-                                            else if (indexOfStar !== -1) {
-                                                var prefix = pattern.substr(0, 
indexOfStar);
-                                                var suffix = 
pattern.substr(indexOfStar + 1);
-                                                if (relativeName.length >= 
prefix.length + suffix.length &&
-                                                    
ts.startsWith(relativeName, prefix) &&
-                                                    ts.endsWith(relativeName, 
suffix)) {
-                                                    var matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
-                                                    return key.replace("\*", 
matchedStar);
-                                                }
-                                            }
-                                            else if (pattern === relativeName) 
{
-                                                return key;
-                                            }
-                                        }
-                                    }
-                                }
-                                return relativeName;
-                            }
-                            function tryGetModuleNameFromRootDirs() {
-                                if (options.rootDirs) {
-                                    var normalizedRootDirs = 
ts.map(options.rootDirs, function (rootDir) { return ts.toPath(rootDir, 
undefined, getCanonicalFileName); });
-                                    var normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
-                                    var normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
-                                    if (normalizedTargetPath !== undefined) {
-                                        var relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
-                                        return 
ts.removeFileExtension(relativePath);
-                                    }
-                                }
-                                return undefined;
-                            }
-                            function tryGetModuleNameFromTypeRoots() {
-                                var typeRoots = 
ts.getEffectiveTypeRoots(options, context.host);
-                                if (typeRoots) {
-                                    var normalizedTypeRoots = 
ts.map(typeRoots, function (typeRoot) { return ts.toPath(typeRoot, undefined, 
getCanonicalFileName); });
-                                    for (var _i = 0, normalizedTypeRoots_1 = 
normalizedTypeRoots; _i < normalizedTypeRoots_1.length; _i++) {
-                                        var typeRoot = 
normalizedTypeRoots_1[_i];
-                                        if (ts.startsWith(moduleFileName, 
typeRoot)) {
-                                            var relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
-                                            return 
removeExtensionAndIndexPostFix(relativeFileName);
-                                        }
-                                    }
-                                }
-                            }
-                            function tryGetModuleNameAsNodeModule() {
-                                if (ts.getEmitModuleResolutionKind(options) 
!== ts.ModuleResolutionKind.NodeJs) {
-                                    return undefined;
-                                }
-                                var indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
-                                if (indexOfNodeModules < 0) {
-                                    return undefined;
-                                }
-                                var relativeFileName;
-                                if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
-                                    relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13);
-                                }
-                                else {
-                                    relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
-                                }
-                                relativeFileName = 
ts.removeFileExtension(relativeFileName);
-                                if (ts.endsWith(relativeFileName, "/index")) {
-                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                }
-                                else {
-                                    try {
-                                        var moduleDirectory = 
ts.getDirectoryPath(moduleFileName);
-                                        var packageJsonContent = 
JSON.parse(context.host.readFile(ts.combinePaths(moduleDirectory, 
"package.json")));
-                                        if (packageJsonContent) {
-                                            var mainFile = 
packageJsonContent.main || packageJsonContent.typings;
-                                            if (mainFile) {
-                                                var mainExportFile = 
ts.toPath(mainFile, moduleDirectory, getCanonicalFileName);
-                                                if 
(ts.removeFileExtension(mainExportFile) === 
ts.removeFileExtension(moduleFileName)) {
-                                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                                }
-                                            }
-                                        }
-                                    }
-                                    catch (e) { }
-                                }
-                                return relativeFileName;
-                            }
-                        }
-                        function getPathRelativeToRootDirs(path, rootDirs) {
-                            for (var _i = 0, rootDirs_2 = rootDirs; _i < 
rootDirs_2.length; _i++) {
-                                var rootDir = rootDirs_2[_i];
-                                var relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
-                                if (relativeName !== undefined) {
-                                    return relativeName;
-                                }
-                            }
-                            return undefined;
-                        }
-                        function removeExtensionAndIndexPostFix(fileName) {
-                            fileName = ts.removeFileExtension(fileName);
-                            if (ts.endsWith(fileName, "/index")) {
-                                fileName = fileName.substr(0, fileName.length 
- 6);
-                            }
-                            return fileName;
-                        }
-                        function getRelativePath(path, directoryPath) {
-                            var relativePath = 
ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
-                            return ts.moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
-                        }
-                        function tryRemoveParentDirectoryName(path, 
parentDirectory) {
-                            var index = path.indexOf(parentDirectory);
-                            if (index === 0) {
-                                return ts.endsWith(parentDirectory, 
ts.directorySeparator)
-                                    ? path.substring(parentDirectory.length)
-                                    : path.substring(parentDirectory.length + 
1);
-                            }
-                            return undefined;
-                        }
-                    }
-                }
-                function createCodeAction(description, diagnosticArgs, 
newText, span, fileName, kind, moduleSpecifier) {
-                    return {
-                        description: ts.formatMessage.apply(undefined, 
[undefined, description].concat(diagnosticArgs)),
-                        changes: [{ fileName: fileName, textChanges: [{ 
newText: newText, span: span }] }],
-                        kind: kind,
-                        moduleSpecifier: moduleSpecifier
-                    };
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        codefix.registerCodeFix({
-            errorCodes: [
-                ts.Diagnostics._0_is_declared_but_never_used.code,
-                ts.Diagnostics.Property_0_is_declared_but_never_used.code
-            ],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var start = context.span.start;
-                var token = ts.getTokenAtPosition(sourceFile, start);
-                if (token.kind === 20) {
-                    token = ts.getTokenAtPosition(sourceFile, start + 1);
-                }
-                switch (token.kind) {
-                    case 70:
-                        switch (token.parent.kind) {
-                            case 223:
-                                switch (token.parent.parent.parent.kind) {
-                                    case 211:
-                                        var forStatement = 
token.parent.parent.parent;
-                                        var forInitializer = 
forStatement.initializer;
-                                        if (forInitializer.declarations.length 
=== 1) {
-                                            return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
-                                        }
-                                        else {
-                                            return 
removeSingleItem(forInitializer.declarations, token);
-                                        }
-                                    case 213:
-                                        var forOfStatement = 
token.parent.parent.parent;
-                                        if (forOfStatement.initializer.kind 
=== 224) {
-                                            var forOfInitializer = 
forOfStatement.initializer;
-                                            return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
-                                        }
-                                        break;
-                                    case 212:
-                                        return undefined;
-                                    case 256:
-                                        var catchClause = token.parent.parent;
-                                        var parameter = 
catchClause.variableDeclaration.getChildren()[0];
-                                        return createCodeFix("", 
parameter.pos, parameter.end - parameter.pos);
-                                    default:
-                                        var variableStatement = 
token.parent.parent.parent;
-                                        if 
(variableStatement.declarationList.declarations.length === 1) {
-                                            return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
-                                        }
-                                        else {
-                                            var declarations = 
variableStatement.declarationList.declarations;
-                                            return 
removeSingleItem(declarations, token);
-                                        }
-                                }
-                            case 143:
-                                var typeParameters = 
token.parent.parent.typeParameters;
-                                if (typeParameters.length === 1) {
-                                    return createCodeFix("", token.parent.pos 
- 1, token.parent.end - token.parent.pos + 2);
-                                }
-                                else {
-                                    return removeSingleItem(typeParameters, 
token);
-                                }
-                            case 144:
-                                var functionDeclaration = token.parent.parent;
-                                if (functionDeclaration.parameters.length === 
1) {
-                                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(functionDeclaration.parameters, token);
-                                }
-                            case 234:
-                                var importEquals = 
findImportDeclaration(token);
-                                return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
-                            case 239:
-                                var namedImports = token.parent.parent;
-                                if (namedImports.elements.length === 1) {
-                                    var importSpec = 
findImportDeclaration(token);
-                                    return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(namedImports.elements, token);
-                                }
-                            case 236:
-                                var importClause = token.parent;
-                                if (!importClause.namedBindings) {
-                                    var importDecl = 
findImportDeclaration(importClause);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
-                                }
-                            case 237:
-                                var namespaceImport = token.parent;
-                                if (namespaceImport.name == token && 
!namespaceImport.parent.name) {
-                                    var importDecl = 
findImportDeclaration(namespaceImport);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    var start_4 = 
namespaceImport.parent.name.end;
-                                    return createCodeFix("", start_4, 
namespaceImport.parent.namedBindings.end - start_4);
-                                }
-                        }
-                        break;
-                    case 147:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                    case 237:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                if (ts.isDeclarationName(token)) {
-                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                else if (ts.isLiteralComputedPropertyDeclarationName(token)) {
-                    return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
-                }
-                else {
-                    return undefined;
-                }
-                function findImportDeclaration(token) {
-                    var importDecl = token;
-                    while (importDecl.kind != 235 && importDecl.parent) {
-                        importDecl = importDecl.parent;
-                    }
-                    return importDecl;
-                }
-                function createCodeFix(newText, start, length) {
-                    return [{
-                            description: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Remove_unused_identifiers),
-                            changes: [{
-                                    fileName: sourceFile.fileName,
-                                    textChanges: [{ newText: newText, span: { 
start: start, length: length } }]
-                                }]
-                        }];
-                }
-                function removeSingleItem(elements, token) {
-                    if (elements[0] === token.parent) {
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
-                    }
-                    else {
-                        return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
-                    }
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-var ts;
-(function (ts) {
     ts.servicesVersion = "0.5";
     function createNode(kind, pos, end, parent) {
         var node = kind >= 141 ? new NodeObject(kind, pos, end) :
@@ -63374,6 +63337,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SymbolObject.prototype.getJsDocTags = function () {
+            if (this.tags === undefined) {
+                this.tags = 
ts.JsDoc.getJsDocTagsFromDeclarations(this.declarations);
+            }
+            return this.tags;
+        };
         return SymbolObject;
     }());
     var TokenObject = (function (_super) {
@@ -63457,6 +63426,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SignatureObject.prototype.getJsDocTags = function () {
+            if (this.jsDocTags === undefined) {
+                this.jsDocTags = this.declaration ? 
ts.JsDoc.getJsDocTagsFromDeclarations([this.declaration]) : [];
+            }
+            return this.jsDocTags;
+        };
         return SignatureObject;
     }());
     var SourceFileObject = (function (_super) {
@@ -63553,8 +63528,8 @@ var ts;
                             else {
                                 declarations.push(functionDeclaration);
                             }
-                            ts.forEachChild(node, visit);
                         }
+                        ts.forEachChild(node, visit);
                         break;
                     case 226:
                     case 197:
@@ -64060,7 +64035,8 @@ var ts;
                                 kindModifiers: 
ts.ScriptElementKindModifier.none,
                                 textSpan: ts.createTextSpan(node.getStart(), 
node.getWidth()),
                                 displayParts: 
ts.typeToDisplayParts(typeChecker, type, ts.getContainerNode(node)),
-                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined
+                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined,
+                                tags: type.symbol ? type.symbol.getJsDocTags() 
: undefined
                             };
                         }
                 }
@@ -64072,7 +64048,8 @@ var ts;
                 kindModifiers: ts.SymbolDisplay.getSymbolModifiers(symbol),
                 textSpan: ts.createTextSpan(node.getStart(), node.getWidth()),
                 displayParts: displayPartsDocumentationsAndKind.displayParts,
-                documentation: displayPartsDocumentationsAndKind.documentation
+                documentation: displayPartsDocumentationsAndKind.documentation,
+                tags: displayPartsDocumentationsAndKind.tags
             };
         }
         function getDefinitionAtPosition(fileName, position) {
@@ -64358,7 +64335,7 @@ var ts;
                 return false;
             }
             var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
-            if (ts.isInString(sourceFile, position) || 
ts.isInComment(sourceFile, position)) {
+            if (ts.isInString(sourceFile, position)) {
                 return false;
             }
             if (ts.isInsideJsxElementOrAttribute(sourceFile, position)) {
@@ -64537,22 +64514,160 @@ var ts;
 (function (ts) {
     var server;
     (function (server) {
+        var TextStorage = (function () {
+            function TextStorage(host, fileName) {
+                this.host = host;
+                this.fileName = fileName;
+                this.svcVersion = 0;
+                this.textVersion = 0;
+            }
+            TextStorage.prototype.getVersion = function () {
+                return this.svc
+                    ? "SVC-" + this.svcVersion + "-" + 
this.svc.getSnapshot().version
+                    : "Text-" + this.textVersion;
+            };
+            TextStorage.prototype.hasScriptVersionCache = function () {
+                return this.svc !== undefined;
+            };
+            TextStorage.prototype.useScriptVersionCache = function (newText) {
+                this.switchToScriptVersionCache(newText);
+            };
+            TextStorage.prototype.useText = function (newText) {
+                this.svc = undefined;
+                this.setText(newText);
+            };
+            TextStorage.prototype.edit = function (start, end, newText) {
+                this.switchToScriptVersionCache().edit(start, end - start, 
newText);
+            };
+            TextStorage.prototype.reload = function (text) {
+                if (this.svc) {
+                    this.svc.reload(text);
+                }
+                else {
+                    this.setText(text);
+                }
+            };
+            TextStorage.prototype.reloadFromFile = function (tempFileName) {
+                if (this.svc || (tempFileName !== this.fileName)) {
+                    this.reload(this.getFileText(tempFileName));
+                }
+                else {
+                    this.setText(undefined);
+                }
+            };
+            TextStorage.prototype.getSnapshot = function () {
+                return this.svc
+                    ? this.svc.getSnapshot()
+                    : ts.ScriptSnapshot.fromString(this.getOrLoadText());
+            };
+            TextStorage.prototype.getLineInfo = function (line) {
+                return 
this.switchToScriptVersionCache().getSnapshot().index.lineNumberToInfo(line);
+            };
+            TextStorage.prototype.lineToTextSpan = function (line) {
+                if (!this.svc) {
+                    var lineMap = this.getLineMap();
+                    var start = lineMap[line];
+                    var end = line + 1 < lineMap.length ? lineMap[line + 1] : 
this.text.length;
+                    return ts.createTextSpanFromBounds(start, end);
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineInfo = index.lineNumberToInfo(line + 1);
+                var len;
+                if (lineInfo.leaf) {
+                    len = lineInfo.leaf.text.length;
+                }
+                else {
+                    var nextLineInfo = index.lineNumberToInfo(line + 2);
+                    len = nextLineInfo.offset - lineInfo.offset;
+                }
+                return ts.createTextSpan(lineInfo.offset, len);
+            };
+            TextStorage.prototype.lineOffsetToPosition = function (line, 
offset) {
+                if (!this.svc) {
+                    return 
ts.computePositionOfLineAndCharacter(this.getLineMap(), line - 1, offset - 1);
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineInfo = index.lineNumberToInfo(line);
+                return (lineInfo.offset + offset - 1);
+            };
+            TextStorage.prototype.positionToLineOffset = function (position) {
+                if (!this.svc) {
+                    var _a = 
ts.computeLineAndCharacterOfPosition(this.getLineMap(), position), line = 
_a.line, character = _a.character;
+                    return { line: line + 1, offset: character + 1 };
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineOffset = index.charOffsetToLineNumberAndPos(position);
+                return { line: lineOffset.line, offset: lineOffset.offset + 1 
};
+            };
+            TextStorage.prototype.getFileText = function (tempFileName) {
+                return this.host.readFile(tempFileName || this.fileName) || "";
+            };
+            TextStorage.prototype.ensureNoScriptVersionCache = function () {
+                ts.Debug.assert(!this.svc, "ScriptVersionCache should not be 
set");
+            };
+            TextStorage.prototype.switchToScriptVersionCache = function 
(newText) {
+                if (!this.svc) {
+                    this.svc = server.ScriptVersionCache.fromString(this.host, 
newText !== undefined ? newText : this.getOrLoadText());
+                    this.svcVersion++;
+                    this.text = undefined;
+                }
+                return this.svc;
+            };
+            TextStorage.prototype.getOrLoadText = function () {
+                this.ensureNoScriptVersionCache();
+                if (this.text === undefined) {
+                    this.setText(this.getFileText());
+                }
+                return this.text;
+            };
+            TextStorage.prototype.getLineMap = function () {
+                this.ensureNoScriptVersionCache();
+                return this.lineMap || (this.lineMap = 
ts.computeLineStarts(this.getOrLoadText()));
+            };
+            TextStorage.prototype.setText = function (newText) {
+                this.ensureNoScriptVersionCache();
+                if (newText === undefined || this.text !== newText) {
+                    this.text = newText;
+                    this.lineMap = undefined;
+                    this.textVersion++;
+                }
+            };
+            return TextStorage;
+        }());
+        server.TextStorage = TextStorage;
         var ScriptInfo = (function () {
-            function ScriptInfo(host, fileName, content, scriptKind, isOpen, 
hasMixedContent) {
-                if (isOpen === void 0) { isOpen = false; }
+            function ScriptInfo(host, fileName, scriptKind, hasMixedContent) {
                 if (hasMixedContent === void 0) { hasMixedContent = false; }
                 this.host = host;
                 this.fileName = fileName;
                 this.scriptKind = scriptKind;
-                this.isOpen = isOpen;
                 this.hasMixedContent = hasMixedContent;
                 this.containingProjects = [];
                 this.path = ts.toPath(fileName, host.getCurrentDirectory(), 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames));
-                this.svc = server.ScriptVersionCache.fromString(host, content);
+                this.textStorage = new TextStorage(host, fileName);
+                if (hasMixedContent) {
+                    this.textStorage.reload("");
+                }
                 this.scriptKind = scriptKind
                     ? scriptKind
                     : ts.getScriptKindFromFileName(fileName);
             }
+            ScriptInfo.prototype.isScriptOpen = function () {
+                return this.isOpen;
+            };
+            ScriptInfo.prototype.open = function (newText) {
+                this.isOpen = true;
+                this.textStorage.useScriptVersionCache(newText);
+                this.markContainingProjectsAsDirty();
+            };
+            ScriptInfo.prototype.close = function () {
+                this.isOpen = false;
+                this.textStorage.useText(this.hasMixedContent ? "" : 
undefined);
+                this.markContainingProjectsAsDirty();
+            };
+            ScriptInfo.prototype.getSnapshot = function () {
+                return this.textStorage.getSnapshot();
+            };
             ScriptInfo.prototype.getFormatCodeSettings = function () {
                 return this.formatCodeSettings;
             };
@@ -64606,6 +64721,12 @@ var ts;
                 }
                 return this.containingProjects[0];
             };
+            ScriptInfo.prototype.registerFileUpdate = function () {
+                for (var _i = 0, _a = this.containingProjects; _i < _a.length; 
_i++) {
+                    var p = _a[_i];
+                    p.registerFileUpdate(this.path);
+                }
+            };
             ScriptInfo.prototype.setFormatOptions = function (formatSettings) {
                 if (formatSettings) {
                     if (!this.formatCodeSettings) {
@@ -64625,14 +64746,14 @@ var ts;
                 }
             };
             ScriptInfo.prototype.getLatestVersion = function () {
-                return this.svc.latestVersion().toString();
+                return this.textStorage.getVersion();
             };
             ScriptInfo.prototype.reload = function (script) {
-                this.svc.reload(script);
+                this.textStorage.reload(script);
                 this.markContainingProjectsAsDirty();
             };
             ScriptInfo.prototype.saveTo = function (fileName) {
-                var snap = this.snap();
+                var snap = this.textStorage.getSnapshot();
                 this.host.writeFile(fileName, snap.getText(0, 
snap.getLength()));
             };
             ScriptInfo.prototype.reloadFromFile = function (tempFileName) {
@@ -64640,19 +64761,15 @@ var ts;
                     this.reload("");
                 }
                 else {
-                    this.svc.reloadFromFile(tempFileName || this.fileName);
+                    this.textStorage.reloadFromFile(tempFileName);
                     this.markContainingProjectsAsDirty();
                 }
             };
-            ScriptInfo.prototype.snap = function () {
-                return this.svc.getSnapshot();
-            };
             ScriptInfo.prototype.getLineInfo = function (line) {
-                var snap = this.snap();
-                return snap.index.lineNumberToInfo(line);
+                return this.textStorage.getLineInfo(line);
             };
             ScriptInfo.prototype.editContent = function (start, end, newText) {
-                this.svc.edit(start, end - start, newText);
+                this.textStorage.edit(start, end, newText);
                 this.markContainingProjectsAsDirty();
             };
             ScriptInfo.prototype.markContainingProjectsAsDirty = function () {
@@ -64662,27 +64779,13 @@ var ts;
                 }
             };
             ScriptInfo.prototype.lineToTextSpan = function (line) {
-                var index = this.snap().index;
-                var lineInfo = index.lineNumberToInfo(line + 1);
-                var len;
-                if (lineInfo.leaf) {
-                    len = lineInfo.leaf.text.length;
-                }
-                else {
-                    var nextLineInfo = index.lineNumberToInfo(line + 2);
-                    len = nextLineInfo.offset - lineInfo.offset;
-                }
-                return ts.createTextSpan(lineInfo.offset, len);
+                return this.textStorage.lineToTextSpan(line);
             };
             ScriptInfo.prototype.lineOffsetToPosition = function (line, 
offset) {
-                var index = this.snap().index;
-                var lineInfo = index.lineNumberToInfo(line);
-                return (lineInfo.offset + offset - 1);
+                return this.textStorage.lineOffsetToPosition(line, offset);
             };
             ScriptInfo.prototype.positionToLineOffset = function (position) {
-                var index = this.snap().index;
-                var lineOffset = index.charOffsetToLineNumberAndPos(position);
-                return { line: lineOffset.line, offset: lineOffset.offset + 1 
};
+                return this.textStorage.positionToLineOffset(position);
             };
             return ScriptInfo;
         }());
@@ -64738,15 +64841,15 @@ var ts;
                 var compilerOptions = this.getCompilationSettings();
                 var lastDeletedFileName = 
this.project.projectService.lastDeletedFile && 
this.project.projectService.lastDeletedFile.fileName;
                 for (var _i = 0, names_2 = names; _i < names_2.length; _i++) {
-                    var name_49 = names_2[_i];
-                    var resolution = newResolutions[name_49];
+                    var name_51 = names_2[_i];
+                    var resolution = newResolutions[name_51];
                     if (!resolution) {
-                        var existingResolution = currentResolutionsInFile && 
currentResolutionsInFile[name_49];
+                        var existingResolution = currentResolutionsInFile && 
currentResolutionsInFile[name_51];
                         if (moduleResolutionIsValid(existingResolution)) {
                             resolution = existingResolution;
                         }
                         else {
-                            newResolutions[name_49] = resolution = 
loader(name_49, containingFile, compilerOptions, this);
+                            newResolutions[name_51] = resolution = 
loader(name_51, containingFile, compilerOptions, this);
                         }
                         if (logChanges && 
this.filesWithChangedSetOfUnresolvedImports && 
!resolutionIsEqualTo(existingResolution, resolution)) {
                             
this.filesWithChangedSetOfUnresolvedImports.push(path);
@@ -64786,6 +64889,9 @@ var ts;
                     return resolution.failedLookupLocations.length === 0;
                 }
             };
+            LSHost.prototype.getNewLine = function () {
+                return this.host.newLine;
+            };
             LSHost.prototype.getProjectVersion = function () {
                 return this.project.getProjectVersion();
             };
@@ -64811,7 +64917,7 @@ var ts;
             LSHost.prototype.getScriptSnapshot = function (filename) {
                 var scriptInfo = this.project.getScriptInfoLSHost(filename);
                 if (scriptInfo) {
-                    return scriptInfo.snap();
+                    return scriptInfo.getSnapshot();
                 }
             };
             LSHost.prototype.getScriptFileNames = function () {
@@ -65027,10 +65133,15 @@ var ts;
             function AbstractBuilder(project, ctor) {
                 this.project = project;
                 this.ctor = ctor;
-                this.fileInfos = ts.createFileMap();
             }
+            AbstractBuilder.prototype.getFileInfos = function () {
+                return this.fileInfos_doNotAccessDirectly || 
(this.fileInfos_doNotAccessDirectly = ts.createFileMap());
+            };
+            AbstractBuilder.prototype.clear = function () {
+                this.fileInfos_doNotAccessDirectly = undefined;
+            };
             AbstractBuilder.prototype.getFileInfo = function (path) {
-                return this.fileInfos.get(path);
+                return this.getFileInfos().get(path);
             };
             AbstractBuilder.prototype.getOrCreateFileInfo = function (path) {
                 var fileInfo = this.getFileInfo(path);
@@ -65042,16 +65153,16 @@ var ts;
                 return fileInfo;
             };
             AbstractBuilder.prototype.getFileInfoPaths = function () {
-                return this.fileInfos.getKeys();
+                return this.getFileInfos().getKeys();
             };
             AbstractBuilder.prototype.setFileInfo = function (path, info) {
-                this.fileInfos.set(path, info);
+                this.getFileInfos().set(path, info);
             };
             AbstractBuilder.prototype.removeFileInfo = function (path) {
-                this.fileInfos.remove(path);
+                this.getFileInfos().remove(path);
             };
             AbstractBuilder.prototype.forEachFileInfo = function (action) {
-                this.fileInfos.forEachValue(function (_path, value) { return 
action(value); });
+                this.getFileInfos().forEachValue(function (_path, value) { 
return action(value); });
             };
             AbstractBuilder.prototype.emitFile = function (scriptInfo, 
writeFile) {
                 var fileInfo = this.getFileInfo(scriptInfo.path);
@@ -65097,7 +65208,7 @@ var ts;
         var ModuleBuilderFileInfo = (function (_super) {
             __extends(ModuleBuilderFileInfo, _super);
             function ModuleBuilderFileInfo() {
-                var _this = _super.apply(this, arguments) || this;
+                var _this = _super !== null && _super.apply(this, arguments) 
|| this;
                 _this.references = [];
                 _this.referencedBy = [];
                 return _this;
@@ -65153,6 +65264,10 @@ var ts;
                 _this.project = project;
                 return _this;
             }
+            ModuleBuilder.prototype.clear = function () {
+                this.projectVersionForDependencyGraph = undefined;
+                _super.prototype.clear.call(this);
+            };
             ModuleBuilder.prototype.getReferencedFileInfos = function 
(fileInfo) {
                 var _this = this;
                 if 
(!fileInfo.isExternalModuleOrHasOnlyAmbientExternalModules()) {
@@ -65349,107 +65464,6 @@ var ts;
             return UnresolvedImportsMap;
         }());
         server.UnresolvedImportsMap = UnresolvedImportsMap;
-        var emptyResult = [];
-        var getEmptyResult = function () { return emptyResult; };
-        var getUndefined = function () { return undefined; };
-        var emptyEncodedSemanticClassifications = { spans: emptyResult, 
endOfLineState: 0 };
-        function createNoSemanticFeaturesWrapper(realLanguageService) {
-            return {
-                cleanupSemanticCache: ts.noop,
-                getSyntacticDiagnostics: function (fileName) {
-                    return fileName ? 
realLanguageService.getSyntacticDiagnostics(fileName) : emptyResult;
-                },
-                getSemanticDiagnostics: getEmptyResult,
-                getCompilerOptionsDiagnostics: function () {
-                    return realLanguageService.getCompilerOptionsDiagnostics();
-                },
-                getSyntacticClassifications: function (fileName, span) {
-                    return 
realLanguageService.getSyntacticClassifications(fileName, span);
-                },
-                getEncodedSyntacticClassifications: function (fileName, span) {
-                    return 
realLanguageService.getEncodedSyntacticClassifications(fileName, span);
-                },
-                getSemanticClassifications: getEmptyResult,
-                getEncodedSemanticClassifications: function () {
-                    return emptyEncodedSemanticClassifications;
-                },
-                getCompletionsAtPosition: getUndefined,
-                findReferences: getEmptyResult,
-                getCompletionEntryDetails: getUndefined,
-                getQuickInfoAtPosition: getUndefined,
-                findRenameLocations: getEmptyResult,
-                getNameOrDottedNameSpan: function (fileName, startPos, endPos) 
{
-                    return 
realLanguageService.getNameOrDottedNameSpan(fileName, startPos, endPos);
-                },
-                getBreakpointStatementAtPosition: function (fileName, 
position) {
-                    return 
realLanguageService.getBreakpointStatementAtPosition(fileName, position);
-                },
-                getBraceMatchingAtPosition: function (fileName, position) {
-                    return 
realLanguageService.getBraceMatchingAtPosition(fileName, position);
-                },
-                getSignatureHelpItems: getUndefined,
-                getDefinitionAtPosition: getEmptyResult,
-                getRenameInfo: function () { return ({
-                    canRename: false,
-                    localizedErrorMessage: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Language_service_is_disabled),
-                    displayName: undefined,
-                    fullDisplayName: undefined,
-                    kind: undefined,
-                    kindModifiers: undefined,
-                    triggerSpan: undefined
-                }); },
-                getTypeDefinitionAtPosition: getUndefined,
-                getReferencesAtPosition: getEmptyResult,
-                getDocumentHighlights: getEmptyResult,
-                getOccurrencesAtPosition: getEmptyResult,
-                getNavigateToItems: getEmptyResult,
-                getNavigationBarItems: function (fileName) {
-                    return realLanguageService.getNavigationBarItems(fileName);
-                },
-                getNavigationTree: function (fileName) {
-                    return realLanguageService.getNavigationTree(fileName);
-                },
-                getOutliningSpans: function (fileName) {
-                    return realLanguageService.getOutliningSpans(fileName);
-                },
-                getTodoComments: getEmptyResult,
-                getIndentationAtPosition: function (fileName, position, 
options) {
-                    return 
realLanguageService.getIndentationAtPosition(fileName, position, options);
-                },
-                getFormattingEditsForRange: function (fileName, start, end, 
options) {
-                    return 
realLanguageService.getFormattingEditsForRange(fileName, start, end, options);
-                },
-                getFormattingEditsForDocument: function (fileName, options) {
-                    return 
realLanguageService.getFormattingEditsForDocument(fileName, options);
-                },
-                getFormattingEditsAfterKeystroke: function (fileName, 
position, key, options) {
-                    return 
realLanguageService.getFormattingEditsAfterKeystroke(fileName, position, key, 
options);
-                },
-                getDocCommentTemplateAtPosition: function (fileName, position) 
{
-                    return 
realLanguageService.getDocCommentTemplateAtPosition(fileName, position);
-                },
-                isValidBraceCompletionAtPosition: function (fileName, 
position, openingBrace) {
-                    return 
realLanguageService.isValidBraceCompletionAtPosition(fileName, position, 
openingBrace);
-                },
-                getEmitOutput: getUndefined,
-                getProgram: function () {
-                    return realLanguageService.getProgram();
-                },
-                getNonBoundSourceFile: function (fileName) {
-                    return realLanguageService.getNonBoundSourceFile(fileName);
-                },
-                dispose: function () {
-                    return realLanguageService.dispose();
-                },
-                getCompletionEntrySymbol: getUndefined,
-                getImplementationAtPosition: getEmptyResult,
-                getSourceFile: function (fileName) {
-                    return realLanguageService.getSourceFile(fileName);
-                },
-                getCodeFixesAtPosition: getEmptyResult
-            };
-        }
-        server.createNoSemanticFeaturesWrapper = 
createNoSemanticFeaturesWrapper;
         var Project = (function () {
             function Project(projectName, projectKind, projectService, 
documentRegistry, hasExplicitListOfFiles, languageServiceEnabled, 
compilerOptions, compileOnSaveEnabled) {
                 this.projectName = projectName;
@@ -65474,13 +65488,10 @@ var ts;
                 else if (hasExplicitListOfFiles) {
                     this.compilerOptions.allowNonTsExtensions = true;
                 }
-                if (this.projectKind === ProjectKind.Inferred || 
this.projectKind === ProjectKind.External) {
-                    this.compilerOptions.noEmitForJsFiles = true;
-                }
+                this.setInternalCompilerOptionsForEmittingJsFiles();
                 this.lsHost = new server.LSHost(this.projectService.host, 
this, this.projectService.cancellationToken);
                 this.lsHost.setCompilationSettings(this.compilerOptions);
                 this.languageService = ts.createLanguageService(this.lsHost, 
this.documentRegistry);
-                this.noSemanticFeaturesLanguageService = 
createNoSemanticFeaturesWrapper(this.languageService);
                 if (!languageServiceEnabled) {
                     this.disableLanguageService();
                 }
@@ -65498,6 +65509,11 @@ var ts;
             Project.prototype.getCachedUnresolvedImportsPerFile_TestOnly = 
function () {
                 return this.cachedUnresolvedImportsPerFile;
             };
+            Project.prototype.setInternalCompilerOptionsForEmittingJsFiles = 
function () {
+                if (this.projectKind === ProjectKind.Inferred || 
this.projectKind === ProjectKind.External) {
+                    this.compilerOptions.noEmitForJsFiles = true;
+                }
+            };
             Project.prototype.getProjectErrors = function () {
                 return this.projectErrors;
             };
@@ -65506,9 +65522,7 @@ var ts;
                 if (ensureSynchronized) {
                     this.updateGraph();
                 }
-                return this.languageServiceEnabled
-                    ? this.languageService
-                    : this.noSemanticFeaturesLanguageService;
+                return this.languageService;
             };
             Project.prototype.getCompileOnSaveAffectedFileList = function 
(scriptInfo) {
                 if (!this.languageServiceEnabled) {
@@ -65557,7 +65571,7 @@ var ts;
                         info.detachFromProject(this);
                     }
                 }
-                else {
+                if (!this.program || !this.languageServiceEnabled) {
                     for (var _b = 0, _c = this.rootFiles; _b < _c.length; 
_b++) {
                         var root = _c[_b];
                         root.detachFromProject(this);
@@ -65582,7 +65596,9 @@ var ts;
                 if (this.rootFiles) {
                     for (var _i = 0, _a = this.rootFiles; _i < _a.length; 
_i++) {
                         var f = _a[_i];
-                        result.push(f.fileName);
+                        if (this.languageServiceEnabled || f.isScriptOpen()) {
+                            result.push(f.fileName);
+                        }
                     }
                     if (this.typingFiles) {
                         for (var _b = 0, _c = this.typingFiles; _b < 
_c.length; _b++) {
@@ -65598,6 +65614,9 @@ var ts;
             };
             Project.prototype.getScriptInfos = function () {
                 var _this = this;
+                if (!this.languageServiceEnabled) {
+                    return this.rootFiles;
+                }
                 return ts.map(this.program.getSourceFiles(), function 
(sourceFile) {
                     var scriptInfo = 
_this.projectService.getScriptInfoForPath(sourceFile.path);
                     if (!scriptInfo) {
@@ -65656,7 +65675,7 @@ var ts;
             };
             Project.prototype.containsFile = function (filename, requireOpen) {
                 var info = 
this.projectService.getScriptInfoForNormalizedPath(filename);
-                if (info && (info.isOpen || !requireOpen)) {
+                if (info && (info.isScriptOpen() || !requireOpen)) {
                     return this.containsScriptInfo(info);
                 }
             };
@@ -65681,6 +65700,9 @@ var ts;
                 }
                 this.markAsDirty();
             };
+            Project.prototype.registerFileUpdate = function (fileName) {
+                (this.updatedFileNames || (this.updatedFileNames = 
ts.createMap()))[fileName] = fileName;
+            };
             Project.prototype.markAsDirty = function () {
                 this.projectStateVersion++;
             };
@@ -65695,9 +65717,9 @@ var ts;
                 }
                 var unresolvedImports;
                 if (file.resolvedModules) {
-                    for (var name_50 in file.resolvedModules) {
-                        if (!file.resolvedModules[name_50] && 
!ts.isExternalModuleNameRelative(name_50)) {
-                            var trimmed = name_50.trim();
+                    for (var name_52 in file.resolvedModules) {
+                        if (!file.resolvedModules[name_52] && 
!ts.isExternalModuleNameRelative(name_52)) {
+                            var trimmed = name_52.trim();
                             var i = trimmed.indexOf("/");
                             if (i !== -1 && trimmed.charCodeAt(0) === 64) {
                                 i = trimmed.indexOf("/", i + 1);
@@ -65713,9 +65735,6 @@ var ts;
                 this.cachedUnresolvedImportsPerFile.set(file.path, 
unresolvedImports || server.emptyArray);
             };
             Project.prototype.updateGraph = function () {
-                if (!this.languageServiceEnabled) {
-                    return true;
-                }
                 this.lsHost.startRecordingFilesWithChangedResolutions();
                 var hasChanges = this.updateGraphWorker();
                 var changedFiles = 
this.lsHost.finishRecordingFilesWithChangedResolutions() || server.emptyArray;
@@ -65737,6 +65756,12 @@ var ts;
                 if (this.setTypings(cachedTypings)) {
                     hasChanges = this.updateGraphWorker() || hasChanges;
                 }
+                if (this.languageServiceEnabled) {
+                    this.builder.onProjectUpdateGraph();
+                }
+                else {
+                    this.builder.clear();
+                }
                 if (hasChanges) {
                     this.projectStructureVersion++;
                 }
@@ -65769,7 +65794,6 @@ var ts;
                         }
                     }
                 }
-                this.builder.onProjectUpdateGraph();
                 return hasChanges;
             };
             Project.prototype.getScriptInfoLSHost = function (fileName) {
@@ -65811,6 +65835,7 @@ var ts;
                         this.lastCachedUnresolvedImportsList = undefined;
                     }
                     this.compilerOptions = compilerOptions;
+                    this.setInternalCompilerOptionsForEmittingJsFiles();
                     this.lsHost.setCompilationSettings(compilerOptions);
                     this.markAsDirty();
                 }
@@ -65830,16 +65855,20 @@ var ts;
                     projectName: this.getProjectName(),
                     version: this.projectStructureVersion,
                     isInferred: this.projectKind === ProjectKind.Inferred,
-                    options: this.getCompilerOptions()
+                    options: this.getCompilerOptions(),
+                    languageServiceDisabled: !this.languageServiceEnabled
                 };
+                var updatedFileNames = this.updatedFileNames;
+                this.updatedFileNames = undefined;
                 if (this.lastReportedFileNames && lastKnownVersion === 
this.lastReportedVersion) {
-                    if (this.projectStructureVersion == 
this.lastReportedVersion) {
+                    if (this.projectStructureVersion == 
this.lastReportedVersion && !updatedFileNames) {
                         return { info: info, projectErrors: this.projectErrors 
};
                     }
                     var lastReportedFileNames = this.lastReportedFileNames;
                     var currentFiles = ts.arrayToMap(this.getFileNames(), 
function (x) { return x; });
                     var added = [];
                     var removed = [];
+                    var updated = ts.getOwnKeys(updatedFileNames);
                     for (var id in currentFiles) {
                         if (!ts.hasProperty(lastReportedFileNames, id)) {
                             added.push(id);
@@ -65852,7 +65881,7 @@ var ts;
                     }
                     this.lastReportedFileNames = currentFiles;
                     this.lastReportedVersion = this.projectStructureVersion;
-                    return { info: info, changes: { added: added, removed: 
removed }, projectErrors: this.projectErrors };
+                    return { info: info, changes: { added: added, removed: 
removed, updated: updated }, projectErrors: this.projectErrors };
                 }
                 else {
                     var projectFileNames = this.getFileNames();
@@ -66178,7 +66207,10 @@ var ts;
         var fileNamePropertyReader = {
             getFileName: function (x) { return x; },
             getScriptKind: function (_) { return undefined; },
-            hasMixedContent: function (_) { return false; }
+            hasMixedContent: function (fileName, extraFileExtensions) {
+                var mixedContentExtensions = 
ts.map(ts.filter(extraFileExtensions, function (item) { return 
item.isMixedContent; }), function (item) { return item.extension; });
+                return ts.forEach(mixedContentExtensions, function (extension) 
{ return ts.fileExtensionIs(fileName, extension); });
+            }
         };
         var externalFilePropertyReader = {
             getFileName: function (x) { return x.fileName; },
@@ -66258,7 +66290,8 @@ var ts;
                 this.typingsCache = new 
server.TypingsCache(this.typingsInstaller);
                 this.hostConfiguration = {
                     formatCodeOptions: 
server.getDefaultFormatCodeSettings(this.host),
-                    hostInfo: "Unknown host"
+                    hostInfo: "Unknown host",
+                    extraFileExtensions: []
                 };
                 this.documentRegistry = 
ts.createDocumentRegistry(host.useCaseSensitiveFileNames, 
host.getCurrentDirectory());
             }
@@ -66384,7 +66417,7 @@ var ts;
                     this.handleDeletedFile(info);
                 }
                 else {
-                    if (info && (!info.isOpen)) {
+                    if (info && (!info.isScriptOpen())) {
                         info.reloadFromFile();
                         this.updateProjectGraphs(info.containingProjects);
                     }
@@ -66393,7 +66426,7 @@ var ts;
             ProjectService.prototype.handleDeletedFile = function (info) {
                 this.logger.info(info.fileName + " deleted");
                 info.stopWatcher();
-                if (!info.isOpen) {
+                if (!info.isScriptOpen()) {
                     this.filenameToScriptInfo.remove(info.path);
                     this.lastDeletedFile = info;
                     var containingProjects = info.containingProjects.slice();
@@ -66424,7 +66457,7 @@ var ts;
             };
             
ProjectService.prototype.onSourceFileInDirectoryChangedForConfiguredProject = 
function (project, fileName) {
                 var _this = this;
-                if (fileName && !ts.isSupportedSourceFileName(fileName, 
project.getCompilerOptions())) {
+                if (fileName && !ts.isSupportedSourceFileName(fileName, 
project.getCompilerOptions(), this.hostConfiguration.extraFileExtensions)) {
                     return;
                 }
                 this.logger.info("Detected source file changes: " + fileName);
@@ -66523,13 +66556,15 @@ var ts;
                 }
             };
             ProjectService.prototype.closeOpenFile = function (info) {
-                info.reloadFromFile();
+                info.close();
                 server.removeItemFromSet(this.openFiles, info);
-                info.isOpen = false;
                 var projectsToRemove;
                 for (var _i = 0, _a = info.containingProjects; _i < _a.length; 
_i++) {
                     var p = _a[_i];
                     if (p.projectKind === server.ProjectKind.Configured) {
+                        if (info.hasMixedContent) {
+                            info.registerFileUpdate();
+                        }
                         if (p.deleteOpenRef() === 0) {
                             (projectsToRemove || (projectsToRemove = 
[])).push(p);
                         }
@@ -66537,6 +66572,9 @@ var ts;
                     else if (p.projectKind === server.ProjectKind.Inferred && 
p.isRoot(info)) {
                         (projectsToRemove || (projectsToRemove = [])).push(p);
                     }
+                    if (!p.languageServiceEnabled) {
+                        p.markAsDirty();
+                    }
                 }
                 if (projectsToRemove) {
                     for (var _b = 0, projectsToRemove_1 = projectsToRemove; _b 
< projectsToRemove_1.length; _b++) {
@@ -66654,7 +66692,7 @@ var ts;
                     config = sanitizedConfig;
                     errors = diagnostics.length ? diagnostics : [result.error];
                 }
-                var parsedCommandLine = ts.parseJsonConfigFileContent(config, 
this.host, ts.getDirectoryPath(configFilename), {}, configFilename);
+                var parsedCommandLine = ts.parseJsonConfigFileContent(config, 
this.host, ts.getDirectoryPath(configFilename), {}, configFilename, [], 
this.hostConfiguration.extraFileExtensions);
                 if (parsedCommandLine.errors.length) {
                     errors = ts.concatenate(errors, parsedCommandLine.errors);
                 }
@@ -66733,7 +66771,7 @@ var ts;
                     var f = files_4[_i];
                     var rootFilename = propertyReader.getFileName(f);
                     var scriptKind = propertyReader.getScriptKind(f);
-                    var hasMixedContent = propertyReader.hasMixedContent(f);
+                    var hasMixedContent = propertyReader.hasMixedContent(f, 
this.hostConfiguration.extraFileExtensions);
                     if (this.host.fileExists(rootFilename)) {
                         var info = 
this.getOrCreateScriptInfoForNormalizedPath(server.toNormalizedPath(rootFilename),
 clientFileName == rootFilename, undefined, scriptKind, hasMixedContent);
                         project.addRoot(info);
@@ -66777,7 +66815,7 @@ var ts;
                         rootFilesChanged = true;
                         if (!scriptInfo) {
                             var scriptKind = propertyReader.getScriptKind(f);
-                            var hasMixedContent = 
propertyReader.hasMixedContent(f);
+                            var hasMixedContent = 
propertyReader.hasMixedContent(f, this.hostConfiguration.extraFileExtensions);
                             scriptInfo = 
this.getOrCreateScriptInfoForNormalizedPath(normalizedPath, false, undefined, 
scriptKind, hasMixedContent);
                         }
                     }
@@ -66808,7 +66846,7 @@ var ts;
                     if (toAdd) {
                         for (var _d = 0, toAdd_1 = toAdd; _d < toAdd_1.length; 
_d++) {
                             var f = toAdd_1[_d];
-                            if (f.isOpen && isRootFileInInferredProject(f)) {
+                            if (f.isScriptOpen() && 
isRootFileInInferredProject(f)) {
                                 var inferredProject = f.containingProjects[0];
                                 inferredProject.removeFile(f);
                                 if (!inferredProject.hasRoots()) {
@@ -66847,9 +66885,7 @@ var ts;
                     project.stopWatchingDirectory();
                 }
                 else {
-                    if (!project.languageServiceEnabled) {
-                        project.enableLanguageService();
-                    }
+                    project.enableLanguageService();
                     this.watchConfigDirectoryForProject(project, 
projectOptions);
                     this.updateNonInferredProject(project, 
projectOptions.files, fileNamePropertyReader, projectOptions.compilerOptions, 
projectOptions.typeAcquisition, projectOptions.compileOnSave, configFileErrors);
                 }
@@ -66879,29 +66915,30 @@ var ts;
                 var _this = this;
                 var info = this.getScriptInfoForNormalizedPath(fileName);
                 if (!info) {
-                    var content = void 0;
-                    if (this.host.fileExists(fileName)) {
-                        content = fileContent || (hasMixedContent ? "" : 
this.host.readFile(fileName));
-                    }
-                    if (!content) {
+                    if (openedByClient || this.host.fileExists(fileName)) {
+                        info = new server.ScriptInfo(this.host, fileName, 
scriptKind, hasMixedContent);
+                        this.filenameToScriptInfo.set(info.path, info);
                         if (openedByClient) {
-                            content = "";
+                            if (fileContent === undefined) {
+                                fileContent = this.host.readFile(fileName) || 
"";
+                            }
                         }
-                    }
-                    if (content !== undefined) {
-                        info = new server.ScriptInfo(this.host, fileName, 
content, scriptKind, openedByClient, hasMixedContent);
-                        this.filenameToScriptInfo.set(info.path, info);
-                        if (!info.isOpen && !hasMixedContent) {
-                            info.setWatcher(this.host.watchFile(fileName, 
function (_) { return _this.onSourceFileChanged(fileName); }));
+                        else {
+                            if (!hasMixedContent) {
+                                info.setWatcher(this.host.watchFile(fileName, 
function (_) { return _this.onSourceFileChanged(fileName); }));
+                            }
                         }
                     }
                 }
                 if (info) {
-                    if (fileContent !== undefined) {
-                        info.reload(fileContent);
+                    if (openedByClient && !info.isScriptOpen()) {
+                        info.open(fileContent);
+                        if (hasMixedContent) {
+                            info.registerFileUpdate();
+                        }
                     }
-                    if (openedByClient) {
-                        info.isOpen = true;
+                    else if (fileContent !== undefined) {
+                        info.reload(fileContent);
                     }
                 }
                 return info;
@@ -66929,6 +66966,10 @@ var ts;
                         
server.mergeMaps(this.hostConfiguration.formatCodeOptions, 
convertFormatOptions(args.formatOptions));
                         this.logger.info("Format host information updated");
                     }
+                    if (args.extraFileExtensions) {
+                        this.hostConfiguration.extraFileExtensions = 
args.extraFileExtensions;
+                        this.logger.info("Host file extension mappings 
updated");
+                    }
                 }
             };
             ProjectService.prototype.closeLog = function () {
@@ -66976,30 +67017,39 @@ var ts;
                 return 
this.openClientFileWithNormalizedPath(server.toNormalizedPath(fileName), 
fileContent, scriptKind);
             };
             ProjectService.prototype.openClientFileWithNormalizedPath = 
function (fileName, fileContent, scriptKind, hasMixedContent) {
-                var _a = this.findContainingExternalProject(fileName)
-                    ? {}
-                    : this.openOrUpdateConfiguredProjectForFile(fileName), _b 
= _a.configFileName, configFileName = _b === void 0 ? undefined : _b, _c = 
_a.configFileErrors, configFileErrors = _c === void 0 ? undefined : _c;
+                var configFileName;
+                var configFileErrors;
+                var project = this.findContainingExternalProject(fileName);
+                if (!project) {
+                    (_a = this.openOrUpdateConfiguredProjectForFile(fileName), 
configFileName = _a.configFileName, configFileErrors = _a.configFileErrors);
+                    if (configFileName) {
+                        project = 
this.findConfiguredProjectByProjectName(configFileName);
+                    }
+                }
+                if (project && !project.languageServiceEnabled) {
+                    project.markAsDirty();
+                }
                 var info = 
this.getOrCreateScriptInfoForNormalizedPath(fileName, true, fileContent, 
scriptKind, hasMixedContent);
                 this.assignScriptInfoToInferredProjectIfNecessary(info, true);
                 this.printProjects();
                 return { configFileName: configFileName, configFileErrors: 
configFileErrors };
+                var _a;
             };
             ProjectService.prototype.closeClientFile = function 
(uncheckedFileName) {
                 var info = 
this.getScriptInfoForNormalizedPath(server.toNormalizedPath(uncheckedFileName));
                 if (info) {
                     this.closeOpenFile(info);
-                    info.isOpen = false;
                 }
                 this.printProjects();
             };
             ProjectService.prototype.collectChanges = function 
(lastKnownProjectVersions, currentProjects, result) {
-                var _loop_5 = function (proj) {
+                var _loop_4 = function (proj) {
                     var knownProject = ts.forEach(lastKnownProjectVersions, 
function (p) { return p.projectName === proj.getProjectName() && p; });
                     result.push(proj.getChangesSinceVersion(knownProject && 
knownProject.version));
                 };
                 for (var _i = 0, currentProjects_1 = currentProjects; _i < 
currentProjects_1.length; _i++) {
                     var proj = currentProjects_1[_i];
-                    _loop_5(proj);
+                    _loop_4(proj);
                 }
             };
             ProjectService.prototype.synchronizeProjectList = function 
(knownProjects) {
@@ -67015,7 +67065,7 @@ var ts;
                     for (var _i = 0, openFiles_1 = openFiles; _i < 
openFiles_1.length; _i++) {
                         var file = openFiles_1[_i];
                         var scriptInfo = this.getScriptInfo(file.fileName);
-                        ts.Debug.assert(!scriptInfo || !scriptInfo.isOpen);
+                        ts.Debug.assert(!scriptInfo || 
!scriptInfo.isScriptOpen());
                         var normalizedPath = scriptInfo ? scriptInfo.fileName 
: server.toNormalizedPath(file.fileName);
                         this.openClientFileWithNormalizedPath(normalizedPath, 
file.content, tryConvertScriptKindName(file.scriptKind), file.hasMixedContent);
                     }
@@ -67082,7 +67132,23 @@ var ts;
                     }
                 }
             };
-            ProjectService.prototype.openExternalProject = function (proj) {
+            ProjectService.prototype.openExternalProjects = function 
(projects) {
+                var projectsToClose = ts.arrayToMap(this.externalProjects, 
function (p) { return p.getProjectName(); }, function (_) { return true; });
+                for (var externalProjectName in 
this.externalProjectToConfiguredProjectMap) {
+                    projectsToClose[externalProjectName] = true;
+                }
+                for (var _i = 0, projects_4 = projects; _i < 
projects_4.length; _i++) {
+                    var externalProject = projects_4[_i];
+                    this.openExternalProject(externalProject, true);
+                    delete projectsToClose[externalProject.projectFileName];
+                }
+                for (var externalProjectName in projectsToClose) {
+                    this.closeExternalProject(externalProjectName, true);
+                }
+                this.refreshInferredProjects();
+            };
+            ProjectService.prototype.openExternalProject = function (proj, 
suppressRefreshOfInferredProjects) {
+                if (suppressRefreshOfInferredProjects === void 0) { 
suppressRefreshOfInferredProjects = false; }
                 if (proj.typingOptions && !proj.typeAcquisition) {
                     var typeAcquisition = 
ts.convertEnableAutoDiscoveryToEnable(proj.typingOptions);
                     proj.typeAcquisition = typeAcquisition;
@@ -67108,7 +67174,14 @@ var ts;
                 var exisingConfigFiles;
                 if (externalProject) {
                     if (!tsConfigFiles) {
-                        this.updateNonInferredProject(externalProject, 
proj.rootFiles, externalFilePropertyReader, 
convertCompilerOptions(proj.options), proj.typeAcquisition, 
proj.options.compileOnSave, undefined);
+                        var compilerOptions = 
convertCompilerOptions(proj.options);
+                        if 
(this.exceededTotalSizeLimitForNonTsFiles(compilerOptions, proj.rootFiles, 
externalFilePropertyReader)) {
+                            externalProject.disableLanguageService();
+                        }
+                        else {
+                            externalProject.enableLanguageService();
+                        }
+                        this.updateNonInferredProject(externalProject, 
proj.rootFiles, externalFilePropertyReader, compilerOptions, 
proj.typeAcquisition, proj.options.compileOnSave, undefined);
                         return;
                     }
                     this.closeExternalProject(proj.projectFileName, true);
@@ -67160,7 +67233,9 @@ var ts;
                     delete 
this.externalProjectToConfiguredProjectMap[proj.projectFileName];
                     this.createAndAddExternalProject(proj.projectFileName, 
rootFiles, proj.options, proj.typeAcquisition);
                 }
-                this.refreshInferredProjects();
+                if (!suppressRefreshOfInferredProjects) {
+                    this.refreshInferredProjects();
+                }
             };
             return ProjectService;
         }());
@@ -67322,14 +67397,11 @@ var ts;
                 this.changeSeq = 0;
                 this.handlers = ts.createMap((_a = {},
                     _a[CommandNames.OpenExternalProject] = function (request) {
-                        
_this.projectService.openExternalProject(request.arguments);
+                        
_this.projectService.openExternalProject(request.arguments, false);
                         return _this.requiredResponse(true);
                     },
                     _a[CommandNames.OpenExternalProjects] = function (request) 
{
-                        for (var _i = 0, _a = request.arguments.projects; _i < 
_a.length; _i++) {
-                            var proj = _a[_i];
-                            _this.projectService.openExternalProject(proj);
-                        }
+                        
_this.projectService.openExternalProjects(request.arguments.projects);
                         return _this.requiredResponse(true);
                     },
                     _a[CommandNames.CloseExternalProject] = function (request) 
{
@@ -67726,8 +67798,8 @@ var ts;
                     return;
                 }
                 this.logger.info("cleaning " + caption);
-                for (var _i = 0, projects_4 = projects; _i < 
projects_4.length; _i++) {
-                    var p = projects_4[_i];
+                for (var _i = 0, projects_5 = projects; _i < 
projects_5.length; _i++) {
+                    var p = projects_5[_i];
                     p.getLanguageService(false).cleanupSemanticCache();
                 }
             };
@@ -68023,7 +68095,7 @@ var ts;
                     var displayString = 
ts.displayPartsToString(nameInfo.displayParts);
                     var nameSpan = nameInfo.textSpan;
                     var nameColStart = 
scriptInfo.positionToLineOffset(nameSpan.start).offset;
-                    var nameText = scriptInfo.snap().getText(nameSpan.start, 
ts.textSpanEnd(nameSpan));
+                    var nameText = 
scriptInfo.getSnapshot().getText(nameSpan.start, ts.textSpanEnd(nameSpan));
                     var refs = server.combineProjectOutput(projects, function 
(project) {
                         var references = 
project.getLanguageService().getReferencesAtPosition(file, position);
                         if (!references) {
@@ -68033,7 +68105,7 @@ var ts;
                             var refScriptInfo = 
project.getScriptInfo(ref.fileName);
                             var start = 
refScriptInfo.positionToLineOffset(ref.textSpan.start);
                             var refLineSpan = 
refScriptInfo.lineToTextSpan(start.line - 1);
-                            var lineText = 
refScriptInfo.snap().getText(refLineSpan.start, 
ts.textSpanEnd(refLineSpan)).replace(/\r|\n/g, "");
+                            var lineText = 
refScriptInfo.getSnapshot().getText(refLineSpan.start, 
ts.textSpanEnd(refLineSpan)).replace(/\r|\n/g, "");
                             return {
                                 file: ref.fileName,
                                 start: start,
@@ -68144,6 +68216,7 @@ var ts;
                         end: 
scriptInfo.positionToLineOffset(ts.textSpanEnd(quickInfo.textSpan)),
                         displayString: displayString,
                         documentation: docString,
+                        tags: quickInfo.tags || []
                     };
                 }
                 else {
@@ -68236,9 +68309,9 @@ var ts;
                 if (simplifiedResult) {
                     return completions.entries.reduce(function (result, entry) 
{
                         if (completions.isMemberCompletion || 
(entry.name.toLowerCase().indexOf(prefix.toLowerCase()) === 0)) {
-                            var name_51 = entry.name, kind = entry.kind, 
kindModifiers = entry.kindModifiers, sortText = entry.sortText, replacementSpan 
= entry.replacementSpan;
+                            var name_53 = entry.name, kind = entry.kind, 
kindModifiers = entry.kindModifiers, sortText = entry.sortText, replacementSpan 
= entry.replacementSpan;
                             var convertedSpan = replacementSpan ? 
_this.decorateSpan(replacementSpan, scriptInfo) : undefined;
-                            result.push({ name: name_51, kind: kind, 
kindModifiers: kindModifiers, sortText: sortText, replacementSpan: 
convertedSpan });
+                            result.push({ name: name_53, kind: kind, 
kindModifiers: kindModifiers, sortText: sortText, replacementSpan: 
convertedSpan });
                         }
                         return result;
                     }, []).sort(function (a, b) { return 
ts.compareStrings(a.name, b.name); });
@@ -68283,6 +68356,9 @@ var ts;
                 if (!project) {
                     server.Errors.ThrowNoProject();
                 }
+                if (!project.languageServiceEnabled) {
+                    return false;
+                }
                 var scriptInfo = project.getScriptInfo(file);
                 return project.builder.emitFile(scriptInfo, function (path, 
data, writeByteOrderMark) { return _this.host.writeFile(path, data, 
writeByteOrderMark); });
             };
@@ -68548,7 +68624,7 @@ var ts;
                         highPriorityFiles.push(fileNameInProject);
                     else {
                         var info = 
this.projectService.getScriptInfo(fileNameInProject);
-                        if (!info.isOpen) {
+                        if (!info.isScriptOpen()) {
                             if (fileNameInProject.indexOf(".d.ts") > 0)
                                 veryLowPriorityFiles.push(fileNameInProject);
                             else
@@ -69005,8 +69081,9 @@ var ts;
                 }
             };
             LineIndexSnapshot.prototype.getChangeRange = function 
(oldSnapshot) {
-                var oldSnap = oldSnapshot;
-                return this.getTextChangeRangeSinceVersion(oldSnap.version);
+                if (oldSnapshot instanceof LineIndexSnapshot && this.cache === 
oldSnapshot.cache) {
+                    return 
this.getTextChangeRangeSinceVersion(oldSnapshot.version);
+                }
             };
             return LineIndexSnapshot;
         }());
@@ -69490,33 +69567,40 @@ var ts;
         var childProcess = require("child_process");
         var os = require("os");
         function getGlobalTypingsCacheLocation() {
-            var basePath;
             switch (process.platform) {
-                case "win32":
-                    basePath = process.env.LOCALAPPDATA ||
+                case "win32": {
+                    var basePath = process.env.LOCALAPPDATA ||
                         process.env.APPDATA ||
                         (os.homedir && os.homedir()) ||
                         process.env.USERPROFILE ||
                         (process.env.HOMEDRIVE && process.env.HOMEPATH && 
ts.normalizeSlashes(process.env.HOMEDRIVE + process.env.HOMEPATH)) ||
                         os.tmpdir();
-                    break;
-                case "linux":
-                case "android":
-                    basePath = (os.homedir && os.homedir()) ||
-                        process.env.HOME ||
-                        ((process.env.LOGNAME || process.env.USER) && "/home/" 
+ (process.env.LOGNAME || process.env.USER)) ||
-                        os.tmpdir();
-                    break;
+                    return ts.combinePaths(ts.normalizeSlashes(basePath), 
"Microsoft/TypeScript");
+                }
                 case "darwin":
-                    var homeDir = (os.homedir && os.homedir()) ||
-                        process.env.HOME ||
-                        ((process.env.LOGNAME || process.env.USER) && 
"/Users/" + (process.env.LOGNAME || process.env.USER)) ||
-                        os.tmpdir();
-                    basePath = ts.combinePaths(homeDir, "Library/Application 
Support/");
-                    break;
+                case "linux":
+                case "android": {
+                    var cacheLocation = 
getNonWindowsCacheLocation(process.platform === "darwin");
+                    return ts.combinePaths(cacheLocation, "typescript");
+                }
+                default:
+                    ts.Debug.fail("unsupported platform '" + process.platform 
+ "'");
+                    return;
+            }
+        }
+        function getNonWindowsCacheLocation(platformIsDarwin) {
+            if (process.env.XDG_CACHE_HOME) {
+                return process.env.XDG_CACHE_HOME;
             }
-            ts.Debug.assert(basePath !== undefined);
-            return ts.combinePaths(ts.normalizeSlashes(basePath), 
"Microsoft/TypeScript");
+            var usersDir = platformIsDarwin ? "Users" : "home";
+            var homePath = (os.homedir && os.homedir()) ||
+                process.env.HOME ||
+                ((process.env.LOGNAME || process.env.USER) && "/" + usersDir + 
"/" + (process.env.LOGNAME || process.env.USER)) ||
+                os.tmpdir();
+            var cacheFolder = platformIsDarwin
+                ? "Library/Caches"
+                : ".cache";
+            return ts.combinePaths(ts.normalizeSlashes(homePath), cacheFolder);
         }
         var readline = require("readline");
         var fs = require("fs");
@@ -69625,7 +69709,7 @@ var ts;
                 this.socket.write(server.formatMessage({ seq: seq, type: 
"event", event: event, body: body }, this.logger, Buffer.byteLength, 
this.newLine), "utf8");
             };
             NodeTypingsInstaller.prototype.setTelemetrySender = function 
(telemetrySender) {
-                this.telemetrySender = telemetrySender;
+                this.eventSender = telemetrySender;
             };
             NodeTypingsInstaller.prototype.attach = function (projectService) {
                 var _this = this;
@@ -69683,9 +69767,24 @@ var ts;
                 if (this.logger.hasLevel(server.LogLevel.verbose)) {
                     this.logger.info("Received response: " + 
JSON.stringify(response));
                 }
-                if (response.kind === server.EventInstall) {
-                    if (this.telemetrySender) {
-                        var body = {
+                if (response.kind === server.EventBeginInstallTypes) {
+                    if (!this.eventSender) {
+                        return;
+                    }
+                    var body = {
+                        eventId: response.eventId,
+                        packages: response.packagesToInstall,
+                    };
+                    var eventName = "beginInstallTypes";
+                    this.eventSender.event(body, eventName);
+                    return;
+                }
+                if (response.kind === server.EventEndInstallTypes) {
+                    if (!this.eventSender) {
+                        return;
+                    }
+                    if (this.telemetryEnabled) {
+                        var body_1 = {
                             telemetryEventName: "typingsInstalled",
                             payload: {
                                 installedPackages: 
response.packagesToInstall.join(","),
@@ -69693,9 +69792,16 @@ var ts;
                                 typingsInstallerVersion: 
response.typingsInstallerVersion
                             }
                         };
-                        var eventName = "telemetry";
-                        this.telemetrySender.event(body, eventName);
+                        var eventName_1 = "telemetry";
+                        this.eventSender.event(body_1, eventName_1);
                     }
+                    var body = {
+                        eventId: response.eventId,
+                        packages: response.packagesToInstall,
+                        success: response.installSuccess,
+                    };
+                    var eventName = "endInstallTypes";
+                    this.eventSender.event(body, eventName);
                     return;
                 }
                 this.projectService.updateTypingsForProject(response);
@@ -69708,7 +69814,7 @@ var ts;
         var IOSession = (function (_super) {
             __extends(IOSession, _super);
             function IOSession(host, cancellationToken, installerEventPort, 
canUseEvents, useSingleInferredProject, disableAutomaticTypingAcquisition, 
globalTypingsCacheLocation, telemetryEnabled, logger) {
-                var _this;
+                var _this = this;
                 var typingsInstaller = disableAutomaticTypingAcquisition
                     ? undefined
                     : new NodeTypingsInstaller(telemetryEnabled, logger, host, 
installerEventPort, globalTypingsCacheLocation, host.newLine);
@@ -70614,4 +70720,4 @@ var TypeScript;
         Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory;
     })(Services = TypeScript.Services || (TypeScript.Services = {}));
 })(TypeScript || (TypeScript = {}));
-var toolsVersion = "2.2";
+var toolsVersion = "2.1";
diff --git a/node_modules/typescript/lib/tsserverlibrary.d.ts 
b/node_modules/typescript/lib/tsserverlibrary.d.ts
index 3f46cb6..e155a24 100644
--- a/node_modules/typescript/lib/tsserverlibrary.d.ts
+++ b/node_modules/typescript/lib/tsserverlibrary.d.ts
@@ -330,10 +330,12 @@ declare namespace ts.server.protocol {
         isInferred: boolean;
         version: number;
         options: ts.CompilerOptions;
+        languageServiceDisabled: boolean;
     }
     interface ProjectChanges {
         added: string[];
         removed: string[];
+        updated: string[];
     }
     interface ProjectFiles {
         info?: ProjectVersionInfo;
@@ -351,6 +353,7 @@ declare namespace ts.server.protocol {
         hostInfo?: string;
         file?: string;
         formatOptions?: FormatCodeSettings;
+        extraFileExtensions?: FileExtensionInfo[];
     }
     interface ConfigureRequest extends Request {
         command: CommandTypes.Configure;
@@ -448,6 +451,7 @@ declare namespace ts.server.protocol {
         end: Location;
         displayString: string;
         documentation: string;
+        tags: JSDocTagInfo[];
     }
     interface QuickInfoResponse extends Response {
         body?: QuickInfoResponseBody;
@@ -520,6 +524,7 @@ declare namespace ts.server.protocol {
         kindModifiers: string;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface CompletionsResponse extends Response {
         body?: CompletionEntry[];
@@ -540,6 +545,7 @@ declare namespace ts.server.protocol {
         separatorDisplayParts: SymbolDisplayPart[];
         parameters: SignatureHelpParameter[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface SignatureHelpItems {
         items: SignatureHelpItem[];
@@ -718,6 +724,25 @@ declare namespace ts.server.protocol {
         installSuccess: boolean;
         typingsInstallerVersion: string;
     }
+    type BeginInstallTypesEventName = "beginInstallTypes";
+    type EndInstallTypesEventName = "endInstallTypes";
+    interface BeginInstallTypesEvent extends Event {
+        event: BeginInstallTypesEventName;
+        body: BeginInstallTypesEventBody;
+    }
+    interface EndInstallTypesEvent extends Event {
+        event: EndInstallTypesEventName;
+        body: EndInstallTypesEventBody;
+    }
+    interface InstallTypesEventBody {
+        eventId: number;
+        packages: ReadonlyArray<string>;
+    }
+    interface BeginInstallTypesEventBody extends InstallTypesEventBody {
+    }
+    interface EndInstallTypesEventBody extends InstallTypesEventBody {
+        success: boolean;
+    }
     interface NavBarResponse extends Response {
         body?: NavigationBarItem[];
     }
@@ -742,12 +767,14 @@ declare namespace ts.server.protocol {
         insertSpaceAfterCommaDelimiter?: boolean;
         insertSpaceAfterSemicolonInForStatements?: boolean;
         insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+        insertSpaceAfterConstructor?: boolean;
         insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
         insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
+        insertSpaceBeforeFunctionParenthesis?: boolean;
         placeOpenBraceOnNewLineForFunctions?: boolean;
         placeOpenBraceOnNewLineForControlBlocks?: boolean;
     }
@@ -1167,8 +1194,7 @@ declare namespace ts {
         PartiallyEmittedExpression = 294,
         MergeDeclarationMarker = 295,
         EndOfDeclarationMarker = 296,
-        RawExpression = 297,
-        Count = 298,
+        Count = 297,
         FirstAssignment = 57,
         LastAssignment = 69,
         FirstCompoundAssignment = 58,
@@ -1211,26 +1237,20 @@ declare namespace ts {
         HasImplicitReturn = 128,
         HasExplicitReturn = 256,
         GlobalAugmentation = 512,
-        HasClassExtends = 1024,
-        HasDecorators = 2048,
-        HasParamDecorators = 4096,
-        HasAsyncFunctions = 8192,
-        HasSpreadAttribute = 16384,
-        HasRestAttribute = 32768,
-        DisallowInContext = 65536,
-        YieldContext = 131072,
-        DecoratorContext = 262144,
-        AwaitContext = 524288,
-        ThisNodeHasError = 1048576,
-        JavaScriptFile = 2097152,
-        ThisNodeOrAnySubNodesHasError = 4194304,
-        HasAggregatedChildData = 8388608,
+        HasAsyncFunctions = 1024,
+        DisallowInContext = 2048,
+        YieldContext = 4096,
+        DecoratorContext = 8192,
+        AwaitContext = 16384,
+        ThisNodeHasError = 32768,
+        JavaScriptFile = 65536,
+        ThisNodeOrAnySubNodesHasError = 131072,
+        HasAggregatedChildData = 262144,
         BlockScoped = 3,
         ReachabilityCheckFlags = 384,
-        EmitHelperFlags = 64512,
-        ReachabilityAndEmitFlags = 64896,
-        ContextFlags = 3080192,
-        TypeExcludesFlags = 655360,
+        ReachabilityAndEmitFlags = 1408,
+        ContextFlags = 96256,
+        TypeExcludesFlags = 20480,
     }
     const enum ModifierFlags {
         None = 0,
@@ -1879,10 +1899,6 @@ declare namespace ts {
     interface EndOfDeclarationMarker extends Statement {
         kind: SyntaxKind.EndOfDeclarationMarker;
     }
-    interface RawExpression extends PrimaryExpression {
-        kind: SyntaxKind.RawExpression;
-        text: string;
-    }
     interface MergeDeclarationMarker extends Statement {
         kind: SyntaxKind.MergeDeclarationMarker;
     }
@@ -2504,6 +2520,7 @@ declare namespace ts {
         writeSpace(text: string): void;
         writeStringLiteral(text: string): void;
         writeParameter(text: string): void;
+        writeProperty(text: string): void;
         writeSymbol(text: string, symbol: Symbol): void;
         writeLine(): void;
         increaseIndent(): void;
@@ -2807,6 +2824,7 @@ declare namespace ts {
         UnionOrIntersection = 196608,
         StructuredType = 229376,
         StructuredOrTypeParameter = 507904,
+        TypeVariable = 540672,
         Narrowable = 1033215,
         NotUnionOrUnit = 33281,
         RequiresWidening = 6291456,
@@ -2876,7 +2894,8 @@ declare namespace ts {
     interface UnionOrIntersectionType extends Type {
         types: Type[];
         resolvedProperties: SymbolTable;
-        couldContainTypeParameters: boolean;
+        resolvedIndexType: IndexType;
+        couldContainTypeVariables: boolean;
     }
     interface UnionType extends UnionOrIntersectionType {
     }
@@ -2892,6 +2911,7 @@ declare namespace ts {
         typeParameter?: TypeParameter;
         constraintType?: Type;
         templateType?: Type;
+        modifiersType?: Type;
         mapper?: TypeMapper;
     }
     interface EvolvingArrayType extends ObjectType {
@@ -2913,20 +2933,23 @@ declare namespace ts {
         iterableElementType?: Type;
         iteratorElementType?: Type;
     }
-    interface TypeParameter extends Type {
+    interface TypeVariable extends Type {
+        resolvedApparentType: Type;
+        resolvedIndexType: IndexType;
+    }
+    interface TypeParameter extends TypeVariable {
         constraint: Type;
         target?: TypeParameter;
         mapper?: TypeMapper;
-        resolvedApparentType: Type;
-        resolvedIndexType: IndexType;
         isThisType?: boolean;
     }
-    interface IndexType extends Type {
-        type: TypeParameter;
-    }
-    interface IndexedAccessType extends Type {
+    interface IndexedAccessType extends TypeVariable {
         objectType: Type;
         indexType: Type;
+        constraint?: Type;
+    }
+    interface IndexType extends Type {
+        type: TypeVariable | UnionOrIntersectionType;
     }
     const enum SignatureKind {
         Call = 0,
@@ -2985,6 +3008,11 @@ declare namespace ts {
         PrototypeProperty = 3,
         ThisProperty = 4,
     }
+    interface FileExtensionInfo {
+        extension: string;
+        scriptKind: ScriptKind;
+        isMixedContent: boolean;
+    }
     interface DiagnosticMessage {
         key: string;
         category: DiagnosticCategory;
@@ -3472,6 +3500,18 @@ declare namespace ts {
         readonly text: string;
         readonly priority?: number;
     }
+    const enum ExternalEmitHelpers {
+        Extends = 1,
+        Assign = 2,
+        Rest = 4,
+        Decorate = 8,
+        Metadata = 16,
+        Param = 32,
+        Awaiter = 64,
+        Generator = 128,
+        FirstEmitHelper = 1,
+        LastEmitHelper = 128,
+    }
     const enum EmitContext {
         SourceFile = 0,
         Expression = 1,
@@ -3544,7 +3584,7 @@ declare namespace ts.performance {
     function disable(): void;
 }
 declare namespace ts {
-    const version = "2.2.0-dev.20161127";
+    const version = "2.1.6";
 }
 declare namespace ts {
     const enum Ternary {
@@ -3616,7 +3656,6 @@ declare namespace ts {
     function assign<T1 extends MapLike<{}>, T2>(t: T1, arg1: T2): T1 & T2;
     function assign<T1 extends MapLike<{}>>(t: T1, ...args: any[]): any;
     function reduceProperties<T, U>(map: Map<T>, callback: (aggregate: U, 
value: T, key: string) => U, initial: U): U;
-    function reduceOwnProperties<T, U>(map: MapLike<T>, callback: (aggregate: 
U, value: T, key: string) => U, initial: U): U;
     function equalOwnProperties<T>(left: MapLike<T>, right: MapLike<T>, 
equalityComparer?: (left: T, right: T) => boolean): boolean;
     function arrayToMap<T>(array: T[], makeKey: (value: T) => string): Map<T>;
     function arrayToMap<T, U>(array: T[], makeKey: (value: T) => string, 
makeValue: (value: T) => U): Map<U>;
@@ -3695,10 +3734,10 @@ declare namespace ts {
     const supportedTypeScriptExtensions: string[];
     const supportedTypescriptExtensionsForExtractExtension: string[];
     const supportedJavascriptExtensions: string[];
-    function getSupportedExtensions(options?: CompilerOptions): string[];
+    function getSupportedExtensions(options?: CompilerOptions, 
extraFileExtensions?: FileExtensionInfo[]): string[];
     function hasJavaScriptFileExtension(fileName: string): boolean;
     function hasTypeScriptFileExtension(fileName: string): boolean;
-    function isSupportedSourceFileName(fileName: string, compilerOptions?: 
CompilerOptions): boolean;
+    function isSupportedSourceFileName(fileName: string, compilerOptions?: 
CompilerOptions, extraFileExtensions?: FileExtensionInfo[]): boolean;
     const enum ExtensionPriority {
         TypeScriptFiles = 0,
         DeclarationAndJavaScriptFiles = 2,
@@ -4139,7 +4178,7 @@ declare namespace ts {
             key: string;
             message: string;
         };
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: {
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 {
             code: number;
             category: DiagnosticCategory;
             key: string;
@@ -5075,6 +5114,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        An_abstract_accessor_cannot_have_an_implementation: {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         Duplicate_identifier_0: {
             code: number;
             category: DiagnosticCategory;
@@ -5333,6 +5378,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         Type_0_does_not_satisfy_the_constraint_1: {
             code: number;
             category: DiagnosticCategory;
@@ -5393,6 +5444,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: {
             code: number;
             category: DiagnosticCategory;
@@ -7229,6 +7286,18 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:
 {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         The_current_host_does_not_support_the_0_option: {
             code: number;
             category: DiagnosticCategory;
@@ -7475,7 +7544,7 @@ declare namespace ts {
             key: string;
             message: string;
         };
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: {
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 {
             code: number;
             category: DiagnosticCategory;
             key: string;
@@ -7793,6 +7862,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        File_0_has_an_unsupported_extension_so_skipping_it: {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         Only_amd_and_system_modules_are_supported_alongside_0: {
             code: number;
             category: DiagnosticCategory;
@@ -8183,6 +8258,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        Resolution_for_module_0_was_found_in_cache: {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         Variable_0_implicitly_has_an_1_type: {
             code: number;
             category: DiagnosticCategory;
@@ -8513,6 +8594,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
         Circularity_detected_while_resolving_configuration_Colon_0: {
             code: number;
             category: DiagnosticCategory;
@@ -8609,6 +8696,12 @@ declare namespace ts {
             key: string;
             message: string;
         };
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: {
+            code: number;
+            category: DiagnosticCategory;
+            key: string;
+            message: string;
+        };
     };
 }
 declare namespace ts {
@@ -8703,7 +8796,7 @@ declare namespace ts {
     function generateTSConfig(options: CompilerOptions, fileNames: string[]): {
         compilerOptions: Map<CompilerOptionsValue>;
     };
-    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[]): ParsedCommandLine;
+    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[], extraFileExtensions?: FileExtensionInfo[]): 
ParsedCommandLine;
     function convertCompileOnSaveOptionFromJson(jsonOption: any, basePath: 
string, errors: Diagnostic[]): boolean;
     function convertCompilerOptionsFromJson(jsonOptions: any, basePath: 
string, configFileName?: string): {
         options: CompilerOptions;
@@ -8731,7 +8824,8 @@ declare namespace ts.JsTyping {
 declare namespace ts.server {
     const ActionSet: ActionSet;
     const ActionInvalidate: ActionInvalidate;
-    const EventInstall: EventInstall;
+    const EventBeginInstallTypes: EventBeginInstallTypes;
+    const EventEndInstallTypes: EventEndInstallTypes;
     namespace Arguments {
         const GlobalCacheLocation = "--globalTypingsCacheLocation";
         const LogFile = "--logFile";
@@ -8828,12 +8922,23 @@ declare namespace ts {
     }): string[] | undefined;
     function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, 
containingFile: string | undefined, options: CompilerOptions, host: 
ModuleResolutionHost): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
     function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: 
ModuleResolutionHost): string[];
-    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
-    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
+    interface ModuleResolutionCache extends 
NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForDirectory(directoryName: string): 
Map<ResolvedModuleWithFailedLookupLocations>;
+    }
+    interface NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForModuleName(nonRelativeModuleName: string): 
PerModuleNameCache;
+    }
+    interface PerModuleNameCache {
+        get(directory: string): ResolvedModuleWithFailedLookupLocations;
+        set(directory: string, result: 
ResolvedModuleWithFailedLookupLocations): void;
+    }
+    function createModuleResolutionCache(currentDirectory: string, 
getCanonicalFileName: (s: string) => string): ModuleResolutionCache;
+    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
+    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
     function directoryProbablyExists(directoryName: string, host: {
         directoryExists?: (directoryName: string) => boolean;
     }): boolean;
-    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
+    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
NonRelativeModuleNameResolutionCache): ResolvedModuleWithFailedLookupLocations;
     function loadModuleFromGlobalCache(moduleName: string, projectName: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, 
globalCache: string): ResolvedModuleWithFailedLookupLocations;
 }
 declare namespace ts {
@@ -8887,6 +8992,7 @@ declare namespace ts {
     function isBlockScopedContainerTopLevel(node: Node): boolean;
     function isGlobalScopeAugmentation(module: ModuleDeclaration): boolean;
     function isExternalModuleAugmentation(node: Node): boolean;
+    function isEffectiveExternalModule(node: SourceFile, compilerOptions: 
CompilerOptions): boolean;
     function isBlockScope(node: Node, parentNode: Node): boolean;
     function getEnclosingBlockScopeContainer(node: Node): Node;
     function declarationNameToString(name: DeclarationName): string;
@@ -8911,8 +9017,11 @@ declare namespace ts {
     let fullTripleSlashReferenceTypeReferenceDirectiveRegEx: RegExp;
     let fullTripleSlashAMDReferencePathRegEx: RegExp;
     function isPartOfTypeNode(node: Node): boolean;
+    function isChildOfLiteralType(node: Node): boolean;
+    function isPrefixUnaryExpression(node: Node): node is 
PrefixUnaryExpression;
     function forEachReturnStatement<T>(body: Block, visitor: (stmt: 
ReturnStatement) => T): T;
     function forEachYieldExpression(body: Block, visitor: (expr: 
YieldExpression) => void): void;
+    function getRestParameterElementType(node: TypeNode): TypeNode;
     function isVariableLike(node: Node): node is VariableLikeDeclaration;
     function isAccessor(node: Node): node is AccessorDeclaration;
     function isClassLike(node: Node): node is ClassLikeDeclaration;
@@ -8956,6 +9065,7 @@ declare namespace ts {
     function hasQuestionToken(node: Node): boolean;
     function isJSDocConstructSignature(node: Node): boolean;
     function getCommentsFromJSDoc(node: Node): string[];
+    function getJSDocs(node: Node): (JSDoc | JSDocTag)[];
     function getJSDocParameterTags(param: Node): JSDocParameterTag[];
     function getJSDocType(node: Node): JSDocType;
     function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag;
@@ -9016,7 +9126,7 @@ declare namespace ts {
     function getExpressionAssociativity(expression: Expression): Associativity;
     function getOperatorAssociativity(kind: SyntaxKind, operator: SyntaxKind, 
hasArguments?: boolean): Associativity;
     function getExpressionPrecedence(expression: Expression): 0 | 1 | -1 | 2 | 
4 | 3 | 16 | 10 | 5 | 6 | 11 | 8 | 19 | 18 | 17 | 15 | 14 | 13 | 12 | 9 | 7;
-    function getOperator(expression: Expression): SyntaxKind.Unknown | 
SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | 
SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | 
SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | 
SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | 
SyntaxKind.StringLiteral | SyntaxKind.JsxText | 
SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral 
| SyntaxKind.TemplateHead | SyntaxKind.Template [...]
+    function getOperator(expression: Expression): SyntaxKind.Unknown | 
SyntaxKind.EndOfFileToken | SyntaxKind.SingleLineCommentTrivia | 
SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | 
SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | 
SyntaxKind.ConflictMarkerTrivia | SyntaxKind.NumericLiteral | 
SyntaxKind.StringLiteral | SyntaxKind.JsxText | 
SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral 
| SyntaxKind.TemplateHead | SyntaxKind.Template [...]
     function getOperatorPrecedence(nodeKind: SyntaxKind, operatorKind: 
SyntaxKind, hasArguments?: boolean): 0 | 1 | -1 | 2 | 4 | 3 | 16 | 10 | 5 | 6 | 
11 | 8 | 19 | 18 | 17 | 15 | 14 | 13 | 12 | 9 | 7;
     function createDiagnosticCollection(): DiagnosticCollection;
     function escapeString(s: string): string;
@@ -9098,7 +9208,6 @@ declare namespace ts {
     function isEmptyObjectLiteralOrArrayLiteral(expression: Node): boolean;
     function getLocalSymbolForExportDefault(symbol: Symbol): Symbol;
     function tryExtractTypeScriptExtension(fileName: string): string | 
undefined;
-    const stringify: (value: any) => string;
     function convertToBase64(input: string): string;
     function getNewLineCharacter(options: CompilerOptions): string;
     function isSimpleExpression(node: Expression): boolean;
@@ -9133,6 +9242,7 @@ declare namespace ts {
     function isTemplateHead(node: Node): node is TemplateHead;
     function isTemplateMiddleOrTemplateTail(node: Node): node is 
TemplateMiddle | TemplateTail;
     function isIdentifier(node: Node): node is Identifier;
+    function isVoidExpression(node: Node): node is VoidExpression;
     function isGeneratedIdentifier(node: Node): node is GeneratedIdentifier;
     function isModifier(node: Node): node is Modifier;
     function isQualifiedName(node: Node): node is QualifiedName;
@@ -9433,7 +9543,6 @@ declare namespace ts {
     function createMergeDeclarationMarker(original: Node): 
MergeDeclarationMarker;
     function createPartiallyEmittedExpression(expression: Expression, 
original?: Node, location?: TextRange): PartiallyEmittedExpression;
     function updatePartiallyEmittedExpression(node: 
PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression;
-    function createRawExpression(text: string): RawExpression;
     function createComma(left: Expression, right: Expression): Expression;
     function createLessThan(left: Expression, right: Expression, location?: 
TextRange): Expression;
     function createAssignment(left: ObjectLiteralExpression | 
ArrayLiteralExpression, right: Expression, location?: TextRange): 
DestructuringAssignment;
@@ -9731,6 +9840,7 @@ declare namespace ts {
         getName(): string;
         getDeclarations(): Declaration[];
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface Type {
         getFlags(): TypeFlags;
@@ -9751,6 +9861,7 @@ declare namespace ts {
         getParameters(): Symbol[];
         getReturnType(): Type;
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface SourceFile {
         version: string;
@@ -9966,6 +10077,7 @@ declare namespace ts {
         InsertSpaceAfterCommaDelimiter: boolean;
         InsertSpaceAfterSemicolonInForStatements: boolean;
         InsertSpaceBeforeAndAfterBinaryOperators: boolean;
+        InsertSpaceAfterConstructor?: boolean;
         InsertSpaceAfterKeywordsInControlFlowStatements: boolean;
         InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean;
@@ -9974,6 +10086,7 @@ declare namespace ts {
         InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         InsertSpaceAfterTypeAssertion?: boolean;
+        InsertSpaceBeforeFunctionParenthesis?: boolean;
         PlaceOpenBraceOnNewLineForFunctions: boolean;
         PlaceOpenBraceOnNewLineForControlBlocks: boolean;
     }
@@ -9981,6 +10094,7 @@ declare namespace ts {
         insertSpaceAfterCommaDelimiter?: boolean;
         insertSpaceAfterSemicolonInForStatements?: boolean;
         insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+        insertSpaceAfterConstructor?: boolean;
         insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
         insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
@@ -9989,6 +10103,7 @@ declare namespace ts {
         insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         insertSpaceAfterTypeAssertion?: boolean;
+        insertSpaceBeforeFunctionParenthesis?: boolean;
         placeOpenBraceOnNewLineForFunctions?: boolean;
         placeOpenBraceOnNewLineForControlBlocks?: boolean;
     }
@@ -10035,12 +10150,17 @@ declare namespace ts {
         text: string;
         kind: string;
     }
+    interface JSDocTagInfo {
+        name: string;
+        text?: string;
+    }
     interface QuickInfo {
         kind: string;
         kindModifiers: string;
         textSpan: TextSpan;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface RenameInfo {
         canRename: boolean;
@@ -10064,6 +10184,7 @@ declare namespace ts {
         separatorDisplayParts: SymbolDisplayPart[];
         parameters: SignatureHelpParameter[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface SignatureHelpItems {
         items: SignatureHelpItem[];
@@ -10091,6 +10212,7 @@ declare namespace ts {
         kindModifiers: string;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface OutliningSpan {
         textSpan: TextSpan;
@@ -10390,6 +10512,7 @@ declare namespace ts.GoToImplementation {
 }
 declare namespace ts.JsDoc {
     function getJsDocCommentsFromDeclarations(declarations: Declaration[]): 
SymbolDisplayPart[];
+    function getJsDocTagsFromDeclarations(declarations: Declaration[]): 
JSDocTagInfo[];
     function getAllJsDocCompletionEntries(): CompletionEntry[];
     function getDocCommentTemplateAtPosition(newLine: string, sourceFile: 
SourceFile, position: number): TextInsertion;
 }
@@ -10454,6 +10577,7 @@ declare namespace ts.SymbolDisplay {
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
         symbolKind: string;
+        tags: JSDocTagInfo[];
     };
 }
 declare namespace ts {
@@ -10618,6 +10742,7 @@ declare namespace ts.formatting {
         SpaceAfterLetConstInVariableDeclaration: Rule;
         NoSpaceBeforeOpenParenInFuncCall: Rule;
         SpaceAfterFunctionInFuncDecl: Rule;
+        SpaceBeforeOpenParenInFuncDecl: Rule;
         NoSpaceBeforeOpenParenInFuncDecl: Rule;
         SpaceAfterVoidOperator: Rule;
         NoSpaceBetweenReturnAndSemicolon: Rule;
@@ -10626,6 +10751,7 @@ declare namespace ts.formatting {
         SpaceAfterGetSetInMember: Rule;
         SpaceBeforeBinaryKeywordOperator: Rule;
         SpaceAfterBinaryKeywordOperator: Rule;
+        SpaceAfterConstructor: Rule;
         NoSpaceAfterConstructor: Rule;
         NoSpaceAfterModuleImport: Rule;
         SpaceAfterCertainTypeScriptKeywords: Rule;
@@ -10900,10 +11026,6 @@ declare namespace ts {
 }
 declare namespace ts.codefix {
 }
-declare namespace ts.codefix {
-}
-declare namespace ts.codefix {
-}
 declare namespace ts {
     const servicesVersion = "0.5";
     interface DisplayPartsSymbolWriter extends SymbolWriter {
@@ -10922,24 +11044,57 @@ declare namespace ts {
     function getDefaultLibFilePath(options: CompilerOptions): string;
 }
 declare namespace ts.server {
+    class TextStorage {
+        private readonly host;
+        private readonly fileName;
+        private svc;
+        private svcVersion;
+        private text;
+        private lineMap;
+        private textVersion;
+        constructor(host: ServerHost, fileName: NormalizedPath);
+        getVersion(): string;
+        hasScriptVersionCache(): boolean;
+        useScriptVersionCache(newText?: string): void;
+        useText(newText?: string): void;
+        edit(start: number, end: number, newText: string): void;
+        reload(text: string): void;
+        reloadFromFile(tempFileName?: string): void;
+        getSnapshot(): IScriptSnapshot;
+        getLineInfo(line: number): ILineInfo;
+        lineToTextSpan(line: number): TextSpan;
+        lineOffsetToPosition(line: number, offset: number): number;
+        positionToLineOffset(position: number): ILineInfo;
+        private getFileText(tempFileName?);
+        private ensureNoScriptVersionCache();
+        private switchToScriptVersionCache(newText?);
+        private getOrLoadText();
+        private getLineMap();
+        private setText(newText);
+    }
     class ScriptInfo {
         private readonly host;
         readonly fileName: NormalizedPath;
         readonly scriptKind: ScriptKind;
-        isOpen: boolean;
         hasMixedContent: boolean;
         readonly containingProjects: Project[];
         private formatCodeSettings;
         readonly path: Path;
         private fileWatcher;
-        private svc;
-        constructor(host: ServerHost, fileName: NormalizedPath, content: 
string, scriptKind: ScriptKind, isOpen?: boolean, hasMixedContent?: boolean);
+        private textStorage;
+        private isOpen;
+        constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: 
ScriptKind, hasMixedContent?: boolean);
+        isScriptOpen(): boolean;
+        open(newText: string): void;
+        close(): void;
+        getSnapshot(): IScriptSnapshot;
         getFormatCodeSettings(): FormatCodeSettings;
         attachToProject(project: Project): boolean;
         isAttached(project: Project): boolean;
         detachFromProject(project: Project): void;
         detachAllProjects(): void;
         getDefaultProject(): Project;
+        registerFileUpdate(): void;
         setFormatOptions(formatSettings: FormatCodeSettings): void;
         setWatcher(watcher: FileWatcher): void;
         stopWatcher(): void;
@@ -10947,7 +11102,6 @@ declare namespace ts.server {
         reload(script: string): void;
         saveTo(fileName: string): void;
         reloadFromFile(tempFileName?: NormalizedPath): void;
-        snap(): LineIndexSnapshot;
         getLineInfo(line: number): ILineInfo;
         editContent(start: number, end: number, newText: string): void;
         markContainingProjectsAsDirty(): void;
@@ -10973,6 +11127,7 @@ declare namespace ts.server {
         startRecordingFilesWithChangedResolutions(): void;
         finishRecordingFilesWithChangedResolutions(): Path[];
         private resolveNamesWithLocalCache<T, R>(names, containingFile, cache, 
loader, getResult, getResultFileName, logChanges);
+        getNewLine(): string;
         getProjectVersion(): string;
         getCompilationSettings(): CompilerOptions;
         useCaseSensitiveFileNames(): boolean;
@@ -11032,6 +11187,7 @@ declare namespace ts.server {
         getFilesAffectedBy(scriptInfo: ScriptInfo): string[];
         onProjectUpdateGraph(): void;
         emitFile(scriptInfo: ScriptInfo, writeFile: (path: string, data: 
string, writeByteOrderMark?: boolean) => void): boolean;
+        clear(): void;
     }
     function createBuilder(project: Project): Builder;
 }
@@ -11055,7 +11211,6 @@ declare namespace ts.server {
         get(path: Path): ReadonlyArray<string>;
         set(path: Path, value: ReadonlyArray<string>): void;
     }
-    function createNoSemanticFeaturesWrapper(realLanguageService: 
LanguageService): LanguageService;
     abstract class Project {
         private readonly projectName;
         readonly projectKind: ProjectKind;
@@ -11070,9 +11225,9 @@ declare namespace ts.server {
         private cachedUnresolvedImportsPerFile;
         private lastCachedUnresolvedImportsList;
         private readonly languageService;
-        private readonly noSemanticFeaturesLanguageService;
         languageServiceEnabled: boolean;
         builder: Builder;
+        private updatedFileNames;
         private lastReportedFileNames;
         private lastReportedVersion;
         private projectStructureVersion;
@@ -11084,6 +11239,7 @@ declare namespace ts.server {
         isJsOnlyProject(): boolean;
         getCachedUnresolvedImportsPerFile_TestOnly(): UnresolvedImportsMap;
         constructor(projectName: string, projectKind: ProjectKind, 
projectService: ProjectService, documentRegistry: ts.DocumentRegistry, 
hasExplicitListOfFiles: boolean, languageServiceEnabled: boolean, 
compilerOptions: CompilerOptions, compileOnSaveEnabled: boolean);
+        private setInternalCompilerOptionsForEmittingJsFiles();
         getProjectErrors(): Diagnostic[];
         getLanguageService(ensureSynchronized?: boolean): LanguageService;
         getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[];
@@ -11110,6 +11266,7 @@ declare namespace ts.server {
         isRoot(info: ScriptInfo): boolean;
         addRoot(info: ScriptInfo): void;
         removeFile(info: ScriptInfo, detachFromProject?: boolean): void;
+        registerFileUpdate(fileName: string): void;
         markAsDirty(): void;
         private extractUnresolvedImportsFromSourceFile(file, result);
         updateGraph(): boolean;
@@ -11209,9 +11366,10 @@ declare namespace ts.server {
     interface HostConfiguration {
         formatCodeOptions: FormatCodeSettings;
         hostInfo: string;
+        extraFileExtensions?: FileExtensionInfo[];
     }
     interface OpenConfiguredProjectResult {
-        configFileName?: string;
+        configFileName?: NormalizedPath;
         configFileErrors?: Diagnostic[];
     }
     class ProjectService {
@@ -11295,7 +11453,8 @@ declare namespace ts.server {
         applyChangesInOpenFiles(openFiles: protocol.ExternalFile[], 
changedFiles: protocol.ChangedOpenFile[], closedFiles: string[]): void;
         private closeConfiguredProject(configFile);
         closeExternalProject(uncheckedFileName: string, suppressRefresh?: 
boolean): void;
-        openExternalProject(proj: protocol.ExternalProject): void;
+        openExternalProjects(projects: protocol.ExternalProject[]): void;
+        openExternalProject(proj: protocol.ExternalProject, 
suppressRefreshOfInferredProjects?: boolean): void;
     }
 }
 declare namespace ts.server {
@@ -11534,8 +11693,8 @@ declare namespace ts.server {
         static fromString(host: ServerHost, script: string): 
ScriptVersionCache;
     }
     class LineIndexSnapshot implements ts.IScriptSnapshot {
-        version: number;
-        cache: ScriptVersionCache;
+        readonly version: number;
+        readonly cache: ScriptVersionCache;
         index: LineIndex;
         changesSincePreviousVersion: TextChange[];
         constructor(version: number, cache: ScriptVersionCache);
@@ -11777,4 +11936,4 @@ declare namespace ts {
 declare namespace TypeScript.Services {
     const TypeScriptServicesFactory: typeof ts.TypeScriptServicesFactory;
 }
-declare const toolsVersion = "2.2";
+declare const toolsVersion = "2.1";
diff --git a/node_modules/typescript/lib/tsserverlibrary.js 
b/node_modules/typescript/lib/tsserverlibrary.js
index 4ed3709..0c15abb 100644
--- a/node_modules/typescript/lib/tsserverlibrary.js
+++ b/node_modules/typescript/lib/tsserverlibrary.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
@@ -137,7 +137,7 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 (function (ts) {
     var createObject = Object.create;
@@ -818,15 +818,6 @@ var ts;
         return result;
     }
     ts.reduceProperties = reduceProperties;
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
     function equalOwnProperties(left, right, equalityComparer) {
         if (left === right)
             return true;
@@ -1673,8 +1664,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -1685,11 +1687,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -2259,7 +2261,7 @@ var ts;
                 },
                 watchDirectory: function (directoryName, callback, recursive) {
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -2274,6 +2276,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 && 
s.charCodeAt(1) === 47;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -2473,7 +2478,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -2629,6 +2634,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -2672,6 +2678,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -2682,6 +2689,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -2988,6 +2996,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -3029,7 +3039,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -3082,6 +3092,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -3147,6 +3158,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -3202,6 +3214,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -3218,6 +3231,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 var ts;
@@ -5038,7 +5052,7 @@ var ts;
                 "es2017": 4,
                 "esnext": 5,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -5286,14 +5300,7 @@ var ts;
     }
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     function parseListTypeOption(opt, value, errors) {
@@ -5533,9 +5540,10 @@ var ts;
         }
         return output;
     }
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -5658,7 +5666,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -5762,7 +5770,7 @@ var ts;
     var invalidDotDotAfterRecursiveWildcardPattern = 
/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/;
     var watchRecursivePattern = /\/[^/]*?[*?][^/]*\//;
     var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         var keyMapper = host.useCaseSensitiveFileNames ? 
caseSensitiveKeyMapper : caseInsensitiveKeyMapper;
         var literalFileMap = ts.createMap();
@@ -5774,7 +5782,7 @@ var ts;
             exclude = validateSpecs(exclude, errors, true);
         }
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         if (fileNames) {
             for (var _i = 0, fileNames_1 = fileNames; _i < fileNames_1.length; 
_i++) {
                 var fileName = fileNames_1[_i];
@@ -6069,7 +6077,8 @@ var ts;
     (function (server) {
         server.ActionSet = "action::set";
         server.ActionInvalidate = "action::invalidate";
-        server.EventInstall = "event::install";
+        server.EventBeginInstallTypes = "event::beginInstallTypes";
+        server.EventEndInstallTypes = "event::endInstallTypes";
         var Arguments;
         (function (Arguments) {
             Arguments.GlobalCacheLocation = "--globalTypingsCacheLocation";
@@ -6153,6 +6162,7 @@ var ts;
                 newLineCharacter: host.newLine || "\n",
                 convertTabsToSpaces: true,
                 indentStyle: ts.IndentStyle.Smart,
+                insertSpaceAfterConstructor: false,
                 insertSpaceAfterCommaDelimiter: true,
                 insertSpaceAfterSemicolonInForStatements: true,
                 insertSpaceBeforeAndAfterBinaryOperators: true,
@@ -6162,6 +6172,7 @@ var ts;
                 insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,
                 insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: 
false,
                 insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: 
false,
+                insertSpaceBeforeFunctionParenthesis: false,
                 placeOpenBraceOnNewLineForFunctions: false,
                 placeOpenBraceOnNewLineForControlBlocks: false,
             };
@@ -6297,9 +6308,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
         return { resolvedFileName: path, extension: extension, 
isExternalLibraryImport: isExternalLibraryImport };
@@ -6311,20 +6319,14 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2:
             case 0:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -6379,6 +6381,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -6449,7 +6452,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2, typeReferenceDirectiveName, 
initialLocationForSecondaryLookup, failedLookupLocations, 
moduleResolutionState));
+                var result = loadModuleFromNodeModules(2, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -6490,31 +6494,115 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_1 = ts.getDirectoryPath(current);
+                    if (parent_1 === current || 
directoryPathMap.contains(parent_1)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_1, result);
+                    current = parent_1;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -6639,33 +6727,33 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0) || tryResolve(1);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -6747,16 +6835,28 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    return resolvedFromAnyFile(fromFile);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
                 }
-                var x = tryAddingExtensions(typesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
+                }
+                if (extensions === 1) {
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1, 
failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -6773,6 +6873,20 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -6783,16 +6897,21 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true);
+        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true, undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -6806,25 +6925,39 @@ var ts;
             return loadModuleFromNodeModulesFolder(2, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0) || tryResolve(1);
-        return createResolvedModuleWithFailedLookupLocations(resolved, false, 
failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0) {
                     return loadModuleFromNodeModulesAtTypes(moduleName, 
containingDirectory, failedLookupLocations, state);
@@ -6832,7 +6965,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, false, state));
             }
         }
     }
@@ -6848,6 +6981,9 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, true, 
failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
             var result = callback(directory);
@@ -6891,6 +7027,7 @@ var ts;
                 writeSpace: writeText,
                 writeStringLiteral: writeText,
                 writeParameter: writeText,
+                writeProperty: writeText,
                 writeSymbol: writeText,
                 writeLine: function () { return str_1 += " "; },
                 increaseIndent: ts.noop,
@@ -6963,17 +7100,17 @@ var ts;
     ts.hasChangesInResolutions = hasChangesInResolutions;
     function containsParseError(node) {
         aggregateChildData(node);
-        return (node.flags & 4194304) !== 0;
+        return (node.flags & 131072) !== 0;
     }
     ts.containsParseError = containsParseError;
     function aggregateChildData(node) {
-        if (!(node.flags & 8388608)) {
-            var thisNodeOrAnySubNodesHasError = ((node.flags & 1048576) !== 0) 
||
+        if (!(node.flags & 262144)) {
+            var thisNodeOrAnySubNodesHasError = ((node.flags & 32768) !== 0) ||
                 ts.forEachChild(node, containsParseError);
             if (thisNodeOrAnySubNodesHasError) {
-                node.flags |= 4194304;
+                node.flags |= 131072;
             }
-            node.flags |= 8388608;
+            node.flags |= 262144;
         }
     }
     function getSourceFileOfNode(node) {
@@ -7197,6 +7334,10 @@ var ts;
         return false;
     }
     ts.isExternalModuleAugmentation = isExternalModuleAugmentation;
+    function isEffectiveExternalModule(node, compilerOptions) {
+        return ts.isExternalModule(node) || compilerOptions.isolatedModules;
+    }
+    ts.isEffectiveExternalModule = isEffectiveExternalModule;
     function isBlockScope(node, parentNode) {
         switch (node.kind) {
             case 261:
@@ -7421,23 +7562,23 @@ var ts;
             case 141:
             case 177:
             case 98:
-                var parent_1 = node.parent;
-                if (parent_1.kind === 160) {
+                var parent_2 = node.parent;
+                if (parent_2.kind === 160) {
                     return false;
                 }
-                if (156 <= parent_1.kind && parent_1.kind <= 171) {
+                if (156 <= parent_2.kind && parent_2.kind <= 171) {
                     return true;
                 }
-                switch (parent_1.kind) {
+                switch (parent_2.kind) {
                     case 199:
-                        return 
!isExpressionWithTypeArgumentsInClassExtendsClause(parent_1);
+                        return 
!isExpressionWithTypeArgumentsInClassExtendsClause(parent_2);
                     case 143:
-                        return node === parent_1.constraint;
+                        return node === parent_2.constraint;
                     case 147:
                     case 146:
                     case 144:
                     case 223:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 225:
                     case 184:
                     case 185:
@@ -7446,16 +7587,16 @@ var ts;
                     case 148:
                     case 151:
                     case 152:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 153:
                     case 154:
                     case 155:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 182:
-                        return node === parent_1.type;
+                        return node === parent_2.type;
                     case 179:
                     case 180:
-                        return parent_1.typeArguments && 
ts.indexOf(parent_1.typeArguments, node) >= 0;
+                        return parent_2.typeArguments && 
ts.indexOf(parent_2.typeArguments, node) >= 0;
                     case 181:
                         return false;
                 }
@@ -7463,6 +7604,20 @@ var ts;
         return false;
     }
     ts.isPartOfTypeNode = isPartOfTypeNode;
+    function isChildOfLiteralType(node) {
+        while (node) {
+            if (node.kind === 171) {
+                return true;
+            }
+            node = node.parent;
+        }
+        return false;
+    }
+    ts.isChildOfLiteralType = isChildOfLiteralType;
+    function isPrefixUnaryExpression(node) {
+        return node.kind === 190;
+    }
+    ts.isPrefixUnaryExpression = isPrefixUnaryExpression;
     function forEachReturnStatement(body, visitor) {
         return traverse(body);
         function traverse(node) {
@@ -7521,6 +7676,18 @@ var ts;
         }
     }
     ts.forEachYieldExpression = forEachYieldExpression;
+    function getRestParameterElementType(node) {
+        if (node && node.kind === 162) {
+            return node.elementType;
+        }
+        else if (node && node.kind === 157) {
+            return ts.singleOrUndefined(node.typeArguments);
+        }
+        else {
+            return undefined;
+        }
+    }
+    ts.getRestParameterElementType = getRestParameterElementType;
     function isVariableLike(node) {
         if (node) {
             switch (node.kind) {
@@ -7722,13 +7889,13 @@ var ts;
     function getImmediatelyInvokedFunctionExpression(func) {
         if (func.kind === 184 || func.kind === 185) {
             var prev = func;
-            var parent_2 = func.parent;
-            while (parent_2.kind === 183) {
-                prev = parent_2;
-                parent_2 = parent_2.parent;
+            var parent_3 = func.parent;
+            while (parent_3.kind === 183) {
+                prev = parent_3;
+                parent_3 = parent_3.parent;
             }
-            if (parent_2.kind === 179 && parent_2.expression === prev) {
-                return parent_2;
+            if (parent_3.kind === 179 && parent_3.expression === prev) {
+                return parent_3;
             }
         }
     }
@@ -7874,8 +8041,8 @@ var ts;
             case 8:
             case 9:
             case 98:
-                var parent_3 = node.parent;
-                switch (parent_3.kind) {
+                var parent_4 = node.parent;
+                switch (parent_4.kind) {
                     case 223:
                     case 144:
                     case 147:
@@ -7883,7 +8050,7 @@ var ts;
                     case 260:
                     case 257:
                     case 174:
-                        return parent_3.initializer === node;
+                        return parent_4.initializer === node;
                     case 207:
                     case 208:
                     case 209:
@@ -7894,33 +8061,33 @@ var ts;
                     case 253:
                     case 220:
                     case 218:
-                        return parent_3.expression === node;
+                        return parent_4.expression === node;
                     case 211:
-                        var forStatement = parent_3;
+                        var forStatement = parent_4;
                         return (forStatement.initializer === node && 
forStatement.initializer.kind !== 224) ||
                             forStatement.condition === node ||
                             forStatement.incrementor === node;
                     case 212:
                     case 213:
-                        var forInStatement = parent_3;
+                        var forInStatement = parent_4;
                         return (forInStatement.initializer === node && 
forInStatement.initializer.kind !== 224) ||
                             forInStatement.expression === node;
                     case 182:
                     case 200:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 202:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 142:
-                        return node === parent_3.expression;
+                        return node === parent_4.expression;
                     case 145:
                     case 252:
                     case 251:
                     case 259:
                         return true;
                     case 199:
-                        return parent_3.expression === node && 
isExpressionWithTypeArgumentsInClassExtendsClause(parent_3);
+                        return parent_4.expression === node && 
isExpressionWithTypeArgumentsInClassExtendsClause(parent_4);
                     default:
-                        if (isPartOfExpression(parent_3)) {
+                        if (isPartOfExpression(parent_4)) {
                             return true;
                         }
                 }
@@ -7952,7 +8119,7 @@ var ts;
     }
     ts.isSourceFileJavaScript = isSourceFileJavaScript;
     function isInJavaScriptFile(node) {
-        return node && !!(node.flags & 2097152);
+        return node && !!(node.flags & 65536);
     }
     ts.isInJavaScriptFile = isInJavaScriptFile;
     function isRequireCall(expression, checkArgumentIsStringLiteral) {
@@ -8137,6 +8304,7 @@ var ts;
             cache = ts.concatenate(cache, node.jsDoc);
         }
     }
+    ts.getJSDocs = getJSDocs;
     function getJSDocParameterTags(param) {
         if (!isParameter(param)) {
             return undefined;
@@ -8191,7 +8359,7 @@ var ts;
     }
     ts.hasDeclaredRestParameter = hasDeclaredRestParameter;
     function isRestParameter(node) {
-        if (node && (node.flags & 2097152)) {
+        if (node && (node.flags & 65536)) {
             if (node.type && node.type.kind === 275 ||
                 ts.forEach(getJSDocParameterTags(node), function (t) { return 
t.typeExpression && t.typeExpression.type.kind === 275; })) {
                 return true;
@@ -8636,7 +8804,6 @@ var ts;
             case 194:
             case 183:
             case 198:
-            case 297:
                 return 19;
             case 181:
             case 177:
@@ -8810,13 +8977,12 @@ var ts;
         "\u0085": "\\u0085"
     });
     function escapeString(s) {
-        s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, 
getReplacement) : s;
-        return s;
-        function getReplacement(c) {
-            return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
-        }
+        return s.replace(escapedCharsRegExp, getReplacement);
     }
     ts.escapeString = escapeString;
+    function getReplacement(c) {
+        return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
+    }
     function isIntrinsicJsxName(name) {
         var ch = name.substr(0, 1);
         return ch.toLowerCase() === ch;
@@ -9492,39 +9658,6 @@ var ts;
         }
         return output;
     }
-    ts.stringify = typeof JSON !== "undefined" && JSON.stringify
-        ? JSON.stringify
-        : stringifyFallback;
-    function stringifyFallback(value) {
-        return value === undefined ? undefined : stringifyValue(value);
-    }
-    function stringifyValue(value) {
-        return typeof value === "string" ? "\"" + escapeString(value) + "\""
-            : typeof value === "number" ? isFinite(value) ? String(value) : 
"null"
-                : typeof value === "boolean" ? value ? "true" : "false"
-                    : typeof value === "object" && value ? ts.isArray(value) ? 
cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value)
-                        : "null";
-    }
-    function cycleCheck(cb, value) {
-        ts.Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular 
structure to JSON");
-        value.__cycle = true;
-        var result = cb(value);
-        delete value.__cycle;
-        return result;
-    }
-    function stringifyArray(value) {
-        return "[" + ts.reduceLeft(value, stringifyElement, "") + "]";
-    }
-    function stringifyElement(memo, value) {
-        return (memo ? memo + "," : memo) + stringifyValue(value);
-    }
-    function stringifyObject(value) {
-        return "{" + ts.reduceOwnProperties(value, stringifyProperty, "") + 
"}";
-    }
-    function stringifyProperty(memo, value, key) {
-        return value === undefined || typeof value === "function" || key === 
"__cycle" ? memo
-            : (memo ? memo + "," : memo) + ("\"" + escapeString(key) + "\":" + 
stringifyValue(value));
-    }
     var base64Digits = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
     function convertToBase64(input) {
         var result = "";
@@ -9795,6 +9928,10 @@ var ts;
         return node.kind === 70;
     }
     ts.isIdentifier = isIdentifier;
+    function isVoidExpression(node) {
+        return node.kind === 188;
+    }
+    ts.isVoidExpression = isVoidExpression;
     function isGeneratedIdentifier(node) {
         return isIdentifier(node) && node.autoGenerateKind > 0;
     }
@@ -10023,8 +10160,7 @@ var ts;
             || kind === 98
             || kind === 100
             || kind === 96
-            || kind === 201
-            || kind === 297;
+            || kind === 201;
     }
     function isLeftHandSideExpression(node) {
         return 
isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
@@ -10052,7 +10188,6 @@ var ts;
             || kind === 196
             || kind === 200
             || kind === 198
-            || kind === 297
             || isUnaryExpressionKind(kind);
     }
     function isExpression(node) {
@@ -12015,12 +12150,6 @@ var ts;
         return node;
     }
     ts.updatePartiallyEmittedExpression = updatePartiallyEmittedExpression;
-    function createRawExpression(text) {
-        var node = createNode(297);
-        node.text = text;
-        return node;
-    }
-    ts.createRawExpression = createRawExpression;
     function createComma(left, right) {
         return createBinary(left, 25, right);
     }
@@ -13730,7 +13859,7 @@ var ts;
     var Parser;
     (function (Parser) {
         var scanner = ts.createScanner(5, true);
-        var disallowInAndDecoratorContext = 65536 | 262144;
+        var disallowInAndDecoratorContext = 2048 | 8192;
         var NodeConstructor;
         var TokenConstructor;
         var IdentifierConstructor;
@@ -13778,7 +13907,7 @@ var ts;
             identifiers = ts.createMap();
             identifierCount = 0;
             nodeCount = 0;
-            contextFlags = scriptKind === 1 || scriptKind === 2 ? 2097152 : 0;
+            contextFlags = scriptKind === 1 || scriptKind === 2 ? 65536 : 0;
             parseErrorBeforeNextFinishedNode = false;
             scanner.setText(sourceText);
             scanner.setOnError(scanError);
@@ -13873,16 +14002,16 @@ var ts;
             }
         }
         function setDisallowInContext(val) {
-            setContextFlag(val, 65536);
+            setContextFlag(val, 2048);
         }
         function setYieldContext(val) {
-            setContextFlag(val, 131072);
+            setContextFlag(val, 4096);
         }
         function setDecoratorContext(val) {
-            setContextFlag(val, 262144);
+            setContextFlag(val, 8192);
         }
         function setAwaitContext(val) {
-            setContextFlag(val, 524288);
+            setContextFlag(val, 16384);
         }
         function doOutsideOfContext(context, func) {
             var contextFlagsToClear = context & contextFlags;
@@ -13905,40 +14034,40 @@ var ts;
             return func();
         }
         function allowInAnd(func) {
-            return doOutsideOfContext(65536, func);
+            return doOutsideOfContext(2048, func);
         }
         function disallowInAnd(func) {
-            return doInsideOfContext(65536, func);
+            return doInsideOfContext(2048, func);
         }
         function doInYieldContext(func) {
-            return doInsideOfContext(131072, func);
+            return doInsideOfContext(4096, func);
         }
         function doInDecoratorContext(func) {
-            return doInsideOfContext(262144, func);
+            return doInsideOfContext(8192, func);
         }
         function doInAwaitContext(func) {
-            return doInsideOfContext(524288, func);
+            return doInsideOfContext(16384, func);
         }
         function doOutsideOfAwaitContext(func) {
-            return doOutsideOfContext(524288, func);
+            return doOutsideOfContext(16384, func);
         }
         function doInYieldAndAwaitContext(func) {
-            return doInsideOfContext(131072 | 524288, func);
+            return doInsideOfContext(4096 | 16384, func);
         }
         function inContext(flags) {
             return (contextFlags & flags) !== 0;
         }
         function inYieldContext() {
-            return inContext(131072);
+            return inContext(4096);
         }
         function inDisallowInContext() {
-            return inContext(65536);
+            return inContext(2048);
         }
         function inDecoratorContext() {
-            return inContext(262144);
+            return inContext(8192);
         }
         function inAwaitContext() {
-            return inContext(524288);
+            return inContext(16384);
         }
         function parseErrorAtCurrentToken(message, arg0) {
             var start = scanner.getTokenPos();
@@ -14100,7 +14229,7 @@ var ts;
             }
             if (parseErrorBeforeNextFinishedNode) {
                 parseErrorBeforeNextFinishedNode = false;
-                node.flags |= 1048576;
+                node.flags |= 32768;
             }
             return node;
         }
@@ -14418,7 +14547,7 @@ var ts;
             if (ts.containsParseError(node)) {
                 return undefined;
             }
-            var nodeContextFlags = node.flags & 3080192;
+            var nodeContextFlags = node.flags & 96256;
             if (nodeContextFlags !== contextFlags) {
                 return undefined;
             }
@@ -15091,6 +15220,8 @@ var ts;
                 case 16:
                 case 20:
                 case 26:
+                case 48:
+                case 47:
                 case 93:
                 case 9:
                 case 8:
@@ -15143,6 +15274,7 @@ var ts;
             return parseArrayTypeOrHigher();
         }
         function parseUnionOrIntersectionType(kind, parseConstituentType, 
operator) {
+            parseOptional(operator);
             var type = parseConstituentType();
             if (token() === operator) {
                 var types = createNodeArray([type], type.pos);
@@ -15223,7 +15355,7 @@ var ts;
             }
         }
         function parseType() {
-            return doOutsideOfContext(655360, parseTypeWorker);
+            return doOutsideOfContext(20480, parseTypeWorker);
         }
         function parseTypeWorker() {
             if (isStartOfFunctionType()) {
@@ -16854,7 +16986,7 @@ var ts;
             property.type = parseTypeAnnotation();
             property.initializer = ts.hasModifier(property, 32)
                 ? allowInAnd(parseNonParameterInitializer)
-                : doOutsideOfContext(131072 | 65536, 
parseNonParameterInitializer);
+                : doOutsideOfContext(4096 | 2048, 
parseNonParameterInitializer);
             parseSemicolon();
             return addJSDocComment(finishNode(property));
         }
@@ -17771,7 +17903,7 @@ var ts;
                                 break;
                             case 38:
                                 var asterisk = scanner.getTokenText();
-                                if (state === 1) {
+                                if (state === 1 || state === 2) {
                                     state = 2;
                                     pushComment(asterisk);
                                 }
@@ -17786,7 +17918,10 @@ var ts;
                                 break;
                             case 5:
                                 var whitespace = scanner.getTokenText();
-                                if (state === 2 || margin !== undefined && 
indent + whitespace.length > margin) {
+                                if (state === 2) {
+                                    comments.push(whitespace);
+                                }
+                                else if (margin !== undefined && indent + 
whitespace.length > margin) {
                                     comments.push(whitespace.slice(margin - 
indent - 1));
                                 }
                                 indent += whitespace.length;
@@ -17794,6 +17929,7 @@ var ts;
                             case 1:
                                 break;
                             default:
+                                state = 2;
                                 pushComment(scanner.getTokenText());
                                 break;
                         }
@@ -17883,7 +18019,7 @@ var ts;
                 }
                 function parseTagComments(indent) {
                     var comments = [];
-                    var state = 1;
+                    var state = 0;
                     var margin;
                     function pushComment(text) {
                         if (!margin) {
@@ -18828,7 +18964,7 @@ var ts;
                 activeLabels = undefined;
                 hasExplicitReturn = false;
                 bindChildren(node);
-                node.flags &= ~64896;
+                node.flags &= ~1408;
                 if (!(currentFlow.flags & 1) && containerFlags & 8 && 
ts.nodeIsPresent(node.body)) {
                     node.flags |= 128;
                     if (hasExplicitReturn)
@@ -20011,9 +20147,6 @@ var ts;
                     return bindParameter(node);
                 case 223:
                 case 174:
-                    if (node.dotDotDotToken && node.parent.kind === 172) {
-                        emitFlags |= 32768;
-                    }
                     return bindVariableDeclarationOrBindingElement(node);
                 case 147:
                 case 146:
@@ -20040,7 +20173,6 @@ var ts;
                         }
                         root = root.parent;
                     }
-                    emitFlags |= hasRest ? 32768 : 16384;
                     return;
                 case 153:
                 case 154:
@@ -20156,12 +20288,12 @@ var ts;
                 return;
             }
             else {
-                var parent_4 = node.parent;
-                if (!ts.isExternalModule(parent_4)) {
+                var parent_5 = node.parent;
+                if (!ts.isExternalModule(parent_5)) {
                     file.bindDiagnostics.push(ts.createDiagnosticForNode(node, 
ts.Diagnostics.Global_module_exports_may_only_appear_in_module_files));
                     return;
                 }
-                if (!parent_4.isDeclarationFile) {
+                if (!parent_5.isDeclarationFile) {
                     file.bindDiagnostics.push(ts.createDiagnosticForNode(node, 
ts.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files));
                     return;
                 }
@@ -20236,14 +20368,6 @@ var ts;
             }
         }
         function bindClassLikeDeclaration(node) {
-            if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
-                if (ts.getClassExtendsHeritageClauseElement(node) !== 
undefined) {
-                    emitFlags |= 1024;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
-                }
-            }
             if (node.kind === 226) {
                 bindBlockScopedDeclaration(node, 32, 899519);
             }
@@ -20287,11 +20411,6 @@ var ts;
             }
         }
         function bindParameter(node) {
-            if (!ts.isDeclarationFile(file) &&
-                !ts.isInAmbientContext(node) &&
-                ts.nodeIsDecorated(node)) {
-                emitFlags |= (2048 | 4096);
-            }
             if (inStrictMode) {
                 checkStrictModeEvalOrArguments(node, node.name);
             }
@@ -20309,7 +20428,7 @@ var ts;
         function bindFunctionDeclaration(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             checkStrictModeFunctionName(node);
@@ -20324,7 +20443,7 @@ var ts;
         function bindFunctionExpression(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow) {
@@ -20337,10 +20456,7 @@ var ts;
         function bindPropertyOrMethodOrAccessor(node, symbolFlags, 
symbolExcludes) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048;
+                    emitFlags |= 1024;
                 }
             }
             if (currentFlow && 
ts.isObjectLiteralOrClassExpressionMethod(node)) {
@@ -21048,6 +21164,8 @@ var ts;
     ts.getSymbolId = getSymbolId;
     function createTypeChecker(host, produceDiagnostics) {
         var cancellationToken;
+        var requestedExternalEmitHelpers;
+        var externalHelpersModule;
         var Symbol = ts.objectAllocator.getSymbolConstructor();
         var Type = ts.objectAllocator.getTypeConstructor();
         var Signature = ts.objectAllocator.getSignatureConstructor();
@@ -21355,9 +21473,7 @@ var ts;
                         (target.valueDeclaration.kind === 230 && 
source.valueDeclaration.kind !== 230))) {
                     target.valueDeclaration = source.valueDeclaration;
                 }
-                ts.forEach(source.declarations, function (node) {
-                    target.declarations.push(node);
-                });
+                ts.addRange(target.declarations, source.declarations);
                 if (source.members) {
                     if (!target.members)
                         target.members = ts.createMap();
@@ -21493,8 +21609,18 @@ var ts;
                 return ts.indexOf(sourceFiles, declarationFile) <= 
ts.indexOf(sourceFiles, useFile);
             }
             if (declaration.pos <= usage.pos) {
-                return declaration.kind !== 223 ||
-                    
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                if (declaration.kind === 174) {
+                    var errorBindingElement = ts.getAncestor(usage, 174);
+                    if (errorBindingElement) {
+                        return getAncestorBindingPattern(errorBindingElement) 
!== getAncestorBindingPattern(declaration) ||
+                            declaration.pos < errorBindingElement.pos;
+                    }
+                    return 
isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), usage);
+                }
+                else if (declaration.kind === 223) {
+                    return 
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                }
+                return true;
             }
             var container = ts.getEnclosingBlockScopeContainer(declaration);
             return isUsedInFunctionOrNonStaticProperty(usage, container);
@@ -21538,6 +21664,15 @@ var ts;
                 }
                 return false;
             }
+            function getAncestorBindingPattern(node) {
+                while (node) {
+                    if (ts.isBindingPattern(node)) {
+                        return node;
+                    }
+                    node = node.parent;
+                }
+                return undefined;
+            }
         }
         function resolveName(location, name, meaning, nameNotFoundMessage, 
nameArg) {
             var result;
@@ -21790,7 +21925,7 @@ var ts;
             ts.Debug.assert((result.flags & 2) !== 0);
             var declaration = ts.forEach(result.declarations, function (d) { 
return ts.isBlockOrCatchScoped(d) ? d : undefined; });
             ts.Debug.assert(declaration !== undefined, "Block-scoped variable 
declaration is undefined");
-            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223), 
errorLocation)) {
+            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
                 error(errorLocation, 
ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, 
ts.declarationNameToString(declaration.name));
             }
         }
@@ -21817,7 +21952,7 @@ var ts;
             }
         }
         function getDeclarationOfAliasSymbol(symbol) {
-            return ts.forEach(symbol.declarations, function (d) { return 
ts.isAliasSymbolDeclaration(d) ? d : undefined; });
+            return ts.find(symbol.declarations, ts.isAliasSymbolDeclaration);
         }
         function getTargetOfImportEqualsDeclaration(node) {
             if (node.moduleReference.kind === 245) {
@@ -22084,9 +22219,8 @@ var ts;
             }
             if (!isRelative && resolvedModule && 
!ts.extensionIsTypeScript(resolvedModule.extension)) {
                 if (isForAugmentation) {
-                    ts.Debug.assert(!!moduleNotFoundError);
                     var diag = 
ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
-                    error(errorNode, diag, moduleName, 
resolvedModule.resolvedFileName);
+                    error(errorNode, diag, moduleReference, 
resolvedModule.resolvedFileName);
                 }
                 else if (compilerOptions.noImplicitAny && moduleNotFoundError) 
{
                     error(errorNode, 
ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
 moduleReference, resolvedModule.resolvedFileName);
@@ -22315,6 +22449,16 @@ var ts;
         }
         function getAccessibleSymbolChain(symbol, enclosingDeclaration, 
meaning, useOnlyExternalAliasing) {
             function getAccessibleSymbolChainFromSymbolTable(symbols) {
+                return getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
[]);
+            }
+            function getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
visitedSymbolTables) {
+                if (ts.contains(visitedSymbolTables, symbols)) {
+                    return undefined;
+                }
+                visitedSymbolTables.push(symbols);
+                var result = trySymbolTable(symbols);
+                visitedSymbolTables.pop();
+                return result;
                 function canQualifySymbol(symbolFromSymbolTable, meaning) {
                     if (!needsQualification(symbolFromSymbolTable, 
enclosingDeclaration, meaning)) {
                         return true;
@@ -22328,26 +22472,28 @@ var ts;
                             canQualifySymbol(symbolFromSymbolTable, meaning);
                     }
                 }
-                if (isAccessible(symbols[symbol.name])) {
-                    return [symbol];
-                }
-                return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
-                    if (symbolFromSymbolTable.flags & 8388608
-                        && symbolFromSymbolTable.name !== "export="
-                        && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
-                        if (!useOnlyExternalAliasing ||
-                            ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
-                            var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
-                            if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
-                                return [symbolFromSymbolTable];
-                            }
-                            var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : 
undefined;
-                            if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
-                                return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                function trySymbolTable(symbols) {
+                    if (isAccessible(symbols[symbol.name])) {
+                        return [symbol];
+                    }
+                    return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
+                        if (symbolFromSymbolTable.flags & 8388608
+                            && symbolFromSymbolTable.name !== "export="
+                            && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243)) {
+                            if (!useOnlyExternalAliasing ||
+                                ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
+                                var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
+                                if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
+                                    return [symbolFromSymbolTable];
+                                }
+                                var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTableWorker(resolvedImportedSymbol.exports, 
visitedSymbolTables) : undefined;
+                                if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
+                                    return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                                }
                             }
                         }
-                    }
-                });
+                    });
+                }
             }
             if (symbol) {
                 if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
@@ -22648,9 +22794,9 @@ var ts;
                     var accessibleSymbolChain = 
getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2));
                     if (!accessibleSymbolChain ||
                         needsQualification(accessibleSymbolChain[0], 
enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : 
getQualifiedLeftMeaning(meaning))) {
-                        var parent_5 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
-                        if (parent_5) {
-                            walkSymbol(parent_5, 
getQualifiedLeftMeaning(meaning), false);
+                        var parent_6 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
+                        if (parent_6) {
+                            walkSymbol(parent_6, 
getQualifiedLeftMeaning(meaning), false);
                         }
                     }
                     if (accessibleSymbolChain) {
@@ -22783,12 +22929,12 @@ var ts;
                             var length_1 = outerTypeParameters.length;
                             while (i < length_1) {
                                 var start = i;
-                                var parent_6 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
+                                var parent_7 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
                                 do {
                                     i++;
-                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_6);
+                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_7);
                                 if (!ts.rangeEquals(outerTypeParameters, 
typeArguments, start, i)) {
-                                    writeSymbolTypeReference(parent_6, 
typeArguments, start, i, flags);
+                                    writeSymbolTypeReference(parent_7, 
typeArguments, start, i, flags);
                                     writePunctuation(writer, 22);
                                 }
                             }
@@ -23069,7 +23215,7 @@ var ts;
                 }
                 ts.Debug.assert(bindingElement.kind === 174);
                 if (bindingElement.propertyName) {
-                    
writer.writeSymbol(ts.getTextOfNode(bindingElement.propertyName), 
bindingElement.symbol);
+                    
writer.writeProperty(ts.getTextOfNode(bindingElement.propertyName));
                     writePunctuation(writer, 55);
                     writeSpace(writer);
                 }
@@ -23212,12 +23358,12 @@ var ts;
                         if (ts.isExternalModuleAugmentation(node)) {
                             return true;
                         }
-                        var parent_7 = getDeclarationContainer(node);
+                        var parent_8 = getDeclarationContainer(node);
                         if (!(ts.getCombinedModifierFlags(node) & 1) &&
-                            !(node.kind !== 234 && parent_7.kind !== 261 && 
ts.isInAmbientContext(parent_7))) {
-                            return isGlobalSourceFile(parent_7);
+                            !(node.kind !== 234 && parent_8.kind !== 261 && 
ts.isInAmbientContext(parent_8))) {
+                            return isGlobalSourceFile(parent_8);
                         }
-                        return isDeclarationVisible(parent_7);
+                        return isDeclarationVisible(parent_8);
                     case 147:
                     case 146:
                     case 151:
@@ -23376,7 +23522,13 @@ var ts;
             return name.kind === 142 && 
!ts.isStringOrNumericLiteral(name.expression);
         }
         function getRestType(source, properties, symbol) {
-            ts.Debug.assert(!!(source.flags & 32768), "Rest types only support 
object types right now.");
+            source = filterType(source, function (t) { return !(t.flags & 
6144); });
+            if (source.flags & 8192) {
+                return emptyObjectType;
+            }
+            if (source.flags & 65536) {
+                return mapType(source, function (t) { return getRestType(t, 
properties, symbol); });
+            }
             var members = ts.createMap();
             var names = ts.createMap();
             for (var _i = 0, properties_2 = properties; _i < 
properties_2.length; _i++) {
@@ -23412,7 +23564,7 @@ var ts;
             var type;
             if (pattern.kind === 172) {
                 if (declaration.dotDotDotToken) {
-                    if (!(parentType.flags & 32768)) {
+                    if (!isValidSpreadType(parentType)) {
                         error(declaration, 
ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -23490,7 +23642,7 @@ var ts;
             return strictNullChecks && optional ? includeFalsyTypes(type, 
2048) : type;
         }
         function getTypeForVariableLikeDeclaration(declaration, 
includeOptionality) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = 
getTypeForVariableLikeDeclarationFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -23509,7 +23661,7 @@ var ts;
             if (declaration.type) {
                 return addOptionality(getTypeFromTypeNode(declaration.type), 
declaration.questionToken && includeOptionality);
             }
-            if ((compilerOptions.noImplicitAny || declaration.flags & 2097152) 
&&
+            if ((compilerOptions.noImplicitAny || declaration.flags & 65536) &&
                 declaration.kind === 223 && 
!ts.isBindingPattern(declaration.name) &&
                 !(ts.getCombinedModifierFlags(declaration) & 1) && 
!ts.isInAmbientContext(declaration)) {
                 if (!(ts.getCombinedNodeFlags(declaration) & 2) && 
(!declaration.initializer || isNullOrUndefined(declaration.initializer))) {
@@ -23570,13 +23722,18 @@ var ts;
         }
         function getTypeFromObjectBindingPattern(pattern, 
includePatternInType, reportErrors) {
             var members = ts.createMap();
+            var stringIndexInfo;
             var hasComputedProperties = false;
             ts.forEach(pattern.elements, function (e) {
                 var name = e.propertyName || e.name;
-                if (isComputedNonLiteralName(name) || e.dotDotDotToken) {
+                if (isComputedNonLiteralName(name)) {
                     hasComputedProperties = true;
                     return;
                 }
+                if (e.dotDotDotToken) {
+                    stringIndexInfo = createIndexInfo(anyType, false);
+                    return;
+                }
                 var text = ts.getTextOfPropertyName(name);
                 var flags = 4 | 67108864 | (e.initializer ? 536870912 : 0);
                 var symbol = createSymbol(flags, text);
@@ -23584,7 +23741,7 @@ var ts;
                 symbol.bindingElement = e;
                 members[symbol.name] = symbol;
             });
-            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, undefined, undefined);
+            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, stringIndexInfo, undefined);
             if (includePatternInType) {
                 result.pattern = pattern;
             }
@@ -23649,7 +23806,7 @@ var ts;
                 if (declaration.kind === 240) {
                     return links.type = 
checkExpression(declaration.expression);
                 }
-                if (declaration.flags & 2097152 && declaration.kind === 286 && 
declaration.typeExpression) {
+                if (declaration.flags & 65536 && declaration.kind === 286 && 
declaration.typeExpression) {
                     return links.type = 
getTypeFromTypeNode(declaration.typeExpression.type);
                 }
                 if (!pushTypeResolution(symbol, 0)) {
@@ -23658,7 +23815,7 @@ var ts;
                 var type = void 0;
                 if (declaration.kind === 192 ||
                     declaration.kind === 177 && declaration.parent.kind === 
192) {
-                    if (declaration.flags & 2097152) {
+                    if (declaration.flags & 65536) {
                         var jsdocType = ts.getJSDocType(declaration.parent);
                         if (jsdocType) {
                             return links.type = getTypeFromTypeNode(jsdocType);
@@ -23673,16 +23830,7 @@ var ts;
                     type = 
getWidenedTypeForVariableLikeDeclaration(declaration, true);
                 }
                 if (!popTypeResolution()) {
-                    if (symbol.valueDeclaration.type) {
-                        type = unknownType;
-                        error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
-                    }
-                    else {
-                        type = anyType;
-                        if (compilerOptions.noImplicitAny) {
-                            error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
-                        }
-                    }
+                    type = reportCircularityError(symbol);
                 }
                 links.type = type;
             }
@@ -23712,7 +23860,7 @@ var ts;
             if (!links.type) {
                 var getter = ts.getDeclarationOfKind(symbol, 151);
                 var setter = ts.getDeclarationOfKind(symbol, 152);
-                if (getter && getter.flags & 2097152) {
+                if (getter && getter.flags & 65536) {
                     var jsDocType = 
getTypeForVariableLikeDeclarationFromJSDocComment(getter);
                     if (jsDocType) {
                         return links.type = jsDocType;
@@ -23794,10 +23942,27 @@ var ts;
         function getTypeOfInstantiatedSymbol(symbol) {
             var links = getSymbolLinks(symbol);
             if (!links.type) {
-                links.type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!pushTypeResolution(symbol, 0)) {
+                    return unknownType;
+                }
+                var type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!popTypeResolution()) {
+                    type = reportCircularityError(symbol);
+                }
+                links.type = type;
             }
             return links.type;
         }
+        function reportCircularityError(symbol) {
+            if (symbol.valueDeclaration.type) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
+                return unknownType;
+            }
+            if (compilerOptions.noImplicitAny) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
+            }
+            return anyType;
+        }
         function getTypeOfSymbol(symbol) {
             if (symbol.flags & 16777216) {
                 return getTypeOfInstantiatedSymbol(symbol);
@@ -24565,37 +24730,42 @@ var ts;
         function resolveMappedTypeMembers(type) {
             var members = ts.createMap();
             var stringIndexInfo;
-            var numberIndexInfo;
             setStructuredTypeMembers(type, emptySymbols, emptyArray, 
emptyArray, undefined, undefined);
             var typeParameter = getTypeParameterFromMappedType(type);
             var constraintType = getConstraintTypeFromMappedType(type);
             var templateType = getTemplateTypeFromMappedType(type);
-            var isReadonly = !!type.declaration.readonlyToken;
-            var isOptional = !!type.declaration.questionToken;
-            var keyType = constraintType.flags & 16384 ? 
getApparentType(constraintType) : constraintType;
-            var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
-            forEachType(iterationType, function (t) {
+            var modifiersType = 
getApparentType(getModifiersTypeFromMappedType(type));
+            var templateReadonly = !!type.declaration.readonlyToken;
+            var templateOptional = !!type.declaration.questionToken;
+            if (type.declaration.typeParameter.constraint.kind === 168) {
+                forEachType(getLiteralTypeFromPropertyNames(modifiersType), 
addMemberForKeyType);
+                if (getIndexInfoOfType(modifiersType, 0)) {
+                    addMemberForKeyType(stringType);
+                }
+            }
+            else {
+                var keyType = constraintType.flags & 540672 ? 
getApparentType(constraintType) : constraintType;
+                var iterationType = keyType.flags & 262144 ? 
getIndexType(getApparentType(keyType.type)) : keyType;
+                forEachType(iterationType, addMemberForKeyType);
+            }
+            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, undefined);
+            function addMemberForKeyType(t) {
                 var iterationMapper = createUnaryTypeMapper(typeParameter, t);
                 var templateMapper = type.mapper ? 
combineTypeMappers(type.mapper, iterationMapper) : iterationMapper;
                 var propType = instantiateType(templateType, templateMapper);
-                if (t.flags & (32 | 64 | 256)) {
+                if (t.flags & 32) {
                     var propName = t.text;
+                    var modifiersProp = getPropertyOfType(modifiersType, 
propName);
+                    var isOptional = templateOptional || !!(modifiersProp && 
modifiersProp.flags & 536870912);
                     var prop = createSymbol(4 | 67108864 | (isOptional ? 
536870912 : 0), propName);
-                    prop.type = addOptionality(propType, isOptional);
-                    prop.isReadonly = isReadonly;
+                    prop.type = propType;
+                    prop.isReadonly = templateReadonly || modifiersProp && 
isReadonlySymbol(modifiersProp);
                     members[propName] = prop;
                 }
                 else if (t.flags & 2) {
-                    stringIndexInfo = createIndexInfo(propType, isReadonly);
-                }
-                else if (t.flags & 4) {
-                    numberIndexInfo = createIndexInfo(propType, isReadonly);
+                    stringIndexInfo = createIndexInfo(propType, 
templateReadonly);
                 }
-            });
-            if (stringIndexInfo && numberIndexInfo && 
isTypeIdenticalTo(stringIndexInfo.type, numberIndexInfo.type)) {
-                numberIndexInfo = undefined;
             }
-            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, numberIndexInfo);
         }
         function getTypeParameterFromMappedType(type) {
             return type.typeParameter ||
@@ -24608,16 +24778,31 @@ var ts;
         function getTemplateTypeFromMappedType(type) {
             return type.templateType ||
                 (type.templateType = type.declaration.type ?
-                    
instantiateType(getTypeFromTypeNode(type.declaration.type), type.mapper || 
identityMapper) :
+                    
instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), 
!!type.declaration.questionToken), type.mapper || identityMapper) :
                     unknownType);
         }
+        function getModifiersTypeFromMappedType(type) {
+            if (!type.modifiersType) {
+                var constraintDeclaration = 
type.declaration.typeParameter.constraint;
+                if (constraintDeclaration.kind === 168) {
+                    type.modifiersType = 
instantiateType(getTypeFromTypeNode(constraintDeclaration.type), type.mapper || 
identityMapper);
+                }
+                else {
+                    var declaredType = 
getTypeFromMappedTypeNode(type.declaration);
+                    var constraint = 
getConstraintTypeFromMappedType(declaredType);
+                    var extendedConstraint = constraint && constraint.flags & 
16384 ? getConstraintOfTypeParameter(constraint) : constraint;
+                    type.modifiersType = extendedConstraint && 
extendedConstraint.flags & 262144 ? instantiateType(extendedConstraint.type, 
type.mapper || identityMapper) : emptyObjectType;
+                }
+            }
+            return type.modifiersType;
+        }
         function getErasedTemplateTypeFromMappedType(type) {
             return instantiateType(getTemplateTypeFromMappedType(type), 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), anyType));
         }
         function isGenericMappedType(type) {
             if (getObjectFlags(type) & 32) {
                 var constraintType = getConstraintTypeFromMappedType(type);
-                return !!(constraintType.flags & (16384 | 262144));
+                return maybeTypeOfKind(constraintType, 540672 | 262144);
             }
             return false;
         }
@@ -24691,23 +24876,18 @@ var ts;
                 getPropertiesOfUnionOrIntersectionType(type) :
                 getPropertiesOfObjectType(type);
         }
-        function getApparentTypeOfTypeParameter(type) {
+        function getApparentTypeOfTypeVariable(type) {
             if (!type.resolvedApparentType) {
-                var constraintType = getConstraintOfTypeParameter(type);
+                var constraintType = getConstraintOfTypeVariable(type);
                 while (constraintType && constraintType.flags & 16384) {
-                    constraintType = 
getConstraintOfTypeParameter(constraintType);
+                    constraintType = 
getConstraintOfTypeVariable(constraintType);
                 }
                 type.resolvedApparentType = 
getTypeWithThisArgument(constraintType || emptyObjectType, type);
             }
             return type.resolvedApparentType;
         }
-        function getApparentTypeOfIndexedAccess(type) {
-            return getIndexTypeOfType(getApparentType(type.objectType), 0) || 
type;
-        }
         function getApparentType(type) {
-            var t = type.flags & 16384 ? getApparentTypeOfTypeParameter(type) :
-                type.flags & 524288 ? getApparentTypeOfIndexedAccess(type) :
-                    type;
+            var t = type.flags & 540672 ? getApparentTypeOfTypeVariable(type) 
: type;
             return t.flags & 262178 ? globalStringType :
                 t.flags & 340 ? globalNumberType :
                     t.flags & 136 ? globalBooleanType :
@@ -24853,7 +25033,7 @@ var ts;
             return undefined;
         }
         function getTypeParametersFromJSDocTemplate(declaration) {
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var templateTag = ts.getJSDocTemplateTag(declaration);
                 if (templateTag) {
                     return 
getTypeParametersFromDeclaration(templateTag.typeParameters);
@@ -24881,7 +25061,7 @@ var ts;
             return result;
         }
         function isJSDocOptionalParameter(node) {
-            if (node.flags & 2097152) {
+            if (node.flags & 65536) {
                 if (node.type && node.type.kind === 273) {
                     return true;
                 }
@@ -25010,7 +25190,7 @@ var ts;
             else if (declaration.type) {
                 return getTypeFromTypeNode(declaration.type);
             }
-            if (declaration.flags & 2097152) {
+            if (declaration.flags & 65536) {
                 var type = getReturnTypeFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -25202,6 +25382,11 @@ var ts;
             }
             return typeParameter.constraint === noConstraintType ? undefined : 
typeParameter.constraint;
         }
+        function getConstraintOfTypeVariable(type) {
+            return type.flags & 16384 ? getConstraintOfTypeParameter(type) :
+                type.flags & 524288 ? type.constraint :
+                    undefined;
+        }
         function getParentSymbolOfTypeParameter(typeParameter) {
             return 
getSymbolOfNode(ts.getDeclarationOfKind(typeParameter.symbol, 143).parent);
         }
@@ -25662,6 +25847,9 @@ var ts;
                 typeSet.containsAny = true;
             }
             else if (!(type.flags & 8192) && (strictNullChecks || !(type.flags 
& 6144)) && !ts.contains(typeSet, type)) {
+                if (type.flags & 65536 && typeSet.unionIndex === undefined) {
+                    typeSet.unionIndex = typeSet.length;
+                }
                 typeSet.push(type);
             }
         }
@@ -25675,17 +25863,6 @@ var ts;
             if (types.length === 0) {
                 return emptyObjectType;
             }
-            var _loop_2 = function (i) {
-                var type_1 = types[i];
-                if (type_1.flags & 65536) {
-                    return { value: getUnionType(ts.map(type_1.types, function 
(t) { return getIntersectionType(ts.replaceElement(types, i, t)); }), false, 
aliasSymbol, aliasTypeArguments) };
-                }
-            };
-            for (var i = 0; i < types.length; i++) {
-                var state_2 = _loop_2(i);
-                if (typeof state_2 === "object")
-                    return state_2.value;
-            }
             var typeSet = [];
             addTypesToIntersection(typeSet, types);
             if (typeSet.containsAny) {
@@ -25694,6 +25871,11 @@ var ts;
             if (typeSet.length === 1) {
                 return typeSet[0];
             }
+            var unionIndex = typeSet.unionIndex;
+            if (unionIndex !== undefined) {
+                var unionType = typeSet[unionIndex];
+                return getUnionType(ts.map(unionType.types, function (t) { 
return getIntersectionType(ts.replaceElement(typeSet, unionIndex, t)); }), 
false, aliasSymbol, aliasTypeArguments);
+            }
             var id = getTypeListId(typeSet);
             var type = intersectionTypes[id];
             if (!type) {
@@ -25712,7 +25894,7 @@ var ts;
             }
             return links.resolvedType;
         }
-        function getIndexTypeForTypeParameter(type) {
+        function getIndexTypeForGenericType(type) {
             if (!type.resolvedIndexType) {
                 type.resolvedIndexType = createType(262144);
                 type.resolvedIndexType.type = type;
@@ -25728,7 +25910,7 @@ var ts;
             return getUnionType(ts.map(getPropertiesOfType(type), 
getLiteralTypeFromPropertyName));
         }
         function getIndexType(type) {
-            return type.flags & 16384 ? getIndexTypeForTypeParameter(type) :
+            return maybeTypeOfKind(type, 540672) ? 
getIndexTypeForGenericType(type) :
                 getObjectFlags(type) & 32 ? 
getConstraintTypeFromMappedType(type) :
                     type.flags & 1 || getIndexInfoOfType(type, 0) ? stringType 
:
                         getLiteralTypeFromPropertyNames(type);
@@ -25748,6 +25930,17 @@ var ts;
             var type = createType(524288);
             type.objectType = objectType;
             type.indexType = indexType;
+            if (type.objectType.flags & 229376) {
+                type.constraint = getIndexTypeOfType(type.objectType, 0);
+            }
+            else if (type.objectType.flags & 540672) {
+                var apparentType = 
getApparentTypeOfTypeVariable(type.objectType);
+                if (apparentType !== emptyObjectType) {
+                    type.constraint = isTypeOfKind(type.indexType, 262178) ?
+                        getIndexedAccessType(apparentType, type.indexType) :
+                        getIndexTypeOfType(apparentType, 0);
+                }
+            }
             return type;
         }
         function getPropertyTypeForIndexType(objectType, indexType, 
accessNode, cacheSymbol) {
@@ -25820,12 +26013,15 @@ var ts;
             }
             var mapper = 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), indexType);
             var templateMapper = type.mapper ? combineTypeMappers(type.mapper, 
mapper) : mapper;
-            return 
addOptionality(instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper), !!type.declaration.questionToken);
+            return instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper);
         }
         function getIndexedAccessType(objectType, indexType, accessNode) {
-            if (indexType.flags & 16384 ||
-                objectType.flags & 16384 && indexType.flags & 262144 ||
+            if (maybeTypeOfKind(indexType, 540672 | 262144) ||
+                maybeTypeOfKind(objectType, 540672) && !(accessNode && 
accessNode.kind === 178) ||
                 isGenericMappedType(objectType)) {
+                if (objectType.flags & 1) {
+                    return objectType;
+                }
                 if (accessNode) {
                     if (!isTypeAssignableTo(indexType, 
getIndexType(objectType))) {
                         error(accessNode, 
ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), 
typeToString(objectType));
@@ -25896,10 +26092,23 @@ var ts;
             return symbol ? 
getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : undefined;
         }
         function getSpreadType(left, right, isFromObjectLiteral) {
-            ts.Debug.assert(!!(left.flags & (32768 | 1)) && !!(right.flags & 
(32768 | 1)), "Only object types may be spread.");
             if (left.flags & 1 || right.flags & 1) {
                 return anyType;
             }
+            left = filterType(left, function (t) { return !(t.flags & 6144); 
});
+            if (left.flags & 8192) {
+                return right;
+            }
+            right = filterType(right, function (t) { return !(t.flags & 6144); 
});
+            if (right.flags & 8192) {
+                return left;
+            }
+            if (left.flags & 65536) {
+                return mapType(left, function (t) { return getSpreadType(t, 
right, isFromObjectLiteral); });
+            }
+            if (right.flags & 65536) {
+                return mapType(right, function (t) { return 
getSpreadType(left, t, isFromObjectLiteral); });
+            }
             var members = ts.createMap();
             var skippedPrivateMembers = ts.createMap();
             var stringIndexInfo;
@@ -26244,12 +26453,12 @@ var ts;
         function instantiateMappedType(type, mapper) {
             var constraintType = getConstraintTypeFromMappedType(type);
             if (constraintType.flags & 262144) {
-                var typeParameter_1 = constraintType.type;
-                var mappedTypeParameter = mapper(typeParameter_1);
-                if (typeParameter_1 !== mappedTypeParameter) {
-                    return mapType(mappedTypeParameter, function (t) {
+                var typeVariable_1 = constraintType.type;
+                var mappedTypeVariable = instantiateType(typeVariable_1, 
mapper);
+                if (typeVariable_1 !== mappedTypeVariable) {
+                    return mapType(mappedTypeVariable, function (t) {
                         if (isMappableType(t)) {
-                            var replacementMapper = 
createUnaryTypeMapper(typeParameter_1, t);
+                            var replacementMapper = 
createUnaryTypeMapper(typeVariable_1, t);
                             var combinedMapper = mapper.mappedTypes && 
mapper.mappedTypes.length === 1 ? replacementMapper : 
combineTypeMappers(replacementMapper, mapper);
                             combinedMapper.mappedTypes = mapper.mappedTypes;
                             return instantiateMappedObjectType(type, 
combinedMapper);
@@ -26276,7 +26485,7 @@ var ts;
                 return false;
             }
             var mappedTypes = mapper.mappedTypes;
-            var node = symbol.declarations[0].parent;
+            var node = symbol.declarations[0];
             while (node) {
                 switch (node.kind) {
                     case 158:
@@ -26312,6 +26521,15 @@ var ts;
                             }
                         }
                         break;
+                    case 274:
+                        var func = node;
+                        for (var _b = 0, _c = func.parameters; _b < _c.length; 
_b++) {
+                            var p = _c[_b];
+                            if (ts.contains(mappedTypes, getTypeOfNode(p))) {
+                                return true;
+                            }
+                        }
+                        break;
                     case 230:
                     case 261:
                         return false;
@@ -26731,6 +26949,23 @@ var ts;
                     
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
 targetType, sourceType);
                 }
             }
+            function 
isUnionOrIntersectionTypeWithoutNullableConstituents(type) {
+                if (!(type.flags & 196608)) {
+                    return false;
+                }
+                var seenNonNullable = false;
+                for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
+                    var t = _a[_i];
+                    if (t.flags & 6144) {
+                        continue;
+                    }
+                    if (seenNonNullable) {
+                        return true;
+                    }
+                    seenNonNullable = true;
+                }
+                return false;
+            }
             function isRelatedTo(source, target, reportErrors, headMessage) {
                 var result;
                 if (source.flags & 96 && source.flags & 1048576) {
@@ -26753,7 +26988,7 @@ var ts;
                         }
                         return 0;
                     }
-                    if (target.flags & 196608) {
+                    if 
(isUnionOrIntersectionTypeWithoutNullableConstituents(target)) {
                         source = getRegularTypeOfObjectLiteral(source);
                     }
                 }
@@ -26784,7 +27019,7 @@ var ts;
                         return result;
                     }
                 }
-                if (target.flags & 16384) {
+                else if (target.flags & 16384) {
                     if (getObjectFlags(source) & 32 && 
getConstraintTypeFromMappedType(source) === getIndexType(target)) {
                         if (!source.declaration.questionToken) {
                             var templateType = 
getTemplateTypeFromMappedType(source);
@@ -26809,10 +27044,12 @@ var ts;
                             return result;
                         }
                     }
-                    var constraint = getConstraintOfTypeParameter(target.type);
-                    if (constraint) {
-                        if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
-                            return result;
+                    if (target.type.flags & 540672) {
+                        var constraint = 
getConstraintOfTypeVariable(target.type);
+                        if (constraint) {
+                            if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
+                                return result;
+                            }
                         }
                     }
                 }
@@ -26822,12 +27059,19 @@ var ts;
                             return result;
                         }
                     }
+                    if (target.constraint) {
+                        if (result = isRelatedTo(source, target.constraint, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
                 }
                 if (source.flags & 16384) {
                     if (getObjectFlags(target) & 32 && 
getConstraintTypeFromMappedType(target) === getIndexType(source)) {
                         var indexedAccessType = getIndexedAccessType(source, 
getTypeParameterFromMappedType(target));
                         var templateType = 
getTemplateTypeFromMappedType(target);
                         if (result = isRelatedTo(indexedAccessType, 
templateType, reportErrors)) {
+                            errorInfo = saveErrorInfo;
                             return result;
                         }
                     }
@@ -26844,6 +27088,14 @@ var ts;
                         }
                     }
                 }
+                else if (source.flags & 524288) {
+                    if (source.constraint) {
+                        if (result = isRelatedTo(source.constraint, target, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
+                }
                 else {
                     if (getObjectFlags(source) & 4 && getObjectFlags(target) & 
4 && source.target === target.target) {
                         if (result = typeArgumentsRelatedTo(source, target, 
reportErrors)) {
@@ -27114,8 +27366,11 @@ var ts;
                         }
                     }
                 }
-                else if (relation !== identityRelation && 
isEmptyObjectType(resolveStructuredTypeMembers(target))) {
-                    return -1;
+                else if (relation !== identityRelation) {
+                    var resolved = resolveStructuredTypeMembers(target);
+                    if (isEmptyObjectType(resolved) || 
resolved.stringIndexInfo && resolved.stringIndexInfo.type.flags & 1) {
+                        return -1;
+                    }
                 }
                 return 0;
             }
@@ -27798,25 +28053,69 @@ var ts;
                 isFixed: false,
             };
         }
-        function couldContainTypeParameters(type) {
+        function couldContainTypeVariables(type) {
             var objectFlags = getObjectFlags(type);
-            return !!(type.flags & 16384 ||
-                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeParameters) ||
+            return !!(type.flags & 540672 ||
+                objectFlags & 4 && ts.forEach(type.typeArguments, 
couldContainTypeVariables) ||
                 objectFlags & 16 && type.symbol && type.symbol.flags & (8192 | 
2048 | 32) ||
                 objectFlags & 32 ||
-                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeParameters(type));
+                type.flags & 196608 && 
couldUnionOrIntersectionContainTypeVariables(type));
         }
-        function couldUnionOrIntersectionContainTypeParameters(type) {
-            if (type.couldContainTypeParameters === undefined) {
-                type.couldContainTypeParameters = ts.forEach(type.types, 
couldContainTypeParameters);
+        function couldUnionOrIntersectionContainTypeVariables(type) {
+            if (type.couldContainTypeVariables === undefined) {
+                type.couldContainTypeVariables = ts.forEach(type.types, 
couldContainTypeVariables);
             }
-            return type.couldContainTypeParameters;
+            return type.couldContainTypeVariables;
         }
         function isTypeParameterAtTopLevel(type, typeParameter) {
             return type === typeParameter || type.flags & 196608 && 
ts.forEach(type.types, function (t) { return isTypeParameterAtTopLevel(t, 
typeParameter); });
         }
-        function inferTypes(context, originalSource, originalTarget) {
-            var typeParameters = context.signature.typeParameters;
+        function inferTypeForHomomorphicMappedType(source, target) {
+            var properties = getPropertiesOfType(source);
+            var indexInfo = getIndexInfoOfType(source, 0);
+            if (properties.length === 0 && !indexInfo) {
+                return undefined;
+            }
+            var typeVariable = 
getIndexedAccessType(getConstraintTypeFromMappedType(target).type, 
getTypeParameterFromMappedType(target));
+            var typeVariableArray = [typeVariable];
+            var typeInferences = createTypeInferencesObject();
+            var typeInferencesArray = [typeInferences];
+            var templateType = getTemplateTypeFromMappedType(target);
+            var readonlyMask = target.declaration.readonlyToken ? false : true;
+            var optionalMask = target.declaration.questionToken ? 0 : 
536870912;
+            var members = createSymbolTable(properties);
+            for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
+                var prop = properties_4[_i];
+                var inferredPropType = inferTargetType(getTypeOfSymbol(prop));
+                if (!inferredPropType) {
+                    return undefined;
+                }
+                var inferredProp = createSymbol(4 | 67108864 | prop.flags & 
optionalMask, prop.name);
+                inferredProp.declarations = prop.declarations;
+                inferredProp.type = inferredPropType;
+                inferredProp.isReadonly = readonlyMask && 
isReadonlySymbol(prop);
+                members[prop.name] = inferredProp;
+            }
+            if (indexInfo) {
+                var inferredIndexType = inferTargetType(indexInfo.type);
+                if (!inferredIndexType) {
+                    return undefined;
+                }
+                indexInfo = createIndexInfo(inferredIndexType, readonlyMask && 
indexInfo.isReadonly);
+            }
+            return createAnonymousType(undefined, members, emptyArray, 
emptyArray, indexInfo, undefined);
+            function inferTargetType(sourceType) {
+                typeInferences.primary = undefined;
+                typeInferences.secondary = undefined;
+                inferTypes(typeVariableArray, typeInferencesArray, sourceType, 
templateType);
+                var inferences = typeInferences.primary || 
typeInferences.secondary;
+                return inferences && getUnionType(inferences, true);
+            }
+        }
+        function inferTypesWithContext(context, originalSource, 
originalTarget) {
+            inferTypes(context.signature.typeParameters, context.inferences, 
originalSource, originalTarget);
+        }
+        function inferTypes(typeVariables, typeInferences, originalSource, 
originalTarget) {
             var sourceStack;
             var targetStack;
             var depth = 0;
@@ -27832,7 +28131,7 @@ var ts;
                 return false;
             }
             function inferFromTypes(source, target) {
-                if (!couldContainTypeParameters(target)) {
+                if (!couldContainTypeVariables(target)) {
                     return;
                 }
                 if (source.aliasSymbol && source.aliasTypeArguments && 
source.aliasSymbol === target.aliasSymbol) {
@@ -27871,13 +28170,13 @@ var ts;
                         target = removeTypesFromUnionOrIntersection(target, 
matchingTypes);
                     }
                 }
-                if (target.flags & 16384) {
+                if (target.flags & 540672) {
                     if (source.flags & 8388608) {
                         return;
                     }
-                    for (var i = 0; i < typeParameters.length; i++) {
-                        if (target === typeParameters[i]) {
-                            var inferences = context.inferences[i];
+                    for (var i = 0; i < typeVariables.length; i++) {
+                        if (target === typeVariables[i]) {
+                            var inferences = typeInferences[i];
                             if (!inferences.isFixed) {
                                 var candidates = inferiority ?
                                     inferences.secondary || 
(inferences.secondary = []) :
@@ -27885,7 +28184,7 @@ var ts;
                                 if (!ts.contains(candidates, source)) {
                                     candidates.push(source);
                                 }
-                                if (!isTypeParameterAtTopLevel(originalTarget, 
target)) {
+                                if (target.flags & 16384 && 
!isTypeParameterAtTopLevel(originalTarget, target)) {
                                     inferences.topLevel = false;
                                 }
                             }
@@ -27903,21 +28202,21 @@ var ts;
                 }
                 else if (target.flags & 196608) {
                     var targetTypes = target.types;
-                    var typeParameterCount = 0;
-                    var typeParameter = void 0;
+                    var typeVariableCount = 0;
+                    var typeVariable = void 0;
                     for (var _d = 0, targetTypes_2 = targetTypes; _d < 
targetTypes_2.length; _d++) {
                         var t = targetTypes_2[_d];
-                        if (t.flags & 16384 && ts.contains(typeParameters, t)) 
{
-                            typeParameter = t;
-                            typeParameterCount++;
+                        if (t.flags & 540672 && ts.contains(typeVariables, t)) 
{
+                            typeVariable = t;
+                            typeVariableCount++;
                         }
                         else {
                             inferFromTypes(source, t);
                         }
                     }
-                    if (typeParameterCount === 1) {
+                    if (typeVariableCount === 1) {
                         inferiority++;
-                        inferFromTypes(source, typeParameter);
+                        inferFromTypes(source, typeVariable);
                         inferiority--;
                     }
                 }
@@ -27957,9 +28256,16 @@ var ts;
             function inferFromObjectTypes(source, target) {
                 if (getObjectFlags(target) & 32) {
                     var constraintType = 
getConstraintTypeFromMappedType(target);
-                    if (getObjectFlags(source) & 32) {
-                        
inferFromTypes(getConstraintTypeFromMappedType(source), constraintType);
-                        inferFromTypes(getTemplateTypeFromMappedType(source), 
getTemplateTypeFromMappedType(target));
+                    if (constraintType.flags & 262144) {
+                        var index = ts.indexOf(typeVariables, 
constraintType.type);
+                        if (index >= 0 && !typeInferences[index].isFixed) {
+                            var inferredType = 
inferTypeForHomomorphicMappedType(source, target);
+                            if (inferredType) {
+                                inferiority++;
+                                inferFromTypes(inferredType, 
typeVariables[index]);
+                                inferiority--;
+                            }
+                        }
                         return;
                     }
                     if (constraintType.flags & 16384) {
@@ -27975,8 +28281,8 @@ var ts;
             }
             function inferFromProperties(source, target) {
                 var properties = getPropertiesOfObjectType(target);
-                for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
-                    var targetProp = properties_4[_i];
+                for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
+                    var targetProp = properties_5[_i];
                     var sourceProp = getPropertyOfObjectType(source, 
targetProp.name);
                     if (sourceProp) {
                         inferFromTypes(getTypeOfSymbol(sourceProp), 
getTypeOfSymbol(targetProp));
@@ -29135,7 +29441,7 @@ var ts;
                         error(node, 
ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
                     }
                 }
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     getNodeLinks(container).flags |= 8192;
                 }
                 return getTypeOfSymbol(symbol);
@@ -29320,18 +29626,21 @@ var ts;
             var baseConstructorType = 
getBaseConstructorTypeOfClass(classInstanceType);
             return baseConstructorType === nullWideningType;
         }
+        function checkThisBeforeSuper(node, container, diagnosticMessage) {
+            var containingClassDecl = container.parent;
+            var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
+            if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
+                var superCall = getSuperCallInConstructor(container);
+                if (!superCall || superCall.end > node.pos) {
+                    error(node, diagnosticMessage);
+                }
+            }
+        }
         function checkThisExpression(node) {
             var container = ts.getThisContainer(node, true);
             var needToCaptureLexicalThis = false;
             if (container.kind === 150) {
-                var containingClassDecl = container.parent;
-                var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
-                if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
-                    var superCall = getSuperCallInConstructor(container);
-                    if (!superCall || superCall.end > node.pos) {
-                        error(node, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
-                    }
-                }
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
             }
             if (container.kind === 185) {
                 container = ts.getThisContainer(container, false);
@@ -29445,6 +29754,9 @@ var ts;
                 }
                 return unknownType;
             }
+            if (!isCallExpression && container.kind === 150) {
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
+            }
             if ((ts.getModifierFlags(container) & 32) || isCallExpression) {
                 nodeCheckFlag = 512;
             }
@@ -29900,7 +30212,7 @@ var ts;
             return mapper && mapper.context;
         }
         function checkSpreadExpression(node, contextualMapper) {
-            var arrayOrIterableType = checkExpressionCached(node.expression, 
contextualMapper);
+            var arrayOrIterableType = checkExpression(node.expression, 
contextualMapper);
             return checkIteratedTypeOrElementType(arrayOrIterableType, 
node.expression, false);
         }
         function hasDefaultValue(node) {
@@ -30048,7 +30360,7 @@ var ts;
                         if (impliedProp) {
                             prop.flags |= impliedProp.flags & 536870912;
                         }
-                        else if 
(!compilerOptions.suppressExcessPropertyErrors) {
+                        else if (!compilerOptions.suppressExcessPropertyErrors 
&& !getIndexInfoOfType(contextualType, 0)) {
                             error(memberDecl.name, 
ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
 symbolToString(member), typeToString(contextualType));
                         }
                     }
@@ -30062,6 +30374,9 @@ var ts;
                     member = prop;
                 }
                 else if (memberDecl.kind === 259) {
+                    if (languageVersion < 5) {
+                        checkExternalEmitHelpers(memberDecl, 2);
+                    }
                     if (propertiesArray.length > 0) {
                         spread = getSpreadType(spread, 
createObjectLiteralType(), true);
                         propertiesArray = [];
@@ -30071,7 +30386,7 @@ var ts;
                         typeFlags = 0;
                     }
                     var type = checkExpression(memberDecl.expression);
-                    if (!(type.flags & (32768 | 1))) {
+                    if (!isValidSpreadType(type)) {
                         error(memberDecl, 
ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -30112,8 +30427,10 @@ var ts;
                 if (propertiesArray.length > 0) {
                     spread = getSpreadType(spread, createObjectLiteralType(), 
true);
                 }
-                spread.flags |= propagatedFlags;
-                spread.symbol = node.symbol;
+                if (spread.flags & 32768) {
+                    spread.flags |= propagatedFlags;
+                    spread.symbol = node.symbol;
+                }
                 return spread;
             }
             return createObjectLiteralType();
@@ -30136,6 +30453,11 @@ var ts;
                 return result;
             }
         }
+        function isValidSpreadType(type) {
+            return !!(type.flags & (1 | 4096 | 2048) ||
+                type.flags & 32768 && !isGenericMappedType(type) ||
+                type.flags & 196608 && !ts.forEach(type.types, function (t) { 
return !isValidSpreadType(t); }));
+        }
         function checkJsxSelfClosingElement(node) {
             checkJsxOpeningLikeElement(node);
             return jsxElementType || anyType;
@@ -30210,6 +30532,9 @@ var ts;
             return exprType;
         }
         function checkJsxSpreadAttribute(node, elementAttributesType, 
nameTable) {
+            if (compilerOptions.jsx === 2) {
+                checkExternalEmitHelpers(node, 2);
+            }
             var type = checkExpression(node.expression);
             var props = getPropertiesOfType(type);
             for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
@@ -30754,19 +31079,19 @@ var ts;
             for (var _i = 0, signatures_2 = signatures; _i < 
signatures_2.length; _i++) {
                 var signature = signatures_2[_i];
                 var symbol = signature.declaration && 
getSymbolOfNode(signature.declaration);
-                var parent_8 = signature.declaration && 
signature.declaration.parent;
+                var parent_9 = signature.declaration && 
signature.declaration.parent;
                 if (!lastSymbol || symbol === lastSymbol) {
-                    if (lastParent && parent_8 === lastParent) {
+                    if (lastParent && parent_9 === lastParent) {
                         index++;
                     }
                     else {
-                        lastParent = parent_8;
+                        lastParent = parent_9;
                         index = cutoffIndex;
                     }
                 }
                 else {
                     index = cutoffIndex = result.length;
-                    lastParent = parent_8;
+                    lastParent = parent_9;
                 }
                 lastSymbol = symbol;
                 if (signature.hasLiteralTypes) {
@@ -30855,7 +31180,7 @@ var ts;
         function instantiateSignatureInContextOf(signature, 
contextualSignature, contextualMapper) {
             var context = createInferenceContext(signature, true);
             forEachMatchingParameterType(contextualSignature, signature, 
function (source, target) {
-                inferTypes(context, instantiateType(source, contextualMapper), 
target);
+                inferTypesWithContext(context, instantiateType(source, 
contextualMapper), target);
             });
             return getSignatureInstantiation(signature, 
getInferredTypes(context));
         }
@@ -30874,7 +31199,7 @@ var ts;
             if (thisType) {
                 var thisArgumentNode = getThisArgumentOfCall(node);
                 var thisArgumentType = thisArgumentNode ? 
checkExpression(thisArgumentNode) : voidType;
-                inferTypes(context, thisArgumentType, thisType);
+                inferTypesWithContext(context, thisArgumentType, thisType);
             }
             var argCount = getEffectiveArgumentCount(node, args, signature);
             for (var i = 0; i < argCount; i++) {
@@ -30886,7 +31211,7 @@ var ts;
                         var mapper = excludeArgument && excludeArgument[i] !== 
undefined ? identityMapper : inferenceMapper;
                         argType = checkExpressionWithContextualType(arg, 
paramType, mapper);
                     }
-                    inferTypes(context, argType, paramType);
+                    inferTypesWithContext(context, argType, paramType);
                 }
             }
             if (excludeArgument) {
@@ -30894,7 +31219,7 @@ var ts;
                     if (excludeArgument[i] === false) {
                         var arg = args[i];
                         var paramType = getTypeAtPosition(signature, i);
-                        inferTypes(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
+                        inferTypesWithContext(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
                     }
                 }
             }
@@ -31388,12 +31713,13 @@ var ts;
                 if (containingClass) {
                     var containingType = getTypeOfNode(containingClass);
                     var baseTypes = getBaseTypes(containingType);
-                    if (baseTypes.length) {
+                    while (baseTypes.length) {
                         var baseType = baseTypes[0];
                         if (modifiers & 16 &&
                             baseType.symbol === declaration.parent.symbol) {
                             return true;
                         }
+                        baseTypes = getBaseTypes(baseType);
                     }
                 }
                 if (modifiers & 8) {
@@ -31584,7 +31910,7 @@ var ts;
                 for (var i = 0; i < len; i++) {
                     var declaration = signature.parameters[i].valueDeclaration;
                     if (declaration.type) {
-                        inferTypes(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
+                        inferTypesWithContext(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
                     }
                 }
             }
@@ -31637,7 +31963,7 @@ var ts;
                 assignBindingElementTypes(parameter.valueDeclaration);
             }
             else if (isInferentialContext(mapper)) {
-                inferTypes(mapper.context, links.type, 
instantiateType(contextualType, mapper));
+                inferTypesWithContext(mapper.context, links.type, 
instantiateType(contextualType, mapper));
             }
         }
         function getReturnTypeFromJSDocComment(func) {
@@ -31742,7 +32068,7 @@ var ts;
             if (!switchTypes.length) {
                 return false;
             }
-            return eachTypeContainedIn(type, switchTypes);
+            return eachTypeContainedIn(mapType(type, 
getRegularTypeOfLiteralType), switchTypes);
         }
         function functionHasImplicitReturn(func) {
             if (!(func.flags & 128)) {
@@ -31956,7 +32282,7 @@ var ts;
         }
         function checkAwaitExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 524288)) {
+                if (!(node.flags & 16384)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.await_expression_is_only_allowed_within_an_async_function);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -32073,15 +32399,15 @@ var ts;
             if (!(isTypeComparableTo(leftType, stringType) || 
isTypeOfKind(leftType, 340 | 512))) {
                 error(left, 
ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(right, 
ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             return booleanType;
         }
         function checkObjectLiteralAssignment(node, sourceType) {
             var properties = node.properties;
-            for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
-                var p = properties_5[_i];
+            for (var _i = 0, properties_6 = properties; _i < 
properties_6.length; _i++) {
+                var p = properties_6[_i];
                 checkObjectLiteralDestructuringPropertyAssignment(sourceType, 
p, properties);
             }
             return sourceType;
@@ -32114,6 +32440,9 @@ var ts;
                 }
             }
             else if (property.kind === 259) {
+                if (languageVersion < 5) {
+                    checkExternalEmitHelpers(property, 4);
+                }
                 var nonRestNames = [];
                 if (allProperties) {
                     for (var i = 0; i < allProperties.length - 1; i++) {
@@ -32464,7 +32793,7 @@ var ts;
         }
         function checkYieldExpression(node) {
             if (produceDiagnostics) {
-                if (!(node.flags & 131072) || isYieldExpressionInClass(node)) {
+                if (!(node.flags & 4096) || isYieldExpressionInClass(node)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -32549,8 +32878,8 @@ var ts;
         }
         function isLiteralContextualType(contextualType) {
             if (contextualType) {
-                if (contextualType.flags & 16384) {
-                    var apparentType = 
getApparentTypeOfTypeParameter(contextualType);
+                if (contextualType.flags & 540672) {
+                    var apparentType = 
getApparentTypeOfTypeVariable(contextualType);
                     if (apparentType.flags & (2 | 4 | 8 | 16)) {
                         return true;
                     }
@@ -32805,9 +33134,9 @@ var ts;
                 case 158:
                 case 149:
                 case 148:
-                    var parent_9 = node.parent;
-                    if (node === parent_9.type) {
-                        return parent_9;
+                    var parent_10 = node.parent;
+                    if (node === parent_10.type) {
+                        return parent_10;
                     }
             }
         }
@@ -32840,6 +33169,12 @@ var ts;
                 node.kind === 154) {
                 checkGrammarFunctionLikeDeclaration(node);
             }
+            if (ts.isAsyncFunctionLike(node) && languageVersion < 4) {
+                checkExternalEmitHelpers(node, 64);
+                if (languageVersion < 2) {
+                    checkExternalEmitHelpers(node, 128);
+                }
+            }
             checkTypeParameters(node.typeParameters);
             ts.forEach(node.parameters, checkParameter);
             if (node.type) {
@@ -33199,7 +33534,7 @@ var ts;
             checkSourceElement(node.type);
             var type = getTypeFromMappedTypeNode(node);
             var constraintType = getConstraintTypeFromMappedType(type);
-            var keyType = constraintType.flags & 16384 ? 
getApparentTypeOfTypeParameter(constraintType) : constraintType;
+            var keyType = constraintType.flags & 540672 ? 
getApparentTypeOfTypeVariable(constraintType) : constraintType;
             checkTypeAssignableTo(keyType, stringType, 
node.typeParameter.constraint);
         }
         function isPrivateWithinAmbient(node) {
@@ -33488,7 +33823,7 @@ var ts;
             if (thenSignatures.length === 0) {
                 return undefined;
             }
-            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 131072);
+            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 524288);
             if (isTypeAny(onfulfilledParameterType)) {
                 return undefined;
             }
@@ -33624,6 +33959,9 @@ var ts;
                 markAliasSymbolAsReferenced(rootSymbol);
             }
         }
+        function getParameterTypeNodeForDecoratorCheck(node) {
+            return node.dotDotDotToken ? 
ts.getRestParameterElementType(node.type) : node.type;
+        }
         function checkDecorators(node) {
             if (!node.decorators) {
                 return;
@@ -33634,14 +33972,20 @@ var ts;
             if (!compilerOptions.experimentalDecorators) {
                 error(node, 
ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);
             }
+            var firstDecorator = node.decorators[0];
+            checkExternalEmitHelpers(firstDecorator, 8);
+            if (node.kind === 144) {
+                checkExternalEmitHelpers(firstDecorator, 32);
+            }
             if (compilerOptions.emitDecoratorMetadata) {
+                checkExternalEmitHelpers(firstDecorator, 16);
                 switch (node.kind) {
                     case 226:
                         var constructor = ts.getFirstConstructorWithBody(node);
                         if (constructor) {
                             for (var _i = 0, _a = constructor.parameters; _i < 
_a.length; _i++) {
                                 var parameter = _a[_i];
-                                markTypeNodeAsReferenced(parameter.type);
+                                
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                             }
                         }
                         break;
@@ -33650,11 +33994,13 @@ var ts;
                     case 152:
                         for (var _b = 0, _c = node.parameters; _b < _c.length; 
_b++) {
                             var parameter = _c[_b];
-                            markTypeNodeAsReferenced(parameter.type);
+                            
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                         }
                         markTypeNodeAsReferenced(node.type);
                         break;
                     case 147:
+                        
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));
+                        break;
                     case 144:
                         markTypeNodeAsReferenced(node.type);
                         break;
@@ -33763,7 +34109,7 @@ var ts;
         }
         function checkUnusedLocalsAndParameters(node) {
             if (node.parent.kind !== 227 && noUnusedIdentifiers && 
!ts.isInAmbientContext(node)) {
-                var _loop_3 = function (key) {
+                var _loop_2 = function (key) {
                     var local = node.locals[key];
                     if (!local.isReferenced) {
                         if (local.valueDeclaration && 
ts.getRootDeclaration(local.valueDeclaration).kind === 144) {
@@ -33781,10 +34127,17 @@ var ts;
                     }
                 };
                 for (var key in node.locals) {
-                    _loop_3(key);
+                    _loop_2(key);
                 }
             }
         }
+        function isRemovedPropertyFromObjectSpread(node) {
+            if (ts.isBindingElement(node) && 
ts.isObjectBindingPattern(node.parent)) {
+                var lastElement = ts.lastOrUndefined(node.parent.elements);
+                return lastElement !== node && !!lastElement.dotDotDotToken;
+            }
+            return false;
+        }
         function errorUnusedLocal(node, name) {
             if (isIdentifierThatStartsWithUnderScore(node)) {
                 var declaration = ts.getRootDeclaration(node.parent);
@@ -33794,7 +34147,9 @@ var ts;
                     return;
                 }
             }
-            error(node, ts.Diagnostics._0_is_declared_but_never_used, name);
+            if (!isRemovedPropertyFromObjectSpread(node.kind === 70 ? 
node.parent : node)) {
+                error(node, ts.Diagnostics._0_is_declared_but_never_used, 
name);
+            }
         }
         function parameterNameStartsWithUnderscore(parameterName) {
             return parameterName && 
isIdentifierThatStartsWithUnderScore(parameterName);
@@ -33849,7 +34204,7 @@ var ts;
                         for (var _i = 0, _a = local.declarations; _i < 
_a.length; _i++) {
                             var declaration = _a[_i];
                             if (!ts.isAmbientModule(declaration)) {
-                                error(declaration.name, 
ts.Diagnostics._0_is_declared_but_never_used, local.name);
+                                errorUnusedLocal(declaration.name, local.name);
                             }
                         }
                     }
@@ -33951,14 +34306,14 @@ var ts;
             }
         }
         function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {
-            if (!needCollisionCheckForIdentifier(node, name, "Promise")) {
+            if (languageVersion >= 4 || !needCollisionCheckForIdentifier(node, 
name, "Promise")) {
                 return;
             }
             if (node.kind === 230 && ts.getModuleInstanceState(node) !== 1) {
                 return;
             }
             var parent = getDeclarationContainer(node);
-            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 8192) {
+            if (parent.kind === 261 && ts.isExternalOrCommonJsModule(parent) 
&& parent.flags & 1024) {
                 error(name, 
ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
 ts.declarationNameToString(name), ts.declarationNameToString(name));
             }
         }
@@ -34017,7 +34372,8 @@ var ts;
                     }
                     var enclosingContainer = 
ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);
                     if (enclosingContainer === func) {
-                        if (symbol.valueDeclaration.kind === 144) {
+                        if (symbol.valueDeclaration.kind === 144 ||
+                            symbol.valueDeclaration.kind === 174) {
                             if (symbol.valueDeclaration.pos < node.pos) {
                                 return;
                             }
@@ -34055,16 +34411,19 @@ var ts;
                 }
             }
             if (node.kind === 174) {
+                if (node.parent.kind === 172 && languageVersion < 5 && 
!ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(node, 4);
+                }
                 if (node.propertyName && node.propertyName.kind === 142) {
                     checkComputedPropertyName(node.propertyName);
                 }
-                var parent_10 = node.parent.parent;
-                var parentType = getTypeForBindingElementParent(parent_10);
+                var parent_11 = node.parent.parent;
+                var parentType = getTypeForBindingElementParent(parent_11);
                 var name_26 = node.propertyName || node.name;
                 var property = getPropertyOfType(parentType, 
ts.getTextOfPropertyName(name_26));
                 markPropertyAsReferenced(property);
-                if (parent_10.initializer && property && 
getParentOfSymbol(property)) {
-                    checkClassPropertyAccess(parent_10, parent_10.initializer, 
parentType, property);
+                if (parent_11.initializer && property && 
getParentOfSymbol(property)) {
+                    checkClassPropertyAccess(parent_11, parent_11.initializer, 
parentType, property);
                 }
             }
             if (ts.isBindingPattern(node.name)) {
@@ -34246,7 +34605,7 @@ var ts;
                     checkReferenceExpression(varExpr, 
ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access);
                 }
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
16384 | 524288)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 | 
540672)) {
                 error(node.expression, 
ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             checkSourceElement(node.statement);
@@ -34464,7 +34823,7 @@ var ts;
         }
         function checkWithStatement(node) {
             if (!checkGrammarStatementInAmbientContext(node)) {
-                if (node.flags & 524288) {
+                if (node.flags & 16384) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);
                 }
             }
@@ -34710,6 +35069,9 @@ var ts;
             checkClassForDuplicateDeclarations(node);
             var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node);
             if (baseTypeNode) {
+                if (languageVersion < 2 && !ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(baseTypeNode.parent, 1);
+                }
                 var baseTypes = getBaseTypes(type);
                 if (baseTypes.length && produceDiagnostics) {
                     var baseType_1 = baseTypes[0];
@@ -34885,8 +35247,8 @@ var ts;
             for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; 
_i++) {
                 var base = baseTypes_2[_i];
                 var properties = 
getPropertiesOfObjectType(getTypeWithThisArgument(base, type.thisType));
-                for (var _a = 0, properties_6 = properties; _a < 
properties_6.length; _a++) {
-                    var prop = properties_6[_a];
+                for (var _a = 0, properties_7 = properties; _a < 
properties_7.length; _a++) {
+                    var prop = properties_7[_a];
                     var existing = seen[prop.name];
                     if (!existing) {
                         seen[prop.name] = { prop: prop, containingType: base };
@@ -36467,9 +36829,9 @@ var ts;
             }
             var location = reference;
             if (startInDeclarationContainer) {
-                var parent_11 = reference.parent;
-                if (ts.isDeclaration(parent_11) && reference === 
parent_11.name) {
-                    location = getDeclarationContainer(parent_11);
+                var parent_12 = reference.parent;
+                if (ts.isDeclaration(parent_12) && reference === 
parent_12.name) {
+                    location = getDeclarationContainer(parent_12);
                 }
             }
             return resolveName(location, reference.text, 107455 | 1048576 | 
8388608, undefined, undefined);
@@ -36582,9 +36944,9 @@ var ts;
                 }
                 var current = symbol;
                 while (true) {
-                    var parent_12 = getParentOfSymbol(current);
-                    if (parent_12) {
-                        current = parent_12;
+                    var parent_13 = getParentOfSymbol(current);
+                    if (parent_13) {
+                        current = parent_13;
                     }
                     else {
                         break;
@@ -36617,8 +36979,6 @@ var ts;
                 ts.bindSourceFile(file, compilerOptions);
             }
             var augmentations;
-            var requestedExternalEmitHelpers = 0;
-            var firstFileRequestingExternalHelpers;
             for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) 
{
                 var file = _c[_b];
                 if (!ts.isExternalOrCommonJsModule(file)) {
@@ -36638,15 +36998,6 @@ var ts;
                         }
                     }
                 }
-                if ((compilerOptions.isolatedModules || 
ts.isExternalModule(file)) && !file.isDeclarationFile) {
-                    var fileRequestedExternalEmitHelpers = file.flags & 64512;
-                    if (fileRequestedExternalEmitHelpers) {
-                        requestedExternalEmitHelpers |= 
fileRequestedExternalEmitHelpers;
-                        if (firstFileRequestingExternalHelpers === undefined) {
-                            firstFileRequestingExternalHelpers = file;
-                        }
-                    }
-                }
             }
             if (augmentations) {
                 for (var _d = 0, augmentations_1 = augmentations; _d < 
augmentations_1.length; _d++) {
@@ -36701,43 +37052,45 @@ var ts;
             var symbol = getGlobalSymbol("ReadonlyArray", 793064, undefined);
             globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, 
1);
             anyReadonlyArrayType = globalReadonlyArrayType ? 
createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : 
anyArrayType;
-            if (compilerOptions.importHelpers && 
firstFileRequestingExternalHelpers) {
-                var helpersModule = 
resolveExternalModule(firstFileRequestingExternalHelpers, 
ts.externalHelpersModuleNameText, ts.Diagnostics.Cannot_find_module_0, 
undefined);
-                if (helpersModule) {
-                    var exports_2 = helpersModule.exports;
-                    if (requestedExternalEmitHelpers & 1024 && languageVersion 
< 2) {
-                        verifyHelperSymbol(exports_2, "__extends", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 16384 &&
-                        (languageVersion < 5 || compilerOptions.jsx === 2)) {
-                        verifyHelperSymbol(exports_2, "__assign", 107455);
-                    }
-                    if (languageVersion < 5 && requestedExternalEmitHelpers & 
32768) {
-                        verifyHelperSymbol(exports_2, "__rest", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 2048) {
-                        verifyHelperSymbol(exports_2, "__decorate", 107455);
-                        if (compilerOptions.emitDecoratorMetadata) {
-                            verifyHelperSymbol(exports_2, "__metadata", 
107455);
-                        }
-                    }
-                    if (requestedExternalEmitHelpers & 4096) {
-                        verifyHelperSymbol(exports_2, "__param", 107455);
-                    }
-                    if (requestedExternalEmitHelpers & 8192) {
-                        verifyHelperSymbol(exports_2, "__awaiter", 107455);
-                        if (languageVersion < 2) {
-                            verifyHelperSymbol(exports_2, "__generator", 
107455);
+        }
+        function checkExternalEmitHelpers(location, helpers) {
+            if ((requestedExternalEmitHelpers & helpers) !== helpers && 
compilerOptions.importHelpers) {
+                var sourceFile = ts.getSourceFileOfNode(location);
+                if (ts.isEffectiveExternalModule(sourceFile, compilerOptions)) 
{
+                    var helpersModule = resolveHelpersModule(sourceFile, 
location);
+                    if (helpersModule !== unknownSymbol) {
+                        var uncheckedHelpers = helpers & 
~requestedExternalEmitHelpers;
+                        for (var helper = 1; helper <= 128; helper <<= 1) {
+                            if (uncheckedHelpers & helper) {
+                                var name_29 = getHelperName(helper);
+                                var symbol = getSymbol(helpersModule.exports, 
ts.escapeIdentifier(name_29), 107455);
+                                if (!symbol) {
+                                    error(location, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,
 ts.externalHelpersModuleNameText, name_29);
+                                }
+                            }
                         }
                     }
+                    requestedExternalEmitHelpers |= helpers;
                 }
             }
         }
-        function verifyHelperSymbol(symbols, name, meaning) {
-            var symbol = getSymbol(symbols, ts.escapeIdentifier(name), 
meaning);
-            if (!symbol) {
-                error(undefined, 
ts.Diagnostics.Module_0_has_no_exported_member_1, 
ts.externalHelpersModuleNameText, name);
+        function getHelperName(helper) {
+            switch (helper) {
+                case 1: return "__extends";
+                case 2: return "__assign";
+                case 4: return "__rest";
+                case 8: return "__decorate";
+                case 16: return "__metadata";
+                case 32: return "__param";
+                case 64: return "__awaiter";
+                case 128: return "__generator";
+            }
+        }
+        function resolveHelpersModule(node, errorNode) {
+            if (!externalHelpersModule) {
+                externalHelpersModule = resolveExternalModule(node, 
ts.externalHelpersModuleNameText, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
 errorNode) || unknownSymbol;
             }
+            return externalHelpersModule;
         }
         function createInstantiatedPromiseLikeType() {
             var promiseLikeType = getGlobalPromiseLikeType();
@@ -37261,9 +37614,9 @@ var ts;
                 if (prop.kind === 259) {
                     continue;
                 }
-                var name_29 = prop.name;
-                if (name_29.kind === 142) {
-                    checkGrammarComputedPropertyName(name_29);
+                var name_30 = prop.name;
+                if (name_30.kind === 142) {
+                    checkGrammarComputedPropertyName(name_30);
                 }
                 if (prop.kind === 258 && !inDestructuring && 
prop.objectAssignmentInitializer) {
                     return grammarErrorOnNode(prop.equalsToken, 
ts.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);
@@ -37279,8 +37632,8 @@ var ts;
                 var currentKind = void 0;
                 if (prop.kind === 257 || prop.kind === 258) {
                     checkGrammarForInvalidQuestionMark(prop.questionToken, 
ts.Diagnostics.An_object_member_cannot_be_declared_optional);
-                    if (name_29.kind === 8) {
-                        checkGrammarNumericLiteral(name_29);
+                    if (name_30.kind === 8) {
+                        checkGrammarNumericLiteral(name_30);
                     }
                     currentKind = Property;
                 }
@@ -37296,7 +37649,7 @@ var ts;
                 else {
                     ts.Debug.fail("Unexpected syntax kind:" + prop.kind);
                 }
-                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_29);
+                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_30);
                 if (effectiveName === undefined) {
                     continue;
                 }
@@ -37306,18 +37659,18 @@ var ts;
                 else {
                     var existingKind = seen[effectiveName];
                     if (currentKind === Property && existingKind === Property) 
{
-                        grammarErrorOnNode(name_29, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_29));
+                        grammarErrorOnNode(name_30, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_30));
                     }
                     else if ((currentKind & GetOrSetAccessor) && (existingKind 
& GetOrSetAccessor)) {
                         if (existingKind !== GetOrSetAccessor && currentKind 
!== existingKind) {
                             seen[effectiveName] = currentKind | existingKind;
                         }
                         else {
-                            return grammarErrorOnNode(name_29, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
+                            return grammarErrorOnNode(name_30, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
                         }
                     }
                     else {
-                        return grammarErrorOnNode(name_29, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
+                        return grammarErrorOnNode(name_30, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
                     }
                 }
             }
@@ -37330,12 +37683,12 @@ var ts;
                     continue;
                 }
                 var jsxAttr = attr;
-                var name_30 = jsxAttr.name;
-                if (!seen[name_30.text]) {
-                    seen[name_30.text] = true;
+                var name_31 = jsxAttr.name;
+                if (!seen[name_31.text]) {
+                    seen[name_31.text] = true;
                 }
                 else {
-                    return grammarErrorOnNode(name_30, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
+                    return grammarErrorOnNode(name_31, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
                 }
                 var initializer = jsxAttr.initializer;
                 if (initializer && initializer.kind === 252 && 
!initializer.expression) {
@@ -37388,6 +37741,9 @@ var ts;
             else if (accessor.body === undefined && 
!(ts.getModifierFlags(accessor) & 128)) {
                 return grammarErrorAtPos(ts.getSourceFileOfNode(accessor), 
accessor.end - 1, ";".length, ts.Diagnostics._0_expected, "{");
             }
+            else if (accessor.body && ts.getModifierFlags(accessor) & 128) {
+                return grammarErrorOnNode(accessor, 
ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);
+            }
             else if (accessor.typeParameters) {
                 return grammarErrorOnNode(accessor.name, 
ts.Diagnostics.An_accessor_cannot_have_type_parameters);
             }
@@ -37705,8 +38061,19 @@ var ts;
             }
         }
         function checkGrammarNumericLiteral(node) {
-            if (node.isOctalLiteral && languageVersion >= 1) {
-                return grammarErrorOnNode(node, 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher);
+            if (node.isOctalLiteral) {
+                var diagnosticMessage = void 0;
+                if (languageVersion >= 1) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
+                }
+                else if (ts.isChildOfLiteralType(node)) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
+                }
+                if (diagnosticMessage) {
+                    var withMinus = ts.isPrefixUnaryExpression(node.parent) && 
node.parent.operator === 37;
+                    var literal = (withMinus ? "-" : "") + "0o" + node.text;
+                    return grammarErrorOnNode(withMinus ? node.parent : node, 
diagnosticMessage, literal);
+                }
             }
         }
         function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {
@@ -38507,7 +38874,7 @@ var ts;
         return subtreeFlags;
     }
     function aggregateTransformFlagsForSubtree(node) {
-        if (ts.hasModifier(node, 2) || ts.isTypeNode(node)) {
+        if (ts.hasModifier(node, 2) || (ts.isTypeNode(node) && node.kind !== 
199)) {
             return 0;
         }
         return reduceEachChild(node, 0, aggregateTransformFlagsForChildNode, 
aggregateTransformFlagsForChildNodes);
@@ -38650,10 +39017,10 @@ var ts;
             }
         }
         for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < 
pendingDeclarations_1.length; _i++) {
-            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_31 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
-            var variable = ts.createVariableDeclaration(name_31, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
+            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_32 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
+            var variable = ts.createVariableDeclaration(name_32, undefined, 
pendingExpressions_1 ? ts.inlineExpressions(ts.append(pendingExpressions_1, 
value)) : value, location_2);
             variable.original = original;
-            if (ts.isIdentifier(name_31)) {
+            if (ts.isIdentifier(name_32)) {
                 ts.setEmitFlags(variable, 64);
             }
             ts.aggregateTransformFlags(variable);
@@ -38799,8 +39166,8 @@ var ts;
             return ts.createElementAccess(value, argumentExpression);
         }
         else {
-            var name_32 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
-            return ts.createPropertyAccess(value, name_32);
+            var name_33 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
+            return ts.createPropertyAccess(value, name_33);
         }
     }
     function ensureIdentifier(flattenContext, value, 
reuseIdentifierExpressions, location) {
@@ -38842,7 +39209,7 @@ var ts;
     var restHelper = {
         name: "typescript:rest",
         scoped: false,
-        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (typeof Object.getOwnPropertySymbols === 
\"function\")\n                    for (var i = 0, p = 
Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n  
                      t[p[i]] = s[p[i]];\n     [...]
+        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (s != null && typeof 
Object.getOwnPropertySymbols === \"function\")\n                    for (var i 
= 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if 
(e.indexOf(p[i]) < 0)\n                        t[p[i]] = s [...]
     };
     function createRestCall(context, value, elements, computedTempVariables, 
location) {
         context.requestEmitHelper(restHelper);
@@ -39047,6 +39414,7 @@ var ts;
                 case 145:
                 case 228:
                 case 147:
+                    return undefined;
                 case 150:
                     return visitConstructor(node);
                 case 227:
@@ -39285,8 +39653,8 @@ var ts;
                 && member.initializer !== undefined;
         }
         function addInitializedPropertyStatements(statements, properties, 
receiver) {
-            for (var _i = 0, properties_7 = properties; _i < 
properties_7.length; _i++) {
-                var property = properties_7[_i];
+            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
+                var property = properties_8[_i];
                 var statement = 
ts.createStatement(transformInitializedProperty(property, receiver));
                 ts.setSourceMapRange(statement, 
ts.moveRangePastModifiers(property));
                 ts.setCommentRange(statement, property);
@@ -39295,8 +39663,8 @@ var ts;
         }
         function generateInitializedPropertyExpressions(properties, receiver) {
             var expressions = [];
-            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
-                var property = properties_8[_i];
+            for (var _i = 0, properties_9 = properties; _i < 
properties_9.length; _i++) {
+                var property = properties_9[_i];
                 var expression = transformInitializedProperty(property, 
receiver);
                 expression.startsOnNewLine = true;
                 ts.setSourceMapRange(expression, 
ts.moveRangePastModifiers(property));
@@ -39369,10 +39737,11 @@ var ts;
                 return undefined;
             }
             var _a = ts.getAllAccessorDeclarations(node.members, accessor), 
firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, 
setAccessor = _a.setAccessor;
-            if (accessor !== firstAccessor) {
+            var firstAccessorWithDecorators = firstAccessor.decorators ? 
firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : 
undefined;
+            if (!firstAccessorWithDecorators || accessor !== 
firstAccessorWithDecorators) {
                 return undefined;
             }
-            var decorators = firstAccessor.decorators || (secondAccessor && 
secondAccessor.decorators);
+            var decorators = firstAccessorWithDecorators.decorators;
             var parameters = getDecoratorsOfParameters(setAccessor);
             if (!decorators && !parameters) {
                 return undefined;
@@ -39397,14 +39766,14 @@ var ts;
             }
             return { decorators: decorators };
         }
-        function transformAllDecoratorsOfDeclaration(node, allDecorators) {
+        function transformAllDecoratorsOfDeclaration(node, container, 
allDecorators) {
             if (!allDecorators) {
                 return undefined;
             }
             var decoratorExpressions = [];
             ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, 
transformDecorator));
             ts.addRange(decoratorExpressions, 
ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));
-            addTypeMetadata(node, decoratorExpressions);
+            addTypeMetadata(node, container, decoratorExpressions);
             return decoratorExpressions;
         }
         function addClassElementDecorationStatements(statements, node, 
isStatic) {
@@ -39429,7 +39798,7 @@ var ts;
         }
         function generateClassElementDecorationExpression(node, member) {
             var allDecorators = getAllDecoratorsOfClassElement(node, member);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -39452,7 +39821,7 @@ var ts;
         }
         function generateConstructorDecorationExpression(node) {
             var allDecorators = getAllDecoratorsOfConstructor(node);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -39480,35 +39849,35 @@ var ts;
             }
             return expressions;
         }
-        function addTypeMetadata(node, decoratorExpressions) {
+        function addTypeMetadata(node, container, decoratorExpressions) {
             if (USE_NEW_TYPE_METADATA_FORMAT) {
-                addNewTypeMetadata(node, decoratorExpressions);
+                addNewTypeMetadata(node, container, decoratorExpressions);
             }
             else {
-                addOldTypeMetadata(node, decoratorExpressions);
+                addOldTypeMetadata(node, container, decoratorExpressions);
             }
         }
-        function addOldTypeMetadata(node, decoratorExpressions) {
+        function addOldTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 if (shouldAddTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:type", serializeTypeOfNode(node)));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node)));
+                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node, container)));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:returntype", serializeReturnTypeOfNode(node)));
                 }
             }
         }
-        function addNewTypeMetadata(node, decoratorExpressions) {
+        function addNewTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 var properties = void 0;
                 if (shouldAddTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("type", ts.createArrowFunction(undefined, 
undefined, [], undefined, ts.createToken(35), serializeTypeOfNode(node))));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node))));
+                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeParameterTypesOfNode(node, container))));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("returnType", 
ts.createArrowFunction(undefined, undefined, [], undefined, ts.createToken(35), 
serializeReturnTypeOfNode(node))));
@@ -39529,12 +39898,16 @@ var ts;
             return node.kind === 149;
         }
         function shouldAddParamTypesMetadata(node) {
-            var kind = node.kind;
-            return kind === 226
-                || kind === 197
-                || kind === 149
-                || kind === 151
-                || kind === 152;
+            switch (node.kind) {
+                case 226:
+                case 197:
+                    return ts.getFirstConstructorWithBody(node) !== undefined;
+                case 149:
+                case 151:
+                case 152:
+                    return true;
+            }
+            return false;
         }
         function serializeTypeOfNode(node) {
             switch (node.kind) {
@@ -39552,18 +39925,7 @@ var ts;
                     return ts.createVoidZero();
             }
         }
-        function getRestParameterElementType(node) {
-            if (node && node.kind === 162) {
-                return node.elementType;
-            }
-            else if (node && node.kind === 157) {
-                return ts.singleOrUndefined(node.typeArguments);
-            }
-            else {
-                return undefined;
-            }
-        }
-        function serializeParameterTypesOfNode(node) {
+        function serializeParameterTypesOfNode(node, container) {
             var valueDeclaration = ts.isClassLike(node)
                 ? ts.getFirstConstructorWithBody(node)
                 : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)
@@ -39571,7 +39933,7 @@ var ts;
                     : undefined;
             var expressions = [];
             if (valueDeclaration) {
-                var parameters = valueDeclaration.parameters;
+                var parameters = 
getParametersOfDecoratedDeclaration(valueDeclaration, container);
                 var numParameters = parameters.length;
                 for (var i = 0; i < numParameters; i++) {
                     var parameter = parameters[i];
@@ -39579,7 +39941,7 @@ var ts;
                         continue;
                     }
                     if (parameter.dotDotDotToken) {
-                        
expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));
+                        
expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));
                     }
                     else {
                         expressions.push(serializeTypeOfNode(parameter));
@@ -39588,6 +39950,15 @@ var ts;
             }
             return ts.createArrayLiteral(expressions);
         }
+        function getParametersOfDecoratedDeclaration(node, container) {
+            if (container && node.kind === 151) {
+                var setAccessor = 
ts.getAllAccessorDeclarations(container.members, node).setAccessor;
+                if (setAccessor) {
+                    return setAccessor.parameters;
+                }
+            }
+            return node.parameters;
+        }
         function serializeReturnTypeOfNode(node) {
             if (ts.isFunctionLike(node) && node.type) {
                 return serializeTypeNode(node.type);
@@ -39603,6 +39974,9 @@ var ts;
             }
             switch (node.kind) {
                 case 104:
+                case 137:
+                case 94:
+                case 129:
                     return ts.createVoidZero();
                 case 166:
                     return serializeTypeNode(node.type);
@@ -39641,29 +40015,7 @@ var ts;
                     return serializeTypeReferenceNode(node);
                 case 165:
                 case 164:
-                    {
-                        var unionOrIntersection = node;
-                        var serializedUnion = void 0;
-                        for (var _i = 0, _a = unionOrIntersection.types; _i < 
_a.length; _i++) {
-                            var typeNode = _a[_i];
-                            var serializedIndividual = 
serializeTypeNode(typeNode);
-                            if (serializedIndividual.kind !== 70) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            if (serializedIndividual.text === "Object") {
-                                return serializedIndividual;
-                            }
-                            if (serializedUnion && serializedUnion.text !== 
serializedIndividual.text) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            serializedUnion = serializedIndividual;
-                        }
-                        if (serializedUnion) {
-                            return serializedUnion;
-                        }
-                    }
+                    return serializeUnionOrIntersectionType(node);
                 case 160:
                 case 168:
                 case 169:
@@ -39678,6 +40030,32 @@ var ts;
             }
             return ts.createIdentifier("Object");
         }
+        function serializeUnionOrIntersectionType(node) {
+            var serializedUnion;
+            for (var _i = 0, _a = node.types; _i < _a.length; _i++) {
+                var typeNode = _a[_i];
+                var serializedIndividual = serializeTypeNode(typeNode);
+                if (ts.isVoidExpression(serializedIndividual)) {
+                    if (!serializedUnion) {
+                        serializedUnion = serializedIndividual;
+                    }
+                }
+                else if (ts.isIdentifier(serializedIndividual) && 
serializedIndividual.text === "Object") {
+                    return serializedIndividual;
+                }
+                else if (serializedUnion && 
!ts.isVoidExpression(serializedUnion)) {
+                    if (!ts.isIdentifier(serializedUnion) ||
+                        !ts.isIdentifier(serializedIndividual) ||
+                        serializedUnion.text !== serializedIndividual.text) {
+                        return ts.createIdentifier("Object");
+                    }
+                }
+                else {
+                    serializedUnion = serializedIndividual;
+                }
+            }
+            return serializedUnion;
+        }
         function serializeTypeReferenceNode(node) {
             switch (resolver.getTypeReferenceSerializationKind(node.typeName, 
currentScope)) {
                 case ts.TypeReferenceSerializationKind.Unknown:
@@ -39712,14 +40090,14 @@ var ts;
         function serializeEntityNameAsExpression(node, useFallback) {
             switch (node.kind) {
                 case 70:
-                    var name_33 = ts.getMutableClone(node);
-                    name_33.flags &= ~8;
-                    name_33.original = undefined;
-                    name_33.parent = currentScope;
+                    var name_34 = ts.getMutableClone(node);
+                    name_34.flags &= ~8;
+                    name_34.original = undefined;
+                    name_34.parent = currentScope;
                     if (useFallback) {
-                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_33), 
ts.createLiteral("undefined")), name_33);
+                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_34), 
ts.createLiteral("undefined")), name_34);
                     }
-                    return name_33;
+                    return name_34;
                 case 141:
                     return serializeQualifiedNameAsExpression(node, 
useFallback);
             }
@@ -39749,7 +40127,7 @@ var ts;
                     : name.expression;
             }
             else if (ts.isIdentifier(name)) {
-                return ts.createLiteral(name.text);
+                return ts.createLiteral(ts.unescapeIdentifier(name.text));
             }
             else {
                 return ts.getSynthesizedClone(name);
@@ -39990,9 +40368,9 @@ var ts;
         }
         function isFirstEmittedDeclarationInScope(node) {
             if (currentScopeFirstDeclarationsOfName) {
-                var name_34 = node.symbol && node.symbol.name;
-                if (name_34) {
-                    return currentScopeFirstDeclarationsOfName[name_34] === 
node;
+                var name_35 = node.symbol && node.symbol.name;
+                if (name_35) {
+                    return currentScopeFirstDeclarationsOfName[name_35] === 
node;
                 }
             }
             return false;
@@ -40065,7 +40443,7 @@ var ts;
             var blockLocation;
             var body = node.body;
             if (body.kind === 231) {
-                ts.addRange(statements, ts.visitNodes(body.statements, 
namespaceElementVisitor, ts.isStatement));
+                saveStateAndInvoke(body, function (body) { return 
ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, 
ts.isStatement)); });
                 statementsLocation = body.statements;
                 blockLocation = body;
             }
@@ -40281,14 +40659,14 @@ var ts;
         }
         function substituteShorthandPropertyAssignment(node) {
             if (enabledSubstitutions & 2) {
-                var name_35 = node.name;
-                var exportedName = trySubstituteNamespaceExportedName(name_35);
+                var name_36 = node.name;
+                var exportedName = trySubstituteNamespaceExportedName(name_36);
                 if (exportedName) {
                     if (node.objectAssignmentInitializer) {
                         var initializer = ts.createAssignment(exportedName, 
node.objectAssignmentInitializer);
-                        return ts.createPropertyAssignment(name_35, 
initializer, node);
+                        return ts.createPropertyAssignment(name_36, 
initializer, node);
                     }
-                    return ts.createPropertyAssignment(name_35, exportedName, 
node);
+                    return ts.createPropertyAssignment(name_36, exportedName, 
node);
                 }
             }
             return node;
@@ -40741,6 +41119,9 @@ var ts;
                 return decoded ? ts.createLiteral(decoded, node) : node;
             }
             else if (node.kind === 252) {
+                if (node.expression === undefined) {
+                    return ts.createLiteral(true);
+                }
                 return visitJsxExpression(node);
             }
             else {
@@ -40809,12 +41190,12 @@ var ts;
                 return getTagName(node.openingElement);
             }
             else {
-                var name_36 = node.tagName;
-                if (ts.isIdentifier(name_36) && 
ts.isIntrinsicJsxName(name_36.text)) {
-                    return ts.createLiteral(name_36.text);
+                var name_37 = node.tagName;
+                if (ts.isIdentifier(name_37) && 
ts.isIntrinsicJsxName(name_37.text)) {
+                    return ts.createLiteral(name_37.text);
                 }
                 else {
-                    return ts.createExpressionFromEntityName(name_36);
+                    return ts.createExpressionFromEntityName(name_37);
                 }
             }
         }
@@ -41332,7 +41713,7 @@ var ts;
         name: "typescript:awaiter",
         scoped: false,
         priority: 5,
-        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
+        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
     };
     var asyncSuperHelper = {
         name: "typescript:async-super",
@@ -41834,7 +42215,8 @@ var ts;
                 addRestParameterIfNeeded(statements, constructor, 
hasSynthesizedSuper);
                 ts.Debug.assert(statementOffset >= 0, "statementOffset not 
initialized correctly!");
             }
-            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
!!extendsClauseElement, hasSynthesizedSuper, statementOffset);
+            var isDerivedClass = extendsClauseElement && 
ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 94;
+            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
isDerivedClass, hasSynthesizedSuper, statementOffset);
             if (superCaptureStatus === 1 || superCaptureStatus === 2) {
                 statementOffset++;
             }
@@ -41845,7 +42227,7 @@ var ts;
                 });
                 ts.addRange(statements, body);
             }
-            if (extendsClauseElement
+            if (isDerivedClass
                 && superCaptureStatus !== 2
                 && !(constructor && 
isSufficientlyCoveredByReturnStatements(constructor.body))) {
                 statements.push(ts.createReturn(ts.createIdentifier("_this")));
@@ -41876,8 +42258,8 @@ var ts;
             }
             return false;
         }
-        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
hasExtendsClause, hasSynthesizedSuper, statementOffset) {
-            if (!hasExtendsClause) {
+        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
isDerivedClass, hasSynthesizedSuper, statementOffset) {
+            if (!isDerivedClass) {
                 if (ctor) {
                     addCaptureThisForNodeIfNeeded(statements, ctor);
                 }
@@ -41902,7 +42284,9 @@ var ts;
                     superCallExpression = 
ts.setOriginalNode(saveStateAndInvoke(superCall, 
visitImmediateSuperCallInBody), superCall);
                 }
             }
-            if (superCallExpression && statementOffset === 
ctorStatements.length - 1) {
+            if (superCallExpression
+                && statementOffset === ctorStatements.length - 1
+                && !(ctor.transformFlags & (16384 | 32768))) {
                 var returnStatement = ts.createReturn(superCallExpression);
                 if (superCallExpression.kind !== 192
                     || superCallExpression.left.kind !== 179) {
@@ -41912,17 +42296,17 @@ var ts;
                 statements.push(returnStatement);
                 return 2;
             }
-            captureThisForNode(statements, ctor, superCallExpression, 
firstStatement);
+            captureThisForNode(statements, ctor, superCallExpression || 
createActualThis(), firstStatement);
             if (superCallExpression) {
                 return 1;
             }
             return 0;
         }
+        function createActualThis() {
+            return ts.setEmitFlags(ts.createThis(), 4);
+        }
         function createDefaultSuperCallOrThis() {
-            var actualThis = ts.createThis();
-            ts.setEmitFlags(actualThis, 4);
-            var superCall = 
ts.createFunctionApply(ts.createIdentifier("_super"), actualThis, 
ts.createIdentifier("arguments"));
-            return ts.createLogicalOr(superCall, actualThis);
+            return 
ts.createLogicalOr(ts.createLogicalAnd(ts.createStrictInequality(ts.createIdentifier("_super"),
 ts.createNull()), ts.createFunctionApply(ts.createIdentifier("_super"), 
createActualThis(), ts.createIdentifier("arguments"))), createActualThis());
         }
         function visitParameter(node) {
             if (node.dotDotDotToken) {
@@ -41947,15 +42331,15 @@ var ts;
             }
             for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {
                 var parameter = _a[_i];
-                var name_37 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
+                var name_38 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
                 if (dotDotDotToken) {
                     continue;
                 }
-                if (ts.isBindingPattern(name_37)) {
-                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_37, initializer);
+                if (ts.isBindingPattern(name_38)) {
+                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_38, initializer);
                 }
                 else if (initializer) {
-                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_37, initializer);
+                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_38, initializer);
                 }
             }
         }
@@ -42485,15 +42869,23 @@ var ts;
                     convertedLoopState.hoistedLocalVariables = 
outerConvertedLoopState.hoistedLocalVariables;
                 }
             }
-            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement);
+            startLexicalEnvironment();
+            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement, false, ts.liftToBlock);
+            var lexicalEnvironment = endLexicalEnvironment();
             var currentState = convertedLoopState;
             convertedLoopState = outerConvertedLoopState;
-            if (loopOutParameters.length) {
+            if (loopOutParameters.length || lexicalEnvironment) {
                 var statements_4 = ts.isBlock(loopBody) ? 
loopBody.statements.slice() : [loopBody];
-                copyOutParameters(loopOutParameters, 1, statements_4);
+                if (loopOutParameters.length) {
+                    copyOutParameters(loopOutParameters, 1, statements_4);
+                }
+                ts.addRange(statements_4, lexicalEnvironment);
                 loopBody = ts.createBlock(statements_4, undefined, true);
             }
-            if (!ts.isBlock(loopBody)) {
+            if (ts.isBlock(loopBody)) {
+                loopBody.multiLine = true;
+            }
+            else {
                 loopBody = ts.createBlock([loopBody], undefined, true);
             }
             var isAsyncBlockContainingAwait = enclosingNonArrowFunction
@@ -43411,7 +43803,7 @@ var ts;
                 emitYield(expression, node);
             }
             markLabel(resumeLabel);
-            return createGeneratorResume();
+            return createGeneratorResume(node);
         }
         function visitArrayLiteralExpression(node) {
             return visitElements(node.elements, undefined, undefined, 
node.multiLine);
@@ -43565,7 +43957,9 @@ var ts;
         function transformAndEmitVariableDeclarationList(node) {
             for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {
                 var variable = _a[_i];
-                hoistVariableDeclaration(variable.name);
+                var name_39 = ts.getSynthesizedClone(variable.name);
+                ts.setCommentRange(name_39, variable.name);
+                hoistVariableDeclaration(name_39);
             }
             var variables = ts.getInitializedVariables(node);
             var numVariables = variables.length;
@@ -43595,7 +43989,7 @@ var ts;
                 if (containsYield(node.thenStatement) || 
containsYield(node.elseStatement)) {
                     var endLabel = defineLabel();
                     var elseLabel = node.elseStatement ? defineLabel() : 
undefined;
-                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));
+                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), 
node.expression);
                     transformAndEmitEmbeddedStatement(node.thenStatement);
                     if (node.elseStatement) {
                         emitBreak(endLabel);
@@ -43960,9 +44354,9 @@ var ts;
                 if (ts.isIdentifier(original) && original.parent) {
                     var declaration = 
resolver.getReferencedValueDeclaration(original);
                     if (declaration) {
-                        var name_38 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
-                        if (name_38) {
-                            var clone_6 = ts.getMutableClone(name_38);
+                        var name_40 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
+                        if (name_40) {
+                            var clone_6 = ts.getMutableClone(name_40);
                             ts.setSourceMapRange(clone_6, node);
                             ts.setCommentRange(clone_6, node);
                             return clone_6;
@@ -44575,41 +44969,41 @@ var ts;
         function writeReturn(expression, operationLocation) {
             lastOperationWasAbrupt = true;
             lastOperationWasCompletion = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(2), expression]
-                : [createInstruction(2)]), operationLocation));
+                : [createInstruction(2)]), operationLocation), 384));
         }
         function writeBreak(label, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeBreakWhenTrue(label, condition, operationLocation) {
-            writeStatement(ts.createIf(condition, 
ts.createReturn(ts.createArrayLiteral([
+            writeStatement(ts.setEmitFlags(ts.createIf(condition, 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeBreakWhenFalse(label, condition, operationLocation) {
-            writeStatement(ts.createIf(ts.createLogicalNot(condition), 
ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createIf(ts.createLogicalNot(condition), 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384)), 1));
         }
         function writeYield(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(4), expression]
-                : [createInstruction(4)]), operationLocation));
+                : [createInstruction(4)]), operationLocation), 384));
         }
         function writeYieldStar(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(5),
                 expression
-            ]), operationLocation));
+            ]), operationLocation), 384));
         }
         function writeEndfinally() {
             lastOperationWasAbrupt = true;
@@ -44634,6 +45028,17 @@ var ts;
 var ts;
 (function (ts) {
     function transformES5(context) {
+        var compilerOptions = context.getCompilerOptions();
+        var previousOnEmitNode;
+        var noSubstitution;
+        if (compilerOptions.jsx === 1) {
+            previousOnEmitNode = context.onEmitNode;
+            context.onEmitNode = onEmitNode;
+            context.enableEmitNotification(248);
+            context.enableEmitNotification(249);
+            context.enableEmitNotification(247);
+            noSubstitution = [];
+        }
         var previousOnSubstituteNode = context.onSubstituteNode;
         context.onSubstituteNode = onSubstituteNode;
         context.enableSubstitution(177);
@@ -44642,7 +45047,21 @@ var ts;
         function transformSourceFile(node) {
             return node;
         }
+        function onEmitNode(emitContext, node, emitCallback) {
+            switch (node.kind) {
+                case 248:
+                case 249:
+                case 247:
+                    var tagName = node.tagName;
+                    noSubstitution[ts.getOriginalNodeId(tagName)] = true;
+                    break;
+            }
+            previousOnEmitNode(emitContext, node, emitCallback);
+        }
         function onSubstituteNode(emitContext, node) {
+            if (node.id && noSubstitution && noSubstitution[node.id]) {
+                return previousOnSubstituteNode(emitContext, node);
+            }
             node = previousOnSubstituteNode(emitContext, node);
             if (ts.isPropertyAccessExpression(node)) {
                 return substitutePropertyAccessExpression(node);
@@ -44738,14 +45157,7 @@ var ts;
         function transformAMDModule(node) {
             var define = ts.createIdentifier("define");
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
-            return transformAsynchronousModule(node, define, moduleName, true);
-        }
-        function transformUMDModule(node) {
-            var define = ts.createRawExpression(umdHelper);
-            return transformAsynchronousModule(node, define, undefined, false);
-        }
-        function transformAsynchronousModule(node, define, moduleName, 
includeNonAmdDependencies) {
-            var _a = collectAsynchronousDependencies(node, 
includeNonAmdDependencies), aliasedModuleNames = _a.aliasedModuleNames, 
unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = 
_a.importAliasNames;
+            var _a = collectAsynchronousDependencies(node, true), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
             return ts.updateSourceFileNode(node, ts.createNodeArray([
                 ts.createStatement(ts.createCall(define, undefined, 
(moduleName ? [moduleName] : []).concat([
                     ts.createArrayLiteral([
@@ -44759,6 +45171,36 @@ var ts;
                 ])))
             ], node.statements));
         }
+        function transformUMDModule(node) {
+            var _a = collectAsynchronousDependencies(node, false), 
aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = 
_a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;
+            var umdHeader = ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [ts.createParameter(undefined, undefined, undefined, 
"factory")], undefined, ts.createBlock([
+                
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("module"),
 "object"), 
ts.createTypeCheck(ts.createPropertyAccess(ts.createIdentifier("module"), 
"exports"), "object")), ts.createBlock([
+                    ts.createVariableStatement(undefined, [
+                        ts.createVariableDeclaration("v", undefined, 
ts.createCall(ts.createIdentifier("factory"), undefined, [
+                            ts.createIdentifier("require"),
+                            ts.createIdentifier("exports")
+                        ]))
+                    ]),
+                    
ts.setEmitFlags(ts.createIf(ts.createStrictInequality(ts.createIdentifier("v"), 
ts.createIdentifier("undefined")), 
ts.createStatement(ts.createAssignment(ts.createPropertyAccess(ts.createIdentifier("module"),
 "exports"), ts.createIdentifier("v")))), 1)
+                ]), 
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("define"),
 "function"), ts.createPropertyAccess(ts.createIdentifier("define"), "amd")), 
ts.createBlock([
+                    
ts.createStatement(ts.createCall(ts.createIdentifier("define"), undefined, [
+                        ts.createArrayLiteral([
+                            ts.createLiteral("require"),
+                            ts.createLiteral("exports")
+                        ].concat(aliasedModuleNames, unaliasedModuleNames)),
+                        ts.createIdentifier("factory")
+                    ]))
+                ])))
+            ], undefined, true));
+            return ts.updateSourceFileNode(node, ts.createNodeArray([
+                ts.createStatement(ts.createCall(umdHeader, undefined, [
+                    ts.createFunctionExpression(undefined, undefined, 
undefined, undefined, [
+                        ts.createParameter(undefined, undefined, undefined, 
"require"),
+                        ts.createParameter(undefined, undefined, undefined, 
"exports")
+                    ].concat(importAliasNames), undefined, 
transformAsynchronousModuleBody(node))
+                ]))
+            ], node.statements));
+        }
         function collectAsynchronousDependencies(node, 
includeNonAmdDependencies) {
             var aliasedModuleNames = [];
             var unaliasedModuleNames = [];
@@ -45244,8 +45686,8 @@ var ts;
                         return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent), 
ts.createIdentifier("default"), node);
                     }
                     else if (ts.isImportSpecifier(importDeclaration)) {
-                        var name_39 = importDeclaration.propertyName || 
importDeclaration.name;
-                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_39), node);
+                        var name_41 = importDeclaration.propertyName || 
importDeclaration.name;
+                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_41), node);
                     }
                 }
             }
@@ -45309,7 +45751,6 @@ var ts;
         scoped: true,
         text: "\n            function __export(m) {\n                for (var 
p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"
     };
-    var umdHelper = "\n        (function (dependencies, factory) {\n           
 if (typeof module === 'object' && typeof module.exports === 'object') {\n      
          var v = factory(require, exports); if (v !== undefined) 
module.exports = v;\n            }\n            else if (typeof define === 
'function' && define.amd) {\n                define(dependencies, factory);\n   
         }\n        })";
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
@@ -45359,11 +45800,11 @@ var ts;
             ], undefined, moduleBodyBlock);
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
             var dependencies = ts.createArrayLiteral(ts.map(dependencyGroups, 
function (dependencyGroup) { return dependencyGroup.name; }));
-            var updated = ts.updateSourceFileNode(node, ts.createNodeArray([
+            var updated = ts.setEmitFlags(ts.updateSourceFileNode(node, 
ts.createNodeArray([
                 
ts.createStatement(ts.createCall(ts.createPropertyAccess(ts.createIdentifier("System"),
 "register"), undefined, moduleName
                     ? [moduleName, dependencies, moduleBodyFunction]
                     : [dependencies, moduleBodyFunction]))
-            ], node.statements));
+            ], node.statements)), 1024);
             if (!(compilerOptions.outFile || compilerOptions.out)) {
                 ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) 
{ return !helper.scoped; });
             }
@@ -46238,7 +46679,7 @@ var ts;
     }
     ts.getTransformers = getTransformers;
     function transformFiles(resolver, host, sourceFiles, transformers) {
-        var enabledSyntaxKindFeatures = new Array(298);
+        var enabledSyntaxKindFeatures = new Array(297);
         var lexicalEnvironmentDisabled = false;
         var lexicalEnvironmentVariableDeclarations;
         var lexicalEnvironmentFunctionDeclarations;
@@ -46526,6 +46967,7 @@ var ts;
             writer.writeSpace = writer.write;
             writer.writeStringLiteral = writer.writeLiteral;
             writer.writeParameter = writer.write;
+            writer.writeProperty = writer.write;
             writer.writeSymbol = writer.write;
             setWriter(writer);
         }
@@ -46856,9 +47298,9 @@ var ts;
             var count = 0;
             while (true) {
                 count++;
-                var name_40 = baseName + "_" + count;
-                if (!(name_40 in currentIdentifiers)) {
-                    return name_40;
+                var name_42 = baseName + "_" + count;
+                if (!(name_42 in currentIdentifiers)) {
+                    return name_42;
                 }
             }
         }
@@ -47747,6 +48189,10 @@ var ts;
                         return symbolAccessibilityResult.errorModuleName ?
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
+                    case 155:
+                        return symbolAccessibilityResult.errorModuleName ?
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
                     case 149:
                     case 148:
                         if (ts.hasModifier(node.parent, 32)) {
@@ -48131,7 +48577,7 @@ var ts;
                 return;
             }
             encodeLastRecordedSourceMapSpan();
-            return ts.stringify({
+            return JSON.stringify({
                 version: 3,
                 file: sourceMapData.sourceMapFile,
                 sourceRoot: sourceMapData.sourceMapSourceRoot,
@@ -48297,6 +48743,9 @@ var ts;
             }
             if (!skipTrailingComments) {
                 emitLeadingComments(detachedRange.end, true);
+                if (hasWrittenComment && !writer.isAtStartOfLine()) {
+                    writer.writeLine();
+                }
             }
             if (extendedDiagnostics) {
                 ts.performance.measure("commentTime", 
"beginEmitBodyWithDetachedCommetns");
@@ -48911,8 +49360,6 @@ var ts;
                     return emitJsxSelfClosingElement(node);
                 case 294:
                     return emitPartiallyEmittedExpression(node);
-                case 297:
-                    return writeLines(node.text);
             }
         }
         function emitNumericLiteral(node) {
@@ -49399,27 +49846,27 @@ var ts;
             writeToken(18, openParenPos, node);
             emitExpression(node.expression);
             writeToken(19, node.expression.end, node);
-            emitEmbeddedStatement(node.thenStatement);
+            emitEmbeddedStatement(node, node.thenStatement);
             if (node.elseStatement) {
-                writeLine();
+                writeLineOrSpace(node);
                 writeToken(81, node.thenStatement.end, node);
                 if (node.elseStatement.kind === 208) {
                     write(" ");
                     emit(node.elseStatement);
                 }
                 else {
-                    emitEmbeddedStatement(node.elseStatement);
+                    emitEmbeddedStatement(node, node.elseStatement);
                 }
             }
         }
         function emitDoStatement(node) {
             write("do");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
             if (ts.isBlock(node.statement)) {
                 write(" ");
             }
             else {
-                writeLine();
+                writeLineOrSpace(node);
             }
             write("while (");
             emitExpression(node.expression);
@@ -49429,7 +49876,7 @@ var ts;
             write("while (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49441,7 +49888,7 @@ var ts;
             write(";");
             emitExpressionWithPrefix(" ", node.incrementor);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForInStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49451,7 +49898,7 @@ var ts;
             write(" in ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForOfStatement(node) {
             var openParenPos = writeToken(87, node.pos);
@@ -49461,7 +49908,7 @@ var ts;
             write(" of ");
             emitExpression(node.expression);
             writeToken(19, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForBinding(node) {
             if (node !== undefined) {
@@ -49492,7 +49939,7 @@ var ts;
             write("with (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitSwitchStatement(node) {
             var openParenPos = writeToken(97, node.pos);
@@ -49516,9 +49963,12 @@ var ts;
         function emitTryStatement(node) {
             write("try ");
             emit(node.tryBlock);
-            emit(node.catchClause);
+            if (node.catchClause) {
+                writeLineOrSpace(node);
+                emit(node.catchClause);
+            }
             if (node.finallyBlock) {
-                writeLine();
+                writeLineOrSpace(node);
                 write("finally ");
                 emit(node.finallyBlock);
             }
@@ -50044,8 +50494,8 @@ var ts;
                 write(suffix);
             }
         }
-        function emitEmbeddedStatement(node) {
-            if (ts.isBlock(node)) {
+        function emitEmbeddedStatement(parent, node) {
+            if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1) {
                 write(" ");
                 emit(node);
             }
@@ -50174,6 +50624,14 @@ var ts;
                 write(getClosingBracket(format));
             }
         }
+        function writeLineOrSpace(node) {
+            if (ts.getEmitFlags(node) & 1) {
+                write(" ");
+            }
+            else {
+                writeLine();
+            }
+        }
         function writeIfAny(nodes, text) {
             if (nodes && nodes.length > 0) {
                 write(text);
@@ -50354,21 +50812,21 @@ var ts;
         }
         function makeTempVariableName(flags) {
             if (flags && !(tempFlags & flags)) {
-                var name_41 = flags === 268435456 ? "_i" : "_n";
-                if (isUniqueName(name_41)) {
+                var name_43 = flags === 268435456 ? "_i" : "_n";
+                if (isUniqueName(name_43)) {
                     tempFlags |= flags;
-                    return name_41;
+                    return name_43;
                 }
             }
             while (true) {
                 var count = tempFlags & 268435455;
                 tempFlags++;
                 if (count !== 8 && count !== 13) {
-                    var name_42 = count < 26
+                    var name_44 = count < 26
                         ? "_" + String.fromCharCode(97 + count)
                         : "_" + (count - 26);
-                    if (isUniqueName(name_42)) {
-                        return name_42;
+                    if (isUniqueName(name_44)) {
+                        return name_44;
                     }
                 }
             }
@@ -50704,10 +51162,10 @@ var ts;
         var resolutions = [];
         var cache = ts.createMap();
         for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {
-            var name_43 = names_1[_i];
-            var result = name_43 in cache
-                ? cache[name_43]
-                : cache[name_43] = loader(name_43, containingFile);
+            var name_45 = names_1[_i];
+            var result = name_45 in cache
+                ? cache[name_45]
+                : cache[name_45] = loader(name_45, containingFile);
             resolutions.push(result);
         }
         return resolutions;
@@ -50732,6 +51190,7 @@ var ts;
         var currentDirectory = host.getCurrentDirectory();
         var supportedExtensions = ts.getSupportedExtensions(options);
         var hasEmitBlockingDiagnostics = 
ts.createFileMap(getCanonicalFileName);
+        var moduleResolutionCache;
         var resolveModuleNamesWorker;
         if (host.resolveModuleNames) {
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return host.resolveModuleNames(moduleNames, containingFile).map(function 
(resolved) {
@@ -50744,7 +51203,8 @@ var ts;
             }); };
         }
         else {
-            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host).resolvedModule; 
};
+            moduleResolutionCache = 
ts.createModuleResolutionCache(currentDirectory, function (x) { return 
host.getCanonicalFileName(x); });
+            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host, 
moduleResolutionCache).resolvedModule; };
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return loadWithLocalCache(moduleNames, containingFile, loader_1); };
         }
         var resolveTypeReferenceDirectiveNamesWorker;
@@ -50780,6 +51240,7 @@ var ts;
                 }
             }
         }
+        moduleResolutionCache = undefined;
         oldProgram = undefined;
         program = {
             getRootFileNames: function () { return rootNames; },
@@ -51825,7 +52286,9 @@ var ts;
                 this.text = text;
             }
             StringScriptSnapshot.prototype.getText = function (start, end) {
-                return this.text.substring(start, end);
+                return start === 0 && end === this.text.length
+                    ? this.text
+                    : this.text.substring(start, end);
             };
             StringScriptSnapshot.prototype.getLength = function () {
                 return this.text.length;
@@ -52896,6 +53359,7 @@ var ts;
             writeSpace: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.space); },
             writeStringLiteral: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.stringLiteral); },
             writeParameter: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.parameterName); },
+            writeProperty: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.propertyName); },
             writeSymbol: writeSymbol,
             writeLine: writeLine,
             increaseIndent: function () { indent++; },
@@ -54397,13 +54861,13 @@ var ts;
             function getJavaScriptCompletionEntries(sourceFile, position, 
uniqueNames) {
                 var entries = [];
                 var nameTable = ts.getNameTable(sourceFile);
-                for (var name_44 in nameTable) {
-                    if (nameTable[name_44] === position) {
+                for (var name_46 in nameTable) {
+                    if (nameTable[name_46] === position) {
                         continue;
                     }
-                    if (!uniqueNames[name_44]) {
-                        uniqueNames[name_44] = name_44;
-                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_44), 
compilerOptions.target, true);
+                    if (!uniqueNames[name_46]) {
+                        uniqueNames[name_46] = name_46;
+                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_46), 
compilerOptions.target, true);
                         if (displayName) {
                             var entry = {
                                 name: displayName,
@@ -54825,11 +55289,11 @@ var ts;
                     if (currentConfigPath) {
                         paths.push(currentConfigPath);
                         currentDir = ts.getDirectoryPath(currentConfigPath);
-                        var parent_13 = ts.getDirectoryPath(currentDir);
-                        if (currentDir === parent_13) {
+                        var parent_14 = ts.getDirectoryPath(currentDir);
+                        if (currentDir === parent_14) {
                             break;
                         }
-                        currentDir = parent_13;
+                        currentDir = parent_14;
                     }
                     else {
                         break;
@@ -54909,13 +55373,14 @@ var ts;
                 var symbols = completionData.symbols, location_3 = 
completionData.location;
                 var symbol = ts.forEach(symbols, function (s) { return 
getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, 
false, location_3) === entryName ? s : undefined; });
                 if (symbol) {
-                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7), displayParts = _a.displayParts, 
documentation = _a.documentation, symbolKind = _a.symbolKind;
+                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7), displayParts = _a.displayParts, 
documentation = _a.documentation, symbolKind = _a.symbolKind, tags = _a.tags;
                     return {
                         name: entryName,
                         kindModifiers: 
ts.SymbolDisplay.getSymbolModifiers(symbol),
                         kind: symbolKind,
                         displayParts: displayParts,
-                        documentation: documentation
+                        documentation: documentation,
+                        tags: tags
                     };
                 }
             }
@@ -54926,7 +55391,8 @@ var ts;
                     kind: ts.ScriptElementKind.keyword,
                     kindModifiers: ts.ScriptElementKindModifier.none,
                     displayParts: [ts.displayPart(entryName, 
ts.SymbolDisplayPartKind.keyword)],
-                    documentation: undefined
+                    documentation: undefined,
+                    tags: undefined
                 };
             }
             return undefined;
@@ -54998,13 +55464,13 @@ var ts;
                     log("Returning an empty list because completion was 
requested in an invalid position.");
                     return undefined;
                 }
-                var parent_14 = contextToken.parent, kind = contextToken.kind;
+                var parent_15 = contextToken.parent, kind = contextToken.kind;
                 if (kind === 22) {
-                    if (parent_14.kind === 177) {
+                    if (parent_15.kind === 177) {
                         node = contextToken.parent.expression;
                         isRightOfDot = true;
                     }
-                    else if (parent_14.kind === 141) {
+                    else if (parent_15.kind === 141) {
                         node = contextToken.parent.left;
                         isRightOfDot = true;
                     }
@@ -55301,9 +55767,9 @@ var ts;
                     switch (contextToken.kind) {
                         case 16:
                         case 25:
-                            var parent_15 = contextToken.parent;
-                            if (parent_15 && (parent_15.kind === 176 || 
parent_15.kind === 172)) {
-                                return parent_15;
+                            var parent_16 = contextToken.parent;
+                            if (parent_16 && (parent_16.kind === 176 || 
parent_16.kind === 172)) {
+                                return parent_16;
                             }
                             break;
                     }
@@ -55326,34 +55792,34 @@ var ts;
             }
             function tryGetContainingJsxElement(contextToken) {
                 if (contextToken) {
-                    var parent_16 = contextToken.parent;
+                    var parent_17 = contextToken.parent;
                     switch (contextToken.kind) {
                         case 27:
                         case 40:
                         case 70:
                         case 250:
                         case 251:
-                            if (parent_16 && (parent_16.kind === 247 || 
parent_16.kind === 248)) {
-                                return parent_16;
+                            if (parent_17 && (parent_17.kind === 247 || 
parent_17.kind === 248)) {
+                                return parent_17;
                             }
-                            else if (parent_16.kind === 250) {
-                                return parent_16.parent;
+                            else if (parent_17.kind === 250) {
+                                return parent_17.parent;
                             }
                             break;
                         case 9:
-                            if (parent_16 && ((parent_16.kind === 250) || 
(parent_16.kind === 251))) {
-                                return parent_16.parent;
+                            if (parent_17 && ((parent_17.kind === 250) || 
(parent_17.kind === 251))) {
+                                return parent_17.parent;
                             }
                             break;
                         case 17:
-                            if (parent_16 &&
-                                parent_16.kind === 252 &&
-                                parent_16.parent &&
-                                (parent_16.parent.kind === 250)) {
-                                return parent_16.parent.parent;
+                            if (parent_17 &&
+                                parent_17.kind === 252 &&
+                                parent_17.parent &&
+                                (parent_17.parent.kind === 250)) {
+                                return parent_17.parent.parent;
                             }
-                            if (parent_16 && parent_16.kind === 251) {
-                                return parent_16.parent;
+                            if (parent_17 && parent_17.kind === 251) {
+                                return parent_17.parent;
                             }
                             break;
                     }
@@ -55476,8 +55942,8 @@ var ts;
                     if (element.getStart() <= position && position <= 
element.getEnd()) {
                         continue;
                     }
-                    var name_45 = element.propertyName || element.name;
-                    existingImportsOrExports[name_45.text] = true;
+                    var name_47 = element.propertyName || element.name;
+                    existingImportsOrExports[name_47.text] = true;
                 }
                 if (!ts.someProperties(existingImportsOrExports)) {
                     return ts.filter(exportsOfModule, function (e) { return 
e.name !== "default"; });
@@ -55774,17 +56240,17 @@ var ts;
                 function getThrowStatementOwner(throwStatement) {
                     var child = throwStatement;
                     while (child.parent) {
-                        var parent_17 = child.parent;
-                        if (ts.isFunctionBlock(parent_17) || parent_17.kind 
=== 261) {
-                            return parent_17;
+                        var parent_18 = child.parent;
+                        if (ts.isFunctionBlock(parent_18) || parent_18.kind 
=== 261) {
+                            return parent_18;
                         }
-                        if (parent_17.kind === 221) {
-                            var tryStatement = parent_17;
+                        if (parent_18.kind === 221) {
+                            var tryStatement = parent_18;
                             if (tryStatement.tryBlock === child && 
tryStatement.catchClause) {
                                 return child;
                             }
                         }
-                        child = parent_17;
+                        child = parent_18;
                     }
                     return undefined;
                 }
@@ -56619,24 +57085,24 @@ var ts;
                     }
                     var containingTypeReference = 
getContainingTypeReference(refNode);
                     if (containingTypeReference) {
-                        var parent_18 = containingTypeReference.parent;
-                        if (ts.isVariableLike(parent_18) && parent_18.type === 
containingTypeReference && parent_18.initializer && 
isImplementationExpression(parent_18.initializer)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.initializer));
+                        var parent_19 = containingTypeReference.parent;
+                        if (ts.isVariableLike(parent_19) && parent_19.type === 
containingTypeReference && parent_19.initializer && 
isImplementationExpression(parent_19.initializer)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.initializer));
                         }
-                        else if (ts.isFunctionLike(parent_18) && 
parent_18.type === containingTypeReference && parent_18.body) {
-                            if (parent_18.body.kind === 204) {
-                                ts.forEachReturnStatement(parent_18.body, 
function (returnStatement) {
+                        else if (ts.isFunctionLike(parent_19) && 
parent_19.type === containingTypeReference && parent_19.body) {
+                            if (parent_19.body.kind === 204) {
+                                ts.forEachReturnStatement(parent_19.body, 
function (returnStatement) {
                                     if (returnStatement.expression && 
isImplementationExpression(returnStatement.expression)) {
                                         
maybeAdd(getReferenceEntryFromNode(returnStatement.expression));
                                     }
                                 });
                             }
-                            else if 
(isImplementationExpression(parent_18.body)) {
-                                
maybeAdd(getReferenceEntryFromNode(parent_18.body));
+                            else if 
(isImplementationExpression(parent_19.body)) {
+                                
maybeAdd(getReferenceEntryFromNode(parent_19.body));
                             }
                         }
-                        else if (ts.isAssertionExpression(parent_18) && 
isImplementationExpression(parent_18.expression)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.expression));
+                        else if (ts.isAssertionExpression(parent_19) && 
isImplementationExpression(parent_19.expression)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.expression));
                         }
                     }
                 }
@@ -56897,8 +57363,8 @@ var ts;
                         if (!node_2 || node_2.kind !== 9) {
                             return;
                         }
-                        var type_2 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
-                        if (type_2 === searchType) {
+                        var type_1 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
+                        if (type_1 === searchType) {
                             references.push(getReferenceEntryFromNode(node_2));
                         }
                     }
@@ -57451,6 +57917,7 @@ var ts;
             "lends",
             "link",
             "memberOf",
+            "method",
             "name",
             "namespace",
             "param",
@@ -57490,6 +57957,29 @@ var ts;
             return documentationComment;
         }
         JsDoc.getJsDocCommentsFromDeclarations = 
getJsDocCommentsFromDeclarations;
+        function getJsDocTagsFromDeclarations(declarations) {
+            var tags = [];
+            forEachUnique(declarations, function (declaration) {
+                var jsDocs = ts.getJSDocs(declaration);
+                if (!jsDocs) {
+                    return;
+                }
+                for (var _i = 0, jsDocs_1 = jsDocs; _i < jsDocs_1.length; 
_i++) {
+                    var doc = jsDocs_1[_i];
+                    var tagsForDoc = doc.tags;
+                    if (tagsForDoc) {
+                        tags.push.apply(tags, tagsForDoc.filter(function (tag) 
{ return tag.kind === 279; }).map(function (jsDocTag) {
+                            return {
+                                name: jsDocTag.tagName.text,
+                                text: jsDocTag.comment
+                            };
+                        }));
+                    }
+                }
+            });
+            return tags;
+        }
+        JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
         function forEachUnique(array, callback) {
             if (array) {
                 for (var i = 0, len = array.length; i < len; i++) {
@@ -57548,13 +58038,19 @@ var ts;
             var posLineAndChar = 
sourceFile.getLineAndCharacterOfPosition(position);
             var lineStart = sourceFile.getLineStarts()[posLineAndChar.line];
             var indentationStr = sourceFile.text.substr(lineStart, 
posLineAndChar.character);
+            var isJavaScriptFile = 
ts.hasJavaScriptFileExtension(sourceFile.fileName);
             var docParams = "";
             for (var i = 0, numParams = parameters.length; i < numParams; i++) 
{
                 var currentName = parameters[i].name;
                 var paramName = currentName.kind === 70 ?
                     currentName.text :
                     "param" + i;
-                docParams += indentationStr + " * @param " + paramName + 
newLine;
+                if (isJavaScriptFile) {
+                    docParams += indentationStr + " * @param {any} " + 
paramName + newLine;
+                }
+                else {
+                    docParams += indentationStr + " * @param " + paramName + 
newLine;
+                }
             }
             var preamble = "/**" + newLine +
                 indentationStr + " * ";
@@ -57612,10 +58108,10 @@ var ts;
                     return;
                 }
                 var nameToDeclarations = sourceFile.getNamedDeclarations();
-                for (var name_46 in nameToDeclarations) {
-                    var declarations = nameToDeclarations[name_46];
+                for (var name_48 in nameToDeclarations) {
+                    var declarations = nameToDeclarations[name_48];
                     if (declarations) {
-                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_46);
+                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_48);
                         if (!matches) {
                             continue;
                         }
@@ -57626,14 +58122,14 @@ var ts;
                                 if (!containers) {
                                     return undefined;
                                 }
-                                matches = 
patternMatcher.getMatches(containers, name_46);
+                                matches = 
patternMatcher.getMatches(containers, name_48);
                                 if (!matches) {
                                     continue;
                                 }
                             }
                             var fileName = sourceFile.fileName;
                             var matchKind = bestMatchKind(matches);
-                            rawItems.push({ name: name_46, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
+                            rawItems.push({ name: name_48, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
                         }
                     }
                 }
@@ -57886,9 +58382,9 @@ var ts;
                 case 174:
                 case 223:
                     var decl = node;
-                    var name_47 = decl.name;
-                    if (ts.isBindingPattern(name_47)) {
-                        addChildrenRecursively(name_47);
+                    var name_49 = decl.name;
+                    if (ts.isBindingPattern(name_49)) {
+                        addChildrenRecursively(name_49);
                     }
                     else if (decl.initializer && 
isFunctionOrClassExpression(decl.initializer)) {
                         addChildrenRecursively(decl.initializer);
@@ -58352,24 +58848,24 @@ var ts;
                 switch (n.kind) {
                     case 204:
                         if (!ts.isFunctionBlock(n)) {
-                            var parent_19 = n.parent;
+                            var parent_20 = n.parent;
                             var openBrace = ts.findChildOfKind(n, 16, 
sourceFile);
                             var closeBrace = ts.findChildOfKind(n, 17, 
sourceFile);
-                            if (parent_19.kind === 209 ||
-                                parent_19.kind === 212 ||
-                                parent_19.kind === 213 ||
-                                parent_19.kind === 211 ||
-                                parent_19.kind === 208 ||
-                                parent_19.kind === 210 ||
-                                parent_19.kind === 217 ||
-                                parent_19.kind === 256) {
-                                addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                            if (parent_20.kind === 209 ||
+                                parent_20.kind === 212 ||
+                                parent_20.kind === 213 ||
+                                parent_20.kind === 211 ||
+                                parent_20.kind === 208 ||
+                                parent_20.kind === 210 ||
+                                parent_20.kind === 217 ||
+                                parent_20.kind === 256) {
+                                addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                 break;
                             }
-                            if (parent_19.kind === 221) {
-                                var tryStatement = parent_19;
+                            if (parent_20.kind === 221) {
+                                var tryStatement = parent_20;
                                 if (tryStatement.tryBlock === n) {
-                                    addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                                    addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                     break;
                                 }
                                 else if (tryStatement.finallyBlock === n) {
@@ -59476,7 +59972,8 @@ var ts;
                     suffixDisplayParts: suffixDisplayParts,
                     separatorDisplayParts: [ts.punctuationPart(25), 
ts.spacePart()],
                     parameters: signatureHelpParameters,
-                    documentation: candidateSignature.getDocumentationComment()
+                    documentation: 
candidateSignature.getDocumentationComment(),
+                    tags: candidateSignature.getJsDocTags()
                 };
             });
             var argumentIndex = argumentListInfo.argumentIndex;
@@ -59613,6 +60110,7 @@ var ts;
             if (semanticMeaning === void 0) { semanticMeaning = 
ts.getMeaningFromLocation(location); }
             var displayParts = [];
             var documentation;
+            var tags;
             var symbolFlags = symbol.flags;
             var symbolKind = 
getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, 
symbol, symbolFlags, location);
             var hasAddedSymbolInfo;
@@ -59893,6 +60391,7 @@ var ts;
             }
             if (!documentation) {
                 documentation = symbol.getDocumentationComment();
+                tags = symbol.getJsDocTags();
                 if (documentation.length === 0 && symbol.flags & 4) {
                     if (symbol.parent && 
ts.forEach(symbol.parent.declarations, function (declaration) { return 
declaration.kind === 261; })) {
                         for (var _i = 0, _a = symbol.declarations; _i < 
_a.length; _i++) {
@@ -59905,6 +60404,7 @@ var ts;
                                 continue;
                             }
                             documentation = 
rhsSymbol.getDocumentationComment();
+                            tags = rhsSymbol.getJsDocTags();
                             if (documentation.length > 0) {
                                 break;
                             }
@@ -59912,7 +60412,7 @@ var ts;
                     }
                 }
             }
-            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind };
+            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind, tags: tags };
             function addNewLineIfDisplayPartsExist() {
                 if (displayParts.length) {
                     displayParts.push(ts.lineBreakPart());
@@ -59963,6 +60463,7 @@ var ts;
                     displayParts.push(ts.punctuationPart(19));
                 }
                 documentation = signature.getDocumentationComment();
+                tags = signature.getJsDocTags();
             }
             function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) 
{
                 var typeParameterParts = ts.mapToDisplayParts(function 
(writer) {
@@ -59983,8 +60484,8 @@ var ts;
                 if (declaration.kind !== 223 && declaration.kind !== 225) {
                     return false;
                 }
-                for (var parent_20 = declaration.parent; 
!ts.isFunctionBlock(parent_20); parent_20 = parent_20.parent) {
-                    if (parent_20.kind === 261 || parent_20.kind === 231) {
+                for (var parent_21 = declaration.parent; 
!ts.isFunctionBlock(parent_21); parent_21 = parent_21.parent) {
+                    if (parent_21.kind === 261 || parent_21.kind === 231) {
                         return false;
                     }
                 }
@@ -60068,7 +60569,7 @@ var ts;
             return typeof o.type === "object" && !ts.forEachProperty(o.type, 
function (v) { return typeof v !== "number"; });
         });
         options = ts.clone(options);
-        var _loop_4 = function (opt) {
+        var _loop_3 = function (opt) {
             if (!ts.hasProperty(options, opt.name)) {
                 return "continue";
             }
@@ -60084,7 +60585,7 @@ var ts;
         };
         for (var _i = 0, commandLineOptionsStringToEnum_1 = 
commandLineOptionsStringToEnum; _i < commandLineOptionsStringToEnum_1.length; 
_i++) {
             var opt = commandLineOptionsStringToEnum_1[_i];
-            _loop_4(opt);
+            _loop_3(opt);
         }
         return options;
     }
@@ -60548,6 +61049,7 @@ var ts;
                 this.SpaceAfterLetConstInVariableDeclaration = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([109,
 75]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsStartOfVariableDeclarationList), 2));
                 this.NoSpaceBeforeOpenParenInFuncCall = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8));
                 this.SpaceAfterFunctionInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create3(88, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2));
+                this.SpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 2));
                 this.NoSpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 8));
                 this.SpaceAfterVoidOperator = new 
formatting.Rule(formatting.RuleDescriptor.create3(104, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsVoidOpContext), 2));
                 this.NoSpaceBetweenReturnAndSemicolon = new 
formatting.Rule(formatting.RuleDescriptor.create1(95, 24), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
@@ -60556,9 +61058,10 @@ var ts;
                 this.SpaceAfterGetSetInMember = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([124,
 133]), 70), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2));
                 this.SpaceBeforeBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.BinaryKeywordOperators), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2));
                 this.SpaceAfterBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators,
 formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2));
+                this.SpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122, 18), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.NoSpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122, 18), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
                 this.NoSpaceAfterModuleImport = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([127,
 131]), 18), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8));
-                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116,
 74, 123, 78, 82, 83, 84, 124, 107, 90, 108, 127, 128, 111, 113, 112, 133, 114, 
136, 138]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
+                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116,
 74, 123, 78, 82, 83, 84, 124, 107, 90, 108, 127, 128, 111, 113, 112, 130, 133, 
114, 136, 138, 126]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.SpaceBeforeCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.FromTokens([84, 107, 138])), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
                 this.SpaceAfterModuleName = new 
formatting.Rule(formatting.RuleDescriptor.create1(9, 16), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2));
                 this.SpaceBeforeArrow = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 35), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2));
@@ -60614,7 +61117,7 @@ var ts;
                     this.NoSpaceBetweenTagAndTemplateString,
                     this.SpaceBeforeJsxAttribute, 
this.SpaceBeforeSlashInJsxOpeningElement, 
this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement,
                     this.NoSpaceBeforeEqualInJsxAttribute, 
this.NoSpaceAfterEqualInJsxAttribute,
-                    this.NoSpaceAfterConstructor, 
this.NoSpaceAfterModuleImport,
+                    this.NoSpaceAfterModuleImport,
                     this.SpaceAfterCertainTypeScriptKeywords, 
this.SpaceBeforeCertainTypeScriptKeywords,
                     this.SpaceAfterModuleName,
                     this.SpaceBeforeArrow, this.SpaceAfterArrow,
@@ -60637,7 +61140,6 @@ var ts;
                     this.NoSpaceBeforeOpenBracket,
                     this.NoSpaceAfterCloseBracket,
                     this.SpaceAfterSemicolon,
-                    this.NoSpaceBeforeOpenParenInFuncDecl,
                     this.SpaceBetweenStatements, this.SpaceAfterTryFinally
                 ];
                 this.SpaceAfterComma = new 
formatting.Rule(formatting.RuleDescriptor.create3(25, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsNonJsxElementContext, Rules.IsNextTokenNotCloseBracket), 2));
@@ -60678,9 +61180,9 @@ var ts;
             }
             Rules.prototype.getRuleName = function (rule) {
                 var o = this;
-                for (var name_48 in o) {
-                    if (o[name_48] === rule) {
-                        return name_48;
+                for (var name_50 in o) {
+                    if (o[name_50] === rule) {
+                        return name_50;
                     }
                 }
                 throw new Error("Unknown rule");
@@ -60712,6 +61214,7 @@ var ts;
                     case 146:
                         return context.currentTokenSpan.kind === 57 || 
context.nextTokenSpan.kind === 57;
                     case 212:
+                    case 143:
                         return context.currentTokenSpan.kind === 91 || 
context.nextTokenSpan.kind === 91;
                     case 213:
                         return context.currentTokenSpan.kind === 140 || 
context.nextTokenSpan.kind === 140;
@@ -60798,11 +61301,17 @@ var ts;
                     case 226:
                     case 230:
                     case 229:
-                    case 204:
                     case 256:
                     case 231:
                     case 218:
                         return true;
+                    case 204: {
+                        var blockParent = context.currentTokenParent.parent;
+                        if (blockParent.kind !== 185 &&
+                            blockParent.kind !== 184) {
+                            return true;
+                        }
+                    }
                 }
                 return false;
             };
@@ -60897,6 +61406,7 @@ var ts;
                 switch (parent.kind) {
                     case 157:
                     case 182:
+                    case 228:
                     case 226:
                     case 197:
                     case 227:
@@ -61212,6 +61722,12 @@ var ts;
             };
             RulesProvider.prototype.createActiveRules = function (options) {
                 var rules = this.globalRules.HighPriorityCommonRules.slice(0);
+                if (options.insertSpaceAfterConstructor) {
+                    rules.push(this.globalRules.SpaceAfterConstructor);
+                }
+                else {
+                    rules.push(this.globalRules.NoSpaceAfterConstructor);
+                }
                 if (options.insertSpaceAfterCommaDelimiter) {
                     rules.push(this.globalRules.SpaceAfterComma);
                 }
@@ -61290,6 +61806,12 @@ var ts;
                     rules.push(this.globalRules.NoSpaceBeforeBinaryOperator);
                     rules.push(this.globalRules.NoSpaceAfterBinaryOperator);
                 }
+                if (options.insertSpaceBeforeFunctionParenthesis) {
+                    
rules.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl);
+                }
+                else {
+                    
rules.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl);
+                }
                 if (options.placeOpenBraceOnNewLineForControlBlocks) {
                     
rules.push(this.globalRules.NewLineBeforeOpenBraceInControl);
                 }
@@ -61588,17 +62110,30 @@ var ts;
                         switch (kind) {
                             case 16:
                             case 17:
-                            case 20:
-                            case 21:
                             case 18:
                             case 19:
                             case 81:
                             case 105:
                             case 56:
                                 return indentation;
-                            default:
-                                return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
+                            case 40:
+                            case 28: {
+                                if (container.kind === 248 ||
+                                    container.kind === 249 ||
+                                    container.kind === 247) {
+                                    return indentation;
+                                }
+                                break;
+                            }
+                            case 20:
+                            case 21: {
+                                if (container.kind !== 170) {
+                                    return indentation;
+                                }
+                                break;
+                            }
                         }
+                        return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
                     },
                     getIndentation: function () { return indentation; },
                     getDelta: function (child) { return 
getEffectiveDelta(delta, child); },
@@ -61639,7 +62174,7 @@ var ts;
                     if (tokenInfo.token.end > node.end) {
                         break;
                     }
-                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation);
+                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation, node);
                 }
                 function processChildNode(child, inheritedIndentation, parent, 
parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, 
isListItem, isFirstListItem) {
                     var childStartPos = child.getStart(sourceFile);
@@ -61669,7 +62204,7 @@ var ts;
                         if (tokenInfo.token.end > childStartPos) {
                             break;
                         }
-                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation);
+                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation, node);
                     }
                     if (!formattingScanner.isOnToken()) {
                         return inheritedIndentation;
@@ -61704,10 +62239,10 @@ var ts;
                                 startLine = 
sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;
                                 var indentation_1 = 
computeIndentation(tokenInfo.token, startLine, -1, parent, 
parentDynamicIndentation, parentStartLine);
                                 listDynamicIndentation = 
getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, 
indentation_1.delta);
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                             else {
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation, parent);
                             }
                         }
                     }
@@ -61720,7 +62255,7 @@ var ts;
                         if (formattingScanner.isOnToken()) {
                             var tokenInfo = 
formattingScanner.readTokenInfo(parent);
                             if (tokenInfo.token.kind === listEndToken && 
ts.rangeContainsRange(parent, tokenInfo.token)) {
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                         }
                     }
@@ -62404,6 +62939,7 @@ var ts;
                     case 231:
                     case 176:
                     case 161:
+                    case 170:
                     case 163:
                     case 232:
                     case 254:
@@ -62581,579 +63117,6 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    var codefix;
-    (function (codefix) {
-        var ModuleSpecifierComparison;
-        (function (ModuleSpecifierComparison) {
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Better"] = 0] 
= "Better";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Equal"] = 1] 
= "Equal";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Worse"] = 2] 
= "Worse";
-        })(ModuleSpecifierComparison || (ModuleSpecifierComparison = {}));
-        var ImportCodeActionMap = (function () {
-            function ImportCodeActionMap() {
-                this.symbolIdToActionMap = ts.createMap();
-            }
-            ImportCodeActionMap.prototype.addAction = function (symbolId, 
newAction) {
-                if (!newAction) {
-                    return;
-                }
-                if (!this.symbolIdToActionMap[symbolId]) {
-                    this.symbolIdToActionMap[symbolId] = [newAction];
-                    return;
-                }
-                if (newAction.kind === "CodeChange") {
-                    this.symbolIdToActionMap[symbolId].push(newAction);
-                    return;
-                }
-                var updatedNewImports = [];
-                for (var _i = 0, _a = this.symbolIdToActionMap[symbolId]; _i < 
_a.length; _i++) {
-                    var existingAction = _a[_i];
-                    if (existingAction.kind === "CodeChange") {
-                        updatedNewImports.push(existingAction);
-                        continue;
-                    }
-                    switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
-                        case ModuleSpecifierComparison.Better:
-                            if (newAction.kind === "NewImport") {
-                                return;
-                            }
-                        case ModuleSpecifierComparison.Equal:
-                            updatedNewImports.push(existingAction);
-                            break;
-                        case ModuleSpecifierComparison.Worse:
-                            continue;
-                    }
-                }
-                updatedNewImports.push(newAction);
-                this.symbolIdToActionMap[symbolId] = updatedNewImports;
-            };
-            ImportCodeActionMap.prototype.addActions = function (symbolId, 
newActions) {
-                for (var _i = 0, newActions_1 = newActions; _i < 
newActions_1.length; _i++) {
-                    var newAction = newActions_1[_i];
-                    this.addAction(symbolId, newAction);
-                }
-            };
-            ImportCodeActionMap.prototype.getAllActions = function () {
-                var result = [];
-                for (var symbolId in this.symbolIdToActionMap) {
-                    result = ts.concatenate(result, 
this.symbolIdToActionMap[symbolId]);
-                }
-                return result;
-            };
-            ImportCodeActionMap.prototype.compareModuleSpecifiers = function 
(moduleSpecifier1, moduleSpecifier2) {
-                if (moduleSpecifier1 === moduleSpecifier2) {
-                    return ModuleSpecifierComparison.Equal;
-                }
-                if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
-                    return ModuleSpecifierComparison.Better;
-                }
-                if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
-                    return ModuleSpecifierComparison.Worse;
-                }
-                if (ts.isExternalModuleNameRelative(moduleSpecifier1) && 
ts.isExternalModuleNameRelative(moduleSpecifier2)) {
-                    var regex = new RegExp(ts.directorySeparator, "g");
-                    var moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
-                    var moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
-                    return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
-                        ? ModuleSpecifierComparison.Better
-                        : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
-                            ? ModuleSpecifierComparison.Equal
-                            : ModuleSpecifierComparison.Worse;
-                }
-                return ModuleSpecifierComparison.Equal;
-            };
-            return ImportCodeActionMap;
-        }());
-        codefix.registerCodeFix({
-            errorCodes: [ts.Diagnostics.Cannot_find_name_0.code],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var checker = context.program.getTypeChecker();
-                var allSourceFiles = context.program.getSourceFiles();
-                var useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
-                var token = ts.getTokenAtPosition(sourceFile, 
context.span.start);
-                var name = token.getText();
-                var symbolIdActionMap = new ImportCodeActionMap();
-                var cachedImportDeclarations = ts.createMap();
-                var cachedNewImportInsertPosition;
-                var allPotentialModules = checker.getAmbientModules();
-                for (var _i = 0, allSourceFiles_1 = allSourceFiles; _i < 
allSourceFiles_1.length; _i++) {
-                    var otherSourceFile = allSourceFiles_1[_i];
-                    if (otherSourceFile !== sourceFile && 
ts.isExternalOrCommonJsModule(otherSourceFile)) {
-                        allPotentialModules.push(otherSourceFile.symbol);
-                    }
-                }
-                var currentTokenMeaning = ts.getMeaningFromLocation(token);
-                for (var _a = 0, allPotentialModules_1 = allPotentialModules; 
_a < allPotentialModules_1.length; _a++) {
-                    var moduleSymbol = allPotentialModules_1[_a];
-                    context.cancellationToken.throwIfCancellationRequested();
-                    var defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
-                    if (defaultExport) {
-                        var localSymbol = 
ts.getLocalSymbolForExportDefault(defaultExport);
-                        if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
-                            var symbolId = getUniqueSymbolId(localSymbol);
-                            symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, true));
-                        }
-                    }
-                    var exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
-                    if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
-                        var symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
-                        symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
-                    }
-                }
-                return symbolIdActionMap.getAllActions();
-                function getImportDeclarations(moduleSymbol) {
-                    var moduleSymbolId = getUniqueSymbolId(moduleSymbol);
-                    if (cachedImportDeclarations[moduleSymbolId]) {
-                        return cachedImportDeclarations[moduleSymbolId];
-                    }
-                    var existingDeclarations = [];
-                    for (var _i = 0, _a = sourceFile.imports; _i < _a.length; 
_i++) {
-                        var importModuleSpecifier = _a[_i];
-                        var importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
-                        if (importSymbol === moduleSymbol) {
-                            
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
-                        }
-                    }
-                    cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
-                    return existingDeclarations;
-                    function getImportDeclaration(moduleSpecifier) {
-                        var node = moduleSpecifier;
-                        while (node) {
-                            if (node.kind === 235) {
-                                return node;
-                            }
-                            if (node.kind === 234) {
-                                return node;
-                            }
-                            node = node.parent;
-                        }
-                        return undefined;
-                    }
-                }
-                function getUniqueSymbolId(symbol) {
-                    if (symbol.flags & 8388608) {
-                        return 
ts.getSymbolId(checker.getAliasedSymbol(symbol));
-                    }
-                    return ts.getSymbolId(symbol);
-                }
-                function checkSymbolHasMeaning(symbol, meaning) {
-                    var declarations = symbol.getDeclarations();
-                    return declarations ? ts.some(symbol.declarations, 
function (decl) { return !!(ts.getMeaningFromDeclaration(decl) & meaning); }) : 
false;
-                }
-                function getCodeActionForImport(moduleSymbol, isDefault) {
-                    var existingDeclarations = 
getImportDeclarations(moduleSymbol);
-                    if (existingDeclarations.length > 0) {
-                        return 
getCodeActionsForExistingImport(existingDeclarations);
-                    }
-                    else {
-                        return [getCodeActionForNewImport()];
-                    }
-                    function getCodeActionsForExistingImport(declarations) {
-                        var actions = [];
-                        var namespaceImportDeclaration;
-                        var namedImportDeclaration;
-                        var existingModuleSpecifier;
-                        for (var _i = 0, declarations_11 = declarations; _i < 
declarations_11.length; _i++) {
-                            var declaration = declarations_11[_i];
-                            if (declaration.kind === 235) {
-                                var namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
-                                if (namedBindings && namedBindings.kind === 
237) {
-                                    namespaceImportDeclaration = declaration;
-                                }
-                                else {
-                                    namedImportDeclaration = declaration;
-                                }
-                                existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
-                            }
-                            else {
-                                namespaceImportDeclaration = declaration;
-                                existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
-                            }
-                        }
-                        if (namespaceImportDeclaration) {
-                            
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
-                        }
-                        if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
-                            (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
-                            var textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
-                            var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
-                            
actions.push(createCodeAction(ts.Diagnostics.Add_0_to_existing_import_declaration_from_1,
 [name, moduleSpecifierWithoutQuotes], textChange.newText, textChange.span, 
sourceFile.fileName, "InsertingIntoExistingImport", 
moduleSpecifierWithoutQuotes));
-                        }
-                        else {
-                            
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
-                        }
-                        return actions;
-                        function 
getModuleSpecifierFromImportEqualsDeclaration(declaration) {
-                            if (declaration.moduleReference && 
declaration.moduleReference.kind === 245) {
-                                return 
declaration.moduleReference.expression.getText();
-                            }
-                            return declaration.moduleReference.getText();
-                        }
-                        function getTextChangeForImportClause(importClause) {
-                            var newImportText = isDefault ? "default as " + 
name : name;
-                            var importList = importClause.namedBindings;
-                            if (!importList && importClause.name) {
-                                var start = importClause.name.getEnd();
-                                return {
-                                    newText: ", { " + newImportText + " }",
-                                    span: { start: start, length: 0 }
-                                };
-                            }
-                            if (importList.elements.length === 0) {
-                                var start = importList.getStart();
-                                return {
-                                    newText: "{ " + newImportText + " }",
-                                    span: { start: start, length: 
importList.getEnd() - start }
-                                };
-                            }
-                            var insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
-                            var startLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getStart());
-                            var endLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getEnd());
-                            var oneImportPerLine = endLine - startLine > 
importList.elements.length;
-                            return {
-                                newText: "," + (oneImportPerLine ? 
context.newLineCharacter : " ") + newImportText,
-                                span: { start: insertPoint, length: 0 }
-                            };
-                        }
-                        function getCodeActionForNamespaceImport(declaration) {
-                            var namespacePrefix;
-                            if (declaration.kind === 235) {
-                                namespacePrefix = 
declaration.importClause.namedBindings.name.getText();
-                            }
-                            else {
-                                namespacePrefix = declaration.name.getText();
-                            }
-                            namespacePrefix = ts.stripQuotes(namespacePrefix);
-                            return 
createCodeAction(ts.Diagnostics.Change_0_to_1, [name, namespacePrefix + "." + 
name], namespacePrefix + ".", { start: token.getStart(), length: 0 }, 
sourceFile.fileName, "CodeChange");
-                        }
-                    }
-                    function getCodeActionForNewImport(moduleSpecifier) {
-                        if (!cachedNewImportInsertPosition) {
-                            var lastModuleSpecifierEnd = -1;
-                            for (var _i = 0, _a = sourceFile.imports; _i < 
_a.length; _i++) {
-                                var moduleSpecifier_1 = _a[_i];
-                                var end = moduleSpecifier_1.getEnd();
-                                if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
-                                    lastModuleSpecifierEnd = end;
-                                }
-                            }
-                            cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
-                        }
-                        var getCanonicalFileName = 
ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
-                        var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
-                        var importStatementText = isDefault
-                            ? "import " + name + " from \"" + 
moduleSpecifierWithoutQuotes + "\""
-                            : "import { " + name + " } from \"" + 
moduleSpecifierWithoutQuotes + "\"";
-                        var newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
-                            ? importStatementText + ";" + 
context.newLineCharacter + context.newLineCharacter
-                            : "" + context.newLineCharacter + 
importStatementText + ";";
-                        return 
createCodeAction(ts.Diagnostics.Import_0_from_1, [name, "\"" + 
moduleSpecifierWithoutQuotes + "\""], newText, { start: 
cachedNewImportInsertPosition, length: 0 }, sourceFile.fileName, "NewImport", 
moduleSpecifierWithoutQuotes);
-                        function getModuleSpecifierForNewImport() {
-                            var fileName = sourceFile.path;
-                            var moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
-                            var sourceDirectory = 
ts.getDirectoryPath(fileName);
-                            var options = context.program.getCompilerOptions();
-                            return tryGetModuleNameFromAmbientModule() ||
-                                tryGetModuleNameFromBaseUrl() ||
-                                tryGetModuleNameFromRootDirs() ||
-                                tryGetModuleNameFromTypeRoots() ||
-                                tryGetModuleNameAsNodeModule() ||
-                                
ts.removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
-                            function tryGetModuleNameFromAmbientModule() {
-                                if (moduleSymbol.valueDeclaration.kind !== 
261) {
-                                    return moduleSymbol.name;
-                                }
-                            }
-                            function tryGetModuleNameFromBaseUrl() {
-                                if (!options.baseUrl) {
-                                    return undefined;
-                                }
-                                var normalizedBaseUrl = 
ts.toPath(options.baseUrl, ts.getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
-                                var relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
-                                if (!relativeName) {
-                                    return undefined;
-                                }
-                                relativeName = 
removeExtensionAndIndexPostFix(relativeName);
-                                if (options.paths) {
-                                    for (var key in options.paths) {
-                                        for (var _i = 0, _a = 
options.paths[key]; _i < _a.length; _i++) {
-                                            var pattern = _a[_i];
-                                            var indexOfStar = 
pattern.indexOf("*");
-                                            if (indexOfStar === 0 && 
pattern.length === 1) {
-                                                continue;
-                                            }
-                                            else if (indexOfStar !== -1) {
-                                                var prefix = pattern.substr(0, 
indexOfStar);
-                                                var suffix = 
pattern.substr(indexOfStar + 1);
-                                                if (relativeName.length >= 
prefix.length + suffix.length &&
-                                                    
ts.startsWith(relativeName, prefix) &&
-                                                    ts.endsWith(relativeName, 
suffix)) {
-                                                    var matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
-                                                    return key.replace("\*", 
matchedStar);
-                                                }
-                                            }
-                                            else if (pattern === relativeName) 
{
-                                                return key;
-                                            }
-                                        }
-                                    }
-                                }
-                                return relativeName;
-                            }
-                            function tryGetModuleNameFromRootDirs() {
-                                if (options.rootDirs) {
-                                    var normalizedRootDirs = 
ts.map(options.rootDirs, function (rootDir) { return ts.toPath(rootDir, 
undefined, getCanonicalFileName); });
-                                    var normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
-                                    var normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
-                                    if (normalizedTargetPath !== undefined) {
-                                        var relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
-                                        return 
ts.removeFileExtension(relativePath);
-                                    }
-                                }
-                                return undefined;
-                            }
-                            function tryGetModuleNameFromTypeRoots() {
-                                var typeRoots = 
ts.getEffectiveTypeRoots(options, context.host);
-                                if (typeRoots) {
-                                    var normalizedTypeRoots = 
ts.map(typeRoots, function (typeRoot) { return ts.toPath(typeRoot, undefined, 
getCanonicalFileName); });
-                                    for (var _i = 0, normalizedTypeRoots_1 = 
normalizedTypeRoots; _i < normalizedTypeRoots_1.length; _i++) {
-                                        var typeRoot = 
normalizedTypeRoots_1[_i];
-                                        if (ts.startsWith(moduleFileName, 
typeRoot)) {
-                                            var relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
-                                            return 
removeExtensionAndIndexPostFix(relativeFileName);
-                                        }
-                                    }
-                                }
-                            }
-                            function tryGetModuleNameAsNodeModule() {
-                                if (ts.getEmitModuleResolutionKind(options) 
!== ts.ModuleResolutionKind.NodeJs) {
-                                    return undefined;
-                                }
-                                var indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
-                                if (indexOfNodeModules < 0) {
-                                    return undefined;
-                                }
-                                var relativeFileName;
-                                if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
-                                    relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13);
-                                }
-                                else {
-                                    relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
-                                }
-                                relativeFileName = 
ts.removeFileExtension(relativeFileName);
-                                if (ts.endsWith(relativeFileName, "/index")) {
-                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                }
-                                else {
-                                    try {
-                                        var moduleDirectory = 
ts.getDirectoryPath(moduleFileName);
-                                        var packageJsonContent = 
JSON.parse(context.host.readFile(ts.combinePaths(moduleDirectory, 
"package.json")));
-                                        if (packageJsonContent) {
-                                            var mainFile = 
packageJsonContent.main || packageJsonContent.typings;
-                                            if (mainFile) {
-                                                var mainExportFile = 
ts.toPath(mainFile, moduleDirectory, getCanonicalFileName);
-                                                if 
(ts.removeFileExtension(mainExportFile) === 
ts.removeFileExtension(moduleFileName)) {
-                                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                                }
-                                            }
-                                        }
-                                    }
-                                    catch (e) { }
-                                }
-                                return relativeFileName;
-                            }
-                        }
-                        function getPathRelativeToRootDirs(path, rootDirs) {
-                            for (var _i = 0, rootDirs_2 = rootDirs; _i < 
rootDirs_2.length; _i++) {
-                                var rootDir = rootDirs_2[_i];
-                                var relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
-                                if (relativeName !== undefined) {
-                                    return relativeName;
-                                }
-                            }
-                            return undefined;
-                        }
-                        function removeExtensionAndIndexPostFix(fileName) {
-                            fileName = ts.removeFileExtension(fileName);
-                            if (ts.endsWith(fileName, "/index")) {
-                                fileName = fileName.substr(0, fileName.length 
- 6);
-                            }
-                            return fileName;
-                        }
-                        function getRelativePath(path, directoryPath) {
-                            var relativePath = 
ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
-                            return ts.moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
-                        }
-                        function tryRemoveParentDirectoryName(path, 
parentDirectory) {
-                            var index = path.indexOf(parentDirectory);
-                            if (index === 0) {
-                                return ts.endsWith(parentDirectory, 
ts.directorySeparator)
-                                    ? path.substring(parentDirectory.length)
-                                    : path.substring(parentDirectory.length + 
1);
-                            }
-                            return undefined;
-                        }
-                    }
-                }
-                function createCodeAction(description, diagnosticArgs, 
newText, span, fileName, kind, moduleSpecifier) {
-                    return {
-                        description: ts.formatMessage.apply(undefined, 
[undefined, description].concat(diagnosticArgs)),
-                        changes: [{ fileName: fileName, textChanges: [{ 
newText: newText, span: span }] }],
-                        kind: kind,
-                        moduleSpecifier: moduleSpecifier
-                    };
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        codefix.registerCodeFix({
-            errorCodes: [
-                ts.Diagnostics._0_is_declared_but_never_used.code,
-                ts.Diagnostics.Property_0_is_declared_but_never_used.code
-            ],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var start = context.span.start;
-                var token = ts.getTokenAtPosition(sourceFile, start);
-                if (token.kind === 20) {
-                    token = ts.getTokenAtPosition(sourceFile, start + 1);
-                }
-                switch (token.kind) {
-                    case 70:
-                        switch (token.parent.kind) {
-                            case 223:
-                                switch (token.parent.parent.parent.kind) {
-                                    case 211:
-                                        var forStatement = 
token.parent.parent.parent;
-                                        var forInitializer = 
forStatement.initializer;
-                                        if (forInitializer.declarations.length 
=== 1) {
-                                            return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
-                                        }
-                                        else {
-                                            return 
removeSingleItem(forInitializer.declarations, token);
-                                        }
-                                    case 213:
-                                        var forOfStatement = 
token.parent.parent.parent;
-                                        if (forOfStatement.initializer.kind 
=== 224) {
-                                            var forOfInitializer = 
forOfStatement.initializer;
-                                            return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
-                                        }
-                                        break;
-                                    case 212:
-                                        return undefined;
-                                    case 256:
-                                        var catchClause = token.parent.parent;
-                                        var parameter = 
catchClause.variableDeclaration.getChildren()[0];
-                                        return createCodeFix("", 
parameter.pos, parameter.end - parameter.pos);
-                                    default:
-                                        var variableStatement = 
token.parent.parent.parent;
-                                        if 
(variableStatement.declarationList.declarations.length === 1) {
-                                            return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
-                                        }
-                                        else {
-                                            var declarations = 
variableStatement.declarationList.declarations;
-                                            return 
removeSingleItem(declarations, token);
-                                        }
-                                }
-                            case 143:
-                                var typeParameters = 
token.parent.parent.typeParameters;
-                                if (typeParameters.length === 1) {
-                                    return createCodeFix("", token.parent.pos 
- 1, token.parent.end - token.parent.pos + 2);
-                                }
-                                else {
-                                    return removeSingleItem(typeParameters, 
token);
-                                }
-                            case 144:
-                                var functionDeclaration = token.parent.parent;
-                                if (functionDeclaration.parameters.length === 
1) {
-                                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(functionDeclaration.parameters, token);
-                                }
-                            case 234:
-                                var importEquals = 
findImportDeclaration(token);
-                                return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
-                            case 239:
-                                var namedImports = token.parent.parent;
-                                if (namedImports.elements.length === 1) {
-                                    var importSpec = 
findImportDeclaration(token);
-                                    return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(namedImports.elements, token);
-                                }
-                            case 236:
-                                var importClause = token.parent;
-                                if (!importClause.namedBindings) {
-                                    var importDecl = 
findImportDeclaration(importClause);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
-                                }
-                            case 237:
-                                var namespaceImport = token.parent;
-                                if (namespaceImport.name == token && 
!namespaceImport.parent.name) {
-                                    var importDecl = 
findImportDeclaration(namespaceImport);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    var start_4 = 
namespaceImport.parent.name.end;
-                                    return createCodeFix("", start_4, 
namespaceImport.parent.namedBindings.end - start_4);
-                                }
-                        }
-                        break;
-                    case 147:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                    case 237:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                if (ts.isDeclarationName(token)) {
-                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                else if (ts.isLiteralComputedPropertyDeclarationName(token)) {
-                    return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
-                }
-                else {
-                    return undefined;
-                }
-                function findImportDeclaration(token) {
-                    var importDecl = token;
-                    while (importDecl.kind != 235 && importDecl.parent) {
-                        importDecl = importDecl.parent;
-                    }
-                    return importDecl;
-                }
-                function createCodeFix(newText, start, length) {
-                    return [{
-                            description: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Remove_unused_identifiers),
-                            changes: [{
-                                    fileName: sourceFile.fileName,
-                                    textChanges: [{ newText: newText, span: { 
start: start, length: length } }]
-                                }]
-                        }];
-                }
-                function removeSingleItem(elements, token) {
-                    if (elements[0] === token.parent) {
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
-                    }
-                    else {
-                        return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
-                    }
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-var ts;
-(function (ts) {
     ts.servicesVersion = "0.5";
     function createNode(kind, pos, end, parent) {
         var node = kind >= 141 ? new NodeObject(kind, pos, end) :
@@ -63374,6 +63337,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SymbolObject.prototype.getJsDocTags = function () {
+            if (this.tags === undefined) {
+                this.tags = 
ts.JsDoc.getJsDocTagsFromDeclarations(this.declarations);
+            }
+            return this.tags;
+        };
         return SymbolObject;
     }());
     var TokenObject = (function (_super) {
@@ -63457,6 +63426,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SignatureObject.prototype.getJsDocTags = function () {
+            if (this.jsDocTags === undefined) {
+                this.jsDocTags = this.declaration ? 
ts.JsDoc.getJsDocTagsFromDeclarations([this.declaration]) : [];
+            }
+            return this.jsDocTags;
+        };
         return SignatureObject;
     }());
     var SourceFileObject = (function (_super) {
@@ -63553,8 +63528,8 @@ var ts;
                             else {
                                 declarations.push(functionDeclaration);
                             }
-                            ts.forEachChild(node, visit);
                         }
+                        ts.forEachChild(node, visit);
                         break;
                     case 226:
                     case 197:
@@ -64060,7 +64035,8 @@ var ts;
                                 kindModifiers: 
ts.ScriptElementKindModifier.none,
                                 textSpan: ts.createTextSpan(node.getStart(), 
node.getWidth()),
                                 displayParts: 
ts.typeToDisplayParts(typeChecker, type, ts.getContainerNode(node)),
-                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined
+                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined,
+                                tags: type.symbol ? type.symbol.getJsDocTags() 
: undefined
                             };
                         }
                 }
@@ -64072,7 +64048,8 @@ var ts;
                 kindModifiers: ts.SymbolDisplay.getSymbolModifiers(symbol),
                 textSpan: ts.createTextSpan(node.getStart(), node.getWidth()),
                 displayParts: displayPartsDocumentationsAndKind.displayParts,
-                documentation: displayPartsDocumentationsAndKind.documentation
+                documentation: displayPartsDocumentationsAndKind.documentation,
+                tags: displayPartsDocumentationsAndKind.tags
             };
         }
         function getDefinitionAtPosition(fileName, position) {
@@ -64358,7 +64335,7 @@ var ts;
                 return false;
             }
             var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
-            if (ts.isInString(sourceFile, position) || 
ts.isInComment(sourceFile, position)) {
+            if (ts.isInString(sourceFile, position)) {
                 return false;
             }
             if (ts.isInsideJsxElementOrAttribute(sourceFile, position)) {
@@ -64537,22 +64514,160 @@ var ts;
 (function (ts) {
     var server;
     (function (server) {
+        var TextStorage = (function () {
+            function TextStorage(host, fileName) {
+                this.host = host;
+                this.fileName = fileName;
+                this.svcVersion = 0;
+                this.textVersion = 0;
+            }
+            TextStorage.prototype.getVersion = function () {
+                return this.svc
+                    ? "SVC-" + this.svcVersion + "-" + 
this.svc.getSnapshot().version
+                    : "Text-" + this.textVersion;
+            };
+            TextStorage.prototype.hasScriptVersionCache = function () {
+                return this.svc !== undefined;
+            };
+            TextStorage.prototype.useScriptVersionCache = function (newText) {
+                this.switchToScriptVersionCache(newText);
+            };
+            TextStorage.prototype.useText = function (newText) {
+                this.svc = undefined;
+                this.setText(newText);
+            };
+            TextStorage.prototype.edit = function (start, end, newText) {
+                this.switchToScriptVersionCache().edit(start, end - start, 
newText);
+            };
+            TextStorage.prototype.reload = function (text) {
+                if (this.svc) {
+                    this.svc.reload(text);
+                }
+                else {
+                    this.setText(text);
+                }
+            };
+            TextStorage.prototype.reloadFromFile = function (tempFileName) {
+                if (this.svc || (tempFileName !== this.fileName)) {
+                    this.reload(this.getFileText(tempFileName));
+                }
+                else {
+                    this.setText(undefined);
+                }
+            };
+            TextStorage.prototype.getSnapshot = function () {
+                return this.svc
+                    ? this.svc.getSnapshot()
+                    : ts.ScriptSnapshot.fromString(this.getOrLoadText());
+            };
+            TextStorage.prototype.getLineInfo = function (line) {
+                return 
this.switchToScriptVersionCache().getSnapshot().index.lineNumberToInfo(line);
+            };
+            TextStorage.prototype.lineToTextSpan = function (line) {
+                if (!this.svc) {
+                    var lineMap = this.getLineMap();
+                    var start = lineMap[line];
+                    var end = line + 1 < lineMap.length ? lineMap[line + 1] : 
this.text.length;
+                    return ts.createTextSpanFromBounds(start, end);
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineInfo = index.lineNumberToInfo(line + 1);
+                var len;
+                if (lineInfo.leaf) {
+                    len = lineInfo.leaf.text.length;
+                }
+                else {
+                    var nextLineInfo = index.lineNumberToInfo(line + 2);
+                    len = nextLineInfo.offset - lineInfo.offset;
+                }
+                return ts.createTextSpan(lineInfo.offset, len);
+            };
+            TextStorage.prototype.lineOffsetToPosition = function (line, 
offset) {
+                if (!this.svc) {
+                    return 
ts.computePositionOfLineAndCharacter(this.getLineMap(), line - 1, offset - 1);
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineInfo = index.lineNumberToInfo(line);
+                return (lineInfo.offset + offset - 1);
+            };
+            TextStorage.prototype.positionToLineOffset = function (position) {
+                if (!this.svc) {
+                    var _a = 
ts.computeLineAndCharacterOfPosition(this.getLineMap(), position), line = 
_a.line, character = _a.character;
+                    return { line: line + 1, offset: character + 1 };
+                }
+                var index = this.svc.getSnapshot().index;
+                var lineOffset = index.charOffsetToLineNumberAndPos(position);
+                return { line: lineOffset.line, offset: lineOffset.offset + 1 
};
+            };
+            TextStorage.prototype.getFileText = function (tempFileName) {
+                return this.host.readFile(tempFileName || this.fileName) || "";
+            };
+            TextStorage.prototype.ensureNoScriptVersionCache = function () {
+                ts.Debug.assert(!this.svc, "ScriptVersionCache should not be 
set");
+            };
+            TextStorage.prototype.switchToScriptVersionCache = function 
(newText) {
+                if (!this.svc) {
+                    this.svc = server.ScriptVersionCache.fromString(this.host, 
newText !== undefined ? newText : this.getOrLoadText());
+                    this.svcVersion++;
+                    this.text = undefined;
+                }
+                return this.svc;
+            };
+            TextStorage.prototype.getOrLoadText = function () {
+                this.ensureNoScriptVersionCache();
+                if (this.text === undefined) {
+                    this.setText(this.getFileText());
+                }
+                return this.text;
+            };
+            TextStorage.prototype.getLineMap = function () {
+                this.ensureNoScriptVersionCache();
+                return this.lineMap || (this.lineMap = 
ts.computeLineStarts(this.getOrLoadText()));
+            };
+            TextStorage.prototype.setText = function (newText) {
+                this.ensureNoScriptVersionCache();
+                if (newText === undefined || this.text !== newText) {
+                    this.text = newText;
+                    this.lineMap = undefined;
+                    this.textVersion++;
+                }
+            };
+            return TextStorage;
+        }());
+        server.TextStorage = TextStorage;
         var ScriptInfo = (function () {
-            function ScriptInfo(host, fileName, content, scriptKind, isOpen, 
hasMixedContent) {
-                if (isOpen === void 0) { isOpen = false; }
+            function ScriptInfo(host, fileName, scriptKind, hasMixedContent) {
                 if (hasMixedContent === void 0) { hasMixedContent = false; }
                 this.host = host;
                 this.fileName = fileName;
                 this.scriptKind = scriptKind;
-                this.isOpen = isOpen;
                 this.hasMixedContent = hasMixedContent;
                 this.containingProjects = [];
                 this.path = ts.toPath(fileName, host.getCurrentDirectory(), 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames));
-                this.svc = server.ScriptVersionCache.fromString(host, content);
+                this.textStorage = new TextStorage(host, fileName);
+                if (hasMixedContent) {
+                    this.textStorage.reload("");
+                }
                 this.scriptKind = scriptKind
                     ? scriptKind
                     : ts.getScriptKindFromFileName(fileName);
             }
+            ScriptInfo.prototype.isScriptOpen = function () {
+                return this.isOpen;
+            };
+            ScriptInfo.prototype.open = function (newText) {
+                this.isOpen = true;
+                this.textStorage.useScriptVersionCache(newText);
+                this.markContainingProjectsAsDirty();
+            };
+            ScriptInfo.prototype.close = function () {
+                this.isOpen = false;
+                this.textStorage.useText(this.hasMixedContent ? "" : 
undefined);
+                this.markContainingProjectsAsDirty();
+            };
+            ScriptInfo.prototype.getSnapshot = function () {
+                return this.textStorage.getSnapshot();
+            };
             ScriptInfo.prototype.getFormatCodeSettings = function () {
                 return this.formatCodeSettings;
             };
@@ -64606,6 +64721,12 @@ var ts;
                 }
                 return this.containingProjects[0];
             };
+            ScriptInfo.prototype.registerFileUpdate = function () {
+                for (var _i = 0, _a = this.containingProjects; _i < _a.length; 
_i++) {
+                    var p = _a[_i];
+                    p.registerFileUpdate(this.path);
+                }
+            };
             ScriptInfo.prototype.setFormatOptions = function (formatSettings) {
                 if (formatSettings) {
                     if (!this.formatCodeSettings) {
@@ -64625,14 +64746,14 @@ var ts;
                 }
             };
             ScriptInfo.prototype.getLatestVersion = function () {
-                return this.svc.latestVersion().toString();
+                return this.textStorage.getVersion();
             };
             ScriptInfo.prototype.reload = function (script) {
-                this.svc.reload(script);
+                this.textStorage.reload(script);
                 this.markContainingProjectsAsDirty();
             };
             ScriptInfo.prototype.saveTo = function (fileName) {
-                var snap = this.snap();
+                var snap = this.textStorage.getSnapshot();
                 this.host.writeFile(fileName, snap.getText(0, 
snap.getLength()));
             };
             ScriptInfo.prototype.reloadFromFile = function (tempFileName) {
@@ -64640,19 +64761,15 @@ var ts;
                     this.reload("");
                 }
                 else {
-                    this.svc.reloadFromFile(tempFileName || this.fileName);
+                    this.textStorage.reloadFromFile(tempFileName);
                     this.markContainingProjectsAsDirty();
                 }
             };
-            ScriptInfo.prototype.snap = function () {
-                return this.svc.getSnapshot();
-            };
             ScriptInfo.prototype.getLineInfo = function (line) {
-                var snap = this.snap();
-                return snap.index.lineNumberToInfo(line);
+                return this.textStorage.getLineInfo(line);
             };
             ScriptInfo.prototype.editContent = function (start, end, newText) {
-                this.svc.edit(start, end - start, newText);
+                this.textStorage.edit(start, end, newText);
                 this.markContainingProjectsAsDirty();
             };
             ScriptInfo.prototype.markContainingProjectsAsDirty = function () {
@@ -64662,27 +64779,13 @@ var ts;
                 }
             };
             ScriptInfo.prototype.lineToTextSpan = function (line) {
-                var index = this.snap().index;
-                var lineInfo = index.lineNumberToInfo(line + 1);
-                var len;
-                if (lineInfo.leaf) {
-                    len = lineInfo.leaf.text.length;
-                }
-                else {
-                    var nextLineInfo = index.lineNumberToInfo(line + 2);
-                    len = nextLineInfo.offset - lineInfo.offset;
-                }
-                return ts.createTextSpan(lineInfo.offset, len);
+                return this.textStorage.lineToTextSpan(line);
             };
             ScriptInfo.prototype.lineOffsetToPosition = function (line, 
offset) {
-                var index = this.snap().index;
-                var lineInfo = index.lineNumberToInfo(line);
-                return (lineInfo.offset + offset - 1);
+                return this.textStorage.lineOffsetToPosition(line, offset);
             };
             ScriptInfo.prototype.positionToLineOffset = function (position) {
-                var index = this.snap().index;
-                var lineOffset = index.charOffsetToLineNumberAndPos(position);
-                return { line: lineOffset.line, offset: lineOffset.offset + 1 
};
+                return this.textStorage.positionToLineOffset(position);
             };
             return ScriptInfo;
         }());
@@ -64738,15 +64841,15 @@ var ts;
                 var compilerOptions = this.getCompilationSettings();
                 var lastDeletedFileName = 
this.project.projectService.lastDeletedFile && 
this.project.projectService.lastDeletedFile.fileName;
                 for (var _i = 0, names_2 = names; _i < names_2.length; _i++) {
-                    var name_49 = names_2[_i];
-                    var resolution = newResolutions[name_49];
+                    var name_51 = names_2[_i];
+                    var resolution = newResolutions[name_51];
                     if (!resolution) {
-                        var existingResolution = currentResolutionsInFile && 
currentResolutionsInFile[name_49];
+                        var existingResolution = currentResolutionsInFile && 
currentResolutionsInFile[name_51];
                         if (moduleResolutionIsValid(existingResolution)) {
                             resolution = existingResolution;
                         }
                         else {
-                            newResolutions[name_49] = resolution = 
loader(name_49, containingFile, compilerOptions, this);
+                            newResolutions[name_51] = resolution = 
loader(name_51, containingFile, compilerOptions, this);
                         }
                         if (logChanges && 
this.filesWithChangedSetOfUnresolvedImports && 
!resolutionIsEqualTo(existingResolution, resolution)) {
                             
this.filesWithChangedSetOfUnresolvedImports.push(path);
@@ -64786,6 +64889,9 @@ var ts;
                     return resolution.failedLookupLocations.length === 0;
                 }
             };
+            LSHost.prototype.getNewLine = function () {
+                return this.host.newLine;
+            };
             LSHost.prototype.getProjectVersion = function () {
                 return this.project.getProjectVersion();
             };
@@ -64811,7 +64917,7 @@ var ts;
             LSHost.prototype.getScriptSnapshot = function (filename) {
                 var scriptInfo = this.project.getScriptInfoLSHost(filename);
                 if (scriptInfo) {
-                    return scriptInfo.snap();
+                    return scriptInfo.getSnapshot();
                 }
             };
             LSHost.prototype.getScriptFileNames = function () {
@@ -65027,10 +65133,15 @@ var ts;
             function AbstractBuilder(project, ctor) {
                 this.project = project;
                 this.ctor = ctor;
-                this.fileInfos = ts.createFileMap();
             }
+            AbstractBuilder.prototype.getFileInfos = function () {
+                return this.fileInfos_doNotAccessDirectly || 
(this.fileInfos_doNotAccessDirectly = ts.createFileMap());
+            };
+            AbstractBuilder.prototype.clear = function () {
+                this.fileInfos_doNotAccessDirectly = undefined;
+            };
             AbstractBuilder.prototype.getFileInfo = function (path) {
-                return this.fileInfos.get(path);
+                return this.getFileInfos().get(path);
             };
             AbstractBuilder.prototype.getOrCreateFileInfo = function (path) {
                 var fileInfo = this.getFileInfo(path);
@@ -65042,16 +65153,16 @@ var ts;
                 return fileInfo;
             };
             AbstractBuilder.prototype.getFileInfoPaths = function () {
-                return this.fileInfos.getKeys();
+                return this.getFileInfos().getKeys();
             };
             AbstractBuilder.prototype.setFileInfo = function (path, info) {
-                this.fileInfos.set(path, info);
+                this.getFileInfos().set(path, info);
             };
             AbstractBuilder.prototype.removeFileInfo = function (path) {
-                this.fileInfos.remove(path);
+                this.getFileInfos().remove(path);
             };
             AbstractBuilder.prototype.forEachFileInfo = function (action) {
-                this.fileInfos.forEachValue(function (_path, value) { return 
action(value); });
+                this.getFileInfos().forEachValue(function (_path, value) { 
return action(value); });
             };
             AbstractBuilder.prototype.emitFile = function (scriptInfo, 
writeFile) {
                 var fileInfo = this.getFileInfo(scriptInfo.path);
@@ -65097,7 +65208,7 @@ var ts;
         var ModuleBuilderFileInfo = (function (_super) {
             __extends(ModuleBuilderFileInfo, _super);
             function ModuleBuilderFileInfo() {
-                var _this = _super.apply(this, arguments) || this;
+                var _this = _super !== null && _super.apply(this, arguments) 
|| this;
                 _this.references = [];
                 _this.referencedBy = [];
                 return _this;
@@ -65153,6 +65264,10 @@ var ts;
                 _this.project = project;
                 return _this;
             }
+            ModuleBuilder.prototype.clear = function () {
+                this.projectVersionForDependencyGraph = undefined;
+                _super.prototype.clear.call(this);
+            };
             ModuleBuilder.prototype.getReferencedFileInfos = function 
(fileInfo) {
                 var _this = this;
                 if 
(!fileInfo.isExternalModuleOrHasOnlyAmbientExternalModules()) {
@@ -65349,107 +65464,6 @@ var ts;
             return UnresolvedImportsMap;
         }());
         server.UnresolvedImportsMap = UnresolvedImportsMap;
-        var emptyResult = [];
-        var getEmptyResult = function () { return emptyResult; };
-        var getUndefined = function () { return undefined; };
-        var emptyEncodedSemanticClassifications = { spans: emptyResult, 
endOfLineState: 0 };
-        function createNoSemanticFeaturesWrapper(realLanguageService) {
-            return {
-                cleanupSemanticCache: ts.noop,
-                getSyntacticDiagnostics: function (fileName) {
-                    return fileName ? 
realLanguageService.getSyntacticDiagnostics(fileName) : emptyResult;
-                },
-                getSemanticDiagnostics: getEmptyResult,
-                getCompilerOptionsDiagnostics: function () {
-                    return realLanguageService.getCompilerOptionsDiagnostics();
-                },
-                getSyntacticClassifications: function (fileName, span) {
-                    return 
realLanguageService.getSyntacticClassifications(fileName, span);
-                },
-                getEncodedSyntacticClassifications: function (fileName, span) {
-                    return 
realLanguageService.getEncodedSyntacticClassifications(fileName, span);
-                },
-                getSemanticClassifications: getEmptyResult,
-                getEncodedSemanticClassifications: function () {
-                    return emptyEncodedSemanticClassifications;
-                },
-                getCompletionsAtPosition: getUndefined,
-                findReferences: getEmptyResult,
-                getCompletionEntryDetails: getUndefined,
-                getQuickInfoAtPosition: getUndefined,
-                findRenameLocations: getEmptyResult,
-                getNameOrDottedNameSpan: function (fileName, startPos, endPos) 
{
-                    return 
realLanguageService.getNameOrDottedNameSpan(fileName, startPos, endPos);
-                },
-                getBreakpointStatementAtPosition: function (fileName, 
position) {
-                    return 
realLanguageService.getBreakpointStatementAtPosition(fileName, position);
-                },
-                getBraceMatchingAtPosition: function (fileName, position) {
-                    return 
realLanguageService.getBraceMatchingAtPosition(fileName, position);
-                },
-                getSignatureHelpItems: getUndefined,
-                getDefinitionAtPosition: getEmptyResult,
-                getRenameInfo: function () { return ({
-                    canRename: false,
-                    localizedErrorMessage: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Language_service_is_disabled),
-                    displayName: undefined,
-                    fullDisplayName: undefined,
-                    kind: undefined,
-                    kindModifiers: undefined,
-                    triggerSpan: undefined
-                }); },
-                getTypeDefinitionAtPosition: getUndefined,
-                getReferencesAtPosition: getEmptyResult,
-                getDocumentHighlights: getEmptyResult,
-                getOccurrencesAtPosition: getEmptyResult,
-                getNavigateToItems: getEmptyResult,
-                getNavigationBarItems: function (fileName) {
-                    return realLanguageService.getNavigationBarItems(fileName);
-                },
-                getNavigationTree: function (fileName) {
-                    return realLanguageService.getNavigationTree(fileName);
-                },
-                getOutliningSpans: function (fileName) {
-                    return realLanguageService.getOutliningSpans(fileName);
-                },
-                getTodoComments: getEmptyResult,
-                getIndentationAtPosition: function (fileName, position, 
options) {
-                    return 
realLanguageService.getIndentationAtPosition(fileName, position, options);
-                },
-                getFormattingEditsForRange: function (fileName, start, end, 
options) {
-                    return 
realLanguageService.getFormattingEditsForRange(fileName, start, end, options);
-                },
-                getFormattingEditsForDocument: function (fileName, options) {
-                    return 
realLanguageService.getFormattingEditsForDocument(fileName, options);
-                },
-                getFormattingEditsAfterKeystroke: function (fileName, 
position, key, options) {
-                    return 
realLanguageService.getFormattingEditsAfterKeystroke(fileName, position, key, 
options);
-                },
-                getDocCommentTemplateAtPosition: function (fileName, position) 
{
-                    return 
realLanguageService.getDocCommentTemplateAtPosition(fileName, position);
-                },
-                isValidBraceCompletionAtPosition: function (fileName, 
position, openingBrace) {
-                    return 
realLanguageService.isValidBraceCompletionAtPosition(fileName, position, 
openingBrace);
-                },
-                getEmitOutput: getUndefined,
-                getProgram: function () {
-                    return realLanguageService.getProgram();
-                },
-                getNonBoundSourceFile: function (fileName) {
-                    return realLanguageService.getNonBoundSourceFile(fileName);
-                },
-                dispose: function () {
-                    return realLanguageService.dispose();
-                },
-                getCompletionEntrySymbol: getUndefined,
-                getImplementationAtPosition: getEmptyResult,
-                getSourceFile: function (fileName) {
-                    return realLanguageService.getSourceFile(fileName);
-                },
-                getCodeFixesAtPosition: getEmptyResult
-            };
-        }
-        server.createNoSemanticFeaturesWrapper = 
createNoSemanticFeaturesWrapper;
         var Project = (function () {
             function Project(projectName, projectKind, projectService, 
documentRegistry, hasExplicitListOfFiles, languageServiceEnabled, 
compilerOptions, compileOnSaveEnabled) {
                 this.projectName = projectName;
@@ -65474,13 +65488,10 @@ var ts;
                 else if (hasExplicitListOfFiles) {
                     this.compilerOptions.allowNonTsExtensions = true;
                 }
-                if (this.projectKind === ProjectKind.Inferred || 
this.projectKind === ProjectKind.External) {
-                    this.compilerOptions.noEmitForJsFiles = true;
-                }
+                this.setInternalCompilerOptionsForEmittingJsFiles();
                 this.lsHost = new server.LSHost(this.projectService.host, 
this, this.projectService.cancellationToken);
                 this.lsHost.setCompilationSettings(this.compilerOptions);
                 this.languageService = ts.createLanguageService(this.lsHost, 
this.documentRegistry);
-                this.noSemanticFeaturesLanguageService = 
createNoSemanticFeaturesWrapper(this.languageService);
                 if (!languageServiceEnabled) {
                     this.disableLanguageService();
                 }
@@ -65498,6 +65509,11 @@ var ts;
             Project.prototype.getCachedUnresolvedImportsPerFile_TestOnly = 
function () {
                 return this.cachedUnresolvedImportsPerFile;
             };
+            Project.prototype.setInternalCompilerOptionsForEmittingJsFiles = 
function () {
+                if (this.projectKind === ProjectKind.Inferred || 
this.projectKind === ProjectKind.External) {
+                    this.compilerOptions.noEmitForJsFiles = true;
+                }
+            };
             Project.prototype.getProjectErrors = function () {
                 return this.projectErrors;
             };
@@ -65506,9 +65522,7 @@ var ts;
                 if (ensureSynchronized) {
                     this.updateGraph();
                 }
-                return this.languageServiceEnabled
-                    ? this.languageService
-                    : this.noSemanticFeaturesLanguageService;
+                return this.languageService;
             };
             Project.prototype.getCompileOnSaveAffectedFileList = function 
(scriptInfo) {
                 if (!this.languageServiceEnabled) {
@@ -65557,7 +65571,7 @@ var ts;
                         info.detachFromProject(this);
                     }
                 }
-                else {
+                if (!this.program || !this.languageServiceEnabled) {
                     for (var _b = 0, _c = this.rootFiles; _b < _c.length; 
_b++) {
                         var root = _c[_b];
                         root.detachFromProject(this);
@@ -65582,7 +65596,9 @@ var ts;
                 if (this.rootFiles) {
                     for (var _i = 0, _a = this.rootFiles; _i < _a.length; 
_i++) {
                         var f = _a[_i];
-                        result.push(f.fileName);
+                        if (this.languageServiceEnabled || f.isScriptOpen()) {
+                            result.push(f.fileName);
+                        }
                     }
                     if (this.typingFiles) {
                         for (var _b = 0, _c = this.typingFiles; _b < 
_c.length; _b++) {
@@ -65598,6 +65614,9 @@ var ts;
             };
             Project.prototype.getScriptInfos = function () {
                 var _this = this;
+                if (!this.languageServiceEnabled) {
+                    return this.rootFiles;
+                }
                 return ts.map(this.program.getSourceFiles(), function 
(sourceFile) {
                     var scriptInfo = 
_this.projectService.getScriptInfoForPath(sourceFile.path);
                     if (!scriptInfo) {
@@ -65656,7 +65675,7 @@ var ts;
             };
             Project.prototype.containsFile = function (filename, requireOpen) {
                 var info = 
this.projectService.getScriptInfoForNormalizedPath(filename);
-                if (info && (info.isOpen || !requireOpen)) {
+                if (info && (info.isScriptOpen() || !requireOpen)) {
                     return this.containsScriptInfo(info);
                 }
             };
@@ -65681,6 +65700,9 @@ var ts;
                 }
                 this.markAsDirty();
             };
+            Project.prototype.registerFileUpdate = function (fileName) {
+                (this.updatedFileNames || (this.updatedFileNames = 
ts.createMap()))[fileName] = fileName;
+            };
             Project.prototype.markAsDirty = function () {
                 this.projectStateVersion++;
             };
@@ -65695,9 +65717,9 @@ var ts;
                 }
                 var unresolvedImports;
                 if (file.resolvedModules) {
-                    for (var name_50 in file.resolvedModules) {
-                        if (!file.resolvedModules[name_50] && 
!ts.isExternalModuleNameRelative(name_50)) {
-                            var trimmed = name_50.trim();
+                    for (var name_52 in file.resolvedModules) {
+                        if (!file.resolvedModules[name_52] && 
!ts.isExternalModuleNameRelative(name_52)) {
+                            var trimmed = name_52.trim();
                             var i = trimmed.indexOf("/");
                             if (i !== -1 && trimmed.charCodeAt(0) === 64) {
                                 i = trimmed.indexOf("/", i + 1);
@@ -65713,9 +65735,6 @@ var ts;
                 this.cachedUnresolvedImportsPerFile.set(file.path, 
unresolvedImports || server.emptyArray);
             };
             Project.prototype.updateGraph = function () {
-                if (!this.languageServiceEnabled) {
-                    return true;
-                }
                 this.lsHost.startRecordingFilesWithChangedResolutions();
                 var hasChanges = this.updateGraphWorker();
                 var changedFiles = 
this.lsHost.finishRecordingFilesWithChangedResolutions() || server.emptyArray;
@@ -65737,6 +65756,12 @@ var ts;
                 if (this.setTypings(cachedTypings)) {
                     hasChanges = this.updateGraphWorker() || hasChanges;
                 }
+                if (this.languageServiceEnabled) {
+                    this.builder.onProjectUpdateGraph();
+                }
+                else {
+                    this.builder.clear();
+                }
                 if (hasChanges) {
                     this.projectStructureVersion++;
                 }
@@ -65769,7 +65794,6 @@ var ts;
                         }
                     }
                 }
-                this.builder.onProjectUpdateGraph();
                 return hasChanges;
             };
             Project.prototype.getScriptInfoLSHost = function (fileName) {
@@ -65811,6 +65835,7 @@ var ts;
                         this.lastCachedUnresolvedImportsList = undefined;
                     }
                     this.compilerOptions = compilerOptions;
+                    this.setInternalCompilerOptionsForEmittingJsFiles();
                     this.lsHost.setCompilationSettings(compilerOptions);
                     this.markAsDirty();
                 }
@@ -65830,16 +65855,20 @@ var ts;
                     projectName: this.getProjectName(),
                     version: this.projectStructureVersion,
                     isInferred: this.projectKind === ProjectKind.Inferred,
-                    options: this.getCompilerOptions()
+                    options: this.getCompilerOptions(),
+                    languageServiceDisabled: !this.languageServiceEnabled
                 };
+                var updatedFileNames = this.updatedFileNames;
+                this.updatedFileNames = undefined;
                 if (this.lastReportedFileNames && lastKnownVersion === 
this.lastReportedVersion) {
-                    if (this.projectStructureVersion == 
this.lastReportedVersion) {
+                    if (this.projectStructureVersion == 
this.lastReportedVersion && !updatedFileNames) {
                         return { info: info, projectErrors: this.projectErrors 
};
                     }
                     var lastReportedFileNames = this.lastReportedFileNames;
                     var currentFiles = ts.arrayToMap(this.getFileNames(), 
function (x) { return x; });
                     var added = [];
                     var removed = [];
+                    var updated = ts.getOwnKeys(updatedFileNames);
                     for (var id in currentFiles) {
                         if (!ts.hasProperty(lastReportedFileNames, id)) {
                             added.push(id);
@@ -65852,7 +65881,7 @@ var ts;
                     }
                     this.lastReportedFileNames = currentFiles;
                     this.lastReportedVersion = this.projectStructureVersion;
-                    return { info: info, changes: { added: added, removed: 
removed }, projectErrors: this.projectErrors };
+                    return { info: info, changes: { added: added, removed: 
removed, updated: updated }, projectErrors: this.projectErrors };
                 }
                 else {
                     var projectFileNames = this.getFileNames();
@@ -66178,7 +66207,10 @@ var ts;
         var fileNamePropertyReader = {
             getFileName: function (x) { return x; },
             getScriptKind: function (_) { return undefined; },
-            hasMixedContent: function (_) { return false; }
+            hasMixedContent: function (fileName, extraFileExtensions) {
+                var mixedContentExtensions = 
ts.map(ts.filter(extraFileExtensions, function (item) { return 
item.isMixedContent; }), function (item) { return item.extension; });
+                return ts.forEach(mixedContentExtensions, function (extension) 
{ return ts.fileExtensionIs(fileName, extension); });
+            }
         };
         var externalFilePropertyReader = {
             getFileName: function (x) { return x.fileName; },
@@ -66258,7 +66290,8 @@ var ts;
                 this.typingsCache = new 
server.TypingsCache(this.typingsInstaller);
                 this.hostConfiguration = {
                     formatCodeOptions: 
server.getDefaultFormatCodeSettings(this.host),
-                    hostInfo: "Unknown host"
+                    hostInfo: "Unknown host",
+                    extraFileExtensions: []
                 };
                 this.documentRegistry = 
ts.createDocumentRegistry(host.useCaseSensitiveFileNames, 
host.getCurrentDirectory());
             }
@@ -66384,7 +66417,7 @@ var ts;
                     this.handleDeletedFile(info);
                 }
                 else {
-                    if (info && (!info.isOpen)) {
+                    if (info && (!info.isScriptOpen())) {
                         info.reloadFromFile();
                         this.updateProjectGraphs(info.containingProjects);
                     }
@@ -66393,7 +66426,7 @@ var ts;
             ProjectService.prototype.handleDeletedFile = function (info) {
                 this.logger.info(info.fileName + " deleted");
                 info.stopWatcher();
-                if (!info.isOpen) {
+                if (!info.isScriptOpen()) {
                     this.filenameToScriptInfo.remove(info.path);
                     this.lastDeletedFile = info;
                     var containingProjects = info.containingProjects.slice();
@@ -66424,7 +66457,7 @@ var ts;
             };
             
ProjectService.prototype.onSourceFileInDirectoryChangedForConfiguredProject = 
function (project, fileName) {
                 var _this = this;
-                if (fileName && !ts.isSupportedSourceFileName(fileName, 
project.getCompilerOptions())) {
+                if (fileName && !ts.isSupportedSourceFileName(fileName, 
project.getCompilerOptions(), this.hostConfiguration.extraFileExtensions)) {
                     return;
                 }
                 this.logger.info("Detected source file changes: " + fileName);
@@ -66523,13 +66556,15 @@ var ts;
                 }
             };
             ProjectService.prototype.closeOpenFile = function (info) {
-                info.reloadFromFile();
+                info.close();
                 server.removeItemFromSet(this.openFiles, info);
-                info.isOpen = false;
                 var projectsToRemove;
                 for (var _i = 0, _a = info.containingProjects; _i < _a.length; 
_i++) {
                     var p = _a[_i];
                     if (p.projectKind === server.ProjectKind.Configured) {
+                        if (info.hasMixedContent) {
+                            info.registerFileUpdate();
+                        }
                         if (p.deleteOpenRef() === 0) {
                             (projectsToRemove || (projectsToRemove = 
[])).push(p);
                         }
@@ -66537,6 +66572,9 @@ var ts;
                     else if (p.projectKind === server.ProjectKind.Inferred && 
p.isRoot(info)) {
                         (projectsToRemove || (projectsToRemove = [])).push(p);
                     }
+                    if (!p.languageServiceEnabled) {
+                        p.markAsDirty();
+                    }
                 }
                 if (projectsToRemove) {
                     for (var _b = 0, projectsToRemove_1 = projectsToRemove; _b 
< projectsToRemove_1.length; _b++) {
@@ -66654,7 +66692,7 @@ var ts;
                     config = sanitizedConfig;
                     errors = diagnostics.length ? diagnostics : [result.error];
                 }
-                var parsedCommandLine = ts.parseJsonConfigFileContent(config, 
this.host, ts.getDirectoryPath(configFilename), {}, configFilename);
+                var parsedCommandLine = ts.parseJsonConfigFileContent(config, 
this.host, ts.getDirectoryPath(configFilename), {}, configFilename, [], 
this.hostConfiguration.extraFileExtensions);
                 if (parsedCommandLine.errors.length) {
                     errors = ts.concatenate(errors, parsedCommandLine.errors);
                 }
@@ -66733,7 +66771,7 @@ var ts;
                     var f = files_4[_i];
                     var rootFilename = propertyReader.getFileName(f);
                     var scriptKind = propertyReader.getScriptKind(f);
-                    var hasMixedContent = propertyReader.hasMixedContent(f);
+                    var hasMixedContent = propertyReader.hasMixedContent(f, 
this.hostConfiguration.extraFileExtensions);
                     if (this.host.fileExists(rootFilename)) {
                         var info = 
this.getOrCreateScriptInfoForNormalizedPath(server.toNormalizedPath(rootFilename),
 clientFileName == rootFilename, undefined, scriptKind, hasMixedContent);
                         project.addRoot(info);
@@ -66777,7 +66815,7 @@ var ts;
                         rootFilesChanged = true;
                         if (!scriptInfo) {
                             var scriptKind = propertyReader.getScriptKind(f);
-                            var hasMixedContent = 
propertyReader.hasMixedContent(f);
+                            var hasMixedContent = 
propertyReader.hasMixedContent(f, this.hostConfiguration.extraFileExtensions);
                             scriptInfo = 
this.getOrCreateScriptInfoForNormalizedPath(normalizedPath, false, undefined, 
scriptKind, hasMixedContent);
                         }
                     }
@@ -66808,7 +66846,7 @@ var ts;
                     if (toAdd) {
                         for (var _d = 0, toAdd_1 = toAdd; _d < toAdd_1.length; 
_d++) {
                             var f = toAdd_1[_d];
-                            if (f.isOpen && isRootFileInInferredProject(f)) {
+                            if (f.isScriptOpen() && 
isRootFileInInferredProject(f)) {
                                 var inferredProject = f.containingProjects[0];
                                 inferredProject.removeFile(f);
                                 if (!inferredProject.hasRoots()) {
@@ -66847,9 +66885,7 @@ var ts;
                     project.stopWatchingDirectory();
                 }
                 else {
-                    if (!project.languageServiceEnabled) {
-                        project.enableLanguageService();
-                    }
+                    project.enableLanguageService();
                     this.watchConfigDirectoryForProject(project, 
projectOptions);
                     this.updateNonInferredProject(project, 
projectOptions.files, fileNamePropertyReader, projectOptions.compilerOptions, 
projectOptions.typeAcquisition, projectOptions.compileOnSave, configFileErrors);
                 }
@@ -66879,29 +66915,30 @@ var ts;
                 var _this = this;
                 var info = this.getScriptInfoForNormalizedPath(fileName);
                 if (!info) {
-                    var content = void 0;
-                    if (this.host.fileExists(fileName)) {
-                        content = fileContent || (hasMixedContent ? "" : 
this.host.readFile(fileName));
-                    }
-                    if (!content) {
+                    if (openedByClient || this.host.fileExists(fileName)) {
+                        info = new server.ScriptInfo(this.host, fileName, 
scriptKind, hasMixedContent);
+                        this.filenameToScriptInfo.set(info.path, info);
                         if (openedByClient) {
-                            content = "";
+                            if (fileContent === undefined) {
+                                fileContent = this.host.readFile(fileName) || 
"";
+                            }
                         }
-                    }
-                    if (content !== undefined) {
-                        info = new server.ScriptInfo(this.host, fileName, 
content, scriptKind, openedByClient, hasMixedContent);
-                        this.filenameToScriptInfo.set(info.path, info);
-                        if (!info.isOpen && !hasMixedContent) {
-                            info.setWatcher(this.host.watchFile(fileName, 
function (_) { return _this.onSourceFileChanged(fileName); }));
+                        else {
+                            if (!hasMixedContent) {
+                                info.setWatcher(this.host.watchFile(fileName, 
function (_) { return _this.onSourceFileChanged(fileName); }));
+                            }
                         }
                     }
                 }
                 if (info) {
-                    if (fileContent !== undefined) {
-                        info.reload(fileContent);
+                    if (openedByClient && !info.isScriptOpen()) {
+                        info.open(fileContent);
+                        if (hasMixedContent) {
+                            info.registerFileUpdate();
+                        }
                     }
-                    if (openedByClient) {
-                        info.isOpen = true;
+                    else if (fileContent !== undefined) {
+                        info.reload(fileContent);
                     }
                 }
                 return info;
@@ -66929,6 +66966,10 @@ var ts;
                         
server.mergeMaps(this.hostConfiguration.formatCodeOptions, 
convertFormatOptions(args.formatOptions));
                         this.logger.info("Format host information updated");
                     }
+                    if (args.extraFileExtensions) {
+                        this.hostConfiguration.extraFileExtensions = 
args.extraFileExtensions;
+                        this.logger.info("Host file extension mappings 
updated");
+                    }
                 }
             };
             ProjectService.prototype.closeLog = function () {
@@ -66976,30 +67017,39 @@ var ts;
                 return 
this.openClientFileWithNormalizedPath(server.toNormalizedPath(fileName), 
fileContent, scriptKind);
             };
             ProjectService.prototype.openClientFileWithNormalizedPath = 
function (fileName, fileContent, scriptKind, hasMixedContent) {
-                var _a = this.findContainingExternalProject(fileName)
-                    ? {}
-                    : this.openOrUpdateConfiguredProjectForFile(fileName), _b 
= _a.configFileName, configFileName = _b === void 0 ? undefined : _b, _c = 
_a.configFileErrors, configFileErrors = _c === void 0 ? undefined : _c;
+                var configFileName;
+                var configFileErrors;
+                var project = this.findContainingExternalProject(fileName);
+                if (!project) {
+                    (_a = this.openOrUpdateConfiguredProjectForFile(fileName), 
configFileName = _a.configFileName, configFileErrors = _a.configFileErrors);
+                    if (configFileName) {
+                        project = 
this.findConfiguredProjectByProjectName(configFileName);
+                    }
+                }
+                if (project && !project.languageServiceEnabled) {
+                    project.markAsDirty();
+                }
                 var info = 
this.getOrCreateScriptInfoForNormalizedPath(fileName, true, fileContent, 
scriptKind, hasMixedContent);
                 this.assignScriptInfoToInferredProjectIfNecessary(info, true);
                 this.printProjects();
                 return { configFileName: configFileName, configFileErrors: 
configFileErrors };
+                var _a;
             };
             ProjectService.prototype.closeClientFile = function 
(uncheckedFileName) {
                 var info = 
this.getScriptInfoForNormalizedPath(server.toNormalizedPath(uncheckedFileName));
                 if (info) {
                     this.closeOpenFile(info);
-                    info.isOpen = false;
                 }
                 this.printProjects();
             };
             ProjectService.prototype.collectChanges = function 
(lastKnownProjectVersions, currentProjects, result) {
-                var _loop_5 = function (proj) {
+                var _loop_4 = function (proj) {
                     var knownProject = ts.forEach(lastKnownProjectVersions, 
function (p) { return p.projectName === proj.getProjectName() && p; });
                     result.push(proj.getChangesSinceVersion(knownProject && 
knownProject.version));
                 };
                 for (var _i = 0, currentProjects_1 = currentProjects; _i < 
currentProjects_1.length; _i++) {
                     var proj = currentProjects_1[_i];
-                    _loop_5(proj);
+                    _loop_4(proj);
                 }
             };
             ProjectService.prototype.synchronizeProjectList = function 
(knownProjects) {
@@ -67015,7 +67065,7 @@ var ts;
                     for (var _i = 0, openFiles_1 = openFiles; _i < 
openFiles_1.length; _i++) {
                         var file = openFiles_1[_i];
                         var scriptInfo = this.getScriptInfo(file.fileName);
-                        ts.Debug.assert(!scriptInfo || !scriptInfo.isOpen);
+                        ts.Debug.assert(!scriptInfo || 
!scriptInfo.isScriptOpen());
                         var normalizedPath = scriptInfo ? scriptInfo.fileName 
: server.toNormalizedPath(file.fileName);
                         this.openClientFileWithNormalizedPath(normalizedPath, 
file.content, tryConvertScriptKindName(file.scriptKind), file.hasMixedContent);
                     }
@@ -67082,7 +67132,23 @@ var ts;
                     }
                 }
             };
-            ProjectService.prototype.openExternalProject = function (proj) {
+            ProjectService.prototype.openExternalProjects = function 
(projects) {
+                var projectsToClose = ts.arrayToMap(this.externalProjects, 
function (p) { return p.getProjectName(); }, function (_) { return true; });
+                for (var externalProjectName in 
this.externalProjectToConfiguredProjectMap) {
+                    projectsToClose[externalProjectName] = true;
+                }
+                for (var _i = 0, projects_4 = projects; _i < 
projects_4.length; _i++) {
+                    var externalProject = projects_4[_i];
+                    this.openExternalProject(externalProject, true);
+                    delete projectsToClose[externalProject.projectFileName];
+                }
+                for (var externalProjectName in projectsToClose) {
+                    this.closeExternalProject(externalProjectName, true);
+                }
+                this.refreshInferredProjects();
+            };
+            ProjectService.prototype.openExternalProject = function (proj, 
suppressRefreshOfInferredProjects) {
+                if (suppressRefreshOfInferredProjects === void 0) { 
suppressRefreshOfInferredProjects = false; }
                 if (proj.typingOptions && !proj.typeAcquisition) {
                     var typeAcquisition = 
ts.convertEnableAutoDiscoveryToEnable(proj.typingOptions);
                     proj.typeAcquisition = typeAcquisition;
@@ -67108,7 +67174,14 @@ var ts;
                 var exisingConfigFiles;
                 if (externalProject) {
                     if (!tsConfigFiles) {
-                        this.updateNonInferredProject(externalProject, 
proj.rootFiles, externalFilePropertyReader, 
convertCompilerOptions(proj.options), proj.typeAcquisition, 
proj.options.compileOnSave, undefined);
+                        var compilerOptions = 
convertCompilerOptions(proj.options);
+                        if 
(this.exceededTotalSizeLimitForNonTsFiles(compilerOptions, proj.rootFiles, 
externalFilePropertyReader)) {
+                            externalProject.disableLanguageService();
+                        }
+                        else {
+                            externalProject.enableLanguageService();
+                        }
+                        this.updateNonInferredProject(externalProject, 
proj.rootFiles, externalFilePropertyReader, compilerOptions, 
proj.typeAcquisition, proj.options.compileOnSave, undefined);
                         return;
                     }
                     this.closeExternalProject(proj.projectFileName, true);
@@ -67160,7 +67233,9 @@ var ts;
                     delete 
this.externalProjectToConfiguredProjectMap[proj.projectFileName];
                     this.createAndAddExternalProject(proj.projectFileName, 
rootFiles, proj.options, proj.typeAcquisition);
                 }
-                this.refreshInferredProjects();
+                if (!suppressRefreshOfInferredProjects) {
+                    this.refreshInferredProjects();
+                }
             };
             return ProjectService;
         }());
@@ -67322,14 +67397,11 @@ var ts;
                 this.changeSeq = 0;
                 this.handlers = ts.createMap((_a = {},
                     _a[CommandNames.OpenExternalProject] = function (request) {
-                        
_this.projectService.openExternalProject(request.arguments);
+                        
_this.projectService.openExternalProject(request.arguments, false);
                         return _this.requiredResponse(true);
                     },
                     _a[CommandNames.OpenExternalProjects] = function (request) 
{
-                        for (var _i = 0, _a = request.arguments.projects; _i < 
_a.length; _i++) {
-                            var proj = _a[_i];
-                            _this.projectService.openExternalProject(proj);
-                        }
+                        
_this.projectService.openExternalProjects(request.arguments.projects);
                         return _this.requiredResponse(true);
                     },
                     _a[CommandNames.CloseExternalProject] = function (request) 
{
@@ -67726,8 +67798,8 @@ var ts;
                     return;
                 }
                 this.logger.info("cleaning " + caption);
-                for (var _i = 0, projects_4 = projects; _i < 
projects_4.length; _i++) {
-                    var p = projects_4[_i];
+                for (var _i = 0, projects_5 = projects; _i < 
projects_5.length; _i++) {
+                    var p = projects_5[_i];
                     p.getLanguageService(false).cleanupSemanticCache();
                 }
             };
@@ -68023,7 +68095,7 @@ var ts;
                     var displayString = 
ts.displayPartsToString(nameInfo.displayParts);
                     var nameSpan = nameInfo.textSpan;
                     var nameColStart = 
scriptInfo.positionToLineOffset(nameSpan.start).offset;
-                    var nameText = scriptInfo.snap().getText(nameSpan.start, 
ts.textSpanEnd(nameSpan));
+                    var nameText = 
scriptInfo.getSnapshot().getText(nameSpan.start, ts.textSpanEnd(nameSpan));
                     var refs = server.combineProjectOutput(projects, function 
(project) {
                         var references = 
project.getLanguageService().getReferencesAtPosition(file, position);
                         if (!references) {
@@ -68033,7 +68105,7 @@ var ts;
                             var refScriptInfo = 
project.getScriptInfo(ref.fileName);
                             var start = 
refScriptInfo.positionToLineOffset(ref.textSpan.start);
                             var refLineSpan = 
refScriptInfo.lineToTextSpan(start.line - 1);
-                            var lineText = 
refScriptInfo.snap().getText(refLineSpan.start, 
ts.textSpanEnd(refLineSpan)).replace(/\r|\n/g, "");
+                            var lineText = 
refScriptInfo.getSnapshot().getText(refLineSpan.start, 
ts.textSpanEnd(refLineSpan)).replace(/\r|\n/g, "");
                             return {
                                 file: ref.fileName,
                                 start: start,
@@ -68144,6 +68216,7 @@ var ts;
                         end: 
scriptInfo.positionToLineOffset(ts.textSpanEnd(quickInfo.textSpan)),
                         displayString: displayString,
                         documentation: docString,
+                        tags: quickInfo.tags || []
                     };
                 }
                 else {
@@ -68236,9 +68309,9 @@ var ts;
                 if (simplifiedResult) {
                     return completions.entries.reduce(function (result, entry) 
{
                         if (completions.isMemberCompletion || 
(entry.name.toLowerCase().indexOf(prefix.toLowerCase()) === 0)) {
-                            var name_51 = entry.name, kind = entry.kind, 
kindModifiers = entry.kindModifiers, sortText = entry.sortText, replacementSpan 
= entry.replacementSpan;
+                            var name_53 = entry.name, kind = entry.kind, 
kindModifiers = entry.kindModifiers, sortText = entry.sortText, replacementSpan 
= entry.replacementSpan;
                             var convertedSpan = replacementSpan ? 
_this.decorateSpan(replacementSpan, scriptInfo) : undefined;
-                            result.push({ name: name_51, kind: kind, 
kindModifiers: kindModifiers, sortText: sortText, replacementSpan: 
convertedSpan });
+                            result.push({ name: name_53, kind: kind, 
kindModifiers: kindModifiers, sortText: sortText, replacementSpan: 
convertedSpan });
                         }
                         return result;
                     }, []).sort(function (a, b) { return 
ts.compareStrings(a.name, b.name); });
@@ -68283,6 +68356,9 @@ var ts;
                 if (!project) {
                     server.Errors.ThrowNoProject();
                 }
+                if (!project.languageServiceEnabled) {
+                    return false;
+                }
                 var scriptInfo = project.getScriptInfo(file);
                 return project.builder.emitFile(scriptInfo, function (path, 
data, writeByteOrderMark) { return _this.host.writeFile(path, data, 
writeByteOrderMark); });
             };
@@ -68548,7 +68624,7 @@ var ts;
                         highPriorityFiles.push(fileNameInProject);
                     else {
                         var info = 
this.projectService.getScriptInfo(fileNameInProject);
-                        if (!info.isOpen) {
+                        if (!info.isScriptOpen()) {
                             if (fileNameInProject.indexOf(".d.ts") > 0)
                                 veryLowPriorityFiles.push(fileNameInProject);
                             else
@@ -69005,8 +69081,9 @@ var ts;
                 }
             };
             LineIndexSnapshot.prototype.getChangeRange = function 
(oldSnapshot) {
-                var oldSnap = oldSnapshot;
-                return this.getTextChangeRangeSinceVersion(oldSnap.version);
+                if (oldSnapshot instanceof LineIndexSnapshot && this.cache === 
oldSnapshot.cache) {
+                    return 
this.getTextChangeRangeSinceVersion(oldSnapshot.version);
+                }
             };
             return LineIndexSnapshot;
         }());
@@ -70179,4 +70256,4 @@ var TypeScript;
         Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory;
     })(Services = TypeScript.Services || (TypeScript.Services = {}));
 })(TypeScript || (TypeScript = {}));
-var toolsVersion = "2.2";
+var toolsVersion = "2.1";
diff --git a/node_modules/typescript/lib/typescript.d.ts 
b/node_modules/typescript/lib/typescript.d.ts
index cec498e..c6f3587 100644
--- a/node_modules/typescript/lib/typescript.d.ts
+++ b/node_modules/typescript/lib/typescript.d.ts
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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.
+***************************************************************************** 
*/
+
 declare namespace ts {
     interface MapLike<T> {
         [index: string]: T;
@@ -334,8 +334,7 @@ declare namespace ts {
         PartiallyEmittedExpression = 294,
         MergeDeclarationMarker = 295,
         EndOfDeclarationMarker = 296,
-        RawExpression = 297,
-        Count = 298,
+        Count = 297,
         FirstAssignment = 57,
         LastAssignment = 69,
         FirstCompoundAssignment = 58,
@@ -378,26 +377,20 @@ declare namespace ts {
         HasImplicitReturn = 128,
         HasExplicitReturn = 256,
         GlobalAugmentation = 512,
-        HasClassExtends = 1024,
-        HasDecorators = 2048,
-        HasParamDecorators = 4096,
-        HasAsyncFunctions = 8192,
-        HasSpreadAttribute = 16384,
-        HasRestAttribute = 32768,
-        DisallowInContext = 65536,
-        YieldContext = 131072,
-        DecoratorContext = 262144,
-        AwaitContext = 524288,
-        ThisNodeHasError = 1048576,
-        JavaScriptFile = 2097152,
-        ThisNodeOrAnySubNodesHasError = 4194304,
-        HasAggregatedChildData = 8388608,
+        HasAsyncFunctions = 1024,
+        DisallowInContext = 2048,
+        YieldContext = 4096,
+        DecoratorContext = 8192,
+        AwaitContext = 16384,
+        ThisNodeHasError = 32768,
+        JavaScriptFile = 65536,
+        ThisNodeOrAnySubNodesHasError = 131072,
+        HasAggregatedChildData = 262144,
         BlockScoped = 3,
         ReachabilityCheckFlags = 384,
-        EmitHelperFlags = 64512,
-        ReachabilityAndEmitFlags = 64896,
-        ContextFlags = 3080192,
-        TypeExcludesFlags = 655360,
+        ReachabilityAndEmitFlags = 1408,
+        ContextFlags = 96256,
+        TypeExcludesFlags = 20480,
     }
     enum ModifierFlags {
         None = 0,
@@ -1629,6 +1622,7 @@ declare namespace ts {
         writeSpace(text: string): void;
         writeStringLiteral(text: string): void;
         writeParameter(text: string): void;
+        writeProperty(text: string): void;
         writeSymbol(text: string, symbol: Symbol): void;
         writeLine(): void;
         increaseIndent(): void;
@@ -1781,6 +1775,7 @@ declare namespace ts {
         UnionOrIntersection = 196608,
         StructuredType = 229376,
         StructuredOrTypeParameter = 507904,
+        TypeVariable = 540672,
         Narrowable = 1033215,
         NotUnionOrUnit = 33281,
     }
@@ -1850,15 +1845,18 @@ declare namespace ts {
         elementType: Type;
         finalArrayType?: Type;
     }
-    interface TypeParameter extends Type {
-        constraint: Type;
+    interface TypeVariable extends Type {
     }
-    interface IndexType extends Type {
-        type: TypeParameter;
+    interface TypeParameter extends TypeVariable {
+        constraint: Type;
     }
-    interface IndexedAccessType extends Type {
+    interface IndexedAccessType extends TypeVariable {
         objectType: Type;
         indexType: Type;
+        constraint?: Type;
+    }
+    interface IndexType extends Type {
+        type: TypeVariable | UnionOrIntersectionType;
     }
     enum SignatureKind {
         Call = 0,
@@ -1878,6 +1876,11 @@ declare namespace ts {
         isReadonly: boolean;
         declaration?: SignatureDeclaration;
     }
+    interface FileExtensionInfo {
+        extension: string;
+        scriptKind: ScriptKind;
+        isMixedContent: boolean;
+    }
     interface DiagnosticMessage {
         key: string;
         category: DiagnosticCategory;
@@ -2145,7 +2148,7 @@ declare namespace ts {
 }
 declare namespace ts {
     /** The version of the TypeScript compiler release */
-    const version = "2.2.0-dev.20161127";
+    const version = "2.1.6";
 }
 declare namespace ts {
     type FileWatcherCallback = (fileName: string, removed?: boolean) => void;
@@ -2321,9 +2324,28 @@ declare namespace ts {
       *   this list is only the set of defaults that are implicitly included.
       */
     function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: 
ModuleResolutionHost): string[];
-    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
-    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
-    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
+    /**
+     * Cached module resolutions per containing directory.
+     * This assumes that any module id will have the same resolution for 
sibling files located in the same folder.
+     */
+    interface ModuleResolutionCache extends 
NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForDirectory(directoryName: string): 
Map<ResolvedModuleWithFailedLookupLocations>;
+    }
+    /**
+     * Stored map from non-relative module name to a table: directory -> 
result of module lookup in this directory
+     * We support only non-relative module names because resolution of 
relative module names is usually more deterministic and thus less expensive.
+     */
+    interface NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForModuleName(nonRelativeModuleName: string): 
PerModuleNameCache;
+    }
+    interface PerModuleNameCache {
+        get(directory: string): ResolvedModuleWithFailedLookupLocations;
+        set(directory: string, result: 
ResolvedModuleWithFailedLookupLocations): void;
+    }
+    function createModuleResolutionCache(currentDirectory: string, 
getCanonicalFileName: (s: string) => string): ModuleResolutionCache;
+    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
+    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
+    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
NonRelativeModuleNameResolutionCache): ResolvedModuleWithFailedLookupLocations;
 }
 declare namespace ts {
     function findConfigFile(searchPath: string, fileExists: (fileName: string) 
=> boolean, configName?: string): string;
@@ -2340,6 +2362,7 @@ declare namespace ts {
     function createProgram(rootNames: string[], options: CompilerOptions, 
host?: CompilerHost, oldProgram?: Program): Program;
 }
 declare namespace ts {
+    function parseCommandLine(commandLine: string[], readFile?: (path: string) 
=> string): ParsedCommandLine;
     /**
       * Read tsconfig.json file
       * @param fileName The path to the config file
@@ -2364,7 +2387,7 @@ declare namespace ts {
       * @param basePath A root directory to resolve relative path entries in 
the config
       *    file to. e.g. outDir
       */
-    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[]): ParsedCommandLine;
+    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[], extraFileExtensions?: FileExtensionInfo[]): 
ParsedCommandLine;
     function convertCompileOnSaveOptionFromJson(jsonOption: any, basePath: 
string, errors: Diagnostic[]): boolean;
     function convertCompilerOptionsFromJson(jsonOptions: any, basePath: 
string, configFileName?: string): {
         options: CompilerOptions;
@@ -2397,6 +2420,7 @@ declare namespace ts {
         getName(): string;
         getDeclarations(): Declaration[];
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface Type {
         getFlags(): TypeFlags;
@@ -2417,6 +2441,7 @@ declare namespace ts {
         getParameters(): Symbol[];
         getReturnType(): Type;
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface SourceFile {
         getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
@@ -2669,6 +2694,7 @@ declare namespace ts {
         InsertSpaceAfterCommaDelimiter: boolean;
         InsertSpaceAfterSemicolonInForStatements: boolean;
         InsertSpaceBeforeAndAfterBinaryOperators: boolean;
+        InsertSpaceAfterConstructor?: boolean;
         InsertSpaceAfterKeywordsInControlFlowStatements: boolean;
         InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean;
@@ -2677,6 +2703,7 @@ declare namespace ts {
         InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         InsertSpaceAfterTypeAssertion?: boolean;
+        InsertSpaceBeforeFunctionParenthesis?: boolean;
         PlaceOpenBraceOnNewLineForFunctions: boolean;
         PlaceOpenBraceOnNewLineForControlBlocks: boolean;
     }
@@ -2684,6 +2711,7 @@ declare namespace ts {
         insertSpaceAfterCommaDelimiter?: boolean;
         insertSpaceAfterSemicolonInForStatements?: boolean;
         insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+        insertSpaceAfterConstructor?: boolean;
         insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
         insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
@@ -2692,6 +2720,7 @@ declare namespace ts {
         insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         insertSpaceAfterTypeAssertion?: boolean;
+        insertSpaceBeforeFunctionParenthesis?: boolean;
         placeOpenBraceOnNewLineForFunctions?: boolean;
         placeOpenBraceOnNewLineForControlBlocks?: boolean;
     }
@@ -2738,12 +2767,17 @@ declare namespace ts {
         text: string;
         kind: string;
     }
+    interface JSDocTagInfo {
+        name: string;
+        text?: string;
+    }
     interface QuickInfo {
         kind: string;
         kindModifiers: string;
         textSpan: TextSpan;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface RenameInfo {
         canRename: boolean;
@@ -2774,6 +2808,7 @@ declare namespace ts {
         separatorDisplayParts: SymbolDisplayPart[];
         parameters: SignatureHelpParameter[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     /**
      * Represents a set of signature help items, and the preferred item that 
should be selected.
@@ -2812,6 +2847,7 @@ declare namespace ts {
         kindModifiers: string;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface OutliningSpan {
         /** The span of the document to actually collapse. */
@@ -3126,5 +3162,5 @@ declare namespace ts {
       */
     function getDefaultLibFilePath(options: CompilerOptions): string;
 }
-
+
 export = ts;
\ No newline at end of file
diff --git a/node_modules/typescript/lib/typescript.js 
b/node_modules/typescript/lib/typescript.js
index d4ad545..6f78768 100644
--- a/node_modules/typescript/lib/typescript.js
+++ b/node_modules/typescript/lib/typescript.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
@@ -352,9 +352,8 @@ var ts;
         SyntaxKind[SyntaxKind["PartiallyEmittedExpression"] = 294] = 
"PartiallyEmittedExpression";
         SyntaxKind[SyntaxKind["MergeDeclarationMarker"] = 295] = 
"MergeDeclarationMarker";
         SyntaxKind[SyntaxKind["EndOfDeclarationMarker"] = 296] = 
"EndOfDeclarationMarker";
-        SyntaxKind[SyntaxKind["RawExpression"] = 297] = "RawExpression";
         // Enum value count
-        SyntaxKind[SyntaxKind["Count"] = 298] = "Count";
+        SyntaxKind[SyntaxKind["Count"] = 297] = "Count";
         // Markers
         SyntaxKind[SyntaxKind["FirstAssignment"] = 57] = "FirstAssignment";
         SyntaxKind[SyntaxKind["LastAssignment"] = 69] = "LastAssignment";
@@ -399,28 +398,22 @@ var ts;
         NodeFlags[NodeFlags["HasImplicitReturn"] = 128] = "HasImplicitReturn";
         NodeFlags[NodeFlags["HasExplicitReturn"] = 256] = "HasExplicitReturn";
         NodeFlags[NodeFlags["GlobalAugmentation"] = 512] = 
"GlobalAugmentation";
-        NodeFlags[NodeFlags["HasClassExtends"] = 1024] = "HasClassExtends";
-        NodeFlags[NodeFlags["HasDecorators"] = 2048] = "HasDecorators";
-        NodeFlags[NodeFlags["HasParamDecorators"] = 4096] = 
"HasParamDecorators";
-        NodeFlags[NodeFlags["HasAsyncFunctions"] = 8192] = "HasAsyncFunctions";
-        NodeFlags[NodeFlags["HasSpreadAttribute"] = 16384] = 
"HasSpreadAttribute";
-        NodeFlags[NodeFlags["HasRestAttribute"] = 32768] = "HasRestAttribute";
-        NodeFlags[NodeFlags["DisallowInContext"] = 65536] = 
"DisallowInContext";
-        NodeFlags[NodeFlags["YieldContext"] = 131072] = "YieldContext";
-        NodeFlags[NodeFlags["DecoratorContext"] = 262144] = "DecoratorContext";
-        NodeFlags[NodeFlags["AwaitContext"] = 524288] = "AwaitContext";
-        NodeFlags[NodeFlags["ThisNodeHasError"] = 1048576] = 
"ThisNodeHasError";
-        NodeFlags[NodeFlags["JavaScriptFile"] = 2097152] = "JavaScriptFile";
-        NodeFlags[NodeFlags["ThisNodeOrAnySubNodesHasError"] = 4194304] = 
"ThisNodeOrAnySubNodesHasError";
-        NodeFlags[NodeFlags["HasAggregatedChildData"] = 8388608] = 
"HasAggregatedChildData";
+        NodeFlags[NodeFlags["HasAsyncFunctions"] = 1024] = "HasAsyncFunctions";
+        NodeFlags[NodeFlags["DisallowInContext"] = 2048] = "DisallowInContext";
+        NodeFlags[NodeFlags["YieldContext"] = 4096] = "YieldContext";
+        NodeFlags[NodeFlags["DecoratorContext"] = 8192] = "DecoratorContext";
+        NodeFlags[NodeFlags["AwaitContext"] = 16384] = "AwaitContext";
+        NodeFlags[NodeFlags["ThisNodeHasError"] = 32768] = "ThisNodeHasError";
+        NodeFlags[NodeFlags["JavaScriptFile"] = 65536] = "JavaScriptFile";
+        NodeFlags[NodeFlags["ThisNodeOrAnySubNodesHasError"] = 131072] = 
"ThisNodeOrAnySubNodesHasError";
+        NodeFlags[NodeFlags["HasAggregatedChildData"] = 262144] = 
"HasAggregatedChildData";
         NodeFlags[NodeFlags["BlockScoped"] = 3] = "BlockScoped";
         NodeFlags[NodeFlags["ReachabilityCheckFlags"] = 384] = 
"ReachabilityCheckFlags";
-        NodeFlags[NodeFlags["EmitHelperFlags"] = 64512] = "EmitHelperFlags";
-        NodeFlags[NodeFlags["ReachabilityAndEmitFlags"] = 64896] = 
"ReachabilityAndEmitFlags";
+        NodeFlags[NodeFlags["ReachabilityAndEmitFlags"] = 1408] = 
"ReachabilityAndEmitFlags";
         // Parsing context flags
-        NodeFlags[NodeFlags["ContextFlags"] = 3080192] = "ContextFlags";
+        NodeFlags[NodeFlags["ContextFlags"] = 96256] = "ContextFlags";
         // Exclude these flags when parsing a Type
-        NodeFlags[NodeFlags["TypeExcludesFlags"] = 655360] = 
"TypeExcludesFlags";
+        NodeFlags[NodeFlags["TypeExcludesFlags"] = 20480] = 
"TypeExcludesFlags";
     })(NodeFlags = ts.NodeFlags || (ts.NodeFlags = {}));
     var ModifierFlags;
     (function (ModifierFlags) {
@@ -719,6 +712,7 @@ var ts;
         TypeFlags[TypeFlags["UnionOrIntersection"] = 196608] = 
"UnionOrIntersection";
         TypeFlags[TypeFlags["StructuredType"] = 229376] = "StructuredType";
         TypeFlags[TypeFlags["StructuredOrTypeParameter"] = 507904] = 
"StructuredOrTypeParameter";
+        TypeFlags[TypeFlags["TypeVariable"] = 540672] = "TypeVariable";
         // 'Narrowable' types are types where narrowing actually narrows.
         // This *should* be every type other than null, undefined, void, and 
never
         TypeFlags[TypeFlags["Narrowable"] = 1033215] = "Narrowable";
@@ -1066,6 +1060,24 @@ var ts;
         EmitFlags[EmitFlags["NoHoisting"] = 1048576] = "NoHoisting";
         EmitFlags[EmitFlags["HasEndOfDeclarationMarker"] = 2097152] = 
"HasEndOfDeclarationMarker";
     })(EmitFlags = ts.EmitFlags || (ts.EmitFlags = {}));
+    /**
+     * Used by the checker, this enum keeps track of external emit helpers 
that should be type
+     * checked.
+     */
+    /* @internal */
+    var ExternalEmitHelpers;
+    (function (ExternalEmitHelpers) {
+        ExternalEmitHelpers[ExternalEmitHelpers["Extends"] = 1] = "Extends";
+        ExternalEmitHelpers[ExternalEmitHelpers["Assign"] = 2] = "Assign";
+        ExternalEmitHelpers[ExternalEmitHelpers["Rest"] = 4] = "Rest";
+        ExternalEmitHelpers[ExternalEmitHelpers["Decorate"] = 8] = "Decorate";
+        ExternalEmitHelpers[ExternalEmitHelpers["Metadata"] = 16] = "Metadata";
+        ExternalEmitHelpers[ExternalEmitHelpers["Param"] = 32] = "Param";
+        ExternalEmitHelpers[ExternalEmitHelpers["Awaiter"] = 64] = "Awaiter";
+        ExternalEmitHelpers[ExternalEmitHelpers["Generator"] = 128] = 
"Generator";
+        ExternalEmitHelpers[ExternalEmitHelpers["FirstEmitHelper"] = 1] = 
"FirstEmitHelper";
+        ExternalEmitHelpers[ExternalEmitHelpers["LastEmitHelper"] = 128] = 
"LastEmitHelper";
+    })(ExternalEmitHelpers = ts.ExternalEmitHelpers || (ts.ExternalEmitHelpers 
= {}));
     /* @internal */
     var EmitContext;
     (function (EmitContext) {
@@ -1174,7 +1186,7 @@ var ts;
 var ts;
 (function (ts) {
     /** The version of the TypeScript compiler release */
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 /* @internal */
 (function (ts) {
@@ -2025,25 +2037,6 @@ var ts;
     }
     ts.reduceProperties = reduceProperties;
     /**
-     * Reduce the properties defined on a map-like (but not from its prototype 
chain).
-     *
-     * NOTE: This is intended for use with MapLike<T> objects. For Map<T> 
objects, use
-     *       reduceProperties instead as it offers better performance.
-     *
-     * @param map The map-like to reduce
-     * @param callback An aggregation function that is called for each entry 
in the map
-     * @param initial The initial value for the reduction.
-     */
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
-    /**
      * Performs a shallow equality comparison of the contents of two map-likes.
      *
      * @param left A map-like whose properties should be compared.
@@ -2329,7 +2322,7 @@ var ts;
             return 1 /* GreaterThan */;
         if (ignoreCase) {
             if (ts.collator && String.prototype.localeCompare) {
-                // accent means a ≠ b, a ≠ á, a = A
+                // accent means a ? b, a ? a´, a = A
                 var result = a.localeCompare(b, /*locales*/ undefined, { 
usage: "sort", sensitivity: "accent" });
                 return result < 0 ? -1 /* LessThan */ : result > 0 ? 1 /* 
GreaterThan */ : 0 /* EqualTo */;
             }
@@ -3010,8 +3003,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3 /* TS */) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -3022,11 +3026,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -3684,7 +3688,10 @@ var ts;
                     // Node 4.0 `fs.watch` function supports the "recursive" 
option on both OSX and Windows
                     // (ref: https://github.com/nodejs/node/pull/2649 and 
https://github.com/Microsoft/TypeScript/issues/4643)
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
+                        // do nothing if either 
+                        // - target folder does not exist
+                        // - this is UNC path on Windows 
(https://github.com/Microsoft/TypeScript/issues/13874)
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -3703,6 +3710,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 /* slash 
*/ && s.charCodeAt(1) === 47 /* slash */;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -3910,7 +3920,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -4066,6 +4076,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -4109,6 +4120,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -4119,6 +4131,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -4425,6 +4438,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -4466,7 +4481,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -4519,6 +4534,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -4584,6 +4600,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -4639,6 +4656,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -4655,6 +4673,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 /// <reference path="core.ts"/>
@@ -6413,6 +6432,7 @@ var ts;
                 writeSpace: writeText,
                 writeStringLiteral: writeText,
                 writeParameter: writeText,
+                writeProperty: writeText,
                 writeSymbol: writeText,
                 // Completely ignore indentation for string writers.  And map 
newlines to
                 // a single space.
@@ -6491,24 +6511,24 @@ var ts;
     // Returns true if this node contains a parse error anywhere underneath it.
     function containsParseError(node) {
         aggregateChildData(node);
-        return (node.flags & 4194304 /* ThisNodeOrAnySubNodesHasError */) !== 
0;
+        return (node.flags & 131072 /* ThisNodeOrAnySubNodesHasError */) !== 0;
     }
     ts.containsParseError = containsParseError;
     function aggregateChildData(node) {
-        if (!(node.flags & 8388608 /* HasAggregatedChildData */)) {
+        if (!(node.flags & 262144 /* HasAggregatedChildData */)) {
             // A node is considered to contain a parse error if:
             //  a) the parser explicitly marked that it had an error
             //  b) any of it's children reported that it had an error.
-            var thisNodeOrAnySubNodesHasError = ((node.flags & 1048576 /* 
ThisNodeHasError */) !== 0) ||
+            var thisNodeOrAnySubNodesHasError = ((node.flags & 32768 /* 
ThisNodeHasError */) !== 0) ||
                 ts.forEachChild(node, containsParseError);
             // If so, mark ourselves accordingly.
             if (thisNodeOrAnySubNodesHasError) {
-                node.flags |= 4194304 /* ThisNodeOrAnySubNodesHasError */;
+                node.flags |= 131072 /* ThisNodeOrAnySubNodesHasError */;
             }
             // Also mark that we've propagated the child information to this 
node.  This way we can
             // always consult the bit directly on this node without needing to 
check its children
             // again.
-            node.flags |= 8388608 /* HasAggregatedChildData */;
+            node.flags |= 262144 /* HasAggregatedChildData */;
         }
     }
     function getSourceFileOfNode(node) {
@@ -6773,6 +6793,10 @@ var ts;
         return false;
     }
     ts.isExternalModuleAugmentation = isExternalModuleAugmentation;
+    function isEffectiveExternalModule(node, compilerOptions) {
+        return ts.isExternalModule(node) || compilerOptions.isolatedModules;
+    }
+    ts.isEffectiveExternalModule = isEffectiveExternalModule;
     function isBlockScope(node, parentNode) {
         switch (node.kind) {
             case 261 /* SourceFile */:
@@ -7065,6 +7089,20 @@ var ts;
         return false;
     }
     ts.isPartOfTypeNode = isPartOfTypeNode;
+    function isChildOfLiteralType(node) {
+        while (node) {
+            if (node.kind === 171 /* LiteralType */) {
+                return true;
+            }
+            node = node.parent;
+        }
+        return false;
+    }
+    ts.isChildOfLiteralType = isChildOfLiteralType;
+    function isPrefixUnaryExpression(node) {
+        return node.kind === 190 /* PrefixUnaryExpression */;
+    }
+    ts.isPrefixUnaryExpression = isPrefixUnaryExpression;
     // Warning: This has the same semantics as the forEach family of functions,
     //          in that traversal terminates in the event that 'visitor' 
supplies a truthy value.
     function forEachReturnStatement(body, visitor) {
@@ -7132,6 +7170,24 @@ var ts;
         }
     }
     ts.forEachYieldExpression = forEachYieldExpression;
+    /**
+     * Gets the most likely element type for a TypeNode. This is not an 
exhaustive test
+     * as it assumes a rest argument can only be an array type (either T[], or 
Array<T>).
+     *
+     * @param node The type node.
+     */
+    function getRestParameterElementType(node) {
+        if (node && node.kind === 162 /* ArrayType */) {
+            return node.elementType;
+        }
+        else if (node && node.kind === 157 /* TypeReference */) {
+            return ts.singleOrUndefined(node.typeArguments);
+        }
+        else {
+            return undefined;
+        }
+    }
+    ts.getRestParameterElementType = getRestParameterElementType;
     function isVariableLike(node) {
         if (node) {
             switch (node.kind) {
@@ -7600,7 +7656,7 @@ var ts;
     }
     ts.isSourceFileJavaScript = isSourceFileJavaScript;
     function isInJavaScriptFile(node) {
-        return node && !!(node.flags & 2097152 /* JavaScriptFile */);
+        return node && !!(node.flags & 65536 /* JavaScriptFile */);
     }
     ts.isInJavaScriptFile = isInJavaScriptFile;
     /**
@@ -7809,6 +7865,7 @@ var ts;
             cache = ts.concatenate(cache, node.jsDoc);
         }
     }
+    ts.getJSDocs = getJSDocs;
     function getJSDocParameterTags(param) {
         if (!isParameter(param)) {
             return undefined;
@@ -7866,7 +7923,7 @@ var ts;
     }
     ts.hasDeclaredRestParameter = hasDeclaredRestParameter;
     function isRestParameter(node) {
-        if (node && (node.flags & 2097152 /* JavaScriptFile */)) {
+        if (node && (node.flags & 65536 /* JavaScriptFile */)) {
             if (node.type && node.type.kind === 275 /* JSDocVariadicType */ ||
                 ts.forEach(getJSDocParameterTags(node), function (t) { return 
t.typeExpression && t.typeExpression.type.kind === 275 /* JSDocVariadicType */; 
})) {
                 return true;
@@ -8360,7 +8417,6 @@ var ts;
             case 194 /* TemplateExpression */:
             case 183 /* ParenthesizedExpression */:
             case 198 /* OmittedExpression */:
-            case 297 /* RawExpression */:
                 return 19;
             case 181 /* TaggedTemplateExpression */:
             case 177 /* PropertyAccessExpression */:
@@ -8544,13 +8600,12 @@ var ts;
      * Note that this doesn't actually wrap the input in double quotes.
      */
     function escapeString(s) {
-        s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, 
getReplacement) : s;
-        return s;
-        function getReplacement(c) {
-            return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
-        }
+        return s.replace(escapedCharsRegExp, getReplacement);
     }
     ts.escapeString = escapeString;
+    function getReplacement(c) {
+        return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
+    }
     function isIntrinsicJsxName(name) {
         var ch = name.substr(0, 1);
         return ch.toLowerCase() === ch;
@@ -9333,47 +9388,6 @@ var ts;
         }
         return output;
     }
-    /**
-     * Serialize an object graph into a JSON string. This is intended only for 
use on an acyclic graph
-     * as the fallback implementation does not check for circular references 
by default.
-     */
-    ts.stringify = typeof JSON !== "undefined" && JSON.stringify
-        ? JSON.stringify
-        : stringifyFallback;
-    /**
-     * Serialize an object graph into a JSON string.
-     */
-    function stringifyFallback(value) {
-        // JSON.stringify returns `undefined` here, instead of the string 
"undefined".
-        return value === undefined ? undefined : stringifyValue(value);
-    }
-    function stringifyValue(value) {
-        return typeof value === "string" ? "\"" + escapeString(value) + "\""
-            : typeof value === "number" ? isFinite(value) ? String(value) : 
"null"
-                : typeof value === "boolean" ? value ? "true" : "false"
-                    : typeof value === "object" && value ? ts.isArray(value) ? 
cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value)
-                        : "null";
-    }
-    function cycleCheck(cb, value) {
-        ts.Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular 
structure to JSON");
-        value.__cycle = true;
-        var result = cb(value);
-        delete value.__cycle;
-        return result;
-    }
-    function stringifyArray(value) {
-        return "[" + ts.reduceLeft(value, stringifyElement, "") + "]";
-    }
-    function stringifyElement(memo, value) {
-        return (memo ? memo + "," : memo) + stringifyValue(value);
-    }
-    function stringifyObject(value) {
-        return "{" + ts.reduceOwnProperties(value, stringifyProperty, "") + 
"}";
-    }
-    function stringifyProperty(memo, value, key) {
-        return value === undefined || typeof value === "function" || key === 
"__cycle" ? memo
-            : (memo ? memo + "," : memo) + ("\"" + escapeString(key) + "\":" + 
stringifyValue(value));
-    }
     var base64Digits = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
     /**
      * Converts a string to a base-64 encoded ASCII string.
@@ -9732,6 +9746,10 @@ var ts;
         return node.kind === 70 /* Identifier */;
     }
     ts.isIdentifier = isIdentifier;
+    function isVoidExpression(node) {
+        return node.kind === 188 /* VoidExpression */;
+    }
+    ts.isVoidExpression = isVoidExpression;
     function isGeneratedIdentifier(node) {
         // Using `>` here catches both `GeneratedIdentifierKind.None` and 
`undefined`.
         return isIdentifier(node) && node.autoGenerateKind > 0 /* None */;
@@ -9985,8 +10003,7 @@ var ts;
             || kind === 98 /* ThisKeyword */
             || kind === 100 /* TrueKeyword */
             || kind === 96 /* SuperKeyword */
-            || kind === 201 /* NonNullExpression */
-            || kind === 297 /* RawExpression */;
+            || kind === 201 /* NonNullExpression */;
     }
     function isLeftHandSideExpression(node) {
         return 
isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
@@ -10014,7 +10031,6 @@ var ts;
             || kind === 196 /* SpreadElement */
             || kind === 200 /* AsExpression */
             || kind === 198 /* OmittedExpression */
-            || kind === 297 /* RawExpression */
             || isUnaryExpressionKind(kind);
     }
     function isExpression(node) {
@@ -12145,19 +12161,6 @@ var ts;
         return node;
     }
     ts.updatePartiallyEmittedExpression = updatePartiallyEmittedExpression;
-    /**
-     * Creates a node that emits a string of raw text in an expression 
position. Raw text is never
-     * transformed, should be ES3 compliant, and should have the same 
precedence as
-     * PrimaryExpression.
-     *
-     * @param text The raw text of the node.
-     */
-    function createRawExpression(text) {
-        var node = createNode(297 /* RawExpression */);
-        node.text = text;
-        return node;
-    }
-    ts.createRawExpression = createRawExpression;
     // Compound nodes
     function createComma(left, right) {
         return createBinary(left, 25 /* CommaToken */, right);
@@ -14334,7 +14337,7 @@ var ts;
         // Share a single scanner across all calls to parse a source file.  
This helps speed things
         // up by avoiding the cost of creating/compiling scanners over and 
over again.
         var scanner = ts.createScanner(5 /* Latest */, /*skipTrivia*/ true);
-        var disallowInAndDecoratorContext = 65536 /* DisallowInContext */ | 
262144 /* DecoratorContext */;
+        var disallowInAndDecoratorContext = 2048 /* DisallowInContext */ | 
8192 /* DecoratorContext */;
         // capture constructors in 'initializeState' to avoid null checks
         var NodeConstructor;
         var TokenConstructor;
@@ -14458,7 +14461,7 @@ var ts;
             identifiers = ts.createMap();
             identifierCount = 0;
             nodeCount = 0;
-            contextFlags = scriptKind === 1 /* JS */ || scriptKind === 2 /* 
JSX */ ? 2097152 /* JavaScriptFile */ : 0 /* None */;
+            contextFlags = scriptKind === 1 /* JS */ || scriptKind === 2 /* 
JSX */ ? 65536 /* JavaScriptFile */ : 0 /* None */;
             parseErrorBeforeNextFinishedNode = false;
             // Initialize and prime the scanner before parsing the source 
elements.
             scanner.setText(sourceText);
@@ -14566,16 +14569,16 @@ var ts;
             }
         }
         function setDisallowInContext(val) {
-            setContextFlag(val, 65536 /* DisallowInContext */);
+            setContextFlag(val, 2048 /* DisallowInContext */);
         }
         function setYieldContext(val) {
-            setContextFlag(val, 131072 /* YieldContext */);
+            setContextFlag(val, 4096 /* YieldContext */);
         }
         function setDecoratorContext(val) {
-            setContextFlag(val, 262144 /* DecoratorContext */);
+            setContextFlag(val, 8192 /* DecoratorContext */);
         }
         function setAwaitContext(val) {
-            setContextFlag(val, 524288 /* AwaitContext */);
+            setContextFlag(val, 16384 /* AwaitContext */);
         }
         function doOutsideOfContext(context, func) {
             // contextFlagsToClear will contain only the context flags that are
@@ -14616,40 +14619,40 @@ var ts;
             return func();
         }
         function allowInAnd(func) {
-            return doOutsideOfContext(65536 /* DisallowInContext */, func);
+            return doOutsideOfContext(2048 /* DisallowInContext */, func);
         }
         function disallowInAnd(func) {
-            return doInsideOfContext(65536 /* DisallowInContext */, func);
+            return doInsideOfContext(2048 /* DisallowInContext */, func);
         }
         function doInYieldContext(func) {
-            return doInsideOfContext(131072 /* YieldContext */, func);
+            return doInsideOfContext(4096 /* YieldContext */, func);
         }
         function doInDecoratorContext(func) {
-            return doInsideOfContext(262144 /* DecoratorContext */, func);
+            return doInsideOfContext(8192 /* DecoratorContext */, func);
         }
         function doInAwaitContext(func) {
-            return doInsideOfContext(524288 /* AwaitContext */, func);
+            return doInsideOfContext(16384 /* AwaitContext */, func);
         }
         function doOutsideOfAwaitContext(func) {
-            return doOutsideOfContext(524288 /* AwaitContext */, func);
+            return doOutsideOfContext(16384 /* AwaitContext */, func);
         }
         function doInYieldAndAwaitContext(func) {
-            return doInsideOfContext(131072 /* YieldContext */ | 524288 /* 
AwaitContext */, func);
+            return doInsideOfContext(4096 /* YieldContext */ | 16384 /* 
AwaitContext */, func);
         }
         function inContext(flags) {
             return (contextFlags & flags) !== 0;
         }
         function inYieldContext() {
-            return inContext(131072 /* YieldContext */);
+            return inContext(4096 /* YieldContext */);
         }
         function inDisallowInContext() {
-            return inContext(65536 /* DisallowInContext */);
+            return inContext(2048 /* DisallowInContext */);
         }
         function inDecoratorContext() {
-            return inContext(262144 /* DecoratorContext */);
+            return inContext(8192 /* DecoratorContext */);
         }
         function inAwaitContext() {
-            return inContext(524288 /* AwaitContext */);
+            return inContext(16384 /* AwaitContext */);
         }
         function parseErrorAtCurrentToken(message, arg0) {
             var start = scanner.getTokenPos();
@@ -14853,7 +14856,7 @@ var ts;
             // flag so that we don't mark any subsequent nodes.
             if (parseErrorBeforeNextFinishedNode) {
                 parseErrorBeforeNextFinishedNode = false;
-                node.flags |= 1048576 /* ThisNodeHasError */;
+                node.flags |= 32768 /* ThisNodeHasError */;
             }
             return node;
         }
@@ -15247,7 +15250,7 @@ var ts;
             // differently depending on what mode it is in.
             //
             // This also applies to all our other context flags as well.
-            var nodeContextFlags = node.flags & 3080192 /* ContextFlags */;
+            var nodeContextFlags = node.flags & 96256 /* ContextFlags */;
             if (nodeContextFlags !== contextFlags) {
                 return undefined;
             }
@@ -16102,6 +16105,8 @@ var ts;
                 case 16 /* OpenBraceToken */:
                 case 20 /* OpenBracketToken */:
                 case 26 /* LessThanToken */:
+                case 48 /* BarToken */:
+                case 47 /* AmpersandToken */:
                 case 93 /* NewKeyword */:
                 case 9 /* StringLiteral */:
                 case 8 /* NumericLiteral */:
@@ -16156,6 +16161,7 @@ var ts;
             return parseArrayTypeOrHigher();
         }
         function parseUnionOrIntersectionType(kind, parseConstituentType, 
operator) {
+            parseOptional(operator);
             var type = parseConstituentType();
             if (token() === operator) {
                 var types = createNodeArray([type], type.pos);
@@ -16249,7 +16255,7 @@ var ts;
         function parseType() {
             // The rules about 'yield' only apply to actual code/expression 
contexts.  They don't
             // apply to 'type' contexts.  So we disable these parameters here 
before moving on.
-            return doOutsideOfContext(655360 /* TypeExcludesFlags */, 
parseTypeWorker);
+            return doOutsideOfContext(20480 /* TypeExcludesFlags */, 
parseTypeWorker);
         }
         function parseTypeWorker() {
             if (isStartOfFunctionType()) {
@@ -18359,7 +18365,7 @@ var ts;
             // The checker may still error in the static case to explicitly 
disallow the yield expression.
             property.initializer = ts.hasModifier(property, 32 /* Static */)
                 ? allowInAnd(parseNonParameterInitializer)
-                : doOutsideOfContext(131072 /* YieldContext */ | 65536 /* 
DisallowInContext */, parseNonParameterInitializer);
+                : doOutsideOfContext(4096 /* YieldContext */ | 2048 /* 
DisallowInContext */, parseNonParameterInitializer);
             parseSemicolon();
             return addJSDocComment(finishNode(property));
         }
@@ -19437,7 +19443,7 @@ var ts;
                                 break;
                             case 38 /* AsteriskToken */:
                                 var asterisk = scanner.getTokenText();
-                                if (state === 1 /* SawAsterisk */) {
+                                if (state === 1 /* SawAsterisk */ || state === 
2 /* SavingComments */) {
                                     // If we've already seen an asterisk, then 
we can no longer parse a tag on this line
                                     state = 2 /* SavingComments */;
                                     pushComment(asterisk);
@@ -19458,7 +19464,10 @@ var ts;
                             case 5 /* WhitespaceTrivia */:
                                 // only collect whitespace if we're already 
saving comments or have just crossed the comment indent margin
                                 var whitespace = scanner.getTokenText();
-                                if (state === 2 /* SavingComments */ || margin 
!== undefined && indent + whitespace.length > margin) {
+                                if (state === 2 /* SavingComments */) {
+                                    comments.push(whitespace);
+                                }
+                                else if (margin !== undefined && indent + 
whitespace.length > margin) {
                                     comments.push(whitespace.slice(margin - 
indent - 1));
                                 }
                                 indent += whitespace.length;
@@ -19466,6 +19475,8 @@ var ts;
                             case 1 /* EndOfFileToken */:
                                 break;
                             default:
+                                // anything other than whitespace or asterisk 
at the beginning of the line starts the comment text
+                                state = 2 /* SavingComments */;
                                 pushComment(scanner.getTokenText());
                                 break;
                         }
@@ -19556,7 +19567,7 @@ var ts;
                 }
                 function parseTagComments(indent) {
                     var comments = [];
-                    var state = 1 /* SawAsterisk */;
+                    var state = 0 /* BeginningOfLine */;
                     var margin;
                     function pushComment(text) {
                         if (!margin) {
@@ -20840,8 +20851,7 @@ var ts;
                 hasExplicitReturn = false;
                 bindChildren(node);
                 // Reset all reachability check related flags on node (for 
incremental scenarios)
-                // Reset all emit helper flags on node (for incremental 
scenarios)
-                node.flags &= ~64896 /* ReachabilityAndEmitFlags */;
+                node.flags &= ~1408 /* ReachabilityAndEmitFlags */;
                 if (!(currentFlow.flags & 1 /* Unreachable */) && 
containerFlags & 8 /* IsFunctionLike */ && ts.nodeIsPresent(node.body)) {
                     node.flags |= 128 /* HasImplicitReturn */;
                     if (hasExplicitReturn)
@@ -22154,9 +22164,6 @@ var ts;
                     return bindParameter(node);
                 case 223 /* VariableDeclaration */:
                 case 174 /* BindingElement */:
-                    if (node.dotDotDotToken && node.parent.kind === 172 /* 
ObjectBindingPattern */) {
-                        emitFlags |= 32768 /* HasRestAttribute */;
-                    }
                     return bindVariableDeclarationOrBindingElement(node);
                 case 147 /* PropertyDeclaration */:
                 case 146 /* PropertySignature */:
@@ -22183,7 +22190,6 @@ var ts;
                         }
                         root = root.parent;
                     }
-                    emitFlags |= hasRest ? 32768 /* HasRestAttribute */ : 
16384 /* HasSpreadAttribute */;
                     return;
                 case 153 /* CallSignature */:
                 case 154 /* ConstructSignature */:
@@ -22409,14 +22415,6 @@ var ts;
             }
         }
         function bindClassLikeDeclaration(node) {
-            if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
-                if (ts.getClassExtendsHeritageClauseElement(node) !== 
undefined) {
-                    emitFlags |= 1024 /* HasClassExtends */;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048 /* HasDecorators */;
-                }
-            }
             if (node.kind === 226 /* ClassDeclaration */) {
                 bindBlockScopedDeclaration(node, 32 /* Class */, 899519 /* 
ClassExcludes */);
             }
@@ -22479,11 +22477,6 @@ var ts;
             }
         }
         function bindParameter(node) {
-            if (!ts.isDeclarationFile(file) &&
-                !ts.isInAmbientContext(node) &&
-                ts.nodeIsDecorated(node)) {
-                emitFlags |= (2048 /* HasDecorators */ | 4096 /* 
HasParamDecorators */);
-            }
             if (inStrictMode) {
                 // It is a SyntaxError if the identifier eval or arguments 
appears within a FormalParameterList of a
                 // strict mode FunctionLikeDeclaration or 
FunctionExpression(13.1)
@@ -22505,7 +22498,7 @@ var ts;
         function bindFunctionDeclaration(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             checkStrictModeFunctionName(node);
@@ -22520,7 +22513,7 @@ var ts;
         function bindFunctionExpression(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             if (currentFlow) {
@@ -22533,10 +22526,7 @@ var ts;
         function bindPropertyOrMethodOrAccessor(node, symbolFlags, 
symbolExcludes) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048 /* HasDecorators */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             if (currentFlow && 
ts.isObjectLiteralOrClassExpressionMethod(node)) {
@@ -23406,10 +23396,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    /** Create Resolved from a file with unknown extension. */
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     /** Adds `isExernalLibraryImport` to a Resolved to get a ResolvedModule. */
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
@@ -23422,20 +23408,15 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    /** Reads from "main" or "types"/"typings" depending on `extensions`. */
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2 /* DtsOnly */:
             case 0 /* TypeScript */:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1 /* JavaScript */:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -23495,6 +23476,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -23572,7 +23554,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2 /* DtsOnly */, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState));
+                var result = loadModuleFromNodeModules(2 /* DtsOnly */, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, /*cache*/ undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -23625,31 +23608,134 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            /**
+             * At first this function add entry directory -> module resolution 
result to the table.
+             * Then it computes the set of parent folders for 'directory' that 
should have the same module resolution result
+             * and for every parent folder in set it adds entry: parent -> 
module resolution. .
+             * Lets say we first directory name: /a/b/c/d/e and resolution 
result is: /a/b/bar.ts.
+             * Set of parent folders that should have the same result will be:
+             * [
+             *     /a/b/c/d, /a/b/c, /a/b
+             * ]
+             * this means that request for module resolution from file in any 
of these folder will be immediately found in cache.
+             */
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                // if entry is already in cache do nothing
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                // find common prefix between directory and resolved file name
+                // this common prefix should be the shorted path that has the 
same resolution
+                // directory: /a/b/c/d/e
+                // resolvedFileName: /a/b/foo.d.ts
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_5 = ts.getDirectoryPath(current);
+                    if (parent_5 === current || 
directoryPathMap.contains(parent_5)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_5, result);
+                    current = parent_5;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                // find first position where directory and resolution differs
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                // find last directory separator before position i
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                // put result in per-module name cache
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -23842,34 +23928,34 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0 /* TypeScript */) || tryResolve(1 /* 
JavaScript */);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
                 // For node_modules lookups, get the real path so that 
multiple accesses to an `npm link`-ed module do not create duplicate files.
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, /*onlyRecordFailures*/ false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -23963,18 +24049,32 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
                 // A package.json "typings" may specify an exact filename, or 
may choose to omit an extension.
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    // Note: this would allow a package.json to specify a 
".js" file as typings. Maybe that should be forbidden.
-                    return resolvedFromAnyFile(fromFile);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
+                }
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0 /* 
TypeScript */, failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
                 }
-                var x = tryAddingExtensions(typesFile, 0 /* TypeScript */, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                if (extensions === 1 /* JavaScript */) {
+                    // A package.json "main" may specify an exact filename, or 
may choose to omit an extension.
+                    // We tried the ts extensions erlier, now try the js 
extensions.
+                    // tryReadPackageJsonMainOrTypes returns main  iff 
extensions is Extensions.JavaScript.
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1 /* 
JavaScript */, failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -23992,6 +24092,22 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    /** Resolve from an arbitrarily specified file. Return `undefined` if it 
has an unsupported extension. */
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    /** True if `extension` is one of the supported `extensions`. */
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1 /* JavaScript */:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0 /* TypeScript */:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2 /* DtsOnly */:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -24002,17 +24118,22 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
         // Extensions parameter here doesn't actually matter, because 
typesOnly ensures we're just doing @types lookup, which is always DtsOnly.
-        return loadModuleFromNodeModulesWorker(2 /* DtsOnly */, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ true);
+        return loadModuleFromNodeModulesWorker(2 /* DtsOnly */, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ true, /*cache*/ 
undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -24027,26 +24148,40 @@ var ts;
             return loadModuleFromNodeModulesFolder(2 /* DtsOnly */, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* 
JavaScript */);
-        return createResolvedModuleWithFailedLookupLocations(resolved, 
/*isExternalLibraryImport*/ false, failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, /*isExternalLibraryImport*/ false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
                 // Climb up parent directories looking for a module.
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, /*onlyRecordFailures*/ false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, /*onlyRecordFailures*/ false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0 /* TypeScript */) {
                     // If we didn't find the file normally, look it up in 
@types.
@@ -24055,7 +24190,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, /*onlyRecordFailures*/ false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, /*onlyRecordFailures*/ false, state));
             }
         }
     }
@@ -24076,6 +24211,13 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, 
/*isExternalLibraryImport*/ true, failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    /**
+     * Wraps value to SearchResult.
+     * @returns undefined if value is undefined or { value } otherwise
+     */
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     /** Calls `callback` on `directory` and every ancestor directory it has, 
returning the first defined result. */
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
@@ -24128,6 +24270,8 @@ var ts;
         // is because diagnostics can be quite expensive, and we want to allow 
hosts to bail out if
         // they no longer need the information (for example, if the user 
started editing again).
         var cancellationToken;
+        var requestedExternalEmitHelpers;
+        var externalHelpersModule;
         var Symbol = ts.objectAllocator.getSymbolConstructor();
         var Type = ts.objectAllocator.getTypeConstructor();
         var Signature = ts.objectAllocator.getSignatureConstructor();
@@ -24523,9 +24667,7 @@ var ts;
                     // other kinds of value declarations take precedence over 
modules
                     target.valueDeclaration = source.valueDeclaration;
                 }
-                ts.forEach(source.declarations, function (node) {
-                    target.declarations.push(node);
-                });
+                ts.addRange(target.declarations, source.declarations);
                 if (source.members) {
                     if (!target.members)
                         target.members = ts.createMap();
@@ -24682,9 +24824,21 @@ var ts;
             }
             if (declaration.pos <= usage.pos) {
                 // declaration is before usage
-                // still might be illegal if usage is in the initializer of 
the variable declaration
-                return declaration.kind !== 223 /* VariableDeclaration */ ||
-                    
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                if (declaration.kind === 174 /* BindingElement */) {
+                    // still might be illegal if declaration and usage are 
both binding elements (eg var [a = b, b = b] = [1, 2])
+                    var errorBindingElement = ts.getAncestor(usage, 174 /* 
BindingElement */);
+                    if (errorBindingElement) {
+                        return getAncestorBindingPattern(errorBindingElement) 
!== getAncestorBindingPattern(declaration) ||
+                            declaration.pos < errorBindingElement.pos;
+                    }
+                    // or it might be illegal if usage happens before parent 
variable is declared (eg var [a] = a)
+                    return 
isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223 /* 
VariableDeclaration */), usage);
+                }
+                else if (declaration.kind === 223 /* VariableDeclaration */) {
+                    // still might be illegal if usage is in the initializer 
of the variable declaration (eg var a = a)
+                    return 
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                }
+                return true;
             }
             // declaration is after usage
             // can be legal if usage is deferred (i.e. inside function or in 
initializer of instance property)
@@ -24733,6 +24887,15 @@ var ts;
                 }
                 return false;
             }
+            function getAncestorBindingPattern(node) {
+                while (node) {
+                    if (ts.isBindingPattern(node)) {
+                        return node;
+                    }
+                    node = node.parent;
+                }
+                return undefined;
+            }
         }
         // Resolve a given name for a given meaning at a given location. An 
error is reported if the name was not found and
         // the nameNotFoundMessage argument is not undefined. Returns the 
resolved symbol, or undefined if no symbol with
@@ -25068,7 +25231,7 @@ var ts;
             // Block-scoped variables cannot be used before their definition
             var declaration = ts.forEach(result.declarations, function (d) { 
return ts.isBlockOrCatchScoped(d) ? d : undefined; });
             ts.Debug.assert(declaration !== undefined, "Block-scoped variable 
declaration is undefined");
-            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223 /* 
VariableDeclaration */), errorLocation)) {
+            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
                 error(errorLocation, 
ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, 
ts.declarationNameToString(declaration.name));
             }
         }
@@ -25099,7 +25262,7 @@ var ts;
             }
         }
         function getDeclarationOfAliasSymbol(symbol) {
-            return ts.forEach(symbol.declarations, function (d) { return 
ts.isAliasSymbolDeclaration(d) ? d : undefined; });
+            return ts.find(symbol.declarations, ts.isAliasSymbolDeclaration);
         }
         function getTargetOfImportEqualsDeclaration(node) {
             if (node.moduleReference.kind === 245 /* ExternalModuleReference 
*/) {
@@ -25409,9 +25572,8 @@ var ts;
             // May be an untyped module. If so, ignore resolutionDiagnostic.
             if (!isRelative && resolvedModule && 
!ts.extensionIsTypeScript(resolvedModule.extension)) {
                 if (isForAugmentation) {
-                    ts.Debug.assert(!!moduleNotFoundError);
                     var diag = 
ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
-                    error(errorNode, diag, moduleName, 
resolvedModule.resolvedFileName);
+                    error(errorNode, diag, moduleReference, 
resolvedModule.resolvedFileName);
                 }
                 else if (compilerOptions.noImplicitAny && moduleNotFoundError) 
{
                     error(errorNode, 
ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
 moduleReference, resolvedModule.resolvedFileName);
@@ -25666,6 +25828,16 @@ var ts;
         }
         function getAccessibleSymbolChain(symbol, enclosingDeclaration, 
meaning, useOnlyExternalAliasing) {
             function getAccessibleSymbolChainFromSymbolTable(symbols) {
+                return getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
[]);
+            }
+            function getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
visitedSymbolTables) {
+                if (ts.contains(visitedSymbolTables, symbols)) {
+                    return undefined;
+                }
+                visitedSymbolTables.push(symbols);
+                var result = trySymbolTable(symbols);
+                visitedSymbolTables.pop();
+                return result;
                 function canQualifySymbol(symbolFromSymbolTable, meaning) {
                     // If the symbol is equivalent and doesn't need further 
qualification, this symbol is accessible
                     if (!needsQualification(symbolFromSymbolTable, 
enclosingDeclaration, meaning)) {
@@ -25684,31 +25856,33 @@ var ts;
                             canQualifySymbol(symbolFromSymbolTable, meaning);
                     }
                 }
-                // If symbol is directly available by its name in the symbol 
table
-                if (isAccessible(symbols[symbol.name])) {
-                    return [symbol];
-                }
-                // Check if symbol is any of the alias
-                return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
-                    if (symbolFromSymbolTable.flags & 8388608 /* Alias */
-                        && symbolFromSymbolTable.name !== "export="
-                        && !ts.getDeclarationOfKind(symbolFromSymbolTable, 243 
/* ExportSpecifier */)) {
-                        if (!useOnlyExternalAliasing ||
-                            // Is this external alias, then use it to name
-                            ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
-                            var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
-                            if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
-                                return [symbolFromSymbolTable];
-                            }
-                            // Look in the exported members, if we can find 
accessibleSymbolChain, symbol is accessible using this chain
-                            // but only if the symbolFromSymbolTable can be 
qualified
-                            var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : 
undefined;
-                            if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
-                                return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                function trySymbolTable(symbols) {
+                    // If symbol is directly available by its name in the 
symbol table
+                    if (isAccessible(symbols[symbol.name])) {
+                        return [symbol];
+                    }
+                    // Check if symbol is any of the alias
+                    return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
+                        if (symbolFromSymbolTable.flags & 8388608 /* Alias */
+                            && symbolFromSymbolTable.name !== "export="
+                            && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243 /* ExportSpecifier */)) {
+                            if (!useOnlyExternalAliasing ||
+                                // Is this external alias, then use it to name
+                                ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
+                                var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
+                                if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
+                                    return [symbolFromSymbolTable];
+                                }
+                                // Look in the exported members, if we can 
find accessibleSymbolChain, symbol is accessible using this chain
+                                // but only if the symbolFromSymbolTable can 
be qualified
+                                var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTableWorker(resolvedImportedSymbol.exports, 
visitedSymbolTables) : undefined;
+                                if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
+                                    return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                                }
                             }
                         }
-                    }
-                });
+                    });
+                }
             }
             if (symbol) {
                 if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
@@ -26075,9 +26249,9 @@ var ts;
                     if (!accessibleSymbolChain ||
                         needsQualification(accessibleSymbolChain[0], 
enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : 
getQualifiedLeftMeaning(meaning))) {
                         // Go up and add our parent.
-                        var parent_5 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
-                        if (parent_5) {
-                            walkSymbol(parent_5, 
getQualifiedLeftMeaning(meaning), /*endOfChain*/ false);
+                        var parent_6 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
+                        if (parent_6) {
+                            walkSymbol(parent_6, 
getQualifiedLeftMeaning(meaning), /*endOfChain*/ false);
                         }
                     }
                     if (accessibleSymbolChain) {
@@ -26227,14 +26401,14 @@ var ts;
                             while (i < length_1) {
                                 // Find group of type arguments for type 
parameters with the same declaring container.
                                 var start = i;
-                                var parent_6 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
+                                var parent_7 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
                                 do {
                                     i++;
-                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_6);
+                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_7);
                                 // When type parameters are their own type 
arguments for the whole group (i.e. we have
                                 // the default outer type arguments), we don't 
show the group.
                                 if (!ts.rangeEquals(outerTypeParameters, 
typeArguments, start, i)) {
-                                    writeSymbolTypeReference(parent_6, 
typeArguments, start, i, flags);
+                                    writeSymbolTypeReference(parent_7, 
typeArguments, start, i, flags);
                                     writePunctuation(writer, 22 /* DotToken 
*/);
                                 }
                             }
@@ -26525,7 +26699,7 @@ var ts;
                 }
                 ts.Debug.assert(bindingElement.kind === 174 /* BindingElement 
*/);
                 if (bindingElement.propertyName) {
-                    
writer.writeSymbol(ts.getTextOfNode(bindingElement.propertyName), 
bindingElement.symbol);
+                    
writer.writeProperty(ts.getTextOfNode(bindingElement.propertyName));
                     writePunctuation(writer, 55 /* ColonToken */);
                     writeSpace(writer);
                 }
@@ -26673,14 +26847,14 @@ var ts;
                         if (ts.isExternalModuleAugmentation(node)) {
                             return true;
                         }
-                        var parent_7 = getDeclarationContainer(node);
+                        var parent_8 = getDeclarationContainer(node);
                         // If the node is not exported or it is not ambient 
module element (except import declaration)
                         if (!(ts.getCombinedModifierFlags(node) & 1 /* Export 
*/) &&
-                            !(node.kind !== 234 /* ImportEqualsDeclaration */ 
&& parent_7.kind !== 261 /* SourceFile */ && ts.isInAmbientContext(parent_7))) {
-                            return isGlobalSourceFile(parent_7);
+                            !(node.kind !== 234 /* ImportEqualsDeclaration */ 
&& parent_8.kind !== 261 /* SourceFile */ && ts.isInAmbientContext(parent_8))) {
+                            return isGlobalSourceFile(parent_8);
                         }
                         // Exported members/ambient module elements (exception 
import declaration) are visible if parent is visible
-                        return isDeclarationVisible(parent_7);
+                        return isDeclarationVisible(parent_8);
                     case 147 /* PropertyDeclaration */:
                     case 146 /* PropertySignature */:
                     case 151 /* GetAccessor */:
@@ -26868,7 +27042,13 @@ var ts;
             return name.kind === 142 /* ComputedPropertyName */ && 
!ts.isStringOrNumericLiteral(name.expression);
         }
         function getRestType(source, properties, symbol) {
-            ts.Debug.assert(!!(source.flags & 32768 /* Object */), "Rest types 
only support object types right now.");
+            source = filterType(source, function (t) { return !(t.flags & 6144 
/* Nullable */); });
+            if (source.flags & 8192 /* Never */) {
+                return emptyObjectType;
+            }
+            if (source.flags & 65536 /* Union */) {
+                return mapType(source, function (t) { return getRestType(t, 
properties, symbol); });
+            }
             var members = ts.createMap();
             var names = ts.createMap();
             for (var _i = 0, properties_2 = properties; _i < 
properties_2.length; _i++) {
@@ -26909,7 +27089,7 @@ var ts;
             var type;
             if (pattern.kind === 172 /* ObjectBindingPattern */) {
                 if (declaration.dotDotDotToken) {
-                    if (!(parentType.flags & 32768 /* Object */)) {
+                    if (!isValidSpreadType(parentType)) {
                         error(declaration, 
ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -26999,7 +27179,7 @@ var ts;
         }
         // Return the inferred type for a variable, parameter, or property 
declaration
         function getTypeForVariableLikeDeclaration(declaration, 
includeOptionality) {
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 // If this is a variable in a JavaScript file, then use the 
JSDoc type (if it has
                 // one as its type), otherwise fallback to the below standard 
TS codepaths to
                 // try to figure it out.
@@ -27028,7 +27208,7 @@ var ts;
             if (declaration.type) {
                 return addOptionality(getTypeFromTypeNode(declaration.type), 
/*optional*/ declaration.questionToken && includeOptionality);
             }
-            if ((compilerOptions.noImplicitAny || declaration.flags & 2097152 
/* JavaScriptFile */) &&
+            if ((compilerOptions.noImplicitAny || declaration.flags & 65536 /* 
JavaScriptFile */) &&
                 declaration.kind === 223 /* VariableDeclaration */ && 
!ts.isBindingPattern(declaration.name) &&
                 !(ts.getCombinedModifierFlags(declaration) & 1 /* Export */) 
&& !ts.isInAmbientContext(declaration)) {
                 // If --noImplicitAny is on or the declaration is in a 
Javascript file,
@@ -27105,14 +27285,19 @@ var ts;
         // Return the type implied by an object binding pattern
         function getTypeFromObjectBindingPattern(pattern, 
includePatternInType, reportErrors) {
             var members = ts.createMap();
+            var stringIndexInfo;
             var hasComputedProperties = false;
             ts.forEach(pattern.elements, function (e) {
                 var name = e.propertyName || e.name;
-                if (isComputedNonLiteralName(name) || e.dotDotDotToken) {
-                    // do not include computed properties or rests in the 
implied type
+                if (isComputedNonLiteralName(name)) {
+                    // do not include computed properties in the implied type
                     hasComputedProperties = true;
                     return;
                 }
+                if (e.dotDotDotToken) {
+                    stringIndexInfo = createIndexInfo(anyType, /*isReadonly*/ 
false);
+                    return;
+                }
                 var text = ts.getTextOfPropertyName(name);
                 var flags = 4 /* Property */ | 67108864 /* Transient */ | 
(e.initializer ? 536870912 /* Optional */ : 0);
                 var symbol = createSymbol(flags, text);
@@ -27120,7 +27305,7 @@ var ts;
                 symbol.bindingElement = e;
                 members[symbol.name] = symbol;
             });
-            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, undefined, undefined);
+            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, stringIndexInfo, undefined);
             if (includePatternInType) {
                 result.pattern = pattern;
             }
@@ -27211,7 +27396,7 @@ var ts;
                 if (declaration.kind === 240 /* ExportAssignment */) {
                     return links.type = 
checkExpression(declaration.expression);
                 }
-                if (declaration.flags & 2097152 /* JavaScriptFile */ && 
declaration.kind === 286 /* JSDocPropertyTag */ && declaration.typeExpression) {
+                if (declaration.flags & 65536 /* JavaScriptFile */ && 
declaration.kind === 286 /* JSDocPropertyTag */ && declaration.typeExpression) {
                     return links.type = 
getTypeFromTypeNode(declaration.typeExpression.type);
                 }
                 // Handle variable, parameter or property
@@ -27227,7 +27412,7 @@ var ts;
                 if (declaration.kind === 192 /* BinaryExpression */ ||
                     declaration.kind === 177 /* PropertyAccessExpression */ && 
declaration.parent.kind === 192 /* BinaryExpression */) {
                     // Use JS Doc type if present on parent expression 
statement
-                    if (declaration.flags & 2097152 /* JavaScriptFile */) {
+                    if (declaration.flags & 65536 /* JavaScriptFile */) {
                         var jsdocType = ts.getJSDocType(declaration.parent);
                         if (jsdocType) {
                             return links.type = getTypeFromTypeNode(jsdocType);
@@ -27242,18 +27427,7 @@ var ts;
                     type = 
getWidenedTypeForVariableLikeDeclaration(declaration, /*reportErrors*/ true);
                 }
                 if (!popTypeResolution()) {
-                    if (symbol.valueDeclaration.type) {
-                        // Variable has type annotation that circularly 
references the variable itself
-                        type = unknownType;
-                        error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
-                    }
-                    else {
-                        // Variable has initializer that circularly references 
the variable itself
-                        type = anyType;
-                        if (compilerOptions.noImplicitAny) {
-                            error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
-                        }
-                    }
+                    type = reportCircularityError(symbol);
                 }
                 links.type = type;
             }
@@ -27283,7 +27457,7 @@ var ts;
             if (!links.type) {
                 var getter = ts.getDeclarationOfKind(symbol, 151 /* 
GetAccessor */);
                 var setter = ts.getDeclarationOfKind(symbol, 152 /* 
SetAccessor */);
-                if (getter && getter.flags & 2097152 /* JavaScriptFile */) {
+                if (getter && getter.flags & 65536 /* JavaScriptFile */) {
                     var jsDocType = 
getTypeForVariableLikeDeclarationFromJSDocComment(getter);
                     if (jsDocType) {
                         return links.type = jsDocType;
@@ -27373,10 +27547,29 @@ var ts;
         function getTypeOfInstantiatedSymbol(symbol) {
             var links = getSymbolLinks(symbol);
             if (!links.type) {
-                links.type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!pushTypeResolution(symbol, 0 /* Type */)) {
+                    return unknownType;
+                }
+                var type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!popTypeResolution()) {
+                    type = reportCircularityError(symbol);
+                }
+                links.type = type;
             }
             return links.type;
         }
+        function reportCircularityError(symbol) {
+            // Check if variable has type annotation that circularly 
references the variable itself
+            if (symbol.valueDeclaration.type) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
+                return unknownType;
+            }
+            // Otherwise variable has initializer that circularly references 
the variable itself
+            if (compilerOptions.noImplicitAny) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
+            }
+            return anyType;
+        }
         function getTypeOfSymbol(symbol) {
             if (symbol.flags & 16777216 /* Instantiated */) {
                 return getTypeOfInstantiatedSymbol(symbol);
@@ -28218,7 +28411,6 @@ var ts;
         function resolveMappedTypeMembers(type) {
             var members = ts.createMap();
             var stringIndexInfo;
-            var numberIndexInfo;
             // Resolve upfront such that recursive references see an empty 
object type.
             setStructuredTypeMembers(type, emptySymbols, emptyArray, 
emptyArray, undefined, undefined);
             // In { [P in K]: T }, we refer to P as the type parameter type, K 
as the constraint type,
@@ -28226,43 +28418,47 @@ var ts;
             var typeParameter = getTypeParameterFromMappedType(type);
             var constraintType = getConstraintTypeFromMappedType(type);
             var templateType = getTemplateTypeFromMappedType(type);
-            var isReadonly = !!type.declaration.readonlyToken;
-            var isOptional = !!type.declaration.questionToken;
-            // First, if the constraint type is a type parameter, obtain the 
base constraint. Then,
-            // if the key type is a 'keyof X', obtain 'keyof C' where C is the 
base constraint of X.
-            // Finally, iterate over the constituents of the resulting 
iteration type.
-            var keyType = constraintType.flags & 16384 /* TypeParameter */ ? 
getApparentType(constraintType) : constraintType;
-            var iterationType = keyType.flags & 262144 /* Index */ ? 
getIndexType(getApparentType(keyType.type)) : keyType;
-            forEachType(iterationType, function (t) {
+            var modifiersType = 
getApparentType(getModifiersTypeFromMappedType(type));
+            var templateReadonly = !!type.declaration.readonlyToken;
+            var templateOptional = !!type.declaration.questionToken;
+            if (type.declaration.typeParameter.constraint.kind === 168 /* 
TypeOperator */) {
+                // We have a { [P in keyof T]: X }
+                forEachType(getLiteralTypeFromPropertyNames(modifiersType), 
addMemberForKeyType);
+                if (getIndexInfoOfType(modifiersType, 0 /* String */)) {
+                    addMemberForKeyType(stringType);
+                }
+            }
+            else {
+                // First, if the constraint type is a type parameter, obtain 
the base constraint. Then,
+                // if the key type is a 'keyof X', obtain 'keyof C' where C is 
the base constraint of X.
+                // Finally, iterate over the constituents of the resulting 
iteration type.
+                var keyType = constraintType.flags & 540672 /* TypeVariable */ 
? getApparentType(constraintType) : constraintType;
+                var iterationType = keyType.flags & 262144 /* Index */ ? 
getIndexType(getApparentType(keyType.type)) : keyType;
+                forEachType(iterationType, addMemberForKeyType);
+            }
+            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, undefined);
+            function addMemberForKeyType(t) {
                 // Create a mapper from T to the current iteration type 
constituent. Then, if the
                 // mapped type is itself an instantiated type, combine the 
iteration mapper with the
                 // instantiation mapper.
                 var iterationMapper = createUnaryTypeMapper(typeParameter, t);
                 var templateMapper = type.mapper ? 
combineTypeMappers(type.mapper, iterationMapper) : iterationMapper;
                 var propType = instantiateType(templateType, templateMapper);
-                // If the current iteration type constituent is a literal 
type, create a property.
-                // Otherwise, for type string create a string index signature 
and for type number
-                // create a numeric index signature.
-                if (t.flags & (32 /* StringLiteral */ | 64 /* NumberLiteral */ 
| 256 /* EnumLiteral */)) {
+                // If the current iteration type constituent is a string 
literal type, create a property.
+                // Otherwise, for type string create a string index signature.
+                if (t.flags & 32 /* StringLiteral */) {
                     var propName = t.text;
+                    var modifiersProp = getPropertyOfType(modifiersType, 
propName);
+                    var isOptional = templateOptional || !!(modifiersProp && 
modifiersProp.flags & 536870912 /* Optional */);
                     var prop = createSymbol(4 /* Property */ | 67108864 /* 
Transient */ | (isOptional ? 536870912 /* Optional */ : 0), propName);
-                    prop.type = addOptionality(propType, isOptional);
-                    prop.isReadonly = isReadonly;
+                    prop.type = propType;
+                    prop.isReadonly = templateReadonly || modifiersProp && 
isReadonlySymbol(modifiersProp);
                     members[propName] = prop;
                 }
                 else if (t.flags & 2 /* String */) {
-                    stringIndexInfo = createIndexInfo(propType, isReadonly);
+                    stringIndexInfo = createIndexInfo(propType, 
templateReadonly);
                 }
-                else if (t.flags & 4 /* Number */) {
-                    numberIndexInfo = createIndexInfo(propType, isReadonly);
-                }
-            });
-            // If we created both a string and a numeric string index 
signature, and if the two index
-            // signatures have identical types, discard the redundant numeric 
index signature.
-            if (stringIndexInfo && numberIndexInfo && 
isTypeIdenticalTo(stringIndexInfo.type, numberIndexInfo.type)) {
-                numberIndexInfo = undefined;
             }
-            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, numberIndexInfo);
         }
         function getTypeParameterFromMappedType(type) {
             return type.typeParameter ||
@@ -28275,16 +28471,37 @@ var ts;
         function getTemplateTypeFromMappedType(type) {
             return type.templateType ||
                 (type.templateType = type.declaration.type ?
-                    
instantiateType(getTypeFromTypeNode(type.declaration.type), type.mapper || 
identityMapper) :
+                    
instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), 
!!type.declaration.questionToken), type.mapper || identityMapper) :
                     unknownType);
         }
+        function getModifiersTypeFromMappedType(type) {
+            if (!type.modifiersType) {
+                var constraintDeclaration = 
type.declaration.typeParameter.constraint;
+                if (constraintDeclaration.kind === 168 /* TypeOperator */) {
+                    // If the constraint declaration is a 'keyof T' node, the 
modifiers type is T. We check
+                    // AST nodes here because, when T is a non-generic type, 
the logic below eagerly resolves
+                    // 'keyof T' to a literal union type and we can't recover 
T from that type.
+                    type.modifiersType = 
instantiateType(getTypeFromTypeNode(constraintDeclaration.type), type.mapper || 
identityMapper);
+                }
+                else {
+                    // Otherwise, get the declared constraint type, and if the 
constraint type is a type parameter,
+                    // get the constraint of that type parameter. If the 
resulting type is an indexed type 'keyof T',
+                    // the modifiers type is T. Otherwise, the modifiers type 
is {}.
+                    var declaredType = 
getTypeFromMappedTypeNode(type.declaration);
+                    var constraint = 
getConstraintTypeFromMappedType(declaredType);
+                    var extendedConstraint = constraint && constraint.flags & 
16384 /* TypeParameter */ ? getConstraintOfTypeParameter(constraint) : 
constraint;
+                    type.modifiersType = extendedConstraint && 
extendedConstraint.flags & 262144 /* Index */ ? 
instantiateType(extendedConstraint.type, type.mapper || identityMapper) : 
emptyObjectType;
+                }
+            }
+            return type.modifiersType;
+        }
         function getErasedTemplateTypeFromMappedType(type) {
             return instantiateType(getTemplateTypeFromMappedType(type), 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), anyType));
         }
         function isGenericMappedType(type) {
             if (getObjectFlags(type) & 32 /* Mapped */) {
                 var constraintType = getConstraintTypeFromMappedType(type);
-                return !!(constraintType.flags & (16384 /* TypeParameter */ | 
262144 /* Index */));
+                return maybeTypeOfKind(constraintType, 540672 /* TypeVariable 
*/ | 262144 /* Index */);
             }
             return false;
         }
@@ -28368,31 +28585,23 @@ var ts;
          * The apparent type of a type parameter is the base constraint 
instantiated with the type parameter
          * as the type argument for the 'this' type.
          */
-        function getApparentTypeOfTypeParameter(type) {
+        function getApparentTypeOfTypeVariable(type) {
             if (!type.resolvedApparentType) {
-                var constraintType = getConstraintOfTypeParameter(type);
+                var constraintType = getConstraintOfTypeVariable(type);
                 while (constraintType && constraintType.flags & 16384 /* 
TypeParameter */) {
-                    constraintType = 
getConstraintOfTypeParameter(constraintType);
+                    constraintType = 
getConstraintOfTypeVariable(constraintType);
                 }
                 type.resolvedApparentType = 
getTypeWithThisArgument(constraintType || emptyObjectType, type);
             }
             return type.resolvedApparentType;
         }
         /**
-         * The apparent type of an indexed access T[K] is the type of T's 
string index signature, if any.
-         */
-        function getApparentTypeOfIndexedAccess(type) {
-            return getIndexTypeOfType(getApparentType(type.objectType), 0 /* 
String */) || type;
-        }
-        /**
          * For a type parameter, return the base constraint of the type 
parameter. For the string, number,
          * boolean, and symbol primitive types, return the corresponding 
object types. Otherwise return the
          * type itself. Note that the apparent type of a union type is the 
union type itself.
          */
         function getApparentType(type) {
-            var t = type.flags & 16384 /* TypeParameter */ ? 
getApparentTypeOfTypeParameter(type) :
-                type.flags & 524288 /* IndexedAccess */ ? 
getApparentTypeOfIndexedAccess(type) :
-                    type;
+            var t = type.flags & 540672 /* TypeVariable */ ? 
getApparentTypeOfTypeVariable(type) : type;
             return t.flags & 262178 /* StringLike */ ? globalStringType :
                 t.flags & 340 /* NumberLike */ ? globalNumberType :
                     t.flags & 136 /* BooleanLike */ ? globalBooleanType :
@@ -28561,7 +28770,7 @@ var ts;
             return undefined;
         }
         function getTypeParametersFromJSDocTemplate(declaration) {
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 var templateTag = ts.getJSDocTemplateTag(declaration);
                 if (templateTag) {
                     return 
getTypeParametersFromDeclaration(templateTag.typeParameters);
@@ -28591,7 +28800,7 @@ var ts;
             return result;
         }
         function isJSDocOptionalParameter(node) {
-            if (node.flags & 2097152 /* JavaScriptFile */) {
+            if (node.flags & 65536 /* JavaScriptFile */) {
                 if (node.type && node.type.kind === 273 /* JSDocOptionalType 
*/) {
                     return true;
                 }
@@ -28727,7 +28936,7 @@ var ts;
             else if (declaration.type) {
                 return getTypeFromTypeNode(declaration.type);
             }
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 var type = getReturnTypeFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -28928,6 +29137,11 @@ var ts;
             }
             return typeParameter.constraint === noConstraintType ? undefined : 
typeParameter.constraint;
         }
+        function getConstraintOfTypeVariable(type) {
+            return type.flags & 16384 /* TypeParameter */ ? 
getConstraintOfTypeParameter(type) :
+                type.flags & 524288 /* IndexedAccess */ ? type.constraint :
+                    undefined;
+        }
         function getParentSymbolOfTypeParameter(typeParameter) {
             return 
getSymbolOfNode(ts.getDeclarationOfKind(typeParameter.symbol, 143 /* 
TypeParameter */).parent);
         }
@@ -29439,6 +29653,9 @@ var ts;
                 typeSet.containsAny = true;
             }
             else if (!(type.flags & 8192 /* Never */) && (strictNullChecks || 
!(type.flags & 6144 /* Nullable */)) && !ts.contains(typeSet, type)) {
+                if (type.flags & 65536 /* Union */ && typeSet.unionIndex === 
undefined) {
+                    typeSet.unionIndex = typeSet.length;
+                }
                 typeSet.push(type);
             }
         }
@@ -29464,18 +29681,6 @@ var ts;
             if (types.length === 0) {
                 return emptyObjectType;
             }
-            var _loop_2 = function (i) {
-                var type_1 = types[i];
-                if (type_1.flags & 65536 /* Union */) {
-                    return { value: getUnionType(ts.map(type_1.types, function 
(t) { return getIntersectionType(ts.replaceElement(types, i, t)); }), 
-                        /*subtypeReduction*/ false, aliasSymbol, 
aliasTypeArguments) };
-                }
-            };
-            for (var i = 0; i < types.length; i++) {
-                var state_2 = _loop_2(i);
-                if (typeof state_2 === "object")
-                    return state_2.value;
-            }
             var typeSet = [];
             addTypesToIntersection(typeSet, types);
             if (typeSet.containsAny) {
@@ -29484,6 +29689,14 @@ var ts;
             if (typeSet.length === 1) {
                 return typeSet[0];
             }
+            var unionIndex = typeSet.unionIndex;
+            if (unionIndex !== undefined) {
+                // We are attempting to construct a type of the form X & (A | 
B) & Y. Transform this into a type of
+                // the form X & A & Y | X & B & Y and recursively reduce until 
no union type constituents remain.
+                var unionType = typeSet[unionIndex];
+                return getUnionType(ts.map(unionType.types, function (t) { 
return getIntersectionType(ts.replaceElement(typeSet, unionIndex, t)); }), 
+                /*subtypeReduction*/ false, aliasSymbol, aliasTypeArguments);
+            }
             var id = getTypeListId(typeSet);
             var type = intersectionTypes[id];
             if (!type) {
@@ -29502,7 +29715,7 @@ var ts;
             }
             return links.resolvedType;
         }
-        function getIndexTypeForTypeParameter(type) {
+        function getIndexTypeForGenericType(type) {
             if (!type.resolvedIndexType) {
                 type.resolvedIndexType = createType(262144 /* Index */);
                 type.resolvedIndexType.type = type;
@@ -29518,7 +29731,7 @@ var ts;
             return getUnionType(ts.map(getPropertiesOfType(type), 
getLiteralTypeFromPropertyName));
         }
         function getIndexType(type) {
-            return type.flags & 16384 /* TypeParameter */ ? 
getIndexTypeForTypeParameter(type) :
+            return maybeTypeOfKind(type, 540672 /* TypeVariable */) ? 
getIndexTypeForGenericType(type) :
                 getObjectFlags(type) & 32 /* Mapped */ ? 
getConstraintTypeFromMappedType(type) :
                     type.flags & 1 /* Any */ || getIndexInfoOfType(type, 0 /* 
String */) ? stringType :
                         getLiteralTypeFromPropertyNames(type);
@@ -29538,6 +29751,24 @@ var ts;
             var type = createType(524288 /* IndexedAccess */);
             type.objectType = objectType;
             type.indexType = indexType;
+            // We eagerly compute the constraint of the indexed access type 
such that circularity
+            // errors are immediately caught and reported. For example, class 
C { x: this["x"] }
+            // becomes an error only when the constraint is eagerly computed.
+            if (type.objectType.flags & 229376 /* StructuredType */) {
+                // The constraint of T[K], where T is an object, union, or 
intersection type,
+                // is the type of the string index signature of T, if any.
+                type.constraint = getIndexTypeOfType(type.objectType, 0 /* 
String */);
+            }
+            else if (type.objectType.flags & 540672 /* TypeVariable */) {
+                // The constraint of T[K], where T is a type variable, is 
A[K], where A is the
+                // apparent type of T.
+                var apparentType = 
getApparentTypeOfTypeVariable(type.objectType);
+                if (apparentType !== emptyObjectType) {
+                    type.constraint = isTypeOfKind(type.indexType, 262178 /* 
StringLike */) ?
+                        getIndexedAccessType(apparentType, type.indexType) :
+                        getIndexTypeOfType(apparentType, 0 /* String */);
+                }
+            }
             return type;
         }
         function getPropertyTypeForIndexType(objectType, indexType, 
accessNode, cacheSymbol) {
@@ -29610,16 +29841,22 @@ var ts;
             }
             var mapper = 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), indexType);
             var templateMapper = type.mapper ? combineTypeMappers(type.mapper, 
mapper) : mapper;
-            return 
addOptionality(instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper), !!type.declaration.questionToken);
+            return instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper);
         }
         function getIndexedAccessType(objectType, indexType, accessNode) {
-            if (indexType.flags & 16384 /* TypeParameter */ ||
-                objectType.flags & 16384 /* TypeParameter */ && 
indexType.flags & 262144 /* Index */ ||
+            // If the index type is generic, if the object type is generic and 
doesn't originate in an expression,
+            // or if the object type is a mapped type with a generic 
constraint, we are performing a higher-order
+            // index access where we cannot meaningfully access the properties 
of the object type. Note that for a
+            // generic T and a non-generic K, we eagerly resolve T[K] if it 
originates in an expression. This is to
+            // preserve backwards compatibility. For example, an element 
access 'this["foo"]' has always been resolved
+            // eagerly using the constraint type of 'this' at the given 
location.
+            if (maybeTypeOfKind(indexType, 540672 /* TypeVariable */ | 262144 
/* Index */) ||
+                maybeTypeOfKind(objectType, 540672 /* TypeVariable */) && 
!(accessNode && accessNode.kind === 178 /* ElementAccessExpression */) ||
                 isGenericMappedType(objectType)) {
-                // If either the object type or the index type are type 
parameters, or if the object type is a mapped
-                // type with a generic constraint, we are performing a 
higher-order index access where we cannot
-                // meaningfully access the properties of the object type. In 
those cases, we first check that the
-                // index type is assignable to 'keyof T' for the object type.
+                if (objectType.flags & 1 /* Any */) {
+                    return objectType;
+                }
+                // We first check that the index type is assignable to 'keyof 
T' for the object type.
                 if (accessNode) {
                     if (!isTypeAssignableTo(indexType, 
getIndexType(objectType))) {
                         error(accessNode, 
ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), 
typeToString(objectType));
@@ -29636,6 +29873,7 @@ var ts;
                 var id = objectType.id + "," + indexType.id;
                 return indexedAccessTypes[id] || (indexedAccessTypes[id] = 
createIndexedAccessType(objectType, indexType));
             }
+            // In the following we resolve T[K] to the type of the property in 
T selected by K.
             var apparentObjectType = getApparentType(objectType);
             if (indexType.flags & 65536 /* Union */ && !(indexType.flags & 
8190 /* Primitive */)) {
                 var propTypes = [];
@@ -29702,10 +29940,23 @@ var ts;
          * and right = the new element to be spread.
          */
         function getSpreadType(left, right, isFromObjectLiteral) {
-            ts.Debug.assert(!!(left.flags & (32768 /* Object */ | 1 /* Any 
*/)) && !!(right.flags & (32768 /* Object */ | 1 /* Any */)), "Only object 
types may be spread.");
             if (left.flags & 1 /* Any */ || right.flags & 1 /* Any */) {
                 return anyType;
             }
+            left = filterType(left, function (t) { return !(t.flags & 6144 /* 
Nullable */); });
+            if (left.flags & 8192 /* Never */) {
+                return right;
+            }
+            right = filterType(right, function (t) { return !(t.flags & 6144 
/* Nullable */); });
+            if (right.flags & 8192 /* Never */) {
+                return left;
+            }
+            if (left.flags & 65536 /* Union */) {
+                return mapType(left, function (t) { return getSpreadType(t, 
right, isFromObjectLiteral); });
+            }
+            if (right.flags & 65536 /* Union */) {
+                return mapType(right, function (t) { return 
getSpreadType(left, t, isFromObjectLiteral); });
+            }
             var members = ts.createMap();
             var skippedPrivateMembers = ts.createMap();
             var stringIndexInfo;
@@ -30060,19 +30311,19 @@ var ts;
             return result;
         }
         function instantiateMappedType(type, mapper) {
-            // Check if we have an isomorphic mapped type, i.e. a type of the 
form { [P in keyof T]: X } for some
-            // type parameter T. If so, the mapped type is distributive over a 
union type and when T is instantiated
+            // Check if we have a homomorphic mapped type, i.e. a type of the 
form { [P in keyof T]: X } for some
+            // type variable T. If so, the mapped type is distributive over a 
union type and when T is instantiated
             // to a union type A | B, we produce { [P in keyof A]: X } | { [P 
in keyof B]: X }. Furthermore, for
-            // isomorphic mapped types we leave primitive types alone. For 
example, when T is instantiated to a
+            // homomorphic mapped types we leave primitive types alone. For 
example, when T is instantiated to a
             // union type A | undefined, we produce { [P in keyof A]: X } | 
undefined.
             var constraintType = getConstraintTypeFromMappedType(type);
             if (constraintType.flags & 262144 /* Index */) {
-                var typeParameter_1 = constraintType.type;
-                var mappedTypeParameter = mapper(typeParameter_1);
-                if (typeParameter_1 !== mappedTypeParameter) {
-                    return mapType(mappedTypeParameter, function (t) {
+                var typeVariable_1 = constraintType.type;
+                var mappedTypeVariable = instantiateType(typeVariable_1, 
mapper);
+                if (typeVariable_1 !== mappedTypeVariable) {
+                    return mapType(mappedTypeVariable, function (t) {
                         if (isMappableType(t)) {
-                            var replacementMapper = 
createUnaryTypeMapper(typeParameter_1, t);
+                            var replacementMapper = 
createUnaryTypeMapper(typeVariable_1, t);
                             var combinedMapper = mapper.mappedTypes && 
mapper.mappedTypes.length === 1 ? replacementMapper : 
combineTypeMappers(replacementMapper, mapper);
                             combinedMapper.mappedTypes = mapper.mappedTypes;
                             return instantiateMappedObjectType(type, 
combinedMapper);
@@ -30102,7 +30353,7 @@ var ts;
             // Starting with the parent of the symbol's declaration, check if 
the mapper maps any of
             // the type parameters introduced by enclosing declarations. We 
just pick the first
             // declaration since multiple declarations will all have the same 
parent anyway.
-            var node = symbol.declarations[0].parent;
+            var node = symbol.declarations[0];
             while (node) {
                 switch (node.kind) {
                     case 158 /* FunctionType */:
@@ -30138,6 +30389,15 @@ var ts;
                             }
                         }
                         break;
+                    case 274 /* JSDocFunctionType */:
+                        var func = node;
+                        for (var _b = 0, _c = func.parameters; _b < _c.length; 
_b++) {
+                            var p = _c[_b];
+                            if (ts.contains(mappedTypes, getTypeOfNode(p))) {
+                                return true;
+                            }
+                        }
+                        break;
                     case 230 /* ModuleDeclaration */:
                     case 261 /* SourceFile */:
                         return false;
@@ -30623,6 +30883,25 @@ var ts;
                     
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
 targetType, sourceType);
                 }
             }
+            function 
isUnionOrIntersectionTypeWithoutNullableConstituents(type) {
+                if (!(type.flags & 196608 /* UnionOrIntersection */)) {
+                    return false;
+                }
+                // at this point we know that this is union or intersection 
type possibly with nullable constituents.
+                // check if we still will have compound type if we ignore 
nullable components.
+                var seenNonNullable = false;
+                for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
+                    var t = _a[_i];
+                    if (t.flags & 6144 /* Nullable */) {
+                        continue;
+                    }
+                    if (seenNonNullable) {
+                        return true;
+                    }
+                    seenNonNullable = true;
+                }
+                return false;
+            }
             // Compare two types and return
             // Ternary.True if they are related with no assumptions,
             // Ternary.Maybe if they are related with assumptions of other 
relationships, or
@@ -30654,7 +30933,7 @@ var ts;
                     // and intersection types are further deconstructed on the 
target side, we don't want to
                     // make the check again (as it might fail for a partial 
target type). Therefore we obtain
                     // the regular source type and proceed with that.
-                    if (target.flags & 196608 /* UnionOrIntersection */) {
+                    if 
(isUnionOrIntersectionTypeWithoutNullableConstituents(target)) {
                         source = getRegularTypeOfObjectLiteral(source);
                     }
                 }
@@ -30701,7 +30980,7 @@ var ts;
                         return result;
                     }
                 }
-                if (target.flags & 16384 /* TypeParameter */) {
+                else if (target.flags & 16384 /* TypeParameter */) {
                     // A source type { [P in keyof T]: X } is related to a 
target type T if X is related to T[P].
                     if (getObjectFlags(source) & 32 /* Mapped */ && 
getConstraintTypeFromMappedType(source) === getIndexType(target)) {
                         if (!source.declaration.questionToken) {
@@ -30730,12 +31009,14 @@ var ts;
                             return result;
                         }
                     }
-                    // Given a type parameter T with a constraint C, a type S 
is assignable to
+                    // Given a type variable T with a constraint C, a type S 
is assignable to
                     // keyof T if S is assignable to keyof C.
-                    var constraint = getConstraintOfTypeParameter(target.type);
-                    if (constraint) {
-                        if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
-                            return result;
+                    if (target.type.flags & 540672 /* TypeVariable */) {
+                        var constraint = 
getConstraintOfTypeVariable(target.type);
+                        if (constraint) {
+                            if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
+                                return result;
+                            }
                         }
                     }
                 }
@@ -30747,6 +31028,14 @@ var ts;
                             return result;
                         }
                     }
+                    // A type S is related to a type T[K] if S is related to 
A[K], where K is string-like and
+                    // A is the apparent type of S.
+                    if (target.constraint) {
+                        if (result = isRelatedTo(source, target.constraint, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
                 }
                 if (source.flags & 16384 /* TypeParameter */) {
                     // A source type T is related to a target type { [P in 
keyof T]: X } if T[P] is related to X.
@@ -30754,6 +31043,7 @@ var ts;
                         var indexedAccessType = getIndexedAccessType(source, 
getTypeParameterFromMappedType(target));
                         var templateType = 
getTemplateTypeFromMappedType(target);
                         if (result = isRelatedTo(indexedAccessType, 
templateType, reportErrors)) {
+                            errorInfo = saveErrorInfo;
                             return result;
                         }
                     }
@@ -30772,6 +31062,16 @@ var ts;
                         }
                     }
                 }
+                else if (source.flags & 524288 /* IndexedAccess */) {
+                    // A type S[K] is related to a type T if A[K] is related 
to T, where K is string-like and
+                    // A is the apparent type of S.
+                    if (source.constraint) {
+                        if (result = isRelatedTo(source.constraint, target, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
+                }
                 else {
                     if (getObjectFlags(source) & 4 /* Reference */ && 
getObjectFlags(target) & 4 /* Reference */ && source.target === target.target) {
                         // We have type references to same target type, see if 
relationship holds for all type arguments
@@ -31069,8 +31369,11 @@ var ts;
                         }
                     }
                 }
-                else if (relation !== identityRelation && 
isEmptyObjectType(resolveStructuredTypeMembers(target))) {
-                    return -1 /* True */;
+                else if (relation !== identityRelation) {
+                    var resolved = resolveStructuredTypeMembers(target);
+                    if (isEmptyObjectType(resolved) || 
resolved.stringIndexInfo && resolved.stringIndexInfo.type.flags & 1 /* Any */) {
+                        return -1 /* True */;
+                    }
                 }
                 return 0 /* False */;
             }
@@ -31841,25 +32144,73 @@ var ts;
         // Return true if the given type could possibly reference a type 
parameter for which
         // we perform type inference (i.e. a type parameter of a generic 
function). We cache
         // results for union and intersection types for performance reasons.
-        function couldContainTypeParameters(type) {
+        function couldContainTypeVariables(type) {
             var objectFlags = getObjectFlags(type);
-            return !!(type.flags & 16384 /* TypeParameter */ ||
-                objectFlags & 4 /* Reference */ && 
ts.forEach(type.typeArguments, couldContainTypeParameters) ||
+            return !!(type.flags & 540672 /* TypeVariable */ ||
+                objectFlags & 4 /* Reference */ && 
ts.forEach(type.typeArguments, couldContainTypeVariables) ||
                 objectFlags & 16 /* Anonymous */ && type.symbol && 
type.symbol.flags & (8192 /* Method */ | 2048 /* TypeLiteral */ | 32 /* Class 
*/) ||
                 objectFlags & 32 /* Mapped */ ||
-                type.flags & 196608 /* UnionOrIntersection */ && 
couldUnionOrIntersectionContainTypeParameters(type));
+                type.flags & 196608 /* UnionOrIntersection */ && 
couldUnionOrIntersectionContainTypeVariables(type));
         }
-        function couldUnionOrIntersectionContainTypeParameters(type) {
-            if (type.couldContainTypeParameters === undefined) {
-                type.couldContainTypeParameters = ts.forEach(type.types, 
couldContainTypeParameters);
+        function couldUnionOrIntersectionContainTypeVariables(type) {
+            if (type.couldContainTypeVariables === undefined) {
+                type.couldContainTypeVariables = ts.forEach(type.types, 
couldContainTypeVariables);
             }
-            return type.couldContainTypeParameters;
+            return type.couldContainTypeVariables;
         }
         function isTypeParameterAtTopLevel(type, typeParameter) {
             return type === typeParameter || type.flags & 196608 /* 
UnionOrIntersection */ && ts.forEach(type.types, function (t) { return 
isTypeParameterAtTopLevel(t, typeParameter); });
         }
-        function inferTypes(context, originalSource, originalTarget) {
-            var typeParameters = context.signature.typeParameters;
+        // Infer a suitable input type for a homomorphic mapped type { [P in 
keyof T]: X }. We construct
+        // an object type with the same set of properties as the source type, 
where the type of each
+        // property is computed by inferring from the source property type to 
X for the type
+        // variable T[P] (i.e. we treat the type T[P] as the type variable 
we're inferring for).
+        function inferTypeForHomomorphicMappedType(source, target) {
+            var properties = getPropertiesOfType(source);
+            var indexInfo = getIndexInfoOfType(source, 0 /* String */);
+            if (properties.length === 0 && !indexInfo) {
+                return undefined;
+            }
+            var typeVariable = 
getIndexedAccessType(getConstraintTypeFromMappedType(target).type, 
getTypeParameterFromMappedType(target));
+            var typeVariableArray = [typeVariable];
+            var typeInferences = createTypeInferencesObject();
+            var typeInferencesArray = [typeInferences];
+            var templateType = getTemplateTypeFromMappedType(target);
+            var readonlyMask = target.declaration.readonlyToken ? false : true;
+            var optionalMask = target.declaration.questionToken ? 0 : 
536870912 /* Optional */;
+            var members = createSymbolTable(properties);
+            for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
+                var prop = properties_4[_i];
+                var inferredPropType = inferTargetType(getTypeOfSymbol(prop));
+                if (!inferredPropType) {
+                    return undefined;
+                }
+                var inferredProp = createSymbol(4 /* Property */ | 67108864 /* 
Transient */ | prop.flags & optionalMask, prop.name);
+                inferredProp.declarations = prop.declarations;
+                inferredProp.type = inferredPropType;
+                inferredProp.isReadonly = readonlyMask && 
isReadonlySymbol(prop);
+                members[prop.name] = inferredProp;
+            }
+            if (indexInfo) {
+                var inferredIndexType = inferTargetType(indexInfo.type);
+                if (!inferredIndexType) {
+                    return undefined;
+                }
+                indexInfo = createIndexInfo(inferredIndexType, readonlyMask && 
indexInfo.isReadonly);
+            }
+            return createAnonymousType(undefined, members, emptyArray, 
emptyArray, indexInfo, undefined);
+            function inferTargetType(sourceType) {
+                typeInferences.primary = undefined;
+                typeInferences.secondary = undefined;
+                inferTypes(typeVariableArray, typeInferencesArray, sourceType, 
templateType);
+                var inferences = typeInferences.primary || 
typeInferences.secondary;
+                return inferences && getUnionType(inferences, 
/*subtypeReduction*/ true);
+            }
+        }
+        function inferTypesWithContext(context, originalSource, 
originalTarget) {
+            inferTypes(context.signature.typeParameters, context.inferences, 
originalSource, originalTarget);
+        }
+        function inferTypes(typeVariables, typeInferences, originalSource, 
originalTarget) {
             var sourceStack;
             var targetStack;
             var depth = 0;
@@ -31875,7 +32226,7 @@ var ts;
                 return false;
             }
             function inferFromTypes(source, target) {
-                if (!couldContainTypeParameters(target)) {
+                if (!couldContainTypeVariables(target)) {
                     return;
                 }
                 if (source.aliasSymbol && source.aliasTypeArguments && 
source.aliasSymbol === target.aliasSymbol) {
@@ -31927,7 +32278,7 @@ var ts;
                         target = removeTypesFromUnionOrIntersection(target, 
matchingTypes);
                     }
                 }
-                if (target.flags & 16384 /* TypeParameter */) {
+                if (target.flags & 540672 /* TypeVariable */) {
                     // If target is a type parameter, make an inference, 
unless the source type contains
                     // the anyFunctionType (the wildcard type that's used to 
avoid contextually typing functions).
                     // Because the anyFunctionType is internal, it should not 
be exposed to the user by adding
@@ -31937,9 +32288,9 @@ var ts;
                     if (source.flags & 8388608 /* ContainsAnyFunctionType */) {
                         return;
                     }
-                    for (var i = 0; i < typeParameters.length; i++) {
-                        if (target === typeParameters[i]) {
-                            var inferences = context.inferences[i];
+                    for (var i = 0; i < typeVariables.length; i++) {
+                        if (target === typeVariables[i]) {
+                            var inferences = typeInferences[i];
                             if (!inferences.isFixed) {
                                 // Any inferences that are made to a type 
parameter in a union type are inferior
                                 // to inferences made to a flat (non-union) 
type. This is because if we infer to
@@ -31953,7 +32304,7 @@ var ts;
                                 if (!ts.contains(candidates, source)) {
                                     candidates.push(source);
                                 }
-                                if (!isTypeParameterAtTopLevel(originalTarget, 
target)) {
+                                if (target.flags & 16384 /* TypeParameter */ 
&& !isTypeParameterAtTopLevel(originalTarget, target)) {
                                     inferences.topLevel = false;
                                 }
                             }
@@ -31972,25 +32323,25 @@ var ts;
                 }
                 else if (target.flags & 196608 /* UnionOrIntersection */) {
                     var targetTypes = target.types;
-                    var typeParameterCount = 0;
-                    var typeParameter = void 0;
-                    // First infer to each type in union or intersection that 
isn't a type parameter
+                    var typeVariableCount = 0;
+                    var typeVariable = void 0;
+                    // First infer to each type in union or intersection that 
isn't a type variable
                     for (var _d = 0, targetTypes_2 = targetTypes; _d < 
targetTypes_2.length; _d++) {
                         var t = targetTypes_2[_d];
-                        if (t.flags & 16384 /* TypeParameter */ && 
ts.contains(typeParameters, t)) {
-                            typeParameter = t;
-                            typeParameterCount++;
+                        if (t.flags & 540672 /* TypeVariable */ && 
ts.contains(typeVariables, t)) {
+                            typeVariable = t;
+                            typeVariableCount++;
                         }
                         else {
                             inferFromTypes(source, t);
                         }
                     }
-                    // Next, if target containings a single naked type 
parameter, make a secondary inference to that type
-                    // parameter. This gives meaningful results for union 
types in co-variant positions and intersection
+                    // Next, if target containings a single naked type 
variable, make a secondary inference to that type
+                    // variable. This gives meaningful results for union types 
in co-variant positions and intersection
                     // types in contra-variant positions (such as callback 
parameters).
-                    if (typeParameterCount === 1) {
+                    if (typeVariableCount === 1) {
                         inferiority++;
-                        inferFromTypes(source, typeParameter);
+                        inferFromTypes(source, typeVariable);
                         inferiority--;
                     }
                 }
@@ -32031,12 +32382,25 @@ var ts;
             function inferFromObjectTypes(source, target) {
                 if (getObjectFlags(target) & 32 /* Mapped */) {
                     var constraintType = 
getConstraintTypeFromMappedType(target);
-                    if (getObjectFlags(source) & 32 /* Mapped */) {
-                        
inferFromTypes(getConstraintTypeFromMappedType(source), constraintType);
-                        inferFromTypes(getTemplateTypeFromMappedType(source), 
getTemplateTypeFromMappedType(target));
+                    if (constraintType.flags & 262144 /* Index */) {
+                        // We're inferring from some source type S to a 
homomorphic mapped type { [P in keyof T]: X },
+                        // where T is a type variable. Use 
inferTypeForHomomorphicMappedType to infer a suitable source
+                        // type and then make a secondary inference from that 
type to T. We make a secondary inference
+                        // such that direct inferences to T get priority over 
inferences to Partial<T>, for example.
+                        var index = ts.indexOf(typeVariables, 
constraintType.type);
+                        if (index >= 0 && !typeInferences[index].isFixed) {
+                            var inferredType = 
inferTypeForHomomorphicMappedType(source, target);
+                            if (inferredType) {
+                                inferiority++;
+                                inferFromTypes(inferredType, 
typeVariables[index]);
+                                inferiority--;
+                            }
+                        }
                         return;
                     }
                     if (constraintType.flags & 16384 /* TypeParameter */) {
+                        // We're inferring from some source type S to a mapped 
type { [P in T]: X }, where T is a type
+                        // parameter. Infer from 'keyof S' to T and infer from 
a union of each property type in S to X.
                         inferFromTypes(getIndexType(source), constraintType);
                         
inferFromTypes(getUnionType(ts.map(getPropertiesOfType(source), 
getTypeOfSymbol)), getTemplateTypeFromMappedType(target));
                         return;
@@ -32049,8 +32413,8 @@ var ts;
             }
             function inferFromProperties(source, target) {
                 var properties = getPropertiesOfObjectType(target);
-                for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
-                    var targetProp = properties_4[_i];
+                for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
+                    var targetProp = properties_5[_i];
                     var sourceProp = getPropertyOfObjectType(source, 
targetProp.name);
                     if (sourceProp) {
                         inferFromTypes(getTypeOfSymbol(sourceProp), 
getTypeOfSymbol(targetProp));
@@ -33359,7 +33723,7 @@ var ts;
                         error(node, 
ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
                     }
                 }
-                if (node.flags & 524288 /* AwaitContext */) {
+                if (node.flags & 16384 /* AwaitContext */) {
                     getNodeLinks(container).flags |= 8192 /* CaptureArguments 
*/;
                 }
                 return getTypeOfSymbol(symbol);
@@ -33589,30 +33953,33 @@ var ts;
             var baseConstructorType = 
getBaseConstructorTypeOfClass(classInstanceType);
             return baseConstructorType === nullWideningType;
         }
+        function checkThisBeforeSuper(node, container, diagnosticMessage) {
+            var containingClassDecl = container.parent;
+            var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
+            // If a containing class does not have extends clause or the class 
extends null
+            // skip checking whether super statement is called before "this" 
accessing.
+            if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
+                var superCall = getSuperCallInConstructor(container);
+                // We should give an error in the following cases:
+                //      - No super-call
+                //      - "this" is accessing before super-call.
+                //          i.e super(this)
+                //              this.x; super();
+                // We want to make sure that super-call is done before 
accessing "this" so that
+                // "this" is not accessed as a parameter of the super-call.
+                if (!superCall || superCall.end > node.pos) {
+                    // In ES6, super inside constructor of class-declaration 
has to precede "this" accessing
+                    error(node, diagnosticMessage);
+                }
+            }
+        }
         function checkThisExpression(node) {
             // Stop at the first arrow function so that we can
             // tell whether 'this' needs to be captured.
             var container = ts.getThisContainer(node, /* includeArrowFunctions 
*/ true);
             var needToCaptureLexicalThis = false;
             if (container.kind === 150 /* Constructor */) {
-                var containingClassDecl = container.parent;
-                var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
-                // If a containing class does not have extends clause or the 
class extends null
-                // skip checking whether super statement is called before 
"this" accessing.
-                if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
-                    var superCall = getSuperCallInConstructor(container);
-                    // We should give an error in the following cases:
-                    //      - No super-call
-                    //      - "this" is accessing before super-call.
-                    //          i.e super(this)
-                    //              this.x; super();
-                    // We want to make sure that super-call is done before 
accessing "this" so that
-                    // "this" is not accessed as a parameter of the super-call.
-                    if (!superCall || superCall.end > node.pos) {
-                        // In ES6, super inside constructor of 
class-declaration has to precede "this" accessing
-                        error(node, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
-                    }
-                }
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
             }
             // Now skip arrow functions to get the "real" owner of 'this'.
             if (container.kind === 185 /* ArrowFunction */) {
@@ -33741,6 +34108,9 @@ var ts;
                 }
                 return unknownType;
             }
+            if (!isCallExpression && container.kind === 150 /* Constructor */) 
{
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
+            }
             if ((ts.getModifierFlags(container) & 32 /* Static */) || 
isCallExpression) {
                 nodeCheckFlag = 512 /* SuperStatic */;
             }
@@ -34349,13 +34719,7 @@ var ts;
             return mapper && mapper.context;
         }
         function checkSpreadExpression(node, contextualMapper) {
-            // It is usually not safe to call checkExpressionCached if we can 
be contextually typing.
-            // You can tell that we are contextually typing because of the 
contextualMapper parameter.
-            // While it is true that a spread element can have a contextual 
type, it does not do anything
-            // with this type. It is neither affected by it, nor does it 
propagate it to its operand.
-            // So the fact that contextualMapper is passed is not important, 
because the operand of a spread
-            // element is not contextually typed.
-            var arrayOrIterableType = checkExpressionCached(node.expression, 
contextualMapper);
+            var arrayOrIterableType = checkExpression(node.expression, 
contextualMapper);
             return checkIteratedTypeOrElementType(arrayOrIterableType, 
node.expression, /*allowStringInput*/ false);
         }
         function hasDefaultValue(node) {
@@ -34549,7 +34913,7 @@ var ts;
                         if (impliedProp) {
                             prop.flags |= impliedProp.flags & 536870912 /* 
Optional */;
                         }
-                        else if 
(!compilerOptions.suppressExcessPropertyErrors) {
+                        else if (!compilerOptions.suppressExcessPropertyErrors 
&& !getIndexInfoOfType(contextualType, 0 /* String */)) {
                             error(memberDecl.name, 
ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
 symbolToString(member), typeToString(contextualType));
                         }
                     }
@@ -34563,6 +34927,9 @@ var ts;
                     member = prop;
                 }
                 else if (memberDecl.kind === 259 /* SpreadAssignment */) {
+                    if (languageVersion < 5 /* ESNext */) {
+                        checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
+                    }
                     if (propertiesArray.length > 0) {
                         spread = getSpreadType(spread, 
createObjectLiteralType(), /*isFromObjectLiteral*/ true);
                         propertiesArray = [];
@@ -34572,7 +34939,7 @@ var ts;
                         typeFlags = 0;
                     }
                     var type = checkExpression(memberDecl.expression);
-                    if (!(type.flags & (32768 /* Object */ | 1 /* Any */))) {
+                    if (!isValidSpreadType(type)) {
                         error(memberDecl, 
ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -34620,8 +34987,11 @@ var ts;
                 if (propertiesArray.length > 0) {
                     spread = getSpreadType(spread, createObjectLiteralType(), 
/*isFromObjectLiteral*/ true);
                 }
-                spread.flags |= propagatedFlags;
-                spread.symbol = node.symbol;
+                if (spread.flags & 32768 /* Object */) {
+                    // only set the symbol and flags if this is a (fresh) 
object type
+                    spread.flags |= propagatedFlags;
+                    spread.symbol = node.symbol;
+                }
                 return spread;
             }
             return createObjectLiteralType();
@@ -34644,6 +35014,11 @@ var ts;
                 return result;
             }
         }
+        function isValidSpreadType(type) {
+            return !!(type.flags & (1 /* Any */ | 4096 /* Null */ | 2048 /* 
Undefined */) ||
+                type.flags & 32768 /* Object */ && !isGenericMappedType(type) 
||
+                type.flags & 196608 /* UnionOrIntersection */ && 
!ts.forEach(type.types, function (t) { return !isValidSpreadType(t); }));
+        }
         function checkJsxSelfClosingElement(node) {
             checkJsxOpeningLikeElement(node);
             return jsxElementType || anyType;
@@ -34733,6 +35108,9 @@ var ts;
             return exprType;
         }
         function checkJsxSpreadAttribute(node, elementAttributesType, 
nameTable) {
+            if (compilerOptions.jsx === 2 /* React */) {
+                checkExternalEmitHelpers(node, 2 /* Assign */);
+            }
             var type = checkExpression(node.expression);
             var props = getPropertiesOfType(type);
             for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
@@ -35408,13 +35786,13 @@ var ts;
             for (var _i = 0, signatures_2 = signatures; _i < 
signatures_2.length; _i++) {
                 var signature = signatures_2[_i];
                 var symbol = signature.declaration && 
getSymbolOfNode(signature.declaration);
-                var parent_8 = signature.declaration && 
signature.declaration.parent;
+                var parent_9 = signature.declaration && 
signature.declaration.parent;
                 if (!lastSymbol || symbol === lastSymbol) {
-                    if (lastParent && parent_8 === lastParent) {
+                    if (lastParent && parent_9 === lastParent) {
                         index++;
                     }
                     else {
-                        lastParent = parent_8;
+                        lastParent = parent_9;
                         index = cutoffIndex;
                     }
                 }
@@ -35422,7 +35800,7 @@ var ts;
                     // current declaration belongs to a different symbol
                     // set cutoffIndex so re-orderings in the future won't 
change result set from 0 to cutoffIndex
                     index = cutoffIndex = result.length;
-                    lastParent = parent_8;
+                    lastParent = parent_9;
                 }
                 lastSymbol = symbol;
                 // specialized signatures always need to be placed before 
non-specialized signatures regardless
@@ -35534,7 +35912,7 @@ var ts;
             var context = createInferenceContext(signature, 
/*inferUnionTypes*/ true);
             forEachMatchingParameterType(contextualSignature, signature, 
function (source, target) {
                 // Type parameters from outer context referenced by source 
type are fixed by instantiation of the source type
-                inferTypes(context, instantiateType(source, contextualMapper), 
target);
+                inferTypesWithContext(context, instantiateType(source, 
contextualMapper), target);
             });
             return getSignatureInstantiation(signature, 
getInferredTypes(context));
         }
@@ -35565,7 +35943,7 @@ var ts;
             if (thisType) {
                 var thisArgumentNode = getThisArgumentOfCall(node);
                 var thisArgumentType = thisArgumentNode ? 
checkExpression(thisArgumentNode) : voidType;
-                inferTypes(context, thisArgumentType, thisType);
+                inferTypesWithContext(context, thisArgumentType, thisType);
             }
             // We perform two passes over the arguments. In the first pass we 
infer from all arguments, but use
             // wildcards for all context sensitive function expressions.
@@ -35584,7 +35962,7 @@ var ts;
                         var mapper = excludeArgument && excludeArgument[i] !== 
undefined ? identityMapper : inferenceMapper;
                         argType = checkExpressionWithContextualType(arg, 
paramType, mapper);
                     }
-                    inferTypes(context, argType, paramType);
+                    inferTypesWithContext(context, argType, paramType);
                 }
             }
             // In the second pass we visit only context sensitive arguments, 
and only those that aren't excluded, this
@@ -35598,7 +35976,7 @@ var ts;
                     if (excludeArgument[i] === false) {
                         var arg = args[i];
                         var paramType = getTypeAtPosition(signature, i);
-                        inferTypes(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
+                        inferTypesWithContext(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
                     }
                 }
             }
@@ -36329,12 +36707,13 @@ var ts;
                 if (containingClass) {
                     var containingType = getTypeOfNode(containingClass);
                     var baseTypes = getBaseTypes(containingType);
-                    if (baseTypes.length) {
+                    while (baseTypes.length) {
                         var baseType = baseTypes[0];
                         if (modifiers & 16 /* Protected */ &&
                             baseType.symbol === declaration.parent.symbol) {
                             return true;
                         }
+                        baseTypes = getBaseTypes(baseType);
                     }
                 }
                 if (modifiers & 8 /* Private */) {
@@ -36559,7 +36938,7 @@ var ts;
                 for (var i = 0; i < len; i++) {
                     var declaration = signature.parameters[i].valueDeclaration;
                     if (declaration.type) {
-                        inferTypes(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
+                        inferTypesWithContext(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
                     }
                 }
             }
@@ -36644,7 +37023,7 @@ var ts;
                 // T in the second overload so that we do not infer Base as a 
candidate for T
                 // (inferring Base would make type argument inference 
inconsistent between the two
                 // overloads).
-                inferTypes(mapper.context, links.type, 
instantiateType(contextualType, mapper));
+                inferTypesWithContext(mapper.context, links.type, 
instantiateType(contextualType, mapper));
             }
         }
         function getReturnTypeFromJSDocComment(func) {
@@ -36762,7 +37141,7 @@ var ts;
             if (!switchTypes.length) {
                 return false;
             }
-            return eachTypeContainedIn(type, switchTypes);
+            return eachTypeContainedIn(mapType(type, 
getRegularTypeOfLiteralType), switchTypes);
         }
         function functionHasImplicitReturn(func) {
             if (!(func.flags & 128 /* HasImplicitReturn */)) {
@@ -37030,7 +37409,7 @@ var ts;
         function checkAwaitExpression(node) {
             // Grammar checking
             if (produceDiagnostics) {
-                if (!(node.flags & 524288 /* AwaitContext */)) {
+                if (!(node.flags & 16384 /* AwaitContext */)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.await_expression_is_only_allowed_within_an_async_function);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -37164,15 +37543,15 @@ var ts;
             if (!(isTypeComparableTo(leftType, stringType) || 
isTypeOfKind(leftType, 340 /* NumberLike */ | 512 /* ESSymbol */))) {
                 error(left, 
ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 16384 /* TypeParameter */ | 524288 /* IndexedAccess */)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 540672 /* TypeVariable */)) {
                 error(right, 
ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             return booleanType;
         }
         function checkObjectLiteralAssignment(node, sourceType) {
             var properties = node.properties;
-            for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
-                var p = properties_5[_i];
+            for (var _i = 0, properties_6 = properties; _i < 
properties_6.length; _i++) {
+                var p = properties_6[_i];
                 checkObjectLiteralDestructuringPropertyAssignment(sourceType, 
p, properties);
             }
             return sourceType;
@@ -37207,6 +37586,9 @@ var ts;
                 }
             }
             else if (property.kind === 259 /* SpreadAssignment */) {
+                if (languageVersion < 5 /* ESNext */) {
+                    checkExternalEmitHelpers(property, 4 /* Rest */);
+                }
                 var nonRestNames = [];
                 if (allProperties) {
                     for (var i = 0; i < allProperties.length - 1; i++) {
@@ -37603,7 +37985,7 @@ var ts;
         function checkYieldExpression(node) {
             // Grammar checking
             if (produceDiagnostics) {
-                if (!(node.flags & 131072 /* YieldContext */) || 
isYieldExpressionInClass(node)) {
+                if (!(node.flags & 4096 /* YieldContext */) || 
isYieldExpressionInClass(node)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -37702,8 +38084,8 @@ var ts;
         }
         function isLiteralContextualType(contextualType) {
             if (contextualType) {
-                if (contextualType.flags & 16384 /* TypeParameter */) {
-                    var apparentType = 
getApparentTypeOfTypeParameter(contextualType);
+                if (contextualType.flags & 540672 /* TypeVariable */) {
+                    var apparentType = 
getApparentTypeOfTypeVariable(contextualType);
                     // If the type parameter is constrained to the base 
primitive type we're checking for,
                     // consider this a literal context. For example, given a 
type parameter 'T extends string',
                     // this causes us to infer string literal types for T.
@@ -37997,9 +38379,9 @@ var ts;
                 case 158 /* FunctionType */:
                 case 149 /* MethodDeclaration */:
                 case 148 /* MethodSignature */:
-                    var parent_9 = node.parent;
-                    if (node === parent_9.type) {
-                        return parent_9;
+                    var parent_10 = node.parent;
+                    if (node === parent_10.type) {
+                        return parent_10;
                     }
             }
         }
@@ -38033,6 +38415,12 @@ var ts;
                 node.kind === 154 /* ConstructSignature */) {
                 checkGrammarFunctionLikeDeclaration(node);
             }
+            if (ts.isAsyncFunctionLike(node) && languageVersion < 4 /* ES2017 
*/) {
+                checkExternalEmitHelpers(node, 64 /* Awaiter */);
+                if (languageVersion < 2 /* ES2015 */) {
+                    checkExternalEmitHelpers(node, 128 /* Generator */);
+                }
+            }
             checkTypeParameters(node.typeParameters);
             ts.forEach(node.parameters, checkParameter);
             if (node.type) {
@@ -38438,7 +38826,7 @@ var ts;
             checkSourceElement(node.type);
             var type = getTypeFromMappedTypeNode(node);
             var constraintType = getConstraintTypeFromMappedType(type);
-            var keyType = constraintType.flags & 16384 /* TypeParameter */ ? 
getApparentTypeOfTypeParameter(constraintType) : constraintType;
+            var keyType = constraintType.flags & 540672 /* TypeVariable */ ? 
getApparentTypeOfTypeVariable(constraintType) : constraintType;
             checkTypeAssignableTo(keyType, stringType, 
node.typeParameter.constraint);
         }
         function isPrivateWithinAmbient(node) {
@@ -38778,7 +39166,7 @@ var ts;
             if (thenSignatures.length === 0) {
                 return undefined;
             }
-            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 131072 /* NEUndefined */);
+            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 524288 /* NEUndefinedOrNull */);
             if (isTypeAny(onfulfilledParameterType)) {
                 return undefined;
             }
@@ -39020,6 +39408,9 @@ var ts;
                 markAliasSymbolAsReferenced(rootSymbol);
             }
         }
+        function getParameterTypeNodeForDecoratorCheck(node) {
+            return node.dotDotDotToken ? 
ts.getRestParameterElementType(node.type) : node.type;
+        }
         /** Check the decorators of a node */
         function checkDecorators(node) {
             if (!node.decorators) {
@@ -39033,7 +39424,13 @@ var ts;
             if (!compilerOptions.experimentalDecorators) {
                 error(node, 
ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);
             }
+            var firstDecorator = node.decorators[0];
+            checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */);
+            if (node.kind === 144 /* Parameter */) {
+                checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
+            }
             if (compilerOptions.emitDecoratorMetadata) {
+                checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */);
                 // we only need to perform these checks if we are emitting 
serialized type metadata for the target of a decorator.
                 switch (node.kind) {
                     case 226 /* ClassDeclaration */:
@@ -39041,7 +39438,7 @@ var ts;
                         if (constructor) {
                             for (var _i = 0, _a = constructor.parameters; _i < 
_a.length; _i++) {
                                 var parameter = _a[_i];
-                                markTypeNodeAsReferenced(parameter.type);
+                                
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                             }
                         }
                         break;
@@ -39050,11 +39447,13 @@ var ts;
                     case 152 /* SetAccessor */:
                         for (var _b = 0, _c = node.parameters; _b < _c.length; 
_b++) {
                             var parameter = _c[_b];
-                            markTypeNodeAsReferenced(parameter.type);
+                            
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                         }
                         markTypeNodeAsReferenced(node.type);
                         break;
                     case 147 /* PropertyDeclaration */:
+                        
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));
+                        break;
                     case 144 /* Parameter */:
                         markTypeNodeAsReferenced(node.type);
                         break;
@@ -39184,7 +39583,7 @@ var ts;
         }
         function checkUnusedLocalsAndParameters(node) {
             if (node.parent.kind !== 227 /* InterfaceDeclaration */ && 
noUnusedIdentifiers && !ts.isInAmbientContext(node)) {
-                var _loop_3 = function (key) {
+                var _loop_2 = function (key) {
                     var local = node.locals[key];
                     if (!local.isReferenced) {
                         if (local.valueDeclaration && 
ts.getRootDeclaration(local.valueDeclaration).kind === 144 /* Parameter */) {
@@ -39202,10 +39601,17 @@ var ts;
                     }
                 };
                 for (var key in node.locals) {
-                    _loop_3(key);
+                    _loop_2(key);
                 }
             }
         }
+        function isRemovedPropertyFromObjectSpread(node) {
+            if (ts.isBindingElement(node) && 
ts.isObjectBindingPattern(node.parent)) {
+                var lastElement = ts.lastOrUndefined(node.parent.elements);
+                return lastElement !== node && !!lastElement.dotDotDotToken;
+            }
+            return false;
+        }
         function errorUnusedLocal(node, name) {
             if (isIdentifierThatStartsWithUnderScore(node)) {
                 var declaration = ts.getRootDeclaration(node.parent);
@@ -39215,7 +39621,9 @@ var ts;
                     return;
                 }
             }
-            error(node, ts.Diagnostics._0_is_declared_but_never_used, name);
+            if (!isRemovedPropertyFromObjectSpread(node.kind === 70 /* 
Identifier */ ? node.parent : node)) {
+                error(node, ts.Diagnostics._0_is_declared_but_never_used, 
name);
+            }
         }
         function parameterNameStartsWithUnderscore(parameterName) {
             return parameterName && 
isIdentifierThatStartsWithUnderScore(parameterName);
@@ -39272,7 +39680,7 @@ var ts;
                         for (var _i = 0, _a = local.declarations; _i < 
_a.length; _i++) {
                             var declaration = _a[_i];
                             if (!ts.isAmbientModule(declaration)) {
-                                error(declaration.name, 
ts.Diagnostics._0_is_declared_but_never_used, local.name);
+                                errorUnusedLocal(declaration.name, local.name);
                             }
                         }
                     }
@@ -39386,7 +39794,7 @@ var ts;
             }
         }
         function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {
-            if (!needCollisionCheckForIdentifier(node, name, "Promise")) {
+            if (languageVersion >= 4 /* ES2017 */ || 
!needCollisionCheckForIdentifier(node, name, "Promise")) {
                 return;
             }
             // Uninstantiated modules shouldnt do this check
@@ -39395,7 +39803,7 @@ var ts;
             }
             // In case of variable declaration, node.parent is variable 
statement so look at the variable statement's parent
             var parent = getDeclarationContainer(node);
-            if (parent.kind === 261 /* SourceFile */ && 
ts.isExternalOrCommonJsModule(parent) && parent.flags & 8192 /* 
HasAsyncFunctions */) {
+            if (parent.kind === 261 /* SourceFile */ && 
ts.isExternalOrCommonJsModule(parent) && parent.flags & 1024 /* 
HasAsyncFunctions */) {
                 // If the declaration happens to be in external module, report 
error that Promise is a reserved identifier.
                 error(name, 
ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
 ts.declarationNameToString(name), ts.declarationNameToString(name));
             }
@@ -39495,7 +39903,8 @@ var ts;
                     // so we need to do a bit of extra work to check if 
reference is legal
                     var enclosingContainer = 
ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);
                     if (enclosingContainer === func) {
-                        if (symbol.valueDeclaration.kind === 144 /* Parameter 
*/) {
+                        if (symbol.valueDeclaration.kind === 144 /* Parameter 
*/ ||
+                            symbol.valueDeclaration.kind === 174 /* 
BindingElement */) {
                             // it is ok to reference parameter in initializer 
if either
                             // - parameter is located strictly on the left of 
current parameter declaration
                             if (symbol.valueDeclaration.pos < node.pos) {
@@ -39543,18 +39952,21 @@ var ts;
                 }
             }
             if (node.kind === 174 /* BindingElement */) {
+                if (node.parent.kind === 172 /* ObjectBindingPattern */ && 
languageVersion < 5 /* ESNext */ && !ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(node, 4 /* Rest */);
+                }
                 // check computed properties inside property names of binding 
elements
                 if (node.propertyName && node.propertyName.kind === 142 /* 
ComputedPropertyName */) {
                     checkComputedPropertyName(node.propertyName);
                 }
                 // check private/protected variable access
-                var parent_10 = node.parent.parent;
-                var parentType = getTypeForBindingElementParent(parent_10);
+                var parent_11 = node.parent.parent;
+                var parentType = getTypeForBindingElementParent(parent_11);
                 var name_24 = node.propertyName || node.name;
                 var property = getPropertyOfType(parentType, 
ts.getTextOfPropertyName(name_24));
                 markPropertyAsReferenced(property);
-                if (parent_10.initializer && property && 
getParentOfSymbol(property)) {
-                    checkClassPropertyAccess(parent_10, parent_10.initializer, 
parentType, property);
+                if (parent_11.initializer && property && 
getParentOfSymbol(property)) {
+                    checkClassPropertyAccess(parent_11, parent_11.initializer, 
parentType, property);
                 }
             }
             // For a binding pattern, check contained binding elements
@@ -39779,7 +40191,7 @@ var ts;
             }
             // unknownType is returned i.e. if node.expression is identifier 
whose name cannot be resolved
             // in this case error about missing name is already reported - do 
not report extra one
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 16384 /* TypeParameter */ | 524288 /* IndexedAccess */)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 540672 /* TypeVariable */)) {
                 error(node.expression, 
ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             checkSourceElement(node.statement);
@@ -40081,7 +40493,7 @@ var ts;
         function checkWithStatement(node) {
             // Grammar checking for withStatement
             if (!checkGrammarStatementInAmbientContext(node)) {
-                if (node.flags & 524288 /* AwaitContext */) {
+                if (node.flags & 16384 /* AwaitContext */) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);
                 }
             }
@@ -40352,6 +40764,9 @@ var ts;
             checkClassForDuplicateDeclarations(node);
             var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node);
             if (baseTypeNode) {
+                if (languageVersion < 2 /* ES2015 */ && 
!ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends 
*/);
+                }
                 var baseTypes = getBaseTypes(type);
                 if (baseTypes.length && produceDiagnostics) {
                     var baseType_1 = baseTypes[0];
@@ -40561,8 +40976,8 @@ var ts;
             for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; 
_i++) {
                 var base = baseTypes_2[_i];
                 var properties = 
getPropertiesOfObjectType(getTypeWithThisArgument(base, type.thisType));
-                for (var _a = 0, properties_6 = properties; _a < 
properties_6.length; _a++) {
-                    var prop = properties_6[_a];
+                for (var _a = 0, properties_7 = properties; _a < 
properties_7.length; _a++) {
+                    var prop = properties_7[_a];
                     var existing = seen[prop.name];
                     if (!existing) {
                         seen[prop.name] = { prop: prop, containingType: base };
@@ -42382,9 +42797,9 @@ var ts;
             if (startInDeclarationContainer) {
                 // When resolving the name of a declaration as a value, we 
need to start resolution
                 // at a point outside of the declaration.
-                var parent_11 = reference.parent;
-                if (ts.isDeclaration(parent_11) && reference === 
parent_11.name) {
-                    location = getDeclarationContainer(parent_11);
+                var parent_12 = reference.parent;
+                if (ts.isDeclaration(parent_12) && reference === 
parent_12.name) {
+                    location = getDeclarationContainer(parent_12);
                 }
             }
             return resolveName(location, reference.text, 107455 /* Value */ | 
1048576 /* ExportValue */ | 8388608 /* Alias */, /*nodeNotFoundMessage*/ 
undefined, /*nameArg*/ undefined);
@@ -42513,9 +42928,9 @@ var ts;
                 // external modules cannot define or contribute to type 
declaration files
                 var current = symbol;
                 while (true) {
-                    var parent_12 = getParentOfSymbol(current);
-                    if (parent_12) {
-                        current = parent_12;
+                    var parent_13 = getParentOfSymbol(current);
+                    if (parent_13) {
+                        current = parent_13;
                     }
                     else {
                         break;
@@ -42551,8 +42966,6 @@ var ts;
             }
             // Initialize global symbol table
             var augmentations;
-            var requestedExternalEmitHelpers = 0;
-            var firstFileRequestingExternalHelpers;
             for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) 
{
                 var file = _c[_b];
                 if (!ts.isExternalOrCommonJsModule(file)) {
@@ -42573,15 +42986,6 @@ var ts;
                         }
                     }
                 }
-                if ((compilerOptions.isolatedModules || 
ts.isExternalModule(file)) && !file.isDeclarationFile) {
-                    var fileRequestedExternalEmitHelpers = file.flags & 64512 
/* EmitHelperFlags */;
-                    if (fileRequestedExternalEmitHelpers) {
-                        requestedExternalEmitHelpers |= 
fileRequestedExternalEmitHelpers;
-                        if (firstFileRequestingExternalHelpers === undefined) {
-                            firstFileRequestingExternalHelpers = file;
-                        }
-                    }
-                }
             }
             if (augmentations) {
                 // merge module augmentations.
@@ -42640,50 +43044,46 @@ var ts;
             var symbol = getGlobalSymbol("ReadonlyArray", 793064 /* Type */, 
/*diagnostic*/ undefined);
             globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, 
/*arity*/ 1);
             anyReadonlyArrayType = globalReadonlyArrayType ? 
createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : 
anyArrayType;
-            // If we have specified that we are importing helpers, we should 
report global
-            // errors if we cannot resolve the helpers external module, or if 
it does not have
-            // the necessary helpers exported.
-            if (compilerOptions.importHelpers && 
firstFileRequestingExternalHelpers) {
-                // Find the first reference to the helpers module.
-                var helpersModule = 
resolveExternalModule(firstFileRequestingExternalHelpers, 
ts.externalHelpersModuleNameText, ts.Diagnostics.Cannot_find_module_0, 
-                /*errorNode*/ undefined);
-                // If we found the module, report errors if it does not have 
the necessary exports.
-                if (helpersModule) {
-                    var exports = helpersModule.exports;
-                    if (requestedExternalEmitHelpers & 1024 /* HasClassExtends 
*/ && languageVersion < 2 /* ES2015 */) {
-                        verifyHelperSymbol(exports, "__extends", 107455 /* 
Value */);
-                    }
-                    if (requestedExternalEmitHelpers & 16384 /* 
HasSpreadAttribute */ &&
-                        (languageVersion < 5 /* ESNext */ || 
compilerOptions.jsx === 2 /* React */)) {
-                        verifyHelperSymbol(exports, "__assign", 107455 /* 
Value */);
-                    }
-                    if (languageVersion < 5 /* ESNext */ && 
requestedExternalEmitHelpers & 32768 /* HasRestAttribute */) {
-                        verifyHelperSymbol(exports, "__rest", 107455 /* Value 
*/);
-                    }
-                    if (requestedExternalEmitHelpers & 2048 /* HasDecorators 
*/) {
-                        verifyHelperSymbol(exports, "__decorate", 107455 /* 
Value */);
-                        if (compilerOptions.emitDecoratorMetadata) {
-                            verifyHelperSymbol(exports, "__metadata", 107455 
/* Value */);
-                        }
-                    }
-                    if (requestedExternalEmitHelpers & 4096 /* 
HasParamDecorators */) {
-                        verifyHelperSymbol(exports, "__param", 107455 /* Value 
*/);
-                    }
-                    if (requestedExternalEmitHelpers & 8192 /* 
HasAsyncFunctions */) {
-                        verifyHelperSymbol(exports, "__awaiter", 107455 /* 
Value */);
-                        if (languageVersion < 2 /* ES2015 */) {
-                            verifyHelperSymbol(exports, "__generator", 107455 
/* Value */);
+        }
+        function checkExternalEmitHelpers(location, helpers) {
+            if ((requestedExternalEmitHelpers & helpers) !== helpers && 
compilerOptions.importHelpers) {
+                var sourceFile = ts.getSourceFileOfNode(location);
+                if (ts.isEffectiveExternalModule(sourceFile, compilerOptions)) 
{
+                    var helpersModule = resolveHelpersModule(sourceFile, 
location);
+                    if (helpersModule !== unknownSymbol) {
+                        var uncheckedHelpers = helpers & 
~requestedExternalEmitHelpers;
+                        for (var helper = 1 /* FirstEmitHelper */; helper <= 
128 /* LastEmitHelper */; helper <<= 1) {
+                            if (uncheckedHelpers & helper) {
+                                var name_27 = getHelperName(helper);
+                                var symbol = getSymbol(helpersModule.exports, 
ts.escapeIdentifier(name_27), 107455 /* Value */);
+                                if (!symbol) {
+                                    error(location, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,
 ts.externalHelpersModuleNameText, name_27);
+                                }
+                            }
                         }
                     }
+                    requestedExternalEmitHelpers |= helpers;
                 }
             }
         }
-        function verifyHelperSymbol(symbols, name, meaning) {
-            var symbol = getSymbol(symbols, ts.escapeIdentifier(name), 
meaning);
-            if (!symbol) {
-                error(/*location*/ undefined, 
ts.Diagnostics.Module_0_has_no_exported_member_1, 
ts.externalHelpersModuleNameText, name);
+        function getHelperName(helper) {
+            switch (helper) {
+                case 1 /* Extends */: return "__extends";
+                case 2 /* Assign */: return "__assign";
+                case 4 /* Rest */: return "__rest";
+                case 8 /* Decorate */: return "__decorate";
+                case 16 /* Metadata */: return "__metadata";
+                case 32 /* Param */: return "__param";
+                case 64 /* Awaiter */: return "__awaiter";
+                case 128 /* Generator */: return "__generator";
             }
         }
+        function resolveHelpersModule(node, errorNode) {
+            if (!externalHelpersModule) {
+                externalHelpersModule = resolveExternalModule(node, 
ts.externalHelpersModuleNameText, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
 errorNode) || unknownSymbol;
+            }
+            return externalHelpersModule;
+        }
         function createInstantiatedPromiseLikeType() {
             var promiseLikeType = getGlobalPromiseLikeType();
             if (promiseLikeType !== emptyGenericType) {
@@ -43218,10 +43618,10 @@ var ts;
                 if (prop.kind === 259 /* SpreadAssignment */) {
                     continue;
                 }
-                var name_27 = prop.name;
-                if (name_27.kind === 142 /* ComputedPropertyName */) {
+                var name_28 = prop.name;
+                if (name_28.kind === 142 /* ComputedPropertyName */) {
                     // If the name is not a ComputedPropertyName, the grammar 
checking will skip it
-                    checkGrammarComputedPropertyName(name_27);
+                    checkGrammarComputedPropertyName(name_28);
                 }
                 if (prop.kind === 258 /* ShorthandPropertyAssignment */ && 
!inDestructuring && prop.objectAssignmentInitializer) {
                     // having objectAssignmentInitializer is only valid in 
ObjectAssignmentPattern
@@ -43249,8 +43649,8 @@ var ts;
                 if (prop.kind === 257 /* PropertyAssignment */ || prop.kind 
=== 258 /* ShorthandPropertyAssignment */) {
                     // Grammar checking for computedPropertyName and 
shorthandPropertyAssignment
                     checkGrammarForInvalidQuestionMark(prop.questionToken, 
ts.Diagnostics.An_object_member_cannot_be_declared_optional);
-                    if (name_27.kind === 8 /* NumericLiteral */) {
-                        checkGrammarNumericLiteral(name_27);
+                    if (name_28.kind === 8 /* NumericLiteral */) {
+                        checkGrammarNumericLiteral(name_28);
                     }
                     currentKind = Property;
                 }
@@ -43266,7 +43666,7 @@ var ts;
                 else {
                     ts.Debug.fail("Unexpected syntax kind:" + prop.kind);
                 }
-                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_27);
+                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_28);
                 if (effectiveName === undefined) {
                     continue;
                 }
@@ -43276,18 +43676,18 @@ var ts;
                 else {
                     var existingKind = seen[effectiveName];
                     if (currentKind === Property && existingKind === Property) 
{
-                        grammarErrorOnNode(name_27, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_27));
+                        grammarErrorOnNode(name_28, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_28));
                     }
                     else if ((currentKind & GetOrSetAccessor) && (existingKind 
& GetOrSetAccessor)) {
                         if (existingKind !== GetOrSetAccessor && currentKind 
!== existingKind) {
                             seen[effectiveName] = currentKind | existingKind;
                         }
                         else {
-                            return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
+                            return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
                         }
                     }
                     else {
-                        return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
+                        return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
                     }
                 }
             }
@@ -43300,12 +43700,12 @@ var ts;
                     continue;
                 }
                 var jsxAttr = attr;
-                var name_28 = jsxAttr.name;
-                if (!seen[name_28.text]) {
-                    seen[name_28.text] = true;
+                var name_29 = jsxAttr.name;
+                if (!seen[name_29.text]) {
+                    seen[name_29.text] = true;
                 }
                 else {
-                    return grammarErrorOnNode(name_28, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
+                    return grammarErrorOnNode(name_29, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
                 }
                 var initializer = jsxAttr.initializer;
                 if (initializer && initializer.kind === 252 /* JsxExpression 
*/ && !initializer.expression) {
@@ -43365,6 +43765,9 @@ var ts;
             else if (accessor.body === undefined && 
!(ts.getModifierFlags(accessor) & 128 /* Abstract */)) {
                 return grammarErrorAtPos(ts.getSourceFileOfNode(accessor), 
accessor.end - 1, ";".length, ts.Diagnostics._0_expected, "{");
             }
+            else if (accessor.body && ts.getModifierFlags(accessor) & 128 /* 
Abstract */) {
+                return grammarErrorOnNode(accessor, 
ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);
+            }
             else if (accessor.typeParameters) {
                 return grammarErrorOnNode(accessor.name, 
ts.Diagnostics.An_accessor_cannot_have_type_parameters);
             }
@@ -43725,8 +44128,19 @@ var ts;
         }
         function checkGrammarNumericLiteral(node) {
             // Grammar checking
-            if (node.isOctalLiteral && languageVersion >= 1 /* ES5 */) {
-                return grammarErrorOnNode(node, 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher);
+            if (node.isOctalLiteral) {
+                var diagnosticMessage = void 0;
+                if (languageVersion >= 1 /* ES5 */) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
+                }
+                else if (ts.isChildOfLiteralType(node)) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
+                }
+                if (diagnosticMessage) {
+                    var withMinus = ts.isPrefixUnaryExpression(node.parent) && 
node.parent.operator === 37 /* MinusToken */;
+                    var literal = (withMinus ? "-" : "") + "0o" + node.text;
+                    return grammarErrorOnNode(withMinus ? node.parent : node, 
diagnosticMessage, literal);
+                }
             }
         }
         function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {
@@ -44629,7 +45043,7 @@ var ts;
     function aggregateTransformFlagsForSubtree(node) {
         // We do not transform ambient declarations or types, so there is no 
need to
         // recursively aggregate transform flags.
-        if (ts.hasModifier(node, 2 /* Ambient */) || ts.isTypeNode(node)) {
+        if (ts.hasModifier(node, 2 /* Ambient */) || (ts.isTypeNode(node) && 
node.kind !== 199 /* ExpressionWithTypeArguments */)) {
             return 0 /* None */;
         }
         // Aggregate the transform flags of each child.
@@ -44821,11 +45235,11 @@ var ts;
             }
         }
         for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < 
pendingDeclarations_1.length; _i++) {
-            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_29 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
-            var variable = ts.createVariableDeclaration(name_29, 
+            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_30 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
+            var variable = ts.createVariableDeclaration(name_30, 
             /*type*/ undefined, pendingExpressions_1 ? 
ts.inlineExpressions(ts.append(pendingExpressions_1, value)) : value, 
location_2);
             variable.original = original;
-            if (ts.isIdentifier(name_29)) {
+            if (ts.isIdentifier(name_30)) {
                 ts.setEmitFlags(variable, 64 /* NoNestedSourceMaps */);
             }
             ts.aggregateTransformFlags(variable);
@@ -45029,8 +45443,8 @@ var ts;
             return ts.createElementAccess(value, argumentExpression);
         }
         else {
-            var name_30 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
-            return ts.createPropertyAccess(value, name_30);
+            var name_31 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
+            return ts.createPropertyAccess(value, name_31);
         }
     }
     /**
@@ -45083,7 +45497,7 @@ var ts;
     var restHelper = {
         name: "typescript:rest",
         scoped: false,
-        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (typeof Object.getOwnPropertySymbols === 
\"function\")\n                    for (var i = 0, p = 
Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n  
                      t[p[i]] = s[p[i]];\n     [...]
+        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (s != null && typeof 
Object.getOwnPropertySymbols === \"function\")\n                    for (var i 
= 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if 
(e.indexOf(p[i]) < 0)\n                        t[p[i]] = s [...]
     };
     /** Given value: o, propName: p, pattern: { a, b, ...p } from the original 
statement
      * `{ a, b, ...p } = o`, create `p = __rest(o, ["a", "b"]);`*/
@@ -45404,7 +45818,8 @@ var ts;
                 case 228 /* TypeAliasDeclaration */:
                 // TypeScript type-only declarations are elided.
                 case 147 /* PropertyDeclaration */:
-                // TypeScript property declarations are elided.
+                    // TypeScript property declarations are elided.
+                    return undefined;
                 case 150 /* Constructor */:
                     return visitConstructor(node);
                 case 227 /* InterfaceDeclaration */:
@@ -45989,8 +46404,8 @@ var ts;
          * @param receiver The receiver on which each property should be 
assigned.
          */
         function addInitializedPropertyStatements(statements, properties, 
receiver) {
-            for (var _i = 0, properties_7 = properties; _i < 
properties_7.length; _i++) {
-                var property = properties_7[_i];
+            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
+                var property = properties_8[_i];
                 var statement = 
ts.createStatement(transformInitializedProperty(property, receiver));
                 ts.setSourceMapRange(statement, 
ts.moveRangePastModifiers(property));
                 ts.setCommentRange(statement, property);
@@ -46005,8 +46420,8 @@ var ts;
          */
         function generateInitializedPropertyExpressions(properties, receiver) {
             var expressions = [];
-            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
-                var property = properties_8[_i];
+            for (var _i = 0, properties_9 = properties; _i < 
properties_9.length; _i++) {
+                var property = properties_9[_i];
                 var expression = transformInitializedProperty(property, 
receiver);
                 expression.startsOnNewLine = true;
                 ts.setSourceMapRange(expression, 
ts.moveRangePastModifiers(property));
@@ -46135,10 +46550,11 @@ var ts;
                 return undefined;
             }
             var _a = ts.getAllAccessorDeclarations(node.members, accessor), 
firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, 
setAccessor = _a.setAccessor;
-            if (accessor !== firstAccessor) {
+            var firstAccessorWithDecorators = firstAccessor.decorators ? 
firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : 
undefined;
+            if (!firstAccessorWithDecorators || accessor !== 
firstAccessorWithDecorators) {
                 return undefined;
             }
-            var decorators = firstAccessor.decorators || (secondAccessor && 
secondAccessor.decorators);
+            var decorators = firstAccessorWithDecorators.decorators;
             var parameters = getDecoratorsOfParameters(setAccessor);
             if (!decorators && !parameters) {
                 return undefined;
@@ -46179,14 +46595,14 @@ var ts;
          * @param node The declaration node.
          * @param allDecorators An object containing all of the decorators for 
the declaration.
          */
-        function transformAllDecoratorsOfDeclaration(node, allDecorators) {
+        function transformAllDecoratorsOfDeclaration(node, container, 
allDecorators) {
             if (!allDecorators) {
                 return undefined;
             }
             var decoratorExpressions = [];
             ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, 
transformDecorator));
             ts.addRange(decoratorExpressions, 
ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));
-            addTypeMetadata(node, decoratorExpressions);
+            addTypeMetadata(node, container, decoratorExpressions);
             return decoratorExpressions;
         }
         /**
@@ -46233,7 +46649,7 @@ var ts;
          */
         function generateClassElementDecorationExpression(node, member) {
             var allDecorators = getAllDecoratorsOfClassElement(node, member);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -46296,7 +46712,7 @@ var ts;
          */
         function generateConstructorDecorationExpression(node) {
             var allDecorators = getAllDecoratorsOfConstructor(node);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -46342,35 +46758,35 @@ var ts;
          * @param node The declaration node.
          * @param decoratorExpressions The destination array to which to add 
new decorator expressions.
          */
-        function addTypeMetadata(node, decoratorExpressions) {
+        function addTypeMetadata(node, container, decoratorExpressions) {
             if (USE_NEW_TYPE_METADATA_FORMAT) {
-                addNewTypeMetadata(node, decoratorExpressions);
+                addNewTypeMetadata(node, container, decoratorExpressions);
             }
             else {
-                addOldTypeMetadata(node, decoratorExpressions);
+                addOldTypeMetadata(node, container, decoratorExpressions);
             }
         }
-        function addOldTypeMetadata(node, decoratorExpressions) {
+        function addOldTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 if (shouldAddTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:type", serializeTypeOfNode(node)));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node)));
+                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node, container)));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:returntype", serializeReturnTypeOfNode(node)));
                 }
             }
         }
-        function addNewTypeMetadata(node, decoratorExpressions) {
+        function addNewTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 var properties = void 0;
                 if (shouldAddTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("type", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeTypeOfNode(node))));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeParameterTypesOfNode(node))));
+                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeParameterTypesOfNode(node, container))));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("returnType", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeReturnTypeOfNode(node))));
@@ -46412,12 +46828,16 @@ var ts;
          * @param node The node to test.
          */
         function shouldAddParamTypesMetadata(node) {
-            var kind = node.kind;
-            return kind === 226 /* ClassDeclaration */
-                || kind === 197 /* ClassExpression */
-                || kind === 149 /* MethodDeclaration */
-                || kind === 151 /* GetAccessor */
-                || kind === 152 /* SetAccessor */;
+            switch (node.kind) {
+                case 226 /* ClassDeclaration */:
+                case 197 /* ClassExpression */:
+                    return ts.getFirstConstructorWithBody(node) !== undefined;
+                case 149 /* MethodDeclaration */:
+                case 151 /* GetAccessor */:
+                case 152 /* SetAccessor */:
+                    return true;
+            }
+            return false;
         }
         /**
          * Serializes the type of a node for use with decorator type metadata.
@@ -46441,28 +46861,11 @@ var ts;
             }
         }
         /**
-         * Gets the most likely element type for a TypeNode. This is not an 
exhaustive test
-         * as it assumes a rest argument can only be an array type (either 
T[], or Array<T>).
-         *
-         * @param node The type node.
-         */
-        function getRestParameterElementType(node) {
-            if (node && node.kind === 162 /* ArrayType */) {
-                return node.elementType;
-            }
-            else if (node && node.kind === 157 /* TypeReference */) {
-                return ts.singleOrUndefined(node.typeArguments);
-            }
-            else {
-                return undefined;
-            }
-        }
-        /**
          * Serializes the types of the parameters of a node for use with 
decorator type metadata.
          *
          * @param node The node that should have its parameter types 
serialized.
          */
-        function serializeParameterTypesOfNode(node) {
+        function serializeParameterTypesOfNode(node, container) {
             var valueDeclaration = ts.isClassLike(node)
                 ? ts.getFirstConstructorWithBody(node)
                 : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)
@@ -46470,7 +46873,7 @@ var ts;
                     : undefined;
             var expressions = [];
             if (valueDeclaration) {
-                var parameters = valueDeclaration.parameters;
+                var parameters = 
getParametersOfDecoratedDeclaration(valueDeclaration, container);
                 var numParameters = parameters.length;
                 for (var i = 0; i < numParameters; i++) {
                     var parameter = parameters[i];
@@ -46478,7 +46881,7 @@ var ts;
                         continue;
                     }
                     if (parameter.dotDotDotToken) {
-                        
expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));
+                        
expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));
                     }
                     else {
                         expressions.push(serializeTypeOfNode(parameter));
@@ -46487,6 +46890,15 @@ var ts;
             }
             return ts.createArrayLiteral(expressions);
         }
+        function getParametersOfDecoratedDeclaration(node, container) {
+            if (container && node.kind === 151 /* GetAccessor */) {
+                var setAccessor = 
ts.getAllAccessorDeclarations(container.members, node).setAccessor;
+                if (setAccessor) {
+                    return setAccessor.parameters;
+                }
+            }
+            return node.parameters;
+        }
         /**
          * Serializes the return type of a node for use with decorator type 
metadata.
          *
@@ -46525,6 +46937,9 @@ var ts;
             }
             switch (node.kind) {
                 case 104 /* VoidKeyword */:
+                case 137 /* UndefinedKeyword */:
+                case 94 /* NullKeyword */:
+                case 129 /* NeverKeyword */:
                     return ts.createVoidZero();
                 case 166 /* ParenthesizedType */:
                     return serializeTypeNode(node.type);
@@ -46563,34 +46978,7 @@ var ts;
                     return serializeTypeReferenceNode(node);
                 case 165 /* IntersectionType */:
                 case 164 /* UnionType */:
-                    {
-                        var unionOrIntersection = node;
-                        var serializedUnion = void 0;
-                        for (var _i = 0, _a = unionOrIntersection.types; _i < 
_a.length; _i++) {
-                            var typeNode = _a[_i];
-                            var serializedIndividual = 
serializeTypeNode(typeNode);
-                            // Non identifier
-                            if (serializedIndividual.kind !== 70 /* Identifier 
*/) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            // One of the individual is global object, return 
immediately
-                            if (serializedIndividual.text === "Object") {
-                                return serializedIndividual;
-                            }
-                            // Different types
-                            if (serializedUnion && serializedUnion.text !== 
serializedIndividual.text) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            serializedUnion = serializedIndividual;
-                        }
-                        // If we were able to find common type
-                        if (serializedUnion) {
-                            return serializedUnion;
-                        }
-                    }
-                // Fallthrough
+                    return serializeUnionOrIntersectionType(node);
                 case 160 /* TypeQuery */:
                 case 168 /* TypeOperator */:
                 case 169 /* IndexedAccessType */:
@@ -46605,6 +46993,37 @@ var ts;
             }
             return ts.createIdentifier("Object");
         }
+        function serializeUnionOrIntersectionType(node) {
+            var serializedUnion;
+            for (var _i = 0, _a = node.types; _i < _a.length; _i++) {
+                var typeNode = _a[_i];
+                var serializedIndividual = serializeTypeNode(typeNode);
+                if (ts.isVoidExpression(serializedIndividual)) {
+                    // If we dont have any other type already set, set the 
initial type
+                    if (!serializedUnion) {
+                        serializedUnion = serializedIndividual;
+                    }
+                }
+                else if (ts.isIdentifier(serializedIndividual) && 
serializedIndividual.text === "Object") {
+                    // One of the individual is global object, return 
immediately
+                    return serializedIndividual;
+                }
+                else if (serializedUnion && 
!ts.isVoidExpression(serializedUnion)) {
+                    // Different types
+                    if (!ts.isIdentifier(serializedUnion) ||
+                        !ts.isIdentifier(serializedIndividual) ||
+                        serializedUnion.text !== serializedIndividual.text) {
+                        return ts.createIdentifier("Object");
+                    }
+                }
+                else {
+                    // Initialize the union type
+                    serializedUnion = serializedIndividual;
+                }
+            }
+            // If we were able to find common type, use it
+            return serializedUnion;
+        }
         /**
          * Serializes a TypeReferenceNode to an appropriate JS constructor 
value for use with
          * decorator type metadata.
@@ -46654,14 +47073,14 @@ var ts;
                 case 70 /* Identifier */:
                     // Create a clone of the name with a new parent, and treat 
it as if it were
                     // a source tree node for the purposes of the checker.
-                    var name_31 = ts.getMutableClone(node);
-                    name_31.flags &= ~8 /* Synthesized */;
-                    name_31.original = undefined;
-                    name_31.parent = currentScope;
+                    var name_32 = ts.getMutableClone(node);
+                    name_32.flags &= ~8 /* Synthesized */;
+                    name_32.original = undefined;
+                    name_32.parent = currentScope;
                     if (useFallback) {
-                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_31), 
ts.createLiteral("undefined")), name_31);
+                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_32), 
ts.createLiteral("undefined")), name_32);
                     }
-                    return name_31;
+                    return name_32;
                 case 141 /* QualifiedName */:
                     return serializeQualifiedNameAsExpression(node, 
useFallback);
             }
@@ -46708,7 +47127,7 @@ var ts;
                     : name.expression;
             }
             else if (ts.isIdentifier(name)) {
-                return ts.createLiteral(name.text);
+                return ts.createLiteral(ts.unescapeIdentifier(name.text));
             }
             else {
                 return ts.getSynthesizedClone(name);
@@ -47187,9 +47606,9 @@ var ts;
          */
         function isFirstEmittedDeclarationInScope(node) {
             if (currentScopeFirstDeclarationsOfName) {
-                var name_32 = node.symbol && node.symbol.name;
-                if (name_32) {
-                    return currentScopeFirstDeclarationsOfName[name_32] === 
node;
+                var name_33 = node.symbol && node.symbol.name;
+                if (name_33) {
+                    return currentScopeFirstDeclarationsOfName[name_33] === 
node;
                 }
             }
             return false;
@@ -47326,7 +47745,7 @@ var ts;
             var blockLocation;
             var body = node.body;
             if (body.kind === 231 /* ModuleBlock */) {
-                ts.addRange(statements, ts.visitNodes(body.statements, 
namespaceElementVisitor, ts.isStatement));
+                saveStateAndInvoke(body, function (body) { return 
ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, 
ts.isStatement)); });
                 statementsLocation = body.statements;
                 blockLocation = body;
             }
@@ -47697,16 +48116,16 @@ var ts;
         }
         function substituteShorthandPropertyAssignment(node) {
             if (enabledSubstitutions & 2 /* NamespaceExports */) {
-                var name_33 = node.name;
-                var exportedName = trySubstituteNamespaceExportedName(name_33);
+                var name_34 = node.name;
+                var exportedName = trySubstituteNamespaceExportedName(name_34);
                 if (exportedName) {
                     // A shorthand property with an assignment initializer is 
probably part of a
                     // destructuring assignment
                     if (node.objectAssignmentInitializer) {
                         var initializer = ts.createAssignment(exportedName, 
node.objectAssignmentInitializer);
-                        return ts.createPropertyAssignment(name_33, 
initializer, /*location*/ node);
+                        return ts.createPropertyAssignment(name_34, 
initializer, /*location*/ node);
                     }
-                    return ts.createPropertyAssignment(name_33, exportedName, 
/*location*/ node);
+                    return ts.createPropertyAssignment(name_34, exportedName, 
/*location*/ node);
                 }
             }
             return node;
@@ -48236,6 +48655,9 @@ var ts;
                 return decoded ? ts.createLiteral(decoded, /*location*/ node) 
: node;
             }
             else if (node.kind === 252 /* JsxExpression */) {
+                if (node.expression === undefined) {
+                    return ts.createLiteral(true);
+                }
                 return visitJsxExpression(node);
             }
             else {
@@ -48321,12 +48743,12 @@ var ts;
                 return getTagName(node.openingElement);
             }
             else {
-                var name_34 = node.tagName;
-                if (ts.isIdentifier(name_34) && 
ts.isIntrinsicJsxName(name_34.text)) {
-                    return ts.createLiteral(name_34.text);
+                var name_35 = node.tagName;
+                if (ts.isIdentifier(name_35) && 
ts.isIntrinsicJsxName(name_35.text)) {
+                    return ts.createLiteral(name_35.text);
                 }
                 else {
-                    return ts.createExpressionFromEntityName(name_34);
+                    return ts.createExpressionFromEntityName(name_35);
                 }
             }
         }
@@ -48961,7 +49383,7 @@ var ts;
         name: "typescript:awaiter",
         scoped: false,
         priority: 5,
-        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
+        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
     };
     var asyncSuperHelper = {
         name: "typescript:async-super",
@@ -49666,7 +50088,10 @@ var ts;
                 addRestParameterIfNeeded(statements, constructor, 
hasSynthesizedSuper);
                 ts.Debug.assert(statementOffset >= 0, "statementOffset not 
initialized correctly!");
             }
-            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
!!extendsClauseElement, hasSynthesizedSuper, statementOffset);
+            // determine whether the class is known syntactically to be a 
derived class (e.g. a
+            // class that extends a value that is not syntactically known to 
be `null`).
+            var isDerivedClass = extendsClauseElement && 
ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 94 /* 
NullKeyword */;
+            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
isDerivedClass, hasSynthesizedSuper, statementOffset);
             // The last statement expression was replaced. Skip it.
             if (superCaptureStatus === 1 /* ReplaceSuperCapture */ || 
superCaptureStatus === 2 /* ReplaceWithReturn */) {
                 statementOffset++;
@@ -49680,7 +50105,7 @@ var ts;
             }
             // Return `_this` unless we're sure enough that it would be 
pointless to add a return statement.
             // If there's a constructor that we can tell returns in enough 
places, then we *do not* want to add a return.
-            if (extendsClauseElement
+            if (isDerivedClass
                 && superCaptureStatus !== 2 /* ReplaceWithReturn */
                 && !(constructor && 
isSufficientlyCoveredByReturnStatements(constructor.body))) {
                 statements.push(ts.createReturn(ts.createIdentifier("_this")));
@@ -49725,9 +50150,9 @@ var ts;
          *
          * @returns The new statement offset into the `statements` array.
          */
-        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
hasExtendsClause, hasSynthesizedSuper, statementOffset) {
+        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
isDerivedClass, hasSynthesizedSuper, statementOffset) {
             // If this isn't a derived class, just capture 'this' for arrow 
functions if necessary.
-            if (!hasExtendsClause) {
+            if (!isDerivedClass) {
                 if (ctor) {
                     addCaptureThisForNodeIfNeeded(statements, ctor);
                 }
@@ -49775,8 +50200,11 @@ var ts;
                     superCallExpression = 
ts.setOriginalNode(saveStateAndInvoke(superCall, 
visitImmediateSuperCallInBody), superCall);
                 }
             }
-            // Return the result if we have an immediate super() call on the 
last statement.
-            if (superCallExpression && statementOffset === 
ctorStatements.length - 1) {
+            // Return the result if we have an immediate super() call on the 
last statement,
+            // but only if the constructor itself doesn't use 'this' elsewhere.
+            if (superCallExpression
+                && statementOffset === ctorStatements.length - 1
+                && !(ctor.transformFlags & (16384 /* ContainsLexicalThis */ | 
32768 /* ContainsCapturedLexicalThis */))) {
                 var returnStatement = ts.createReturn(superCallExpression);
                 if (superCallExpression.kind !== 192 /* BinaryExpression */
                     || superCallExpression.left.kind !== 179 /* CallExpression 
*/) {
@@ -49788,18 +50216,18 @@ var ts;
                 return 2 /* ReplaceWithReturn */;
             }
             // Perform the capture.
-            captureThisForNode(statements, ctor, superCallExpression, 
firstStatement);
+            captureThisForNode(statements, ctor, superCallExpression || 
createActualThis(), firstStatement);
             // If we're actually replacing the original statement, we need to 
signal this to the caller.
             if (superCallExpression) {
                 return 1 /* ReplaceSuperCapture */;
             }
             return 0 /* NoReplacement */;
         }
+        function createActualThis() {
+            return ts.setEmitFlags(ts.createThis(), 4 /* NoSubstitution */);
+        }
         function createDefaultSuperCallOrThis() {
-            var actualThis = ts.createThis();
-            ts.setEmitFlags(actualThis, 4 /* NoSubstitution */);
-            var superCall = 
ts.createFunctionApply(ts.createIdentifier("_super"), actualThis, 
ts.createIdentifier("arguments"));
-            return ts.createLogicalOr(superCall, actualThis);
+            return 
ts.createLogicalOr(ts.createLogicalAnd(ts.createStrictInequality(ts.createIdentifier("_super"),
 ts.createNull()), ts.createFunctionApply(ts.createIdentifier("_super"), 
createActualThis(), ts.createIdentifier("arguments"))), createActualThis());
         }
         /**
          * Visits a parameter declaration.
@@ -49862,17 +50290,17 @@ var ts;
             }
             for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {
                 var parameter = _a[_i];
-                var name_35 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
+                var name_36 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
                 // A rest parameter cannot have a binding pattern or an 
initializer,
                 // so let's just ignore it.
                 if (dotDotDotToken) {
                     continue;
                 }
-                if (ts.isBindingPattern(name_35)) {
-                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_35, initializer);
+                if (ts.isBindingPattern(name_36)) {
+                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_36, initializer);
                 }
                 else if (initializer) {
-                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_35, initializer);
+                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_36, initializer);
                 }
             }
         }
@@ -50730,15 +51158,23 @@ var ts;
                     convertedLoopState.hoistedLocalVariables = 
outerConvertedLoopState.hoistedLocalVariables;
                 }
             }
-            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement);
+            startLexicalEnvironment();
+            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement, /*optional*/ false, ts.liftToBlock);
+            var lexicalEnvironment = endLexicalEnvironment();
             var currentState = convertedLoopState;
             convertedLoopState = outerConvertedLoopState;
-            if (loopOutParameters.length) {
+            if (loopOutParameters.length || lexicalEnvironment) {
                 var statements_4 = ts.isBlock(loopBody) ? 
loopBody.statements.slice() : [loopBody];
-                copyOutParameters(loopOutParameters, 1 /* ToOutParameter */, 
statements_4);
+                if (loopOutParameters.length) {
+                    copyOutParameters(loopOutParameters, 1 /* ToOutParameter 
*/, statements_4);
+                }
+                ts.addRange(statements_4, lexicalEnvironment);
                 loopBody = ts.createBlock(statements_4, /*location*/ 
undefined, /*multiline*/ true);
             }
-            if (!ts.isBlock(loopBody)) {
+            if (ts.isBlock(loopBody)) {
+                loopBody.multiLine = true;
+            }
+            else {
                 loopBody = ts.createBlock([loopBody], /*location*/ undefined, 
/*multiline*/ true);
             }
             var isAsyncBlockContainingAwait = enclosingNonArrowFunction
@@ -52340,7 +52776,7 @@ var ts;
                 emitYield(expression, /*location*/ node);
             }
             markLabel(resumeLabel);
-            return createGeneratorResume();
+            return createGeneratorResume(/*location*/ node);
         }
         /**
          * Visits an ArrayLiteralExpression that contains a YieldExpression.
@@ -52572,7 +53008,9 @@ var ts;
         function transformAndEmitVariableDeclarationList(node) {
             for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {
                 var variable = _a[_i];
-                hoistVariableDeclaration(variable.name);
+                var name_37 = ts.getSynthesizedClone(variable.name);
+                ts.setCommentRange(name_37, variable.name);
+                hoistVariableDeclaration(name_37);
             }
             var variables = ts.getInitializedVariables(node);
             var numVariables = variables.length;
@@ -52615,7 +53053,7 @@ var ts;
                 if (containsYield(node.thenStatement) || 
containsYield(node.elseStatement)) {
                     var endLabel = defineLabel();
                     var elseLabel = node.elseStatement ? defineLabel() : 
undefined;
-                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));
+                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), /*location*/ 
node.expression);
                     transformAndEmitEmbeddedStatement(node.thenStatement);
                     if (node.elseStatement) {
                         emitBreak(endLabel);
@@ -53146,9 +53584,9 @@ var ts;
                 if (ts.isIdentifier(original) && original.parent) {
                     var declaration = 
resolver.getReferencedValueDeclaration(original);
                     if (declaration) {
-                        var name_36 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
-                        if (name_36) {
-                            var clone_6 = ts.getMutableClone(name_36);
+                        var name_38 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
+                        if (name_38) {
+                            var clone_6 = ts.getMutableClone(name_38);
                             ts.setSourceMapRange(clone_6, node);
                             ts.setCommentRange(clone_6, node);
                             return clone_6;
@@ -54036,9 +54474,9 @@ var ts;
         function writeReturn(expression, operationLocation) {
             lastOperationWasAbrupt = true;
             lastOperationWasCompletion = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(2 /* Return */), expression]
-                : [createInstruction(2 /* Return */)]), operationLocation));
+                : [createInstruction(2 /* Return */)]), operationLocation), 
384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes a Break operation to the current label's statement list.
@@ -54048,10 +54486,10 @@ var ts;
          */
         function writeBreak(label, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes a BreakWhenTrue operation to the current label's statement 
list.
@@ -54061,10 +54499,10 @@ var ts;
          * @param operationLocation The source map location for the operation.
          */
         function writeBreakWhenTrue(label, condition, operationLocation) {
-            writeStatement(ts.createIf(condition, 
ts.createReturn(ts.createArrayLiteral([
+            writeStatement(ts.setEmitFlags(ts.createIf(condition, 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* 
SingleLine */));
         }
         /**
          * Writes a BreakWhenFalse operation to the current label's statement 
list.
@@ -54074,10 +54512,10 @@ var ts;
          * @param operationLocation The source map location for the operation.
          */
         function writeBreakWhenFalse(label, condition, operationLocation) {
-            writeStatement(ts.createIf(ts.createLogicalNot(condition), 
ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createIf(ts.createLogicalNot(condition), 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* 
SingleLine */));
         }
         /**
          * Writes a Yield operation to the current label's statement list.
@@ -54087,9 +54525,9 @@ var ts;
          */
         function writeYield(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(4 /* Yield */), expression]
-                : [createInstruction(4 /* Yield */)]), operationLocation));
+                : [createInstruction(4 /* Yield */)]), operationLocation), 384 
/* NoTokenSourceMaps */));
         }
         /**
          * Writes a YieldStar instruction to the current label's statement 
list.
@@ -54099,10 +54537,10 @@ var ts;
          */
         function writeYieldStar(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(5 /* YieldStar */),
                 expression
-            ]), operationLocation));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes an Endfinally instruction to the current label's statement 
list.
@@ -54198,6 +54636,18 @@ var ts;
      * @param context Context and state information for the transformation.
      */
     function transformES5(context) {
+        var compilerOptions = context.getCompilerOptions();
+        // enable emit notification only if using --jsx preserve
+        var previousOnEmitNode;
+        var noSubstitution;
+        if (compilerOptions.jsx === 1 /* Preserve */) {
+            previousOnEmitNode = context.onEmitNode;
+            context.onEmitNode = onEmitNode;
+            context.enableEmitNotification(248 /* JsxOpeningElement */);
+            context.enableEmitNotification(249 /* JsxClosingElement */);
+            context.enableEmitNotification(247 /* JsxSelfClosingElement */);
+            noSubstitution = [];
+        }
         var previousOnSubstituteNode = context.onSubstituteNode;
         context.onSubstituteNode = onSubstituteNode;
         context.enableSubstitution(177 /* PropertyAccessExpression */);
@@ -54212,12 +54662,31 @@ var ts;
             return node;
         }
         /**
+         * Called by the printer just before a node is printed.
+         *
+         * @param node The node to be printed.
+         */
+        function onEmitNode(emitContext, node, emitCallback) {
+            switch (node.kind) {
+                case 248 /* JsxOpeningElement */:
+                case 249 /* JsxClosingElement */:
+                case 247 /* JsxSelfClosingElement */:
+                    var tagName = node.tagName;
+                    noSubstitution[ts.getOriginalNodeId(tagName)] = true;
+                    break;
+            }
+            previousOnEmitNode(emitContext, node, emitCallback);
+        }
+        /**
          * Hooks node substitutions.
          *
          * @param emitContext The context for the emitter.
          * @param node The node to substitute.
          */
         function onSubstituteNode(emitContext, node) {
+            if (node.id && noSubstitution && noSubstitution[node.id]) {
+                return previousOnSubstituteNode(emitContext, node);
+            }
             node = previousOnSubstituteNode(emitContext, node);
             if (ts.isPropertyAccessExpression(node)) {
                 return substitutePropertyAccessExpression(node);
@@ -54444,12 +54913,12 @@ var ts;
             // So the helper will be emit at the correct position instead of 
at the top of the source-file
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
             var dependencies = ts.createArrayLiteral(ts.map(dependencyGroups, 
function (dependencyGroup) { return dependencyGroup.name; }));
-            var updated = ts.updateSourceFileNode(node, ts.createNodeArray([
+            var updated = ts.setEmitFlags(ts.updateSourceFileNode(node, 
ts.createNodeArray([
                 
ts.createStatement(ts.createCall(ts.createPropertyAccess(ts.createIdentifier("System"),
 "register"), 
                 /*typeArguments*/ undefined, moduleName
                     ? [moduleName, dependencies, moduleBodyFunction]
                     : [dependencies, moduleBodyFunction]))
-            ], node.statements));
+            ], node.statements)), 1024 /* NoTrailingComments */);
             if (!(compilerOptions.outFile || compilerOptions.out)) {
                 ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) 
{ return !helper.scoped; });
             }
@@ -55839,26 +56308,6 @@ var ts;
         function transformAMDModule(node) {
             var define = ts.createIdentifier("define");
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
-            return transformAsynchronousModule(node, define, moduleName, 
/*includeNonAmdDependencies*/ true);
-        }
-        /**
-         * Transforms a SourceFile into a UMD module.
-         *
-         * @param node The SourceFile node.
-         */
-        function transformUMDModule(node) {
-            var define = ts.createRawExpression(umdHelper);
-            return transformAsynchronousModule(node, define, /*moduleName*/ 
undefined, /*includeNonAmdDependencies*/ false);
-        }
-        /**
-         * Transforms a SourceFile into an AMD or UMD module.
-         *
-         * @param node The SourceFile node.
-         * @param define The expression used to define the module.
-         * @param moduleName An expression for the module name, if available.
-         * @param includeNonAmdDependencies A value indicating whether to 
incldue any non-AMD dependencies.
-         */
-        function transformAsynchronousModule(node, define, moduleName, 
includeNonAmdDependencies) {
             // An AMD define function has the following shape:
             //
             //     define(id?, dependencies?, factory);
@@ -55879,7 +56328,7 @@ var ts;
             //     /// <amd-dependency path= "a.css" />
             //
             // we need to add modules without alias names to the end of the 
dependencies list
-            var _a = collectAsynchronousDependencies(node, 
includeNonAmdDependencies), aliasedModuleNames = _a.aliasedModuleNames, 
unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = 
_a.importAliasNames;
+            var _a = collectAsynchronousDependencies(node, 
/*includeNonAmdDependencies*/ true), aliasedModuleNames = 
_a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, 
importAliasNames = _a.importAliasNames;
             // Create an updated SourceFile:
             //
             //     define(moduleName?, ["module1", "module2"], function ...
@@ -55910,6 +56359,73 @@ var ts;
             /*location*/ node.statements));
         }
         /**
+         * Transforms a SourceFile into a UMD module.
+         *
+         * @param node The SourceFile node.
+         */
+        function transformUMDModule(node) {
+            var _a = collectAsynchronousDependencies(node, 
/*includeNonAmdDependencies*/ false), aliasedModuleNames = 
_a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, 
importAliasNames = _a.importAliasNames;
+            var umdHeader = ts.createFunctionExpression(
+            /*modifiers*/ undefined, 
+            /*asteriskToken*/ undefined, 
+            /*name*/ undefined, 
+            /*typeParameters*/ undefined, [ts.createParameter(/*decorators*/ 
undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "factory")], 
+            /*type*/ undefined, ts.createBlock([
+                
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("module"),
 "object"), 
ts.createTypeCheck(ts.createPropertyAccess(ts.createIdentifier("module"), 
"exports"), "object")), ts.createBlock([
+                    ts.createVariableStatement(
+                    /*modifiers*/ undefined, [
+                        ts.createVariableDeclaration("v", 
+                        /*type*/ undefined, 
ts.createCall(ts.createIdentifier("factory"), 
+                        /*typeArguments*/ undefined, [
+                            ts.createIdentifier("require"),
+                            ts.createIdentifier("exports")
+                        ]))
+                    ]),
+                    
ts.setEmitFlags(ts.createIf(ts.createStrictInequality(ts.createIdentifier("v"), 
ts.createIdentifier("undefined")), 
ts.createStatement(ts.createAssignment(ts.createPropertyAccess(ts.createIdentifier("module"),
 "exports"), ts.createIdentifier("v")))), 1 /* SingleLine */)
+                ]), 
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("define"),
 "function"), ts.createPropertyAccess(ts.createIdentifier("define"), "amd")), 
ts.createBlock([
+                    
ts.createStatement(ts.createCall(ts.createIdentifier("define"), 
+                    /*typeArguments*/ undefined, [
+                        ts.createArrayLiteral([
+                            ts.createLiteral("require"),
+                            ts.createLiteral("exports")
+                        ].concat(aliasedModuleNames, unaliasedModuleNames)),
+                        ts.createIdentifier("factory")
+                    ]))
+                ])))
+            ], 
+            /*location*/ undefined, 
+            /*multiLine*/ true));
+            // Create an updated SourceFile:
+            //
+            //  (function (factory) {
+            //      if (typeof module === "object" && typeof module.exports 
=== "object") {
+            //          var v = factory(require, exports);
+            //          if (v !== undefined) module.exports = v;
+            //      }
+            //      else if (typeof define === 'function' && define.amd) {
+            //          define(["require", "exports"], factory);
+            //      }
+            //  })(function ...)
+            return ts.updateSourceFileNode(node, ts.createNodeArray([
+                ts.createStatement(ts.createCall(umdHeader, 
+                /*typeArguments*/ undefined, [
+                    // Add the module body function argument:
+                    //
+                    //     function (require, exports) ...
+                    ts.createFunctionExpression(
+                    /*modifiers*/ undefined, 
+                    /*asteriskToken*/ undefined, 
+                    /*name*/ undefined, 
+                    /*typeParameters*/ undefined, [
+                        ts.createParameter(/*decorators*/ undefined, 
/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "require"),
+                        ts.createParameter(/*decorators*/ undefined, 
/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "exports")
+                    ].concat(importAliasNames), 
+                    /*type*/ undefined, transformAsynchronousModuleBody(node))
+                ]))
+            ], 
+            /*location*/ node.statements));
+        }
+        /**
          * Collect the additional asynchronous dependencies for the module.
          *
          * @param node The source file.
@@ -56697,8 +57213,8 @@ var ts;
                         /*location*/ node);
                     }
                     else if (ts.isImportSpecifier(importDeclaration)) {
-                        var name_37 = importDeclaration.propertyName || 
importDeclaration.name;
-                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_37), 
+                        var name_39 = importDeclaration.propertyName || 
importDeclaration.name;
+                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_39), 
                         /*location*/ node);
                     }
                 }
@@ -56800,8 +57316,6 @@ var ts;
         scoped: true,
         text: "\n            function __export(m) {\n                for (var 
p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"
     };
-    // emit output for the UMD helper function.
-    var umdHelper = "\n        (function (dependencies, factory) {\n           
 if (typeof module === 'object' && typeof module.exports === 'object') {\n      
          var v = factory(require, exports); if (v !== undefined) 
module.exports = v;\n            }\n            else if (typeof define === 
'function' && define.amd) {\n                define(dependencies, factory);\n   
         }\n        })";
 })(ts || (ts = {}));
 /// <reference path="visitor.ts" />
 /// <reference path="transformers/ts.ts" />
@@ -56871,7 +57385,7 @@ var ts;
      * @param transforms An array of Transformers.
      */
     function transformFiles(resolver, host, sourceFiles, transformers) {
-        var enabledSyntaxKindFeatures = new Array(298 /* Count */);
+        var enabledSyntaxKindFeatures = new Array(297 /* Count */);
         var lexicalEnvironmentDisabled = false;
         var lexicalEnvironmentVariableDeclarations;
         var lexicalEnvironmentFunctionDeclarations;
@@ -57391,7 +57905,7 @@ var ts;
                 return;
             }
             encodeLastRecordedSourceMapSpan();
-            return ts.stringify({
+            return JSON.stringify({
                 version: 3,
                 file: sourceMapData.sourceMapFile,
                 sourceRoot: sourceMapData.sourceMapSourceRoot,
@@ -57579,6 +58093,9 @@ var ts;
             }
             if (!skipTrailingComments) {
                 emitLeadingComments(detachedRange.end, /*isEmittedNode*/ true);
+                if (hasWrittenComment && !writer.isAtStartOfLine()) {
+                    writer.writeLine();
+                }
             }
             if (extendedDiagnostics) {
                 ts.performance.measure("commentTime", 
"beginEmitBodyWithDetachedCommetns");
@@ -57888,6 +58405,7 @@ var ts;
             writer.writeSpace = writer.write;
             writer.writeStringLiteral = writer.writeLiteral;
             writer.writeParameter = writer.write;
+            writer.writeProperty = writer.write;
             writer.writeSymbol = writer.write;
             setWriter(writer);
         }
@@ -58239,9 +58757,9 @@ var ts;
             var count = 0;
             while (true) {
                 count++;
-                var name_38 = baseName + "_" + count;
-                if (!(name_38 in currentIdentifiers)) {
-                    return name_38;
+                var name_40 = baseName + "_" + count;
+                if (!(name_40 in currentIdentifiers)) {
+                    return name_40;
                 }
             }
         }
@@ -59189,6 +59707,11 @@ var ts;
                         return symbolAccessibilityResult.errorModuleName ?
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
+                    case 155 /* IndexSignature */:
+                        // Interfaces cannot have parameter types that cannot 
be named
+                        return symbolAccessibilityResult.errorModuleName ?
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
                     case 149 /* MethodDeclaration */:
                     case 148 /* MethodSignature */:
                         if (ts.hasModifier(node.parent, 32 /* Static */)) {
@@ -59977,8 +60500,6 @@ var ts;
                 // Transformation nodes
                 case 294 /* PartiallyEmittedExpression */:
                     return emitPartiallyEmittedExpression(node);
-                case 297 /* RawExpression */:
-                    return writeLines(node.text);
             }
         }
         //
@@ -60519,27 +61040,27 @@ var ts;
             writeToken(18 /* OpenParenToken */, openParenPos, node);
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end, node);
-            emitEmbeddedStatement(node.thenStatement);
+            emitEmbeddedStatement(node, node.thenStatement);
             if (node.elseStatement) {
-                writeLine();
+                writeLineOrSpace(node);
                 writeToken(81 /* ElseKeyword */, node.thenStatement.end, node);
                 if (node.elseStatement.kind === 208 /* IfStatement */) {
                     write(" ");
                     emit(node.elseStatement);
                 }
                 else {
-                    emitEmbeddedStatement(node.elseStatement);
+                    emitEmbeddedStatement(node, node.elseStatement);
                 }
             }
         }
         function emitDoStatement(node) {
             write("do");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
             if (ts.isBlock(node.statement)) {
                 write(" ");
             }
             else {
-                writeLine();
+                writeLineOrSpace(node);
             }
             write("while (");
             emitExpression(node.expression);
@@ -60549,7 +61070,7 @@ var ts;
             write("while (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60561,7 +61082,7 @@ var ts;
             write(";");
             emitExpressionWithPrefix(" ", node.incrementor);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForInStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60571,7 +61092,7 @@ var ts;
             write(" in ");
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForOfStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60581,7 +61102,7 @@ var ts;
             write(" of ");
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForBinding(node) {
             if (node !== undefined) {
@@ -60612,7 +61133,7 @@ var ts;
             write("with (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitSwitchStatement(node) {
             var openParenPos = writeToken(97 /* SwitchKeyword */, node.pos);
@@ -60636,9 +61157,12 @@ var ts;
         function emitTryStatement(node) {
             write("try ");
             emit(node.tryBlock);
-            emit(node.catchClause);
+            if (node.catchClause) {
+                writeLineOrSpace(node);
+                emit(node.catchClause);
+            }
             if (node.finallyBlock) {
-                writeLine();
+                writeLineOrSpace(node);
                 write("finally ");
                 emit(node.finallyBlock);
             }
@@ -61216,8 +61740,8 @@ var ts;
                 write(suffix);
             }
         }
-        function emitEmbeddedStatement(node) {
-            if (ts.isBlock(node)) {
+        function emitEmbeddedStatement(parent, node) {
+            if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1 /* SingleLine 
*/) {
                 write(" ");
                 emit(node);
             }
@@ -61358,6 +61882,14 @@ var ts;
                 write(getClosingBracket(format));
             }
         }
+        function writeLineOrSpace(node) {
+            if (ts.getEmitFlags(node) & 1 /* SingleLine */) {
+                write(" ");
+            }
+            else {
+                writeLine();
+            }
+        }
         function writeIfAny(nodes, text) {
             if (nodes && nodes.length > 0) {
                 write(text);
@@ -61549,10 +62081,10 @@ var ts;
         */
         function makeTempVariableName(flags) {
             if (flags && !(tempFlags & flags)) {
-                var name_39 = flags === 268435456 /* _i */ ? "_i" : "_n";
-                if (isUniqueName(name_39)) {
+                var name_41 = flags === 268435456 /* _i */ ? "_i" : "_n";
+                if (isUniqueName(name_41)) {
                     tempFlags |= flags;
-                    return name_39;
+                    return name_41;
                 }
             }
             while (true) {
@@ -61560,11 +62092,11 @@ var ts;
                 tempFlags++;
                 // Skip over 'i' and 'n'
                 if (count !== 8 && count !== 13) {
-                    var name_40 = count < 26
+                    var name_42 = count < 26
                         ? "_" + String.fromCharCode(97 /* a */ + count)
                         : "_" + (count - 26);
-                    if (isUniqueName(name_40)) {
-                        return name_40;
+                    if (isUniqueName(name_42)) {
+                        return name_42;
                     }
                 }
             }
@@ -62015,10 +62547,10 @@ var ts;
         var resolutions = [];
         var cache = ts.createMap();
         for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {
-            var name_41 = names_1[_i];
-            var result = name_41 in cache
-                ? cache[name_41]
-                : cache[name_41] = loader(name_41, containingFile);
+            var name_43 = names_1[_i];
+            var result = name_43 in cache
+                ? cache[name_43]
+                : cache[name_43] = loader(name_43, containingFile);
             resolutions.push(result);
         }
         return resolutions;
@@ -62054,6 +62586,7 @@ var ts;
         var supportedExtensions = ts.getSupportedExtensions(options);
         // Map storing if there is emit blocking diagnostics for given input
         var hasEmitBlockingDiagnostics = 
ts.createFileMap(getCanonicalFileName);
+        var moduleResolutionCache;
         var resolveModuleNamesWorker;
         if (host.resolveModuleNames) {
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return host.resolveModuleNames(moduleNames, containingFile).map(function 
(resolved) {
@@ -62067,7 +62600,8 @@ var ts;
             }); };
         }
         else {
-            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host).resolvedModule; 
};
+            moduleResolutionCache = 
ts.createModuleResolutionCache(currentDirectory, function (x) { return 
host.getCanonicalFileName(x); });
+            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host, 
moduleResolutionCache).resolvedModule; };
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return loadWithLocalCache(moduleNames, containingFile, loader_1); };
         }
         var resolveTypeReferenceDirectiveNamesWorker;
@@ -62113,6 +62647,8 @@ var ts;
                 }
             }
         }
+        // unconditionally set moduleResolutionCache to undefined to avoid 
unnecessary leaks
+        moduleResolutionCache = undefined;
         // unconditionally set oldProgram to undefined to prevent it from 
being captured in closure
         oldProgram = undefined;
         program = {
@@ -63586,7 +64122,7 @@ var ts;
                 "es2017": 4 /* ES2017 */,
                 "esnext": 5 /* ESNext */,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -63851,14 +64387,7 @@ var ts;
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     /* @internal */
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     /* @internal */
@@ -63882,7 +64411,6 @@ var ts;
         }
     }
     ts.parseListTypeOption = parseListTypeOption;
-    /* @internal */
     function parseCommandLine(commandLine, readFile) {
         var options = {};
         var fileNames = [];
@@ -64067,11 +64595,11 @@ var ts;
         function serializeCompilerOptions(options) {
             var result = ts.createMap();
             var optionsNameMap = getOptionNameMap().optionNameMap;
-            for (var name_42 in options) {
-                if (ts.hasProperty(options, name_42)) {
+            for (var name_44 in options) {
+                if (ts.hasProperty(options, name_44)) {
                     // tsconfig only options cannot be specified via command 
line,
                     // so we can assume that only types that can appear here 
string | number | boolean
-                    switch (name_42) {
+                    switch (name_44) {
                         case "init":
                         case "watch":
                         case "version":
@@ -64079,14 +64607,14 @@ var ts;
                         case "project":
                             break;
                         default:
-                            var value = options[name_42];
-                            var optionDefinition = 
optionsNameMap[name_42.toLowerCase()];
+                            var value = options[name_44];
+                            var optionDefinition = 
optionsNameMap[name_44.toLowerCase()];
                             if (optionDefinition) {
                                 var customTypeMap = 
getCustomTypeMapOfCommandLineOption(optionDefinition);
                                 if (!customTypeMap) {
                                     // There is no map associated with this 
compiler option then use the value as-is
                                     // This is the case if the value is expect 
to be string, number, boolean or list of string
-                                    result[name_42] = value;
+                                    result[name_44] = value;
                                 }
                                 else {
                                     if (optionDefinition.type === "list") {
@@ -64095,11 +64623,11 @@ var ts;
                                             var element = _a[_i];
                                             
convertedValue.push(getNameOfCompilerOptionValue(element, customTypeMap));
                                         }
-                                        result[name_42] = convertedValue;
+                                        result[name_44] = convertedValue;
                                     }
                                     else {
                                         // There is a typeMap associated with 
this command-line option so use it to map value back to its name
-                                        result[name_42] = 
getNameOfCompilerOptionValue(value, customTypeMap);
+                                        result[name_44] = 
getNameOfCompilerOptionValue(value, customTypeMap);
                                     }
                                 }
                             }
@@ -64142,9 +64670,10 @@ var ts;
       * @param basePath A root directory to resolve relative path entries in 
the config
       *    file to. e.g. outDir
       */
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -64272,7 +64801,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -64449,7 +64978,7 @@ var ts;
      * @param host The host used to resolve files and directories.
      * @param errors An array for diagnostic reporting.
      */
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         // The exclude spec list is converted into a regular expression, which 
allows us to quickly
         // test whether a file or directory should be excluded before 
recursively traversing the
@@ -64476,7 +65005,7 @@ var ts;
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
         // Rather than requery this for each file and filespec, we query the 
supported extensions
         // once and store it on the expansion context.
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         // Literal files are always included verbatim. An "include" or 
"exclude" specification cannot
         // remove a literal file.
         if (fileNames) {
@@ -64673,7 +65202,9 @@ var ts;
                 this.text = text;
             }
             StringScriptSnapshot.prototype.getText = function (start, end) {
-                return this.text.substring(start, end);
+                return start === 0 && end === this.text.length
+                    ? this.text
+                    : this.text.substring(start, end);
             };
             StringScriptSnapshot.prototype.getLength = function () {
                 return this.text.length;
@@ -65946,6 +66477,7 @@ var ts;
             writeSpace: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.space); },
             writeStringLiteral: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.stringLiteral); },
             writeParameter: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.parameterName); },
+            writeProperty: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.propertyName); },
             writeSymbol: writeSymbol,
             writeLine: writeLine,
             increaseIndent: function () { indent++; },
@@ -67132,14 +67664,14 @@ var ts;
             function getJavaScriptCompletionEntries(sourceFile, position, 
uniqueNames) {
                 var entries = [];
                 var nameTable = ts.getNameTable(sourceFile);
-                for (var name_43 in nameTable) {
+                for (var name_45 in nameTable) {
                     // Skip identifiers produced only from the current location
-                    if (nameTable[name_43] === position) {
+                    if (nameTable[name_45] === position) {
                         continue;
                     }
-                    if (!uniqueNames[name_43]) {
-                        uniqueNames[name_43] = name_43;
-                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_43), 
compilerOptions.target, /*performCharacterChecks*/ true);
+                    if (!uniqueNames[name_45]) {
+                        uniqueNames[name_45] = name_45;
+                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_45), 
compilerOptions.target, /*performCharacterChecks*/ true);
                         if (displayName) {
                             var entry = {
                                 name: displayName,
@@ -67652,11 +68184,11 @@ var ts;
                     if (currentConfigPath) {
                         paths.push(currentConfigPath);
                         currentDir = ts.getDirectoryPath(currentConfigPath);
-                        var parent_13 = ts.getDirectoryPath(currentDir);
-                        if (currentDir === parent_13) {
+                        var parent_14 = ts.getDirectoryPath(currentDir);
+                        if (currentDir === parent_14) {
                             break;
                         }
-                        currentDir = parent_13;
+                        currentDir = parent_14;
                     }
                     else {
                         break;
@@ -67744,13 +68276,14 @@ var ts;
                 // completion entry.
                 var symbol = ts.forEach(symbols, function (s) { return 
getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, 
/*performCharacterChecks*/ false, location_3) === entryName ? s : undefined; });
                 if (symbol) {
-                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7 /* All */), displayParts = 
_a.displayParts, documentation = _a.documentation, symbolKind = _a.symbolKind;
+                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7 /* All */), displayParts = 
_a.displayParts, documentation = _a.documentation, symbolKind = _a.symbolKind, 
tags = _a.tags;
                     return {
                         name: entryName,
                         kindModifiers: 
ts.SymbolDisplay.getSymbolModifiers(symbol),
                         kind: symbolKind,
                         displayParts: displayParts,
-                        documentation: documentation
+                        documentation: documentation,
+                        tags: tags
                     };
                 }
             }
@@ -67762,7 +68295,8 @@ var ts;
                     kind: ts.ScriptElementKind.keyword,
                     kindModifiers: ts.ScriptElementKindModifier.none,
                     displayParts: [ts.displayPart(entryName, 
ts.SymbolDisplayPartKind.keyword)],
-                    documentation: undefined
+                    documentation: undefined,
+                    tags: undefined
                 };
             }
             return undefined;
@@ -67855,13 +68389,13 @@ var ts;
                     log("Returning an empty list because completion was 
requested in an invalid position.");
                     return undefined;
                 }
-                var parent_14 = contextToken.parent, kind = contextToken.kind;
+                var parent_15 = contextToken.parent, kind = contextToken.kind;
                 if (kind === 22 /* DotToken */) {
-                    if (parent_14.kind === 177 /* PropertyAccessExpression */) 
{
+                    if (parent_15.kind === 177 /* PropertyAccessExpression */) 
{
                         node = contextToken.parent.expression;
                         isRightOfDot = true;
                     }
-                    else if (parent_14.kind === 141 /* QualifiedName */) {
+                    else if (parent_15.kind === 141 /* QualifiedName */) {
                         node = contextToken.parent.left;
                         isRightOfDot = true;
                     }
@@ -68248,9 +68782,9 @@ var ts;
                     switch (contextToken.kind) {
                         case 16 /* OpenBraceToken */: // const x = { |
                         case 25 /* CommaToken */:
-                            var parent_15 = contextToken.parent;
-                            if (parent_15 && (parent_15.kind === 176 /* 
ObjectLiteralExpression */ || parent_15.kind === 172 /* ObjectBindingPattern 
*/)) {
-                                return parent_15;
+                            var parent_16 = contextToken.parent;
+                            if (parent_16 && (parent_16.kind === 176 /* 
ObjectLiteralExpression */ || parent_16.kind === 172 /* ObjectBindingPattern 
*/)) {
+                                return parent_16;
                             }
                             break;
                     }
@@ -68277,37 +68811,37 @@ var ts;
             }
             function tryGetContainingJsxElement(contextToken) {
                 if (contextToken) {
-                    var parent_16 = contextToken.parent;
+                    var parent_17 = contextToken.parent;
                     switch (contextToken.kind) {
                         case 27 /* LessThanSlashToken */:
                         case 40 /* SlashToken */:
                         case 70 /* Identifier */:
                         case 250 /* JsxAttribute */:
                         case 251 /* JsxSpreadAttribute */:
-                            if (parent_16 && (parent_16.kind === 247 /* 
JsxSelfClosingElement */ || parent_16.kind === 248 /* JsxOpeningElement */)) {
-                                return parent_16;
+                            if (parent_17 && (parent_17.kind === 247 /* 
JsxSelfClosingElement */ || parent_17.kind === 248 /* JsxOpeningElement */)) {
+                                return parent_17;
                             }
-                            else if (parent_16.kind === 250 /* JsxAttribute 
*/) {
-                                return parent_16.parent;
+                            else if (parent_17.kind === 250 /* JsxAttribute 
*/) {
+                                return parent_17.parent;
                             }
                             break;
                         // The context token is the closing } or " of an 
attribute, which means
                         // its parent is a JsxExpression, whose parent is a 
JsxAttribute,
                         // whose parent is a JsxOpeningLikeElement
                         case 9 /* StringLiteral */:
-                            if (parent_16 && ((parent_16.kind === 250 /* 
JsxAttribute */) || (parent_16.kind === 251 /* JsxSpreadAttribute */))) {
-                                return parent_16.parent;
+                            if (parent_17 && ((parent_17.kind === 250 /* 
JsxAttribute */) || (parent_17.kind === 251 /* JsxSpreadAttribute */))) {
+                                return parent_17.parent;
                             }
                             break;
                         case 17 /* CloseBraceToken */:
-                            if (parent_16 &&
-                                parent_16.kind === 252 /* JsxExpression */ &&
-                                parent_16.parent &&
-                                (parent_16.parent.kind === 250 /* JsxAttribute 
*/)) {
-                                return parent_16.parent.parent;
+                            if (parent_17 &&
+                                parent_17.kind === 252 /* JsxExpression */ &&
+                                parent_17.parent &&
+                                (parent_17.parent.kind === 250 /* JsxAttribute 
*/)) {
+                                return parent_17.parent.parent;
                             }
-                            if (parent_16 && parent_16.kind === 251 /* 
JsxSpreadAttribute */) {
-                                return parent_16.parent;
+                            if (parent_17 && parent_17.kind === 251 /* 
JsxSpreadAttribute */) {
+                                return parent_17.parent;
                             }
                             break;
                     }
@@ -68444,8 +68978,8 @@ var ts;
                     if (element.getStart() <= position && position <= 
element.getEnd()) {
                         continue;
                     }
-                    var name_44 = element.propertyName || element.name;
-                    existingImportsOrExports[name_44.text] = true;
+                    var name_46 = element.propertyName || element.name;
+                    existingImportsOrExports[name_46.text] = true;
                 }
                 if (!ts.someProperties(existingImportsOrExports)) {
                     return ts.filter(exportsOfModule, function (e) { return 
e.name !== "default"; });
@@ -68804,19 +69338,19 @@ var ts;
                 function getThrowStatementOwner(throwStatement) {
                     var child = throwStatement;
                     while (child.parent) {
-                        var parent_17 = child.parent;
-                        if (ts.isFunctionBlock(parent_17) || parent_17.kind 
=== 261 /* SourceFile */) {
-                            return parent_17;
+                        var parent_18 = child.parent;
+                        if (ts.isFunctionBlock(parent_18) || parent_18.kind 
=== 261 /* SourceFile */) {
+                            return parent_18;
                         }
                         // A throw-statement is only owned by a try-statement 
if the try-statement has
                         // a catch clause, and if the throw-statement occurs 
within the try block.
-                        if (parent_17.kind === 221 /* TryStatement */) {
-                            var tryStatement = parent_17;
+                        if (parent_18.kind === 221 /* TryStatement */) {
+                            var tryStatement = parent_18;
                             if (tryStatement.tryBlock === child && 
tryStatement.catchClause) {
                                 return child;
                             }
                         }
-                        child = parent_17;
+                        child = parent_18;
                     }
                     return undefined;
                 }
@@ -69773,24 +70307,24 @@ var ts;
                     // If we got a type reference, try and see if the 
reference applies to any expressions that can implement an interface
                     var containingTypeReference = 
getContainingTypeReference(refNode);
                     if (containingTypeReference) {
-                        var parent_18 = containingTypeReference.parent;
-                        if (ts.isVariableLike(parent_18) && parent_18.type === 
containingTypeReference && parent_18.initializer && 
isImplementationExpression(parent_18.initializer)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.initializer));
+                        var parent_19 = containingTypeReference.parent;
+                        if (ts.isVariableLike(parent_19) && parent_19.type === 
containingTypeReference && parent_19.initializer && 
isImplementationExpression(parent_19.initializer)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.initializer));
                         }
-                        else if (ts.isFunctionLike(parent_18) && 
parent_18.type === containingTypeReference && parent_18.body) {
-                            if (parent_18.body.kind === 204 /* Block */) {
-                                ts.forEachReturnStatement(parent_18.body, 
function (returnStatement) {
+                        else if (ts.isFunctionLike(parent_19) && 
parent_19.type === containingTypeReference && parent_19.body) {
+                            if (parent_19.body.kind === 204 /* Block */) {
+                                ts.forEachReturnStatement(parent_19.body, 
function (returnStatement) {
                                     if (returnStatement.expression && 
isImplementationExpression(returnStatement.expression)) {
                                         
maybeAdd(getReferenceEntryFromNode(returnStatement.expression));
                                     }
                                 });
                             }
-                            else if 
(isImplementationExpression(parent_18.body)) {
-                                
maybeAdd(getReferenceEntryFromNode(parent_18.body));
+                            else if 
(isImplementationExpression(parent_19.body)) {
+                                
maybeAdd(getReferenceEntryFromNode(parent_19.body));
                             }
                         }
-                        else if (ts.isAssertionExpression(parent_18) && 
isImplementationExpression(parent_18.expression)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.expression));
+                        else if (ts.isAssertionExpression(parent_19) && 
isImplementationExpression(parent_19.expression)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.expression));
                         }
                     }
                 }
@@ -70092,8 +70626,8 @@ var ts;
                         if (!node_2 || node_2.kind !== 9 /* StringLiteral */) {
                             return;
                         }
-                        var type_2 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
-                        if (type_2 === searchType) {
+                        var type_1 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
+                        if (type_1 === searchType) {
                             references.push(getReferenceEntryFromNode(node_2));
                         }
                     }
@@ -70777,6 +71311,7 @@ var ts;
             "lends",
             "link",
             "memberOf",
+            "method",
             "name",
             "namespace",
             "param",
@@ -70822,6 +71357,30 @@ var ts;
             return documentationComment;
         }
         JsDoc.getJsDocCommentsFromDeclarations = 
getJsDocCommentsFromDeclarations;
+        function getJsDocTagsFromDeclarations(declarations) {
+            // Only collect doc comments from duplicate declarations once.
+            var tags = [];
+            forEachUnique(declarations, function (declaration) {
+                var jsDocs = ts.getJSDocs(declaration);
+                if (!jsDocs) {
+                    return;
+                }
+                for (var _i = 0, jsDocs_1 = jsDocs; _i < jsDocs_1.length; 
_i++) {
+                    var doc = jsDocs_1[_i];
+                    var tagsForDoc = doc.tags;
+                    if (tagsForDoc) {
+                        tags.push.apply(tags, tagsForDoc.filter(function (tag) 
{ return tag.kind === 279 /* JSDocTag */; }).map(function (jsDocTag) {
+                            return {
+                                name: jsDocTag.tagName.text,
+                                text: jsDocTag.comment
+                            };
+                        }));
+                    }
+                }
+            });
+            return tags;
+        }
+        JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
         /**
          * Iterates through 'array' by index and performs the callback on each 
element of array until the callback
          * returns a truthy value, then returns that value.
@@ -70914,13 +71473,19 @@ var ts;
             var posLineAndChar = 
sourceFile.getLineAndCharacterOfPosition(position);
             var lineStart = sourceFile.getLineStarts()[posLineAndChar.line];
             var indentationStr = sourceFile.text.substr(lineStart, 
posLineAndChar.character);
+            var isJavaScriptFile = 
ts.hasJavaScriptFileExtension(sourceFile.fileName);
             var docParams = "";
             for (var i = 0, numParams = parameters.length; i < numParams; i++) 
{
                 var currentName = parameters[i].name;
                 var paramName = currentName.kind === 70 /* Identifier */ ?
                     currentName.text :
                     "param" + i;
-                docParams += indentationStr + " * @param " + paramName + 
newLine;
+                if (isJavaScriptFile) {
+                    docParams += indentationStr + " * @param {any} " + 
paramName + newLine;
+                }
+                else {
+                    docParams += indentationStr + " * @param " + paramName + 
newLine;
+                }
             }
             // A doc comment consists of the following
             // * The opening comment line
@@ -71062,9 +71627,9 @@ var ts;
                 }
             }
             // Add the cached typing locations for inferred typings that are 
already installed
-            for (var name_45 in packageNameToTypingLocation) {
-                if (name_45 in inferredTypings && !inferredTypings[name_45]) {
-                    inferredTypings[name_45] = 
packageNameToTypingLocation[name_45];
+            for (var name_47 in packageNameToTypingLocation) {
+                if (name_47 in inferredTypings && !inferredTypings[name_47]) {
+                    inferredTypings[name_47] = 
packageNameToTypingLocation[name_47];
                 }
             }
             // Remove typings that the user has added to the exclude list
@@ -71202,12 +71767,12 @@ var ts;
                     return;
                 }
                 var nameToDeclarations = sourceFile.getNamedDeclarations();
-                for (var name_46 in nameToDeclarations) {
-                    var declarations = nameToDeclarations[name_46];
+                for (var name_48 in nameToDeclarations) {
+                    var declarations = nameToDeclarations[name_48];
                     if (declarations) {
                         // First do a quick check to see if the name of the 
declaration matches the
                         // last portion of the (possibly) dotted name they're 
searching for.
-                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_46);
+                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_48);
                         if (!matches) {
                             continue;
                         }
@@ -71220,14 +71785,14 @@ var ts;
                                 if (!containers) {
                                     return undefined;
                                 }
-                                matches = 
patternMatcher.getMatches(containers, name_46);
+                                matches = 
patternMatcher.getMatches(containers, name_48);
                                 if (!matches) {
                                     continue;
                                 }
                             }
                             var fileName = sourceFile.fileName;
                             var matchKind = bestMatchKind(matches);
-                            rawItems.push({ name: name_46, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
+                            rawItems.push({ name: name_48, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
                         }
                     }
                 }
@@ -71516,9 +72081,9 @@ var ts;
                 case 174 /* BindingElement */:
                 case 223 /* VariableDeclaration */:
                     var decl = node;
-                    var name_47 = decl.name;
-                    if (ts.isBindingPattern(name_47)) {
-                        addChildrenRecursively(name_47);
+                    var name_49 = decl.name;
+                    if (ts.isBindingPattern(name_49)) {
+                        addChildrenRecursively(name_49);
                     }
                     else if (decl.initializer && 
isFunctionOrClassExpression(decl.initializer)) {
                         // For `const x = function() {}`, just use the 
function node, not the const.
@@ -72025,28 +72590,28 @@ var ts;
                 switch (n.kind) {
                     case 204 /* Block */:
                         if (!ts.isFunctionBlock(n)) {
-                            var parent_19 = n.parent;
+                            var parent_20 = n.parent;
                             var openBrace = ts.findChildOfKind(n, 16 /* 
OpenBraceToken */, sourceFile);
                             var closeBrace = ts.findChildOfKind(n, 17 /* 
CloseBraceToken */, sourceFile);
                             // Check if the block is standalone, or 'attached' 
to some parent statement.
                             // If the latter, we want to collapse the block, 
but consider its hint span
                             // to be the entire span of the parent.
-                            if (parent_19.kind === 209 /* DoStatement */ ||
-                                parent_19.kind === 212 /* ForInStatement */ ||
-                                parent_19.kind === 213 /* ForOfStatement */ ||
-                                parent_19.kind === 211 /* ForStatement */ ||
-                                parent_19.kind === 208 /* IfStatement */ ||
-                                parent_19.kind === 210 /* WhileStatement */ ||
-                                parent_19.kind === 217 /* WithStatement */ ||
-                                parent_19.kind === 256 /* CatchClause */) {
-                                addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                            if (parent_20.kind === 209 /* DoStatement */ ||
+                                parent_20.kind === 212 /* ForInStatement */ ||
+                                parent_20.kind === 213 /* ForOfStatement */ ||
+                                parent_20.kind === 211 /* ForStatement */ ||
+                                parent_20.kind === 208 /* IfStatement */ ||
+                                parent_20.kind === 210 /* WhileStatement */ ||
+                                parent_20.kind === 217 /* WithStatement */ ||
+                                parent_20.kind === 256 /* CatchClause */) {
+                                addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                 break;
                             }
-                            if (parent_19.kind === 221 /* TryStatement */) {
+                            if (parent_20.kind === 221 /* TryStatement */) {
                                 // Could be the try-block, or the 
finally-block.
-                                var tryStatement = parent_19;
+                                var tryStatement = parent_20;
                                 if (tryStatement.tryBlock === n) {
-                                    addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                                    addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                     break;
                                 }
                                 else if (tryStatement.finallyBlock === n) {
@@ -73596,7 +74161,8 @@ var ts;
                     suffixDisplayParts: suffixDisplayParts,
                     separatorDisplayParts: [ts.punctuationPart(25 /* 
CommaToken */), ts.spacePart()],
                     parameters: signatureHelpParameters,
-                    documentation: candidateSignature.getDocumentationComment()
+                    documentation: 
candidateSignature.getDocumentationComment(),
+                    tags: candidateSignature.getJsDocTags()
                 };
             });
             var argumentIndex = argumentListInfo.argumentIndex;
@@ -73740,6 +74306,7 @@ var ts;
             if (semanticMeaning === void 0) { semanticMeaning = 
ts.getMeaningFromLocation(location); }
             var displayParts = [];
             var documentation;
+            var tags;
             var symbolFlags = symbol.flags;
             var symbolKind = 
getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, 
symbol, symbolFlags, location);
             var hasAddedSymbolInfo;
@@ -74044,6 +74611,7 @@ var ts;
             }
             if (!documentation) {
                 documentation = symbol.getDocumentationComment();
+                tags = symbol.getJsDocTags();
                 if (documentation.length === 0 && symbol.flags & 4 /* Property 
*/) {
                     // For some special property access expressions like 
`experts.foo = foo` or `module.exports.foo = foo`
                     // there documentation comments might be attached to the 
right hand side symbol of their declarations.
@@ -74059,6 +74627,7 @@ var ts;
                                 continue;
                             }
                             documentation = 
rhsSymbol.getDocumentationComment();
+                            tags = rhsSymbol.getJsDocTags();
                             if (documentation.length > 0) {
                                 break;
                             }
@@ -74066,7 +74635,7 @@ var ts;
                     }
                 }
             }
-            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind };
+            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind, tags: tags };
             function addNewLineIfDisplayPartsExist() {
                 if (displayParts.length) {
                     displayParts.push(ts.lineBreakPart());
@@ -74117,6 +74686,7 @@ var ts;
                     displayParts.push(ts.punctuationPart(19 /* CloseParenToken 
*/));
                 }
                 documentation = signature.getDocumentationComment();
+                tags = signature.getJsDocTags();
             }
             function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) 
{
                 var typeParameterParts = ts.mapToDisplayParts(function 
(writer) {
@@ -74139,9 +74709,9 @@ var ts;
                     return false;
                 }
                 // If the parent is not sourceFile or module block it is local 
variable
-                for (var parent_20 = declaration.parent; 
!ts.isFunctionBlock(parent_20); parent_20 = parent_20.parent) {
+                for (var parent_21 = declaration.parent; 
!ts.isFunctionBlock(parent_21); parent_21 = parent_21.parent) {
                     // Reached source file or module block
-                    if (parent_20.kind === 261 /* SourceFile */ || 
parent_20.kind === 231 /* ModuleBlock */) {
+                    if (parent_21.kind === 261 /* SourceFile */ || 
parent_21.kind === 231 /* ModuleBlock */) {
                         return false;
                     }
                 }
@@ -74252,7 +74822,7 @@ var ts;
             return typeof o.type === "object" && !ts.forEachProperty(o.type, 
function (v) { return typeof v !== "number"; });
         });
         options = ts.clone(options);
-        var _loop_4 = function (opt) {
+        var _loop_3 = function (opt) {
             if (!ts.hasProperty(options, opt.name)) {
                 return "continue";
             }
@@ -74271,7 +74841,7 @@ var ts;
         };
         for (var _i = 0, commandLineOptionsStringToEnum_1 = 
commandLineOptionsStringToEnum; _i < commandLineOptionsStringToEnum_1.length; 
_i++) {
             var opt = commandLineOptionsStringToEnum_1[_i];
-            _loop_4(opt);
+            _loop_3(opt);
         }
         return options;
     }
@@ -74848,6 +75418,7 @@ var ts;
                 this.SpaceAfterLetConstInVariableDeclaration = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([109
 /* LetKeyword */, 75 /* ConstKeyword */]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsStartOfVariableDeclarationList), 2 /* Space */));
                 this.NoSpaceBeforeOpenParenInFuncCall = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8 /* Delete 
*/));
                 this.SpaceAfterFunctionInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create3(88 /* FunctionKeyword */, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */));
+                this.SpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 2 /* Space */));
                 this.NoSpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 8 /* Delete */));
                 this.SpaceAfterVoidOperator = new 
formatting.Rule(formatting.RuleDescriptor.create3(104 /* VoidKeyword */, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsVoidOpContext), 2 /* Space */));
                 this.NoSpaceBetweenReturnAndSemicolon = new 
formatting.Rule(formatting.RuleDescriptor.create1(95 /* ReturnKeyword */, 24 /* 
SemicolonToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
@@ -74864,11 +75435,12 @@ var ts;
                 this.SpaceAfterBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators,
 formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2 /* Space */));
                 // TypeScript-specific higher priority rules
                 // Treat constructor as an identifier in a function 
declaration, and remove spaces between constructor and following left 
parentheses
+                this.SpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122 /* ConstructorKeyword */, 
18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2 /* Space 
*/));
                 this.NoSpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122 /* ConstructorKeyword */, 
18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
                 // Use of module as a function call. e.g.: import m2 = 
module("m2");
                 this.NoSpaceAfterModuleImport = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([127
 /* ModuleKeyword */, 131 /* RequireKeyword */]), 18 /* OpenParenToken */), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
                 // Add a space around certain TypeScript keywords
-                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116
 /* AbstractKeyword */, 74 /* ClassKeyword */, 123 /* DeclareKeyword */, 78 /* 
DefaultKeyword */, 82 /* EnumKeyword */, 83 /* ExportKeyword */, 84 /* 
ExtendsKeyword */, 124 /* GetKeyword */, 107 /* ImplementsKeyword */, 90 /* 
ImportKeyword */, 108 /* InterfaceKeyword */, 127 /* ModuleKeyword */, 128 /* 
NamespaceKeyword */, 111 /* Pri [...]
+                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116
 /* AbstractKeyword */, 74 /* ClassKeyword */, 123 /* DeclareKeyword */, 78 /* 
DefaultKeyword */, 82 /* EnumKeyword */, 83 /* ExportKeyword */, 84 /* 
ExtendsKeyword */, 124 /* GetKeyword */, 107 /* ImplementsKeyword */, 90 /* 
ImportKeyword */, 108 /* InterfaceKeyword */, 127 /* ModuleKeyword */, 128 /* 
NamespaceKeyword */, 111 /* Pri [...]
                 this.SpaceBeforeCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.FromTokens([84 /* ExtendsKeyword */, 107 /* 
ImplementsKeyword */, 138 /* FromKeyword */])), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2 /* Space 
*/));
                 // Treat string literals in module names as identifiers, and 
add a space between the literal and the opening Brace braces, e.g.: module "m2" 
{
                 this.SpaceAfterModuleName = new 
formatting.Rule(formatting.RuleDescriptor.create1(9 /* StringLiteral */, 16 /* 
OpenBraceToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2 /* Space */));
@@ -74935,7 +75507,7 @@ var ts;
                     this.SpaceBeforeJsxAttribute, 
this.SpaceBeforeSlashInJsxOpeningElement, 
this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement,
                     this.NoSpaceBeforeEqualInJsxAttribute, 
this.NoSpaceAfterEqualInJsxAttribute,
                     // TypeScript-specific rules
-                    this.NoSpaceAfterConstructor, 
this.NoSpaceAfterModuleImport,
+                    this.NoSpaceAfterModuleImport,
                     this.SpaceAfterCertainTypeScriptKeywords, 
this.SpaceBeforeCertainTypeScriptKeywords,
                     this.SpaceAfterModuleName,
                     this.SpaceBeforeArrow, this.SpaceAfterArrow,
@@ -74959,7 +75531,6 @@ var ts;
                     this.NoSpaceBeforeOpenBracket,
                     this.NoSpaceAfterCloseBracket,
                     this.SpaceAfterSemicolon,
-                    this.NoSpaceBeforeOpenParenInFuncDecl,
                     this.SpaceBetweenStatements, this.SpaceAfterTryFinally
                 ];
                 ///
@@ -75017,9 +75588,9 @@ var ts;
             }
             Rules.prototype.getRuleName = function (rule) {
                 var o = this;
-                for (var name_48 in o) {
-                    if (o[name_48] === rule) {
-                        return name_48;
+                for (var name_50 in o) {
+                    if (o[name_50] === rule) {
+                        return name_50;
                     }
                 }
                 throw new Error("Unknown rule");
@@ -75060,6 +75631,8 @@ var ts;
                         return context.currentTokenSpan.kind === 57 /* 
EqualsToken */ || context.nextTokenSpan.kind === 57 /* EqualsToken */;
                     // "in" keyword in for (let x in []) { }
                     case 212 /* ForInStatement */:
+                    // "in" keyword in [P in keyof T]: T[P]
+                    case 143 /* TypeParameter */:
                         return context.currentTokenSpan.kind === 91 /* 
InKeyword */ || context.nextTokenSpan.kind === 91 /* InKeyword */;
                     // Technically, "of" is not a binary operator, but format 
it the same way as "in"
                     case 213 /* ForOfStatement */:
@@ -75171,11 +75744,17 @@ var ts;
                     case 226 /* ClassDeclaration */:
                     case 230 /* ModuleDeclaration */:
                     case 229 /* EnumDeclaration */:
-                    case 204 /* Block */:
                     case 256 /* CatchClause */:
                     case 231 /* ModuleBlock */:
                     case 218 /* SwitchStatement */:
                         return true;
+                    case 204 /* Block */: {
+                        var blockParent = context.currentTokenParent.parent;
+                        if (blockParent.kind !== 185 /* ArrowFunction */ &&
+                            blockParent.kind !== 184 /* FunctionExpression */) 
{
+                            return true;
+                        }
+                    }
                 }
                 return false;
             };
@@ -75272,6 +75851,7 @@ var ts;
                 switch (parent.kind) {
                     case 157 /* TypeReference */:
                     case 182 /* TypeAssertionExpression */:
+                    case 228 /* TypeAliasDeclaration */:
                     case 226 /* ClassDeclaration */:
                     case 197 /* ClassExpression */:
                     case 227 /* InterfaceDeclaration */:
@@ -75621,6 +76201,12 @@ var ts;
             };
             RulesProvider.prototype.createActiveRules = function (options) {
                 var rules = this.globalRules.HighPriorityCommonRules.slice(0);
+                if (options.insertSpaceAfterConstructor) {
+                    rules.push(this.globalRules.SpaceAfterConstructor);
+                }
+                else {
+                    rules.push(this.globalRules.NoSpaceAfterConstructor);
+                }
                 if (options.insertSpaceAfterCommaDelimiter) {
                     rules.push(this.globalRules.SpaceAfterComma);
                 }
@@ -75701,6 +76287,12 @@ var ts;
                     rules.push(this.globalRules.NoSpaceBeforeBinaryOperator);
                     rules.push(this.globalRules.NoSpaceAfterBinaryOperator);
                 }
+                if (options.insertSpaceBeforeFunctionParenthesis) {
+                    
rules.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl);
+                }
+                else {
+                    
rules.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl);
+                }
                 if (options.placeOpenBraceOnNewLineForControlBlocks) {
                     
rules.push(this.globalRules.NewLineBeforeOpenBraceInControl);
                 }
@@ -76091,18 +76683,31 @@ var ts;
                             // open and close brace, 'else' and 'while' (in do 
statement) tokens has indentation of the parent
                             case 16 /* OpenBraceToken */:
                             case 17 /* CloseBraceToken */:
-                            case 20 /* OpenBracketToken */:
-                            case 21 /* CloseBracketToken */:
                             case 18 /* OpenParenToken */:
                             case 19 /* CloseParenToken */:
                             case 81 /* ElseKeyword */:
                             case 105 /* WhileKeyword */:
                             case 56 /* AtToken */:
                                 return indentation;
-                            default:
-                                // if token line equals to the line of 
containing node (this is a first token in the node) - use node indentation
-                                return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
+                            case 40 /* SlashToken */:
+                            case 28 /* GreaterThanToken */: {
+                                if (container.kind === 248 /* 
JsxOpeningElement */ ||
+                                    container.kind === 249 /* 
JsxClosingElement */ ||
+                                    container.kind === 247 /* 
JsxSelfClosingElement */) {
+                                    return indentation;
+                                }
+                                break;
+                            }
+                            case 20 /* OpenBracketToken */:
+                            case 21 /* CloseBracketToken */: {
+                                if (container.kind !== 170 /* MappedType */) {
+                                    return indentation;
+                                }
+                                break;
+                            }
                         }
+                        // if token line equals to the line of containing node 
(this is a first token in the node) - use node indentation
+                        return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
                     },
                     getIndentation: function () { return indentation; },
                     getDelta: function (child) { return 
getEffectiveDelta(delta, child); },
@@ -76158,7 +76763,7 @@ var ts;
                     if (tokenInfo.token.end > node.end) {
                         break;
                     }
-                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation);
+                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation, node);
                 }
                 function processChildNode(child, inheritedIndentation, parent, 
parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, 
isListItem, isFirstListItem) {
                     var childStartPos = child.getStart(sourceFile);
@@ -76192,7 +76797,7 @@ var ts;
                             // stop when formatting scanner advances past the 
beginning of the child
                             break;
                         }
-                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation);
+                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation, node);
                     }
                     if (!formattingScanner.isOnToken()) {
                         return inheritedIndentation;
@@ -76232,11 +76837,11 @@ var ts;
                                 startLine = 
sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;
                                 var indentation_1 = 
computeIndentation(tokenInfo.token, startLine, -1 /* Unknown */, parent, 
parentDynamicIndentation, parentStartLine);
                                 listDynamicIndentation = 
getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, 
indentation_1.delta);
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                             else {
                                 // consume any tokens that precede the list as 
child elements of 'node' using its indentation scope
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation, parent);
                             }
                         }
                     }
@@ -76254,7 +76859,7 @@ var ts;
                             // without this check close paren will be 
interpreted as list end token for function expression which is wrong
                             if (tokenInfo.token.kind === listEndToken && 
ts.rangeContainsRange(parent, tokenInfo.token)) {
                                 // consume list end token
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                         }
                     }
@@ -77027,6 +77632,7 @@ var ts;
                     case 231 /* ModuleBlock */:
                     case 176 /* ObjectLiteralExpression */:
                     case 161 /* TypeLiteral */:
+                    case 170 /* MappedType */:
                     case 163 /* TupleType */:
                     case 232 /* CaseBlock */:
                     case 254 /* DefaultClause */:
@@ -77212,663 +77818,676 @@ var ts;
         });
     })(codefix = ts.codefix || (ts.codefix = {}));
 })(ts || (ts = {}));
-/* @internal */
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        var ModuleSpecifierComparison;
-        (function (ModuleSpecifierComparison) {
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Better"] = 0] 
= "Better";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Equal"] = 1] 
= "Equal";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Worse"] = 2] 
= "Worse";
-        })(ModuleSpecifierComparison || (ModuleSpecifierComparison = {}));
-        var ImportCodeActionMap = (function () {
-            function ImportCodeActionMap() {
-                this.symbolIdToActionMap = ts.createMap();
-            }
-            ImportCodeActionMap.prototype.addAction = function (symbolId, 
newAction) {
-                if (!newAction) {
-                    return;
-                }
-                if (!this.symbolIdToActionMap[symbolId]) {
-                    this.symbolIdToActionMap[symbolId] = [newAction];
-                    return;
-                }
-                if (newAction.kind === "CodeChange") {
-                    this.symbolIdToActionMap[symbolId].push(newAction);
-                    return;
-                }
-                var updatedNewImports = [];
-                for (var _i = 0, _a = this.symbolIdToActionMap[symbolId]; _i < 
_a.length; _i++) {
-                    var existingAction = _a[_i];
-                    if (existingAction.kind === "CodeChange") {
-                        // only import actions should compare
-                        updatedNewImports.push(existingAction);
-                        continue;
-                    }
-                    switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
-                        case ModuleSpecifierComparison.Better:
-                            // the new one is not worth considering if it is a 
new improt.
-                            // However if it is instead a insertion into 
existing import, the user might want to use
-                            // the module specifier even it is worse by our 
standards. So keep it.
-                            if (newAction.kind === "NewImport") {
-                                return;
-                            }
-                        case ModuleSpecifierComparison.Equal:
-                            // the current one is safe. But it is still 
possible that the new one is worse
-                            // than another existing one. For example, you may 
have new imports from "./foo/bar"
-                            // and "bar", when the new one is "bar/bar2" and 
the current one is "./foo/bar". The new
-                            // one and the current one are not comparable (one 
relative path and one absolute path),
-                            // but the new one is worse than the other one, so 
should not add to the list.
-                            updatedNewImports.push(existingAction);
-                            break;
-                        case ModuleSpecifierComparison.Worse:
-                            // the existing one is worse, remove from the list.
-                            continue;
-                    }
-                }
-                // if we reach here, it means the new one is better or equal 
to all of the existing ones.
-                updatedNewImports.push(newAction);
-                this.symbolIdToActionMap[symbolId] = updatedNewImports;
-            };
-            ImportCodeActionMap.prototype.addActions = function (symbolId, 
newActions) {
-                for (var _i = 0, newActions_1 = newActions; _i < 
newActions_1.length; _i++) {
-                    var newAction = newActions_1[_i];
-                    this.addAction(symbolId, newAction);
-                }
-            };
-            ImportCodeActionMap.prototype.getAllActions = function () {
-                var result = [];
-                for (var symbolId in this.symbolIdToActionMap) {
-                    result = ts.concatenate(result, 
this.symbolIdToActionMap[symbolId]);
-                }
-                return result;
-            };
-            ImportCodeActionMap.prototype.compareModuleSpecifiers = function 
(moduleSpecifier1, moduleSpecifier2) {
-                if (moduleSpecifier1 === moduleSpecifier2) {
-                    return ModuleSpecifierComparison.Equal;
-                }
-                // if moduleSpecifier1 (ms1) is a substring of ms2, then it is 
better
-                if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
-                    return ModuleSpecifierComparison.Better;
-                }
-                if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
-                    return ModuleSpecifierComparison.Worse;
-                }
-                // if both are relative paths, and ms1 has fewer levels, then 
it is better
-                if (ts.isExternalModuleNameRelative(moduleSpecifier1) && 
ts.isExternalModuleNameRelative(moduleSpecifier2)) {
-                    var regex = new RegExp(ts.directorySeparator, "g");
-                    var moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
-                    var moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
-                    return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
-                        ? ModuleSpecifierComparison.Better
-                        : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
-                            ? ModuleSpecifierComparison.Equal
-                            : ModuleSpecifierComparison.Worse;
-                }
-                // the equal cases include when the two specifiers are not 
comparable.
-                return ModuleSpecifierComparison.Equal;
-            };
-            return ImportCodeActionMap;
-        }());
-        codefix.registerCodeFix({
-            errorCodes: [ts.Diagnostics.Cannot_find_name_0.code],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var checker = context.program.getTypeChecker();
-                var allSourceFiles = context.program.getSourceFiles();
-                var useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
-                var token = ts.getTokenAtPosition(sourceFile, 
context.span.start);
-                var name = token.getText();
-                var symbolIdActionMap = new ImportCodeActionMap();
-                // this is a module id -> module import declaration map
-                var cachedImportDeclarations = ts.createMap();
-                var cachedNewImportInsertPosition;
-                var allPotentialModules = checker.getAmbientModules();
-                for (var _i = 0, allSourceFiles_1 = allSourceFiles; _i < 
allSourceFiles_1.length; _i++) {
-                    var otherSourceFile = allSourceFiles_1[_i];
-                    if (otherSourceFile !== sourceFile && 
ts.isExternalOrCommonJsModule(otherSourceFile)) {
-                        allPotentialModules.push(otherSourceFile.symbol);
-                    }
-                }
-                var currentTokenMeaning = ts.getMeaningFromLocation(token);
-                for (var _a = 0, allPotentialModules_1 = allPotentialModules; 
_a < allPotentialModules_1.length; _a++) {
-                    var moduleSymbol = allPotentialModules_1[_a];
-                    context.cancellationToken.throwIfCancellationRequested();
-                    // check the default export
-                    var defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
-                    if (defaultExport) {
-                        var localSymbol = 
ts.getLocalSymbolForExportDefault(defaultExport);
-                        if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
-                            // check if this symbol is already used
-                            var symbolId = getUniqueSymbolId(localSymbol);
-                            symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, /*isDefault*/ true));
-                        }
-                    }
-                    // check exports with the same name
-                    var exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
-                    if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
-                        var symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
-                        symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
-                    }
-                }
-                return symbolIdActionMap.getAllActions();
-                function getImportDeclarations(moduleSymbol) {
-                    var moduleSymbolId = getUniqueSymbolId(moduleSymbol);
-                    if (cachedImportDeclarations[moduleSymbolId]) {
-                        return cachedImportDeclarations[moduleSymbolId];
-                    }
-                    var existingDeclarations = [];
-                    for (var _i = 0, _a = sourceFile.imports; _i < _a.length; 
_i++) {
-                        var importModuleSpecifier = _a[_i];
-                        var importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
-                        if (importSymbol === moduleSymbol) {
-                            
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
-                        }
-                    }
-                    cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
-                    return existingDeclarations;
-                    function getImportDeclaration(moduleSpecifier) {
-                        var node = moduleSpecifier;
-                        while (node) {
-                            if (node.kind === 235 /* ImportDeclaration */) {
-                                return node;
-                            }
-                            if (node.kind === 234 /* ImportEqualsDeclaration 
*/) {
-                                return node;
-                            }
-                            node = node.parent;
-                        }
-                        return undefined;
-                    }
-                }
-                function getUniqueSymbolId(symbol) {
-                    if (symbol.flags & 8388608 /* Alias */) {
-                        return 
ts.getSymbolId(checker.getAliasedSymbol(symbol));
-                    }
-                    return ts.getSymbolId(symbol);
-                }
-                function checkSymbolHasMeaning(symbol, meaning) {
-                    var declarations = symbol.getDeclarations();
-                    return declarations ? ts.some(symbol.declarations, 
function (decl) { return !!(ts.getMeaningFromDeclaration(decl) & meaning); }) : 
false;
-                }
-                function getCodeActionForImport(moduleSymbol, isDefault) {
-                    var existingDeclarations = 
getImportDeclarations(moduleSymbol);
-                    if (existingDeclarations.length > 0) {
-                        // With an existing import statement, there are more 
than one actions the user can do.
-                        return 
getCodeActionsForExistingImport(existingDeclarations);
-                    }
-                    else {
-                        return [getCodeActionForNewImport()];
-                    }
-                    function getCodeActionsForExistingImport(declarations) {
-                        var actions = [];
-                        // It is possible that multiple import statements with 
the same specifier exist in the file.
-                        // e.g.
-                        //
-                        //     import * as ns from "foo";
-                        //     import { member1, member2 } from "foo";
-                        //
-                        //     member3/**/ <-- cusor here
-                        //
-                        // in this case we should provie 2 actions:
-                        //     1. change "member3" to "ns.member3"
-                        //     2. add "member3" to the second import 
statement's import list
-                        // and it is up to the user to decide which one fits 
best.
-                        var namespaceImportDeclaration;
-                        var namedImportDeclaration;
-                        var existingModuleSpecifier;
-                        for (var _i = 0, declarations_11 = declarations; _i < 
declarations_11.length; _i++) {
-                            var declaration = declarations_11[_i];
-                            if (declaration.kind === 235 /* ImportDeclaration 
*/) {
-                                var namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
-                                if (namedBindings && namedBindings.kind === 
237 /* NamespaceImport */) {
-                                    // case:
-                                    // import * as ns from "foo"
-                                    namespaceImportDeclaration = declaration;
-                                }
-                                else {
-                                    // cases:
-                                    // import default from "foo"
-                                    // import { bar } from "foo" or 
combination with the first one
-                                    // import "foo"
-                                    namedImportDeclaration = declaration;
-                                }
-                                existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
-                            }
-                            else {
-                                // case:
-                                // import foo = require("foo")
-                                namespaceImportDeclaration = declaration;
-                                existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
-                            }
-                        }
-                        if (namespaceImportDeclaration) {
-                            
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
-                        }
-                        if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
-                            (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
-                            /**
-                             * If the existing import declaration already has 
a named import list, just
-                             * insert the identifier into that list.
-                             */
-                            var textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
-                            var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
-                            
actions.push(createCodeAction(ts.Diagnostics.Add_0_to_existing_import_declaration_from_1,
 [name, moduleSpecifierWithoutQuotes], textChange.newText, textChange.span, 
sourceFile.fileName, "InsertingIntoExistingImport", 
moduleSpecifierWithoutQuotes));
-                        }
-                        else {
-                            // we need to create a new import statement, but 
the existing module specifier can be reused.
-                            
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
-                        }
-                        return actions;
-                        function 
getModuleSpecifierFromImportEqualsDeclaration(declaration) {
-                            if (declaration.moduleReference && 
declaration.moduleReference.kind === 245 /* ExternalModuleReference */) {
-                                return 
declaration.moduleReference.expression.getText();
-                            }
-                            return declaration.moduleReference.getText();
-                        }
-                        function getTextChangeForImportClause(importClause) {
-                            var newImportText = isDefault ? "default as " + 
name : name;
-                            var importList = importClause.namedBindings;
-                            // case 1:
-                            // original text: import default from "module"
-                            // change to: import default, { name } from 
"module"
-                            if (!importList && importClause.name) {
-                                var start = importClause.name.getEnd();
-                                return {
-                                    newText: ", { " + newImportText + " }",
-                                    span: { start: start, length: 0 }
-                                };
-                            }
-                            // case 2:
-                            // original text: import {} from "module"
-                            // change to: import { name } from "module"
-                            if (importList.elements.length === 0) {
-                                var start = importList.getStart();
-                                return {
-                                    newText: "{ " + newImportText + " }",
-                                    span: { start: start, length: 
importList.getEnd() - start }
-                                };
-                            }
-                            // case 3:
-                            // original text: import { foo, bar } from "module"
-                            // change to: import { foo, bar, name } from 
"module"
-                            var insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
-                            /**
-                             * If the import list has one import per line, 
preserve that. Otherwise, insert on same line as last element
-                             *     import {
-                             *         foo
-                             *     } from "./module";
-                             */
-                            var startLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getStart());
-                            var endLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getEnd());
-                            var oneImportPerLine = endLine - startLine > 
importList.elements.length;
-                            return {
-                                newText: "," + (oneImportPerLine ? 
context.newLineCharacter : " ") + newImportText,
-                                span: { start: insertPoint, length: 0 }
-                            };
-                        }
-                        function getCodeActionForNamespaceImport(declaration) {
-                            var namespacePrefix;
-                            if (declaration.kind === 235 /* ImportDeclaration 
*/) {
-                                namespacePrefix = 
declaration.importClause.namedBindings.name.getText();
-                            }
-                            else {
-                                namespacePrefix = declaration.name.getText();
-                            }
-                            namespacePrefix = ts.stripQuotes(namespacePrefix);
-                            /**
-                             * Cases:
-                             *     import * as ns from "mod"
-                             *     import default, * as ns from "mod"
-                             *     import ns = require("mod")
-                             *
-                             * Because there is no import list, we alter the 
reference to include the
-                             * namespace instead of altering the import 
declaration. For example, "foo" would
-                             * become "ns.foo"
-                             */
-                            return 
createCodeAction(ts.Diagnostics.Change_0_to_1, [name, namespacePrefix + "." + 
name], namespacePrefix + ".", { start: token.getStart(), length: 0 }, 
sourceFile.fileName, "CodeChange");
-                        }
-                    }
-                    function getCodeActionForNewImport(moduleSpecifier) {
-                        if (!cachedNewImportInsertPosition) {
-                            // insert after any existing imports
-                            var lastModuleSpecifierEnd = -1;
-                            for (var _i = 0, _a = sourceFile.imports; _i < 
_a.length; _i++) {
-                                var moduleSpecifier_1 = _a[_i];
-                                var end = moduleSpecifier_1.getEnd();
-                                if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
-                                    lastModuleSpecifierEnd = end;
-                                }
-                            }
-                            cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
-                        }
-                        var getCanonicalFileName = 
ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
-                        var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
-                        var importStatementText = isDefault
-                            ? "import " + name + " from \"" + 
moduleSpecifierWithoutQuotes + "\""
-                            : "import { " + name + " } from \"" + 
moduleSpecifierWithoutQuotes + "\"";
-                        // if this file doesn't have any import statements, 
insert an import statement and then insert a new line
-                        // between the only import statement and user code. 
Otherwise just insert the statement because chances
-                        // are there are already a new line seperating code 
and import statements.
-                        var newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
-                            ? importStatementText + ";" + 
context.newLineCharacter + context.newLineCharacter
-                            : "" + context.newLineCharacter + 
importStatementText + ";";
-                        return 
createCodeAction(ts.Diagnostics.Import_0_from_1, [name, "\"" + 
moduleSpecifierWithoutQuotes + "\""], newText, { start: 
cachedNewImportInsertPosition, length: 0 }, sourceFile.fileName, "NewImport", 
moduleSpecifierWithoutQuotes);
-                        function getModuleSpecifierForNewImport() {
-                            var fileName = sourceFile.path;
-                            var moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
-                            var sourceDirectory = 
ts.getDirectoryPath(fileName);
-                            var options = context.program.getCompilerOptions();
-                            return tryGetModuleNameFromAmbientModule() ||
-                                tryGetModuleNameFromBaseUrl() ||
-                                tryGetModuleNameFromRootDirs() ||
-                                tryGetModuleNameFromTypeRoots() ||
-                                tryGetModuleNameAsNodeModule() ||
-                                
ts.removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
-                            function tryGetModuleNameFromAmbientModule() {
-                                if (moduleSymbol.valueDeclaration.kind !== 261 
/* SourceFile */) {
-                                    return moduleSymbol.name;
-                                }
-                            }
-                            function tryGetModuleNameFromBaseUrl() {
-                                if (!options.baseUrl) {
-                                    return undefined;
-                                }
-                                var normalizedBaseUrl = 
ts.toPath(options.baseUrl, ts.getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
-                                var relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
-                                if (!relativeName) {
-                                    return undefined;
-                                }
-                                relativeName = 
removeExtensionAndIndexPostFix(relativeName);
-                                if (options.paths) {
-                                    for (var key in options.paths) {
-                                        for (var _i = 0, _a = 
options.paths[key]; _i < _a.length; _i++) {
-                                            var pattern = _a[_i];
-                                            var indexOfStar = 
pattern.indexOf("*");
-                                            if (indexOfStar === 0 && 
pattern.length === 1) {
-                                                continue;
-                                            }
-                                            else if (indexOfStar !== -1) {
-                                                var prefix = pattern.substr(0, 
indexOfStar);
-                                                var suffix = 
pattern.substr(indexOfStar + 1);
-                                                if (relativeName.length >= 
prefix.length + suffix.length &&
-                                                    
ts.startsWith(relativeName, prefix) &&
-                                                    ts.endsWith(relativeName, 
suffix)) {
-                                                    var matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
-                                                    return key.replace("\*", 
matchedStar);
-                                                }
-                                            }
-                                            else if (pattern === relativeName) 
{
-                                                return key;
-                                            }
-                                        }
-                                    }
-                                }
-                                return relativeName;
-                            }
-                            function tryGetModuleNameFromRootDirs() {
-                                if (options.rootDirs) {
-                                    var normalizedRootDirs = 
ts.map(options.rootDirs, function (rootDir) { return ts.toPath(rootDir, 
/*basePath*/ undefined, getCanonicalFileName); });
-                                    var normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
-                                    var normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
-                                    if (normalizedTargetPath !== undefined) {
-                                        var relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
-                                        return 
ts.removeFileExtension(relativePath);
-                                    }
-                                }
-                                return undefined;
-                            }
-                            function tryGetModuleNameFromTypeRoots() {
-                                var typeRoots = 
ts.getEffectiveTypeRoots(options, context.host);
-                                if (typeRoots) {
-                                    var normalizedTypeRoots = 
ts.map(typeRoots, function (typeRoot) { return ts.toPath(typeRoot, /*basePath*/ 
undefined, getCanonicalFileName); });
-                                    for (var _i = 0, normalizedTypeRoots_1 = 
normalizedTypeRoots; _i < normalizedTypeRoots_1.length; _i++) {
-                                        var typeRoot = 
normalizedTypeRoots_1[_i];
-                                        if (ts.startsWith(moduleFileName, 
typeRoot)) {
-                                            var relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
-                                            return 
removeExtensionAndIndexPostFix(relativeFileName);
-                                        }
-                                    }
-                                }
-                            }
-                            function tryGetModuleNameAsNodeModule() {
-                                if (ts.getEmitModuleResolutionKind(options) 
!== ts.ModuleResolutionKind.NodeJs) {
-                                    // nothing to do here
-                                    return undefined;
-                                }
-                                var indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
-                                if (indexOfNodeModules < 0) {
-                                    return undefined;
-                                }
-                                var relativeFileName;
-                                if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
-                                    // if node_modules folder is in this 
folder or any of its parent folder, no need to keep it.
-                                    relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13 /* "node_modules\".length */);
-                                }
-                                else {
-                                    relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
-                                }
-                                relativeFileName = 
ts.removeFileExtension(relativeFileName);
-                                if (ts.endsWith(relativeFileName, "/index")) {
-                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                }
-                                else {
-                                    try {
-                                        var moduleDirectory = 
ts.getDirectoryPath(moduleFileName);
-                                        var packageJsonContent = 
JSON.parse(context.host.readFile(ts.combinePaths(moduleDirectory, 
"package.json")));
-                                        if (packageJsonContent) {
-                                            var mainFile = 
packageJsonContent.main || packageJsonContent.typings;
-                                            if (mainFile) {
-                                                var mainExportFile = 
ts.toPath(mainFile, moduleDirectory, getCanonicalFileName);
-                                                if 
(ts.removeFileExtension(mainExportFile) === 
ts.removeFileExtension(moduleFileName)) {
-                                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                                }
-                                            }
-                                        }
-                                    }
-                                    catch (e) { }
-                                }
-                                return relativeFileName;
-                            }
-                        }
-                        function getPathRelativeToRootDirs(path, rootDirs) {
-                            for (var _i = 0, rootDirs_2 = rootDirs; _i < 
rootDirs_2.length; _i++) {
-                                var rootDir = rootDirs_2[_i];
-                                var relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
-                                if (relativeName !== undefined) {
-                                    return relativeName;
-                                }
-                            }
-                            return undefined;
-                        }
-                        function removeExtensionAndIndexPostFix(fileName) {
-                            fileName = ts.removeFileExtension(fileName);
-                            if (ts.endsWith(fileName, "/index")) {
-                                fileName = fileName.substr(0, fileName.length 
- 6 /* "/index".length */);
-                            }
-                            return fileName;
-                        }
-                        function getRelativePath(path, directoryPath) {
-                            var relativePath = 
ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
-                            return ts.moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
-                        }
-                        function tryRemoveParentDirectoryName(path, 
parentDirectory) {
-                            var index = path.indexOf(parentDirectory);
-                            if (index === 0) {
-                                return ts.endsWith(parentDirectory, 
ts.directorySeparator)
-                                    ? path.substring(parentDirectory.length)
-                                    : path.substring(parentDirectory.length + 
1);
-                            }
-                            return undefined;
-                        }
-                    }
-                }
-                function createCodeAction(description, diagnosticArgs, 
newText, span, fileName, kind, moduleSpecifier) {
-                    return {
-                        description: ts.formatMessage.apply(undefined, 
[undefined, description].concat(diagnosticArgs)),
-                        changes: [{ fileName: fileName, textChanges: [{ 
newText: newText, span: span }] }],
-                        kind: kind,
-                        moduleSpecifier: moduleSpecifier
-                    };
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-/* @internal */
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        codefix.registerCodeFix({
-            errorCodes: [
-                ts.Diagnostics._0_is_declared_but_never_used.code,
-                ts.Diagnostics.Property_0_is_declared_but_never_used.code
-            ],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var start = context.span.start;
-                var token = ts.getTokenAtPosition(sourceFile, start);
-                // this handles var ["computed"] = 12;
-                if (token.kind === 20 /* OpenBracketToken */) {
-                    token = ts.getTokenAtPosition(sourceFile, start + 1);
-                }
-                switch (token.kind) {
-                    case 70 /* Identifier */:
-                        switch (token.parent.kind) {
-                            case 223 /* VariableDeclaration */:
-                                switch (token.parent.parent.parent.kind) {
-                                    case 211 /* ForStatement */:
-                                        var forStatement = 
token.parent.parent.parent;
-                                        var forInitializer = 
forStatement.initializer;
-                                        if (forInitializer.declarations.length 
=== 1) {
-                                            return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
-                                        }
-                                        else {
-                                            return 
removeSingleItem(forInitializer.declarations, token);
-                                        }
-                                    case 213 /* ForOfStatement */:
-                                        var forOfStatement = 
token.parent.parent.parent;
-                                        if (forOfStatement.initializer.kind 
=== 224 /* VariableDeclarationList */) {
-                                            var forOfInitializer = 
forOfStatement.initializer;
-                                            return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
-                                        }
-                                        break;
-                                    case 212 /* ForInStatement */:
-                                        // There is no valid fix in the case 
of:
-                                        //  for .. in
-                                        return undefined;
-                                    case 256 /* CatchClause */:
-                                        var catchClause = token.parent.parent;
-                                        var parameter = 
catchClause.variableDeclaration.getChildren()[0];
-                                        return createCodeFix("", 
parameter.pos, parameter.end - parameter.pos);
-                                    default:
-                                        var variableStatement = 
token.parent.parent.parent;
-                                        if 
(variableStatement.declarationList.declarations.length === 1) {
-                                            return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
-                                        }
-                                        else {
-                                            var declarations = 
variableStatement.declarationList.declarations;
-                                            return 
removeSingleItem(declarations, token);
-                                        }
-                                }
-                            case 143 /* TypeParameter */:
-                                var typeParameters = 
token.parent.parent.typeParameters;
-                                if (typeParameters.length === 1) {
-                                    return createCodeFix("", token.parent.pos 
- 1, token.parent.end - token.parent.pos + 2);
-                                }
-                                else {
-                                    return removeSingleItem(typeParameters, 
token);
-                                }
-                            case 144 /* Parameter */:
-                                var functionDeclaration = token.parent.parent;
-                                if (functionDeclaration.parameters.length === 
1) {
-                                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(functionDeclaration.parameters, token);
-                                }
-                            // handle case where 'import a = A;'
-                            case 234 /* ImportEqualsDeclaration */:
-                                var importEquals = 
findImportDeclaration(token);
-                                return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
-                            case 239 /* ImportSpecifier */:
-                                var namedImports = token.parent.parent;
-                                if (namedImports.elements.length === 1) {
-                                    // Only 1 import and it is unused. So the 
entire declaration should be removed.
-                                    var importSpec = 
findImportDeclaration(token);
-                                    return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(namedImports.elements, token);
-                                }
-                            // handle case where "import d, * as ns from 
'./file'" 
-                            // or "'import {a, b as ns} from './file'"
-                            case 236 /* ImportClause */:
-                                var importClause = token.parent;
-                                if (!importClause.namedBindings) {
-                                    var importDecl = 
findImportDeclaration(importClause);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
-                                }
-                            case 237 /* NamespaceImport */:
-                                var namespaceImport = token.parent;
-                                if (namespaceImport.name == token && 
!namespaceImport.parent.name) {
-                                    var importDecl = 
findImportDeclaration(namespaceImport);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    var start_4 = 
namespaceImport.parent.name.end;
-                                    return createCodeFix("", start_4, 
namespaceImport.parent.namedBindings.end - start_4);
-                                }
-                        }
-                        break;
-                    case 147 /* PropertyDeclaration */:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                    case 237 /* NamespaceImport */:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                if (ts.isDeclarationName(token)) {
-                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                else if (ts.isLiteralComputedPropertyDeclarationName(token)) {
-                    return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
-                }
-                else {
-                    return undefined;
-                }
-                function findImportDeclaration(token) {
-                    var importDecl = token;
-                    while (importDecl.kind != 235 /* ImportDeclaration */ && 
importDecl.parent) {
-                        importDecl = importDecl.parent;
-                    }
-                    return importDecl;
-                }
-                function createCodeFix(newText, start, length) {
-                    return [{
-                            description: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Remove_unused_identifiers),
-                            changes: [{
-                                    fileName: sourceFile.fileName,
-                                    textChanges: [{ newText: newText, span: { 
start: start, length: length } }]
-                                }]
-                        }];
-                }
-                function removeSingleItem(elements, token) {
-                    if (elements[0] === token.parent) {
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
-                    }
-                    else {
-                        return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
-                    }
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
+// /* @internal */
+// namespace ts.codefix {
+//     type ImportCodeActionKind = "CodeChange" | 
"InsertingIntoExistingImport" | "NewImport";
+//     interface ImportCodeAction extends CodeAction {
+//         kind: ImportCodeActionKind,
+//         moduleSpecifier?: string
+//     }
+//     enum ModuleSpecifierComparison {
+//         Better,
+//         Equal,
+//         Worse
+//     }
+//     class ImportCodeActionMap {
+//         private symbolIdToActionMap = createMap<ImportCodeAction[]>();
+//         addAction(symbolId: number, newAction: ImportCodeAction) {
+//             if (!newAction) {
+//                 return;
+//             }
+//             if (!this.symbolIdToActionMap[symbolId]) {
+//                 this.symbolIdToActionMap[symbolId] = [newAction];
+//                 return;
+//             }
+//             if (newAction.kind === "CodeChange") {
+//                 this.symbolIdToActionMap[symbolId].push(newAction);
+//                 return;
+//             }
+//             const updatedNewImports: ImportCodeAction[] = [];
+//             for (const existingAction of 
this.symbolIdToActionMap[symbolId]) {
+//                 if (existingAction.kind === "CodeChange") {
+//                     // only import actions should compare
+//                     updatedNewImports.push(existingAction);
+//                     continue;
+//                 }
+//                 switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
+//                     case ModuleSpecifierComparison.Better:
+//                         // the new one is not worth considering if it is a 
new improt.
+//                         // However if it is instead a insertion into 
existing import, the user might want to use
+//                         // the module specifier even it is worse by our 
standards. So keep it.
+//                         if (newAction.kind === "NewImport") {
+//                             return;
+//                         }
+//                     case ModuleSpecifierComparison.Equal:
+//                         // the current one is safe. But it is still 
possible that the new one is worse
+//                         // than another existing one. For example, you may 
have new imports from "./foo/bar"
+//                         // and "bar", when the new one is "bar/bar2" and 
the current one is "./foo/bar". The new
+//                         // one and the current one are not comparable (one 
relative path and one absolute path),
+//                         // but the new one is worse than the other one, so 
should not add to the list.
+//                         updatedNewImports.push(existingAction);
+//                         break;
+//                     case ModuleSpecifierComparison.Worse:
+//                         // the existing one is worse, remove from the list.
+//                         continue;
+//                 }
+//             }
+//             // if we reach here, it means the new one is better or equal to 
all of the existing ones.
+//             updatedNewImports.push(newAction);
+//             this.symbolIdToActionMap[symbolId] = updatedNewImports;
+//         }
+//         addActions(symbolId: number, newActions: ImportCodeAction[]) {
+//             for (const newAction of newActions) {
+//                 this.addAction(symbolId, newAction);
+//             }
+//         }
+//         getAllActions() {
+//             let result: ImportCodeAction[] = [];
+//             for (const symbolId in this.symbolIdToActionMap) {
+//                 result = concatenate(result, 
this.symbolIdToActionMap[symbolId]);
+//             }
+//             return result;
+//         }
+//         private compareModuleSpecifiers(moduleSpecifier1: string, 
moduleSpecifier2: string): ModuleSpecifierComparison {
+//             if (moduleSpecifier1 === moduleSpecifier2) {
+//                 return ModuleSpecifierComparison.Equal;
+//             }
+//             // if moduleSpecifier1 (ms1) is a substring of ms2, then it is 
better
+//             if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
+//                 return ModuleSpecifierComparison.Better;
+//             }
+//             if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
+//                 return ModuleSpecifierComparison.Worse;
+//             }
+//             // if both are relative paths, and ms1 has fewer levels, then 
it is better
+//             if (isExternalModuleNameRelative(moduleSpecifier1) && 
isExternalModuleNameRelative(moduleSpecifier2)) {
+//                 const regex = new RegExp(directorySeparator, "g");
+//                 const moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
+//                 const moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
+//                 return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
+//                     ? ModuleSpecifierComparison.Better
+//                     : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
+//                         ? ModuleSpecifierComparison.Equal
+//                         : ModuleSpecifierComparison.Worse;
+//             }
+//             // the equal cases include when the two specifiers are not 
comparable.
+//             return ModuleSpecifierComparison.Equal;
+//         }
+//     }
+//     registerCodeFix({
+//         errorCodes: [Diagnostics.Cannot_find_name_0.code],
+//         getCodeActions: (context: CodeFixContext) => {
+//             const sourceFile = context.sourceFile;
+//             const checker = context.program.getTypeChecker();
+//             const allSourceFiles = context.program.getSourceFiles();
+//             const useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
+//             const token = getTokenAtPosition(sourceFile, 
context.span.start);
+//             const name = token.getText();
+//             const symbolIdActionMap = new ImportCodeActionMap();
+//             // this is a module id -> module import declaration map
+//             const cachedImportDeclarations = createMap<(ImportDeclaration | 
ImportEqualsDeclaration)[]>();
+//             let cachedNewImportInsertPosition: number;
+//             const allPotentialModules = checker.getAmbientModules();
+//             for (const otherSourceFile of allSourceFiles) {
+//                 if (otherSourceFile !== sourceFile && 
isExternalOrCommonJsModule(otherSourceFile)) {
+//                     allPotentialModules.push(otherSourceFile.symbol);
+//                 }
+//             }
+//             const currentTokenMeaning = getMeaningFromLocation(token);
+//             for (const moduleSymbol of allPotentialModules) {
+//                 context.cancellationToken.throwIfCancellationRequested();
+//                 // check the default export
+//                 const defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
+//                 if (defaultExport) {
+//                     const localSymbol = 
getLocalSymbolForExportDefault(defaultExport);
+//                     if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
+//                         // check if this symbol is already used
+//                         const symbolId = getUniqueSymbolId(localSymbol);
+//                         symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, /*isDefault*/ true));
+//                     }
+//                 }
+//                 // check exports with the same name
+//                 const exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
+//                 if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
+//                     const symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
+//                     symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
+//                 }
+//             }
+//             return symbolIdActionMap.getAllActions();
+//             function getImportDeclarations(moduleSymbol: Symbol) {
+//                 const moduleSymbolId = getUniqueSymbolId(moduleSymbol);
+//                 if (cachedImportDeclarations[moduleSymbolId]) {
+//                     return cachedImportDeclarations[moduleSymbolId];
+//                 }
+//                 const existingDeclarations: (ImportDeclaration | 
ImportEqualsDeclaration)[] = [];
+//                 for (const importModuleSpecifier of sourceFile.imports) {
+//                     const importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
+//                     if (importSymbol === moduleSymbol) {
+//                         
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
+//                     }
+//                 }
+//                 cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
+//                 return existingDeclarations;
+//                 function getImportDeclaration(moduleSpecifier: 
LiteralExpression) {
+//                     let node: Node = moduleSpecifier;
+//                     while (node) {
+//                         if (node.kind === SyntaxKind.ImportDeclaration) {
+//                             return <ImportDeclaration>node;
+//                         }
+//                         if (node.kind === 
SyntaxKind.ImportEqualsDeclaration) {
+//                             return <ImportEqualsDeclaration>node;
+//                         }
+//                         node = node.parent;
+//                     }
+//                     return undefined;
+//                 }
+//             }
+//             function getUniqueSymbolId(symbol: Symbol) {
+//                 if (symbol.flags & SymbolFlags.Alias) {
+//                     return getSymbolId(checker.getAliasedSymbol(symbol));
+//                 }
+//                 return getSymbolId(symbol);
+//             }
+//             function checkSymbolHasMeaning(symbol: Symbol, meaning: 
SemanticMeaning) {
+//                 const declarations = symbol.getDeclarations();
+//                 return declarations ? some(symbol.declarations, decl => 
!!(getMeaningFromDeclaration(decl) & meaning)) : false;
+//             }
+//             function getCodeActionForImport(moduleSymbol: Symbol, 
isDefault?: boolean): ImportCodeAction[] {
+//                 const existingDeclarations = 
getImportDeclarations(moduleSymbol);
+//                 if (existingDeclarations.length > 0) {
+//                     // With an existing import statement, there are more 
than one actions the user can do.
+//                     return 
getCodeActionsForExistingImport(existingDeclarations);
+//                 }
+//                 else {
+//                     return [getCodeActionForNewImport()];
+//                 }
+//                 function getCodeActionsForExistingImport(declarations: 
(ImportDeclaration | ImportEqualsDeclaration)[]): ImportCodeAction[] {
+//                     const actions: ImportCodeAction[] = [];
+//                     // It is possible that multiple import statements with 
the same specifier exist in the file.
+//                     // e.g.
+//                     //
+//                     //     import * as ns from "foo";
+//                     //     import { member1, member2 } from "foo";
+//                     //
+//                     //     member3/**/ <-- cusor here
+//                     //
+//                     // in this case we should provie 2 actions:
+//                     //     1. change "member3" to "ns.member3"
+//                     //     2. add "member3" to the second import 
statement's import list
+//                     // and it is up to the user to decide which one fits 
best.
+//                     let namespaceImportDeclaration: ImportDeclaration | 
ImportEqualsDeclaration;
+//                     let namedImportDeclaration: ImportDeclaration;
+//                     let existingModuleSpecifier: string;
+//                     for (const declaration of declarations) {
+//                         if (declaration.kind === 
SyntaxKind.ImportDeclaration) {
+//                             const namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
+//                             if (namedBindings && namedBindings.kind === 
SyntaxKind.NamespaceImport) {
+//                                 // case:
+//                                 // import * as ns from "foo"
+//                                 namespaceImportDeclaration = declaration;
+//                             }
+//                             else {
+//                                 // cases:
+//                                 // import default from "foo"
+//                                 // import { bar } from "foo" or combination 
with the first one
+//                                 // import "foo"
+//                                 namedImportDeclaration = declaration;
+//                             }
+//                             existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
+//                         }
+//                         else {
+//                             // case:
+//                             // import foo = require("foo")
+//                             namespaceImportDeclaration = declaration;
+//                             existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
+//                         }
+//                     }
+//                     if (namespaceImportDeclaration) {
+//                         
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
+//                     }
+//                     if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
+//                         (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
+//                         /**
+//                          * If the existing import declaration already has a 
named import list, just
+//                          * insert the identifier into that list.
+//                          */
+//                         const textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
+//                         const moduleSpecifierWithoutQuotes = 
stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
+//                         actions.push(createCodeAction(
+//                             
Diagnostics.Add_0_to_existing_import_declaration_from_1,
+//                             [name, moduleSpecifierWithoutQuotes],
+//                             textChange.newText,
+//                             textChange.span,
+//                             sourceFile.fileName,
+//                             "InsertingIntoExistingImport",
+//                             moduleSpecifierWithoutQuotes
+//                         ));
+//                     }
+//                     else {
+//                         // we need to create a new import statement, but 
the existing module specifier can be reused.
+//                         
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
+//                     }
+//                     return actions;
+//                     function 
getModuleSpecifierFromImportEqualsDeclaration(declaration: 
ImportEqualsDeclaration) {
+//                         if (declaration.moduleReference && 
declaration.moduleReference.kind === SyntaxKind.ExternalModuleReference) {
+//                             return 
declaration.moduleReference.expression.getText();
+//                         }
+//                         return declaration.moduleReference.getText();
+//                     }
+//                     function getTextChangeForImportClause(importClause: 
ImportClause): TextChange {
+//                         const newImportText = isDefault ? `default as 
${name}` : name;
+//                         const importList = 
<NamedImports>importClause.namedBindings;
+//                         // case 1:
+//                         // original text: import default from "module"
+//                         // change to: import default, { name } from "module"
+//                         if (!importList && importClause.name) {
+//                             const start = importClause.name.getEnd();
+//                             return {
+//                                 newText: `, { ${newImportText} }`,
+//                                 span: { start, length: 0 }
+//                             };
+//                         }
+//                         // case 2:
+//                         // original text: import {} from "module"
+//                         // change to: import { name } from "module"
+//                         if (importList.elements.length === 0) {
+//                             const start = importList.getStart();
+//                             return {
+//                                 newText: `{ ${newImportText} }`,
+//                                 span: { start, length: importList.getEnd() 
- start }
+//                             };
+//                         }
+//                         // case 3:
+//                         // original text: import { foo, bar } from "module"
+//                         // change to: import { foo, bar, name } from 
"module"
+//                         const insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
+//                         /**
+//                          * If the import list has one import per line, 
preserve that. Otherwise, insert on same line as last element
+//                          *     import {
+//                          *         foo
+//                          *     } from "./module";
+//                          */
+//                         const startLine = 
getLineOfLocalPosition(sourceFile, importList.getStart());
+//                         const endLine = getLineOfLocalPosition(sourceFile, 
importList.getEnd());
+//                         const oneImportPerLine = endLine - startLine > 
importList.elements.length;
+//                         return {
+//                             newText: `,${oneImportPerLine ? 
context.newLineCharacter : " "}${newImportText}`,
+//                             span: { start: insertPoint, length: 0 }
+//                         };
+//                     }
+//                     function getCodeActionForNamespaceImport(declaration: 
ImportDeclaration | ImportEqualsDeclaration): ImportCodeAction {
+//                         let namespacePrefix: string;
+//                         if (declaration.kind === 
SyntaxKind.ImportDeclaration) {
+//                             namespacePrefix = 
(<NamespaceImport>declaration.importClause.namedBindings).name.getText();
+//                         }
+//                         else {
+//                             namespacePrefix = declaration.name.getText();
+//                         }
+//                         namespacePrefix = stripQuotes(namespacePrefix);
+//                         /**
+//                          * Cases:
+//                          *     import * as ns from "mod"
+//                          *     import default, * as ns from "mod"
+//                          *     import ns = require("mod")
+//                          *
+//                          * Because there is no import list, we alter the 
reference to include the
+//                          * namespace instead of altering the import 
declaration. For example, "foo" would
+//                          * become "ns.foo"
+//                          */
+//                         return createCodeAction(
+//                             Diagnostics.Change_0_to_1,
+//                             [name, `${namespacePrefix}.${name}`],
+//                             `${namespacePrefix}.`,
+//                             { start: token.getStart(), length: 0 },
+//                             sourceFile.fileName,
+//                             "CodeChange"
+//                         );
+//                     }
+//                 }
+//                 function getCodeActionForNewImport(moduleSpecifier?: 
string): ImportCodeAction {
+//                     if (!cachedNewImportInsertPosition) {
+//                         // insert after any existing imports
+//                         let lastModuleSpecifierEnd = -1;
+//                         for (const moduleSpecifier of sourceFile.imports) {
+//                             const end = moduleSpecifier.getEnd();
+//                             if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
+//                                 lastModuleSpecifierEnd = end;
+//                             }
+//                         }
+//                         cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
+//                     }
+//                     const getCanonicalFileName = 
createGetCanonicalFileName(useCaseSensitiveFileNames);
+//                     const moduleSpecifierWithoutQuotes = 
stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
+//                     const importStatementText = isDefault
+//                         ? `import ${name} from 
"${moduleSpecifierWithoutQuotes}"`
+//                         : `import { ${name} } from 
"${moduleSpecifierWithoutQuotes}"`;
+//                     // if this file doesn't have any import statements, 
insert an import statement and then insert a new line
+//                     // between the only import statement and user code. 
Otherwise just insert the statement because chances
+//                     // are there are already a new line seperating code and 
import statements.
+//                     const newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
+//                         ? 
`${importStatementText};${context.newLineCharacter}${context.newLineCharacter}`
+//                         : 
`${context.newLineCharacter}${importStatementText};`;
+//                     return createCodeAction(
+//                         Diagnostics.Import_0_from_1,
+//                         [name, `"${moduleSpecifierWithoutQuotes}"`],
+//                         newText,
+//                         { start: cachedNewImportInsertPosition, length: 0 },
+//                         sourceFile.fileName,
+//                         "NewImport",
+//                         moduleSpecifierWithoutQuotes
+//                     );
+//                     function getModuleSpecifierForNewImport() {
+//                         const fileName = sourceFile.path;
+//                         const moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
+//                         const sourceDirectory = getDirectoryPath(fileName);
+//                         const options = 
context.program.getCompilerOptions();
+//                         return tryGetModuleNameFromAmbientModule() ||
+//                             tryGetModuleNameFromBaseUrl() ||
+//                             tryGetModuleNameFromRootDirs() ||
+//                             tryGetModuleNameFromTypeRoots() ||
+//                             tryGetModuleNameAsNodeModule() ||
+//                             
removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
+//                         function tryGetModuleNameFromAmbientModule(): 
string {
+//                             if (moduleSymbol.valueDeclaration.kind !== 
SyntaxKind.SourceFile) {
+//                                 return moduleSymbol.name;
+//                             }
+//                         }
+//                         function tryGetModuleNameFromBaseUrl() {
+//                             if (!options.baseUrl) {
+//                                 return undefined;
+//                             }
+//                             const normalizedBaseUrl = 
toPath(options.baseUrl, getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
+//                             let relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
+//                             if (!relativeName) {
+//                                 return undefined;
+//                             }
+//                             relativeName = 
removeExtensionAndIndexPostFix(relativeName);
+//                             if (options.paths) {
+//                                 for (const key in options.paths) {
+//                                     for (const pattern of 
options.paths[key]) {
+//                                         const indexOfStar = 
pattern.indexOf("*");
+//                                         if (indexOfStar === 0 && 
pattern.length === 1) {
+//                                             continue;
+//                                         }
+//                                         else if (indexOfStar !== -1) {
+//                                             const prefix = 
pattern.substr(0, indexOfStar);
+//                                             const suffix = 
pattern.substr(indexOfStar + 1);
+//                                             if (relativeName.length >= 
prefix.length + suffix.length &&
+//                                                 startsWith(relativeName, 
prefix) &&
+//                                                 endsWith(relativeName, 
suffix)) {
+//                                                 const matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
+//                                                 return key.replace("\*", 
matchedStar);
+//                                             }
+//                                         }
+//                                         else if (pattern === relativeName) {
+//                                             return key;
+//                                         }
+//                                     }
+//                                 }
+//                             }
+//                             return relativeName;
+//                         }
+//                         function tryGetModuleNameFromRootDirs() {
+//                             if (options.rootDirs) {
+//                                 const normalizedRootDirs = 
map(options.rootDirs, rootDir => toPath(rootDir, /*basePath*/ undefined, 
getCanonicalFileName));
+//                                 const normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
+//                                 const normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
+//                                 if (normalizedTargetPath !== undefined) {
+//                                     const relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
+//                                     return 
removeFileExtension(relativePath);
+//                                 }
+//                             }
+//                             return undefined;
+//                         }
+//                         function tryGetModuleNameFromTypeRoots() {
+//                             const typeRoots = 
getEffectiveTypeRoots(options, context.host);
+//                             if (typeRoots) {
+//                                 const normalizedTypeRoots = map(typeRoots, 
typeRoot => toPath(typeRoot, /*basePath*/ undefined, getCanonicalFileName));
+//                                 for (const typeRoot of normalizedTypeRoots) 
{
+//                                     if (startsWith(moduleFileName, 
typeRoot)) {
+//                                         const relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
+//                                         return 
removeExtensionAndIndexPostFix(relativeFileName);
+//                                     }
+//                                 }
+//                             }
+//                         }
+//                         function tryGetModuleNameAsNodeModule() {
+//                             if (getEmitModuleResolutionKind(options) !== 
ModuleResolutionKind.NodeJs) {
+//                                 // nothing to do here
+//                                 return undefined;
+//                             }
+//                             const indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
+//                             if (indexOfNodeModules < 0) {
+//                                 return undefined;
+//                             }
+//                             let relativeFileName: string;
+//                             if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
+//                                 // if node_modules folder is in this folder 
or any of its parent folder, no need to keep it.
+//                                 relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13 /* "node_modules\".length */);
+//                             }
+//                             else {
+//                                 relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
+//                             }
+//                             relativeFileName = 
removeFileExtension(relativeFileName);
+//                             if (endsWith(relativeFileName, "/index")) {
+//                                 relativeFileName = 
getDirectoryPath(relativeFileName);
+//                             }
+//                             else {
+//                                 try {
+//                                     const moduleDirectory = 
getDirectoryPath(moduleFileName);
+//                                     const packageJsonContent = 
JSON.parse(context.host.readFile(combinePaths(moduleDirectory, 
"package.json")));
+//                                     if (packageJsonContent) {
+//                                         const mainFile = 
packageJsonContent.main || packageJsonContent.typings;
+//                                         if (mainFile) {
+//                                             const mainExportFile = 
toPath(mainFile, moduleDirectory, getCanonicalFileName);
+//                                             if 
(removeFileExtension(mainExportFile) === removeFileExtension(moduleFileName)) {
+//                                                 relativeFileName = 
getDirectoryPath(relativeFileName);
+//                                             }
+//                                         }
+//                                     }
+//                                 }
+//                                 catch (e) { }
+//                             }
+//                             return relativeFileName;
+//                         }
+//                     }
+//                     function getPathRelativeToRootDirs(path: Path, 
rootDirs: Path[]) {
+//                         for (const rootDir of rootDirs) {
+//                             const relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
+//                             if (relativeName !== undefined) {
+//                                 return relativeName;
+//                             }
+//                         }
+//                         return undefined;
+//                     }
+//                     function removeExtensionAndIndexPostFix(fileName: 
string) {
+//                         fileName = removeFileExtension(fileName);
+//                         if (endsWith(fileName, "/index")) {
+//                             fileName = fileName.substr(0, fileName.length - 
6/* "/index".length */);
+//                         }
+//                         return fileName;
+//                     }
+//                     function getRelativePath(path: string, directoryPath: 
string) {
+//                         const relativePath = 
getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
+//                         return moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
+//                     }
+//                     function tryRemoveParentDirectoryName(path: Path, 
parentDirectory: Path) {
+//                         const index = path.indexOf(parentDirectory);
+//                         if (index === 0) {
+//                             return endsWith(parentDirectory, 
directorySeparator)
+//                                 ? path.substring(parentDirectory.length)
+//                                 : path.substring(parentDirectory.length + 
1);
+//                         }
+//                         return undefined;
+//                     }
+//                 }
+//             }
+//             function createCodeAction(
+//                 description: DiagnosticMessage,
+//                 diagnosticArgs: string[],
+//                 newText: string,
+//                 span: TextSpan,
+//                 fileName: string,
+//                 kind: ImportCodeActionKind,
+//                 moduleSpecifier?: string): ImportCodeAction {
+//                 return {
+//                     description: formatMessage.apply(undefined, [undefined, 
description].concat(<any[]>diagnosticArgs)),
+//                     changes: [{ fileName, textChanges: [{ newText, span }] 
}],
+//                     kind,
+//                     moduleSpecifier
+//                 };
+//             }
+//         }
+//     });
+// } 
+// /* @internal */
+// namespace ts.codefix {
+//     registerCodeFix({
+//         errorCodes: [
+//             Diagnostics._0_is_declared_but_never_used.code,
+//             Diagnostics.Property_0_is_declared_but_never_used.code
+//         ],
+//         getCodeActions: (context: CodeFixContext) => {
+//             const sourceFile = context.sourceFile;
+//             const start = context.span.start;
+//             let token = getTokenAtPosition(sourceFile, start);
+//             // this handles var ["computed"] = 12;
+//             if (token.kind === SyntaxKind.OpenBracketToken) {
+//                 token = getTokenAtPosition(sourceFile, start + 1);
+//             }
+//             switch (token.kind) {
+//                 case ts.SyntaxKind.Identifier:
+//                     switch (token.parent.kind) {
+//                         case ts.SyntaxKind.VariableDeclaration:
+//                             switch (token.parent.parent.parent.kind) {
+//                                 case SyntaxKind.ForStatement:
+//                                     const forStatement = 
<ForStatement>token.parent.parent.parent;
+//                                     const forInitializer = 
<VariableDeclarationList>forStatement.initializer;
+//                                     if (forInitializer.declarations.length 
=== 1) {
+//                                         return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
+//                                     }
+//                                     else {
+//                                         return 
removeSingleItem(forInitializer.declarations, token);
+//                                     }
+//                                 case SyntaxKind.ForOfStatement:
+//                                     const forOfStatement = 
<ForOfStatement>token.parent.parent.parent;
+//                                     if (forOfStatement.initializer.kind === 
SyntaxKind.VariableDeclarationList) {
+//                                         const forOfInitializer = 
<VariableDeclarationList>forOfStatement.initializer;
+//                                         return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
+//                                     }
+//                                     break;
+//                                 case SyntaxKind.ForInStatement:
+//                                     // There is no valid fix in the case of:
+//                                     //  for .. in
+//                                     return undefined;
+//                                 case SyntaxKind.CatchClause:
+//                                     const catchClause = 
<CatchClause>token.parent.parent;
+//                                     const parameter = 
catchClause.variableDeclaration.getChildren()[0];
+//                                     return createCodeFix("", parameter.pos, 
parameter.end - parameter.pos);
+//                                 default:
+//                                     const variableStatement = 
<VariableStatement>token.parent.parent.parent;
+//                                     if 
(variableStatement.declarationList.declarations.length === 1) {
+//                                         return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
+//                                     }
+//                                     else {
+//                                         const declarations = 
variableStatement.declarationList.declarations;
+//                                         return 
removeSingleItem(declarations, token);
+//                                     }
+//                             }
+//                         case SyntaxKind.TypeParameter:
+//                             const typeParameters = 
(<DeclarationWithTypeParameters>token.parent.parent).typeParameters;
+//                             if (typeParameters.length === 1) {
+//                                 return createCodeFix("", token.parent.pos - 
1, token.parent.end - token.parent.pos + 2);
+//                             }
+//                             else {
+//                                 return removeSingleItem(typeParameters, 
token);
+//                             }
+//                         case ts.SyntaxKind.Parameter:
+//                             const functionDeclaration = 
<FunctionDeclaration>token.parent.parent;
+//                             if (functionDeclaration.parameters.length === 
1) {
+//                                 return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//                             }
+//                             else {
+//                                 return 
removeSingleItem(functionDeclaration.parameters, token);
+//                             }
+//                         // handle case where 'import a = A;'
+//                         case SyntaxKind.ImportEqualsDeclaration:
+//                             const importEquals = 
findImportDeclaration(token);
+//                             return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
+//                         case SyntaxKind.ImportSpecifier:
+//                             const namedImports = 
<NamedImports>token.parent.parent;
+//                             if (namedImports.elements.length === 1) {
+//                                 // Only 1 import and it is unused. So the 
entire declaration should be removed.
+//                                 const importSpec = 
findImportDeclaration(token);
+//                                 return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
+//                             }
+//                             else {
+//                                 return 
removeSingleItem(namedImports.elements, token);
+//                             }
+//                         // handle case where "import d, * as ns from 
'./file'"
+//                         // or "'import {a, b as ns} from './file'"
+//                         case SyntaxKind.ImportClause: // this covers both 
'import |d|' and 'import |d,| *'
+//                             const importClause = <ImportClause>token.parent;
+//                             if (!importClause.namedBindings) { // |import d 
from './file'| or |import * as ns from './file'|
+//                                 const importDecl = 
findImportDeclaration(importClause);
+//                                 return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
+//                             }
+//                             else { // import |d,| * as ns from './file'
+//                                 return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
+//                             }
+//                         case SyntaxKind.NamespaceImport:
+//                             const namespaceImport = 
<NamespaceImport>token.parent;
+//                             if (namespaceImport.name == token && 
!(<ImportClause>namespaceImport.parent).name) {
+//                                 const importDecl = 
findImportDeclaration(namespaceImport);
+//                                 return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
+//                             }
+//                             else {
+//                                 const start = 
(<ImportClause>namespaceImport.parent).name.end;
+//                                 return createCodeFix("", start, 
(<ImportClause>namespaceImport.parent).namedBindings.end - start);
+//                             }
+//                     }
+//                     break;
+//                 case SyntaxKind.PropertyDeclaration:
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//                 case SyntaxKind.NamespaceImport:
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//             }
+//             if (isDeclarationName(token)) {
+//                 return createCodeFix("", token.parent.pos, token.parent.end 
- token.parent.pos);
+//             }
+//             else if (isLiteralComputedPropertyDeclarationName(token)) {
+//                 return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
+//             }
+//             else {
+//                 return undefined;
+//             }
+//             function findImportDeclaration(token: Node): Node {
+//                 let importDecl = token;
+//                 while (importDecl.kind != SyntaxKind.ImportDeclaration && 
importDecl.parent) {
+//                     importDecl = importDecl.parent;
+//                 }
+//                 return importDecl;
+//             }
+//             function createCodeFix(newText: string, start: number, length: 
number): CodeAction[] {
+//                 return [{
+//                     description: 
getLocaleSpecificMessage(Diagnostics.Remove_unused_identifiers),
+//                     changes: [{
+//                         fileName: sourceFile.fileName,
+//                         textChanges: [{ newText, span: { start, length } }]
+//                     }]
+//                 }];
+//             }
+//             function removeSingleItem<T extends Node>(elements: 
NodeArray<T>, token: T): CodeAction[] {
+//                 if (elements[0] === token.parent) {
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
+//                 }
+//                 else {
+//                     return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
+//                 }
+//             }
+//         }
+//     });
+// } 
 ///<reference path='superFixes.ts' />
 ///<reference path='importFixes.ts' />
 ///<reference path='unusedIdentifierFixes.ts' />
@@ -78127,6 +78746,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SymbolObject.prototype.getJsDocTags = function () {
+            if (this.tags === undefined) {
+                this.tags = 
ts.JsDoc.getJsDocTagsFromDeclarations(this.declarations);
+            }
+            return this.tags;
+        };
         return SymbolObject;
     }());
     var TokenObject = (function (_super) {
@@ -78210,6 +78835,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SignatureObject.prototype.getJsDocTags = function () {
+            if (this.jsDocTags === undefined) {
+                this.jsDocTags = this.declaration ? 
ts.JsDoc.getJsDocTagsFromDeclarations([this.declaration]) : [];
+            }
+            return this.jsDocTags;
+        };
         return SignatureObject;
     }());
     var SourceFileObject = (function (_super) {
@@ -78310,8 +78941,8 @@ var ts;
                             else {
                                 declarations.push(functionDeclaration);
                             }
-                            ts.forEachChild(node, visit);
                         }
+                        ts.forEachChild(node, visit);
                         break;
                     case 226 /* ClassDeclaration */:
                     case 197 /* ClassExpression */:
@@ -78914,7 +79545,8 @@ var ts;
                                 kindModifiers: 
ts.ScriptElementKindModifier.none,
                                 textSpan: ts.createTextSpan(node.getStart(), 
node.getWidth()),
                                 displayParts: 
ts.typeToDisplayParts(typeChecker, type, ts.getContainerNode(node)),
-                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined
+                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined,
+                                tags: type.symbol ? type.symbol.getJsDocTags() 
: undefined
                             };
                         }
                 }
@@ -78926,7 +79558,8 @@ var ts;
                 kindModifiers: ts.SymbolDisplay.getSymbolModifiers(symbol),
                 textSpan: ts.createTextSpan(node.getStart(), node.getWidth()),
                 displayParts: displayPartsDocumentationsAndKind.displayParts,
-                documentation: displayPartsDocumentationsAndKind.documentation
+                documentation: displayPartsDocumentationsAndKind.documentation,
+                tags: displayPartsDocumentationsAndKind.tags
             };
         }
         /// Goto definition
@@ -79248,7 +79881,7 @@ var ts;
             }
             var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
             // Check if in a context where we don't want to perform any 
insertion
-            if (ts.isInString(sourceFile, position) || 
ts.isInComment(sourceFile, position)) {
+            if (ts.isInString(sourceFile, position)) {
                 return false;
             }
             if (ts.isInsideJsxElementOrAttribute(sourceFile, position)) {
@@ -80906,4 +81539,4 @@ var TypeScript;
 // 'toolsVersion' gets consumed by the managed side, so it's not unused.
 // TODO: it should be moved into a namespace though.
 /* @internal */
-var toolsVersion = "2.2";
+var toolsVersion = "2.1";
diff --git a/node_modules/typescript/lib/typescriptServices.d.ts 
b/node_modules/typescript/lib/typescriptServices.d.ts
index ecd0186..2a9648d 100644
--- a/node_modules/typescript/lib/typescriptServices.d.ts
+++ b/node_modules/typescript/lib/typescriptServices.d.ts
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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.
+***************************************************************************** 
*/
+
 declare namespace ts {
     interface MapLike<T> {
         [index: string]: T;
@@ -334,8 +334,7 @@ declare namespace ts {
         PartiallyEmittedExpression = 294,
         MergeDeclarationMarker = 295,
         EndOfDeclarationMarker = 296,
-        RawExpression = 297,
-        Count = 298,
+        Count = 297,
         FirstAssignment = 57,
         LastAssignment = 69,
         FirstCompoundAssignment = 58,
@@ -378,26 +377,20 @@ declare namespace ts {
         HasImplicitReturn = 128,
         HasExplicitReturn = 256,
         GlobalAugmentation = 512,
-        HasClassExtends = 1024,
-        HasDecorators = 2048,
-        HasParamDecorators = 4096,
-        HasAsyncFunctions = 8192,
-        HasSpreadAttribute = 16384,
-        HasRestAttribute = 32768,
-        DisallowInContext = 65536,
-        YieldContext = 131072,
-        DecoratorContext = 262144,
-        AwaitContext = 524288,
-        ThisNodeHasError = 1048576,
-        JavaScriptFile = 2097152,
-        ThisNodeOrAnySubNodesHasError = 4194304,
-        HasAggregatedChildData = 8388608,
+        HasAsyncFunctions = 1024,
+        DisallowInContext = 2048,
+        YieldContext = 4096,
+        DecoratorContext = 8192,
+        AwaitContext = 16384,
+        ThisNodeHasError = 32768,
+        JavaScriptFile = 65536,
+        ThisNodeOrAnySubNodesHasError = 131072,
+        HasAggregatedChildData = 262144,
         BlockScoped = 3,
         ReachabilityCheckFlags = 384,
-        EmitHelperFlags = 64512,
-        ReachabilityAndEmitFlags = 64896,
-        ContextFlags = 3080192,
-        TypeExcludesFlags = 655360,
+        ReachabilityAndEmitFlags = 1408,
+        ContextFlags = 96256,
+        TypeExcludesFlags = 20480,
     }
     enum ModifierFlags {
         None = 0,
@@ -1629,6 +1622,7 @@ declare namespace ts {
         writeSpace(text: string): void;
         writeStringLiteral(text: string): void;
         writeParameter(text: string): void;
+        writeProperty(text: string): void;
         writeSymbol(text: string, symbol: Symbol): void;
         writeLine(): void;
         increaseIndent(): void;
@@ -1781,6 +1775,7 @@ declare namespace ts {
         UnionOrIntersection = 196608,
         StructuredType = 229376,
         StructuredOrTypeParameter = 507904,
+        TypeVariable = 540672,
         Narrowable = 1033215,
         NotUnionOrUnit = 33281,
     }
@@ -1850,15 +1845,18 @@ declare namespace ts {
         elementType: Type;
         finalArrayType?: Type;
     }
-    interface TypeParameter extends Type {
-        constraint: Type;
+    interface TypeVariable extends Type {
     }
-    interface IndexType extends Type {
-        type: TypeParameter;
+    interface TypeParameter extends TypeVariable {
+        constraint: Type;
     }
-    interface IndexedAccessType extends Type {
+    interface IndexedAccessType extends TypeVariable {
         objectType: Type;
         indexType: Type;
+        constraint?: Type;
+    }
+    interface IndexType extends Type {
+        type: TypeVariable | UnionOrIntersectionType;
     }
     enum SignatureKind {
         Call = 0,
@@ -1878,6 +1876,11 @@ declare namespace ts {
         isReadonly: boolean;
         declaration?: SignatureDeclaration;
     }
+    interface FileExtensionInfo {
+        extension: string;
+        scriptKind: ScriptKind;
+        isMixedContent: boolean;
+    }
     interface DiagnosticMessage {
         key: string;
         category: DiagnosticCategory;
@@ -2145,7 +2148,7 @@ declare namespace ts {
 }
 declare namespace ts {
     /** The version of the TypeScript compiler release */
-    const version = "2.2.0-dev.20161127";
+    const version = "2.1.6";
 }
 declare namespace ts {
     type FileWatcherCallback = (fileName: string, removed?: boolean) => void;
@@ -2321,9 +2324,28 @@ declare namespace ts {
       *   this list is only the set of defaults that are implicitly included.
       */
     function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: 
ModuleResolutionHost): string[];
-    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
-    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
-    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost): 
ResolvedModuleWithFailedLookupLocations;
+    /**
+     * Cached module resolutions per containing directory.
+     * This assumes that any module id will have the same resolution for 
sibling files located in the same folder.
+     */
+    interface ModuleResolutionCache extends 
NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForDirectory(directoryName: string): 
Map<ResolvedModuleWithFailedLookupLocations>;
+    }
+    /**
+     * Stored map from non-relative module name to a table: directory -> 
result of module lookup in this directory
+     * We support only non-relative module names because resolution of 
relative module names is usually more deterministic and thus less expensive.
+     */
+    interface NonRelativeModuleNameResolutionCache {
+        getOrCreateCacheForModuleName(nonRelativeModuleName: string): 
PerModuleNameCache;
+    }
+    interface PerModuleNameCache {
+        get(directory: string): ResolvedModuleWithFailedLookupLocations;
+        set(directory: string, result: 
ResolvedModuleWithFailedLookupLocations): void;
+    }
+    function createModuleResolutionCache(currentDirectory: string, 
getCanonicalFileName: (s: string) => string): ModuleResolutionCache;
+    function resolveModuleName(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
+    function nodeModuleNameResolver(moduleName: string, containingFile: 
string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
+    function classicNameResolver(moduleName: string, containingFile: string, 
compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: 
NonRelativeModuleNameResolutionCache): ResolvedModuleWithFailedLookupLocations;
 }
 declare namespace ts {
     function findConfigFile(searchPath: string, fileExists: (fileName: string) 
=> boolean, configName?: string): string;
@@ -2340,6 +2362,7 @@ declare namespace ts {
     function createProgram(rootNames: string[], options: CompilerOptions, 
host?: CompilerHost, oldProgram?: Program): Program;
 }
 declare namespace ts {
+    function parseCommandLine(commandLine: string[], readFile?: (path: string) 
=> string): ParsedCommandLine;
     /**
       * Read tsconfig.json file
       * @param fileName The path to the config file
@@ -2364,7 +2387,7 @@ declare namespace ts {
       * @param basePath A root directory to resolve relative path entries in 
the config
       *    file to. e.g. outDir
       */
-    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[]): ParsedCommandLine;
+    function parseJsonConfigFileContent(json: any, host: ParseConfigHost, 
basePath: string, existingOptions?: CompilerOptions, configFileName?: string, 
resolutionStack?: Path[], extraFileExtensions?: FileExtensionInfo[]): 
ParsedCommandLine;
     function convertCompileOnSaveOptionFromJson(jsonOption: any, basePath: 
string, errors: Diagnostic[]): boolean;
     function convertCompilerOptionsFromJson(jsonOptions: any, basePath: 
string, configFileName?: string): {
         options: CompilerOptions;
@@ -2397,6 +2420,7 @@ declare namespace ts {
         getName(): string;
         getDeclarations(): Declaration[];
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface Type {
         getFlags(): TypeFlags;
@@ -2417,6 +2441,7 @@ declare namespace ts {
         getParameters(): Symbol[];
         getReturnType(): Type;
         getDocumentationComment(): SymbolDisplayPart[];
+        getJsDocTags(): JSDocTagInfo[];
     }
     interface SourceFile {
         getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
@@ -2669,6 +2694,7 @@ declare namespace ts {
         InsertSpaceAfterCommaDelimiter: boolean;
         InsertSpaceAfterSemicolonInForStatements: boolean;
         InsertSpaceBeforeAndAfterBinaryOperators: boolean;
+        InsertSpaceAfterConstructor?: boolean;
         InsertSpaceAfterKeywordsInControlFlowStatements: boolean;
         InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean;
@@ -2677,6 +2703,7 @@ declare namespace ts {
         InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean;
         InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         InsertSpaceAfterTypeAssertion?: boolean;
+        InsertSpaceBeforeFunctionParenthesis?: boolean;
         PlaceOpenBraceOnNewLineForFunctions: boolean;
         PlaceOpenBraceOnNewLineForControlBlocks: boolean;
     }
@@ -2684,6 +2711,7 @@ declare namespace ts {
         insertSpaceAfterCommaDelimiter?: boolean;
         insertSpaceAfterSemicolonInForStatements?: boolean;
         insertSpaceBeforeAndAfterBinaryOperators?: boolean;
+        insertSpaceAfterConstructor?: boolean;
         insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
         insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
@@ -2692,6 +2720,7 @@ declare namespace ts {
         insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
         insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
         insertSpaceAfterTypeAssertion?: boolean;
+        insertSpaceBeforeFunctionParenthesis?: boolean;
         placeOpenBraceOnNewLineForFunctions?: boolean;
         placeOpenBraceOnNewLineForControlBlocks?: boolean;
     }
@@ -2738,12 +2767,17 @@ declare namespace ts {
         text: string;
         kind: string;
     }
+    interface JSDocTagInfo {
+        name: string;
+        text?: string;
+    }
     interface QuickInfo {
         kind: string;
         kindModifiers: string;
         textSpan: TextSpan;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface RenameInfo {
         canRename: boolean;
@@ -2774,6 +2808,7 @@ declare namespace ts {
         separatorDisplayParts: SymbolDisplayPart[];
         parameters: SignatureHelpParameter[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     /**
      * Represents a set of signature help items, and the preferred item that 
should be selected.
@@ -2812,6 +2847,7 @@ declare namespace ts {
         kindModifiers: string;
         displayParts: SymbolDisplayPart[];
         documentation: SymbolDisplayPart[];
+        tags: JSDocTagInfo[];
     }
     interface OutliningSpan {
         /** The span of the document to actually collapse. */
diff --git a/node_modules/typescript/lib/typescriptServices.js 
b/node_modules/typescript/lib/typescriptServices.js
index d4ad545..6f78768 100644
--- a/node_modules/typescript/lib/typescriptServices.js
+++ b/node_modules/typescript/lib/typescriptServices.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
@@ -352,9 +352,8 @@ var ts;
         SyntaxKind[SyntaxKind["PartiallyEmittedExpression"] = 294] = 
"PartiallyEmittedExpression";
         SyntaxKind[SyntaxKind["MergeDeclarationMarker"] = 295] = 
"MergeDeclarationMarker";
         SyntaxKind[SyntaxKind["EndOfDeclarationMarker"] = 296] = 
"EndOfDeclarationMarker";
-        SyntaxKind[SyntaxKind["RawExpression"] = 297] = "RawExpression";
         // Enum value count
-        SyntaxKind[SyntaxKind["Count"] = 298] = "Count";
+        SyntaxKind[SyntaxKind["Count"] = 297] = "Count";
         // Markers
         SyntaxKind[SyntaxKind["FirstAssignment"] = 57] = "FirstAssignment";
         SyntaxKind[SyntaxKind["LastAssignment"] = 69] = "LastAssignment";
@@ -399,28 +398,22 @@ var ts;
         NodeFlags[NodeFlags["HasImplicitReturn"] = 128] = "HasImplicitReturn";
         NodeFlags[NodeFlags["HasExplicitReturn"] = 256] = "HasExplicitReturn";
         NodeFlags[NodeFlags["GlobalAugmentation"] = 512] = 
"GlobalAugmentation";
-        NodeFlags[NodeFlags["HasClassExtends"] = 1024] = "HasClassExtends";
-        NodeFlags[NodeFlags["HasDecorators"] = 2048] = "HasDecorators";
-        NodeFlags[NodeFlags["HasParamDecorators"] = 4096] = 
"HasParamDecorators";
-        NodeFlags[NodeFlags["HasAsyncFunctions"] = 8192] = "HasAsyncFunctions";
-        NodeFlags[NodeFlags["HasSpreadAttribute"] = 16384] = 
"HasSpreadAttribute";
-        NodeFlags[NodeFlags["HasRestAttribute"] = 32768] = "HasRestAttribute";
-        NodeFlags[NodeFlags["DisallowInContext"] = 65536] = 
"DisallowInContext";
-        NodeFlags[NodeFlags["YieldContext"] = 131072] = "YieldContext";
-        NodeFlags[NodeFlags["DecoratorContext"] = 262144] = "DecoratorContext";
-        NodeFlags[NodeFlags["AwaitContext"] = 524288] = "AwaitContext";
-        NodeFlags[NodeFlags["ThisNodeHasError"] = 1048576] = 
"ThisNodeHasError";
-        NodeFlags[NodeFlags["JavaScriptFile"] = 2097152] = "JavaScriptFile";
-        NodeFlags[NodeFlags["ThisNodeOrAnySubNodesHasError"] = 4194304] = 
"ThisNodeOrAnySubNodesHasError";
-        NodeFlags[NodeFlags["HasAggregatedChildData"] = 8388608] = 
"HasAggregatedChildData";
+        NodeFlags[NodeFlags["HasAsyncFunctions"] = 1024] = "HasAsyncFunctions";
+        NodeFlags[NodeFlags["DisallowInContext"] = 2048] = "DisallowInContext";
+        NodeFlags[NodeFlags["YieldContext"] = 4096] = "YieldContext";
+        NodeFlags[NodeFlags["DecoratorContext"] = 8192] = "DecoratorContext";
+        NodeFlags[NodeFlags["AwaitContext"] = 16384] = "AwaitContext";
+        NodeFlags[NodeFlags["ThisNodeHasError"] = 32768] = "ThisNodeHasError";
+        NodeFlags[NodeFlags["JavaScriptFile"] = 65536] = "JavaScriptFile";
+        NodeFlags[NodeFlags["ThisNodeOrAnySubNodesHasError"] = 131072] = 
"ThisNodeOrAnySubNodesHasError";
+        NodeFlags[NodeFlags["HasAggregatedChildData"] = 262144] = 
"HasAggregatedChildData";
         NodeFlags[NodeFlags["BlockScoped"] = 3] = "BlockScoped";
         NodeFlags[NodeFlags["ReachabilityCheckFlags"] = 384] = 
"ReachabilityCheckFlags";
-        NodeFlags[NodeFlags["EmitHelperFlags"] = 64512] = "EmitHelperFlags";
-        NodeFlags[NodeFlags["ReachabilityAndEmitFlags"] = 64896] = 
"ReachabilityAndEmitFlags";
+        NodeFlags[NodeFlags["ReachabilityAndEmitFlags"] = 1408] = 
"ReachabilityAndEmitFlags";
         // Parsing context flags
-        NodeFlags[NodeFlags["ContextFlags"] = 3080192] = "ContextFlags";
+        NodeFlags[NodeFlags["ContextFlags"] = 96256] = "ContextFlags";
         // Exclude these flags when parsing a Type
-        NodeFlags[NodeFlags["TypeExcludesFlags"] = 655360] = 
"TypeExcludesFlags";
+        NodeFlags[NodeFlags["TypeExcludesFlags"] = 20480] = 
"TypeExcludesFlags";
     })(NodeFlags = ts.NodeFlags || (ts.NodeFlags = {}));
     var ModifierFlags;
     (function (ModifierFlags) {
@@ -719,6 +712,7 @@ var ts;
         TypeFlags[TypeFlags["UnionOrIntersection"] = 196608] = 
"UnionOrIntersection";
         TypeFlags[TypeFlags["StructuredType"] = 229376] = "StructuredType";
         TypeFlags[TypeFlags["StructuredOrTypeParameter"] = 507904] = 
"StructuredOrTypeParameter";
+        TypeFlags[TypeFlags["TypeVariable"] = 540672] = "TypeVariable";
         // 'Narrowable' types are types where narrowing actually narrows.
         // This *should* be every type other than null, undefined, void, and 
never
         TypeFlags[TypeFlags["Narrowable"] = 1033215] = "Narrowable";
@@ -1066,6 +1060,24 @@ var ts;
         EmitFlags[EmitFlags["NoHoisting"] = 1048576] = "NoHoisting";
         EmitFlags[EmitFlags["HasEndOfDeclarationMarker"] = 2097152] = 
"HasEndOfDeclarationMarker";
     })(EmitFlags = ts.EmitFlags || (ts.EmitFlags = {}));
+    /**
+     * Used by the checker, this enum keeps track of external emit helpers 
that should be type
+     * checked.
+     */
+    /* @internal */
+    var ExternalEmitHelpers;
+    (function (ExternalEmitHelpers) {
+        ExternalEmitHelpers[ExternalEmitHelpers["Extends"] = 1] = "Extends";
+        ExternalEmitHelpers[ExternalEmitHelpers["Assign"] = 2] = "Assign";
+        ExternalEmitHelpers[ExternalEmitHelpers["Rest"] = 4] = "Rest";
+        ExternalEmitHelpers[ExternalEmitHelpers["Decorate"] = 8] = "Decorate";
+        ExternalEmitHelpers[ExternalEmitHelpers["Metadata"] = 16] = "Metadata";
+        ExternalEmitHelpers[ExternalEmitHelpers["Param"] = 32] = "Param";
+        ExternalEmitHelpers[ExternalEmitHelpers["Awaiter"] = 64] = "Awaiter";
+        ExternalEmitHelpers[ExternalEmitHelpers["Generator"] = 128] = 
"Generator";
+        ExternalEmitHelpers[ExternalEmitHelpers["FirstEmitHelper"] = 1] = 
"FirstEmitHelper";
+        ExternalEmitHelpers[ExternalEmitHelpers["LastEmitHelper"] = 128] = 
"LastEmitHelper";
+    })(ExternalEmitHelpers = ts.ExternalEmitHelpers || (ts.ExternalEmitHelpers 
= {}));
     /* @internal */
     var EmitContext;
     (function (EmitContext) {
@@ -1174,7 +1186,7 @@ var ts;
 var ts;
 (function (ts) {
     /** The version of the TypeScript compiler release */
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 /* @internal */
 (function (ts) {
@@ -2025,25 +2037,6 @@ var ts;
     }
     ts.reduceProperties = reduceProperties;
     /**
-     * Reduce the properties defined on a map-like (but not from its prototype 
chain).
-     *
-     * NOTE: This is intended for use with MapLike<T> objects. For Map<T> 
objects, use
-     *       reduceProperties instead as it offers better performance.
-     *
-     * @param map The map-like to reduce
-     * @param callback An aggregation function that is called for each entry 
in the map
-     * @param initial The initial value for the reduction.
-     */
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
-    /**
      * Performs a shallow equality comparison of the contents of two map-likes.
      *
      * @param left A map-like whose properties should be compared.
@@ -2329,7 +2322,7 @@ var ts;
             return 1 /* GreaterThan */;
         if (ignoreCase) {
             if (ts.collator && String.prototype.localeCompare) {
-                // accent means a ≠ b, a ≠ á, a = A
+                // accent means a ? b, a ? a´, a = A
                 var result = a.localeCompare(b, /*locales*/ undefined, { 
usage: "sort", sensitivity: "accent" });
                 return result < 0 ? -1 /* LessThan */ : result > 0 ? 1 /* 
GreaterThan */ : 0 /* EqualTo */;
             }
@@ -3010,8 +3003,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3 /* TS */) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -3022,11 +3026,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -3684,7 +3688,10 @@ var ts;
                     // Node 4.0 `fs.watch` function supports the "recursive" 
option on both OSX and Windows
                     // (ref: https://github.com/nodejs/node/pull/2649 and 
https://github.com/Microsoft/TypeScript/issues/4643)
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
+                        // do nothing if either 
+                        // - target folder does not exist
+                        // - this is UNC path on Windows 
(https://github.com/Microsoft/TypeScript/issues/13874)
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -3703,6 +3710,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 /* slash 
*/ && s.charCodeAt(1) === 47 /* slash */;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -3910,7 +3920,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -4066,6 +4076,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -4109,6 +4120,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -4119,6 +4131,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -4425,6 +4438,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -4466,7 +4481,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -4519,6 +4534,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -4584,6 +4600,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -4639,6 +4656,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -4655,6 +4673,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 /// <reference path="core.ts"/>
@@ -6413,6 +6432,7 @@ var ts;
                 writeSpace: writeText,
                 writeStringLiteral: writeText,
                 writeParameter: writeText,
+                writeProperty: writeText,
                 writeSymbol: writeText,
                 // Completely ignore indentation for string writers.  And map 
newlines to
                 // a single space.
@@ -6491,24 +6511,24 @@ var ts;
     // Returns true if this node contains a parse error anywhere underneath it.
     function containsParseError(node) {
         aggregateChildData(node);
-        return (node.flags & 4194304 /* ThisNodeOrAnySubNodesHasError */) !== 
0;
+        return (node.flags & 131072 /* ThisNodeOrAnySubNodesHasError */) !== 0;
     }
     ts.containsParseError = containsParseError;
     function aggregateChildData(node) {
-        if (!(node.flags & 8388608 /* HasAggregatedChildData */)) {
+        if (!(node.flags & 262144 /* HasAggregatedChildData */)) {
             // A node is considered to contain a parse error if:
             //  a) the parser explicitly marked that it had an error
             //  b) any of it's children reported that it had an error.
-            var thisNodeOrAnySubNodesHasError = ((node.flags & 1048576 /* 
ThisNodeHasError */) !== 0) ||
+            var thisNodeOrAnySubNodesHasError = ((node.flags & 32768 /* 
ThisNodeHasError */) !== 0) ||
                 ts.forEachChild(node, containsParseError);
             // If so, mark ourselves accordingly.
             if (thisNodeOrAnySubNodesHasError) {
-                node.flags |= 4194304 /* ThisNodeOrAnySubNodesHasError */;
+                node.flags |= 131072 /* ThisNodeOrAnySubNodesHasError */;
             }
             // Also mark that we've propagated the child information to this 
node.  This way we can
             // always consult the bit directly on this node without needing to 
check its children
             // again.
-            node.flags |= 8388608 /* HasAggregatedChildData */;
+            node.flags |= 262144 /* HasAggregatedChildData */;
         }
     }
     function getSourceFileOfNode(node) {
@@ -6773,6 +6793,10 @@ var ts;
         return false;
     }
     ts.isExternalModuleAugmentation = isExternalModuleAugmentation;
+    function isEffectiveExternalModule(node, compilerOptions) {
+        return ts.isExternalModule(node) || compilerOptions.isolatedModules;
+    }
+    ts.isEffectiveExternalModule = isEffectiveExternalModule;
     function isBlockScope(node, parentNode) {
         switch (node.kind) {
             case 261 /* SourceFile */:
@@ -7065,6 +7089,20 @@ var ts;
         return false;
     }
     ts.isPartOfTypeNode = isPartOfTypeNode;
+    function isChildOfLiteralType(node) {
+        while (node) {
+            if (node.kind === 171 /* LiteralType */) {
+                return true;
+            }
+            node = node.parent;
+        }
+        return false;
+    }
+    ts.isChildOfLiteralType = isChildOfLiteralType;
+    function isPrefixUnaryExpression(node) {
+        return node.kind === 190 /* PrefixUnaryExpression */;
+    }
+    ts.isPrefixUnaryExpression = isPrefixUnaryExpression;
     // Warning: This has the same semantics as the forEach family of functions,
     //          in that traversal terminates in the event that 'visitor' 
supplies a truthy value.
     function forEachReturnStatement(body, visitor) {
@@ -7132,6 +7170,24 @@ var ts;
         }
     }
     ts.forEachYieldExpression = forEachYieldExpression;
+    /**
+     * Gets the most likely element type for a TypeNode. This is not an 
exhaustive test
+     * as it assumes a rest argument can only be an array type (either T[], or 
Array<T>).
+     *
+     * @param node The type node.
+     */
+    function getRestParameterElementType(node) {
+        if (node && node.kind === 162 /* ArrayType */) {
+            return node.elementType;
+        }
+        else if (node && node.kind === 157 /* TypeReference */) {
+            return ts.singleOrUndefined(node.typeArguments);
+        }
+        else {
+            return undefined;
+        }
+    }
+    ts.getRestParameterElementType = getRestParameterElementType;
     function isVariableLike(node) {
         if (node) {
             switch (node.kind) {
@@ -7600,7 +7656,7 @@ var ts;
     }
     ts.isSourceFileJavaScript = isSourceFileJavaScript;
     function isInJavaScriptFile(node) {
-        return node && !!(node.flags & 2097152 /* JavaScriptFile */);
+        return node && !!(node.flags & 65536 /* JavaScriptFile */);
     }
     ts.isInJavaScriptFile = isInJavaScriptFile;
     /**
@@ -7809,6 +7865,7 @@ var ts;
             cache = ts.concatenate(cache, node.jsDoc);
         }
     }
+    ts.getJSDocs = getJSDocs;
     function getJSDocParameterTags(param) {
         if (!isParameter(param)) {
             return undefined;
@@ -7866,7 +7923,7 @@ var ts;
     }
     ts.hasDeclaredRestParameter = hasDeclaredRestParameter;
     function isRestParameter(node) {
-        if (node && (node.flags & 2097152 /* JavaScriptFile */)) {
+        if (node && (node.flags & 65536 /* JavaScriptFile */)) {
             if (node.type && node.type.kind === 275 /* JSDocVariadicType */ ||
                 ts.forEach(getJSDocParameterTags(node), function (t) { return 
t.typeExpression && t.typeExpression.type.kind === 275 /* JSDocVariadicType */; 
})) {
                 return true;
@@ -8360,7 +8417,6 @@ var ts;
             case 194 /* TemplateExpression */:
             case 183 /* ParenthesizedExpression */:
             case 198 /* OmittedExpression */:
-            case 297 /* RawExpression */:
                 return 19;
             case 181 /* TaggedTemplateExpression */:
             case 177 /* PropertyAccessExpression */:
@@ -8544,13 +8600,12 @@ var ts;
      * Note that this doesn't actually wrap the input in double quotes.
      */
     function escapeString(s) {
-        s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, 
getReplacement) : s;
-        return s;
-        function getReplacement(c) {
-            return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
-        }
+        return s.replace(escapedCharsRegExp, getReplacement);
     }
     ts.escapeString = escapeString;
+    function getReplacement(c) {
+        return escapedCharsMap[c] || 
get16BitUnicodeEscapeSequence(c.charCodeAt(0));
+    }
     function isIntrinsicJsxName(name) {
         var ch = name.substr(0, 1);
         return ch.toLowerCase() === ch;
@@ -9333,47 +9388,6 @@ var ts;
         }
         return output;
     }
-    /**
-     * Serialize an object graph into a JSON string. This is intended only for 
use on an acyclic graph
-     * as the fallback implementation does not check for circular references 
by default.
-     */
-    ts.stringify = typeof JSON !== "undefined" && JSON.stringify
-        ? JSON.stringify
-        : stringifyFallback;
-    /**
-     * Serialize an object graph into a JSON string.
-     */
-    function stringifyFallback(value) {
-        // JSON.stringify returns `undefined` here, instead of the string 
"undefined".
-        return value === undefined ? undefined : stringifyValue(value);
-    }
-    function stringifyValue(value) {
-        return typeof value === "string" ? "\"" + escapeString(value) + "\""
-            : typeof value === "number" ? isFinite(value) ? String(value) : 
"null"
-                : typeof value === "boolean" ? value ? "true" : "false"
-                    : typeof value === "object" && value ? ts.isArray(value) ? 
cycleCheck(stringifyArray, value) : cycleCheck(stringifyObject, value)
-                        : "null";
-    }
-    function cycleCheck(cb, value) {
-        ts.Debug.assert(!value.hasOwnProperty("__cycle"), "Converting circular 
structure to JSON");
-        value.__cycle = true;
-        var result = cb(value);
-        delete value.__cycle;
-        return result;
-    }
-    function stringifyArray(value) {
-        return "[" + ts.reduceLeft(value, stringifyElement, "") + "]";
-    }
-    function stringifyElement(memo, value) {
-        return (memo ? memo + "," : memo) + stringifyValue(value);
-    }
-    function stringifyObject(value) {
-        return "{" + ts.reduceOwnProperties(value, stringifyProperty, "") + 
"}";
-    }
-    function stringifyProperty(memo, value, key) {
-        return value === undefined || typeof value === "function" || key === 
"__cycle" ? memo
-            : (memo ? memo + "," : memo) + ("\"" + escapeString(key) + "\":" + 
stringifyValue(value));
-    }
     var base64Digits = 
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
     /**
      * Converts a string to a base-64 encoded ASCII string.
@@ -9732,6 +9746,10 @@ var ts;
         return node.kind === 70 /* Identifier */;
     }
     ts.isIdentifier = isIdentifier;
+    function isVoidExpression(node) {
+        return node.kind === 188 /* VoidExpression */;
+    }
+    ts.isVoidExpression = isVoidExpression;
     function isGeneratedIdentifier(node) {
         // Using `>` here catches both `GeneratedIdentifierKind.None` and 
`undefined`.
         return isIdentifier(node) && node.autoGenerateKind > 0 /* None */;
@@ -9985,8 +10003,7 @@ var ts;
             || kind === 98 /* ThisKeyword */
             || kind === 100 /* TrueKeyword */
             || kind === 96 /* SuperKeyword */
-            || kind === 201 /* NonNullExpression */
-            || kind === 297 /* RawExpression */;
+            || kind === 201 /* NonNullExpression */;
     }
     function isLeftHandSideExpression(node) {
         return 
isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind);
@@ -10014,7 +10031,6 @@ var ts;
             || kind === 196 /* SpreadElement */
             || kind === 200 /* AsExpression */
             || kind === 198 /* OmittedExpression */
-            || kind === 297 /* RawExpression */
             || isUnaryExpressionKind(kind);
     }
     function isExpression(node) {
@@ -12145,19 +12161,6 @@ var ts;
         return node;
     }
     ts.updatePartiallyEmittedExpression = updatePartiallyEmittedExpression;
-    /**
-     * Creates a node that emits a string of raw text in an expression 
position. Raw text is never
-     * transformed, should be ES3 compliant, and should have the same 
precedence as
-     * PrimaryExpression.
-     *
-     * @param text The raw text of the node.
-     */
-    function createRawExpression(text) {
-        var node = createNode(297 /* RawExpression */);
-        node.text = text;
-        return node;
-    }
-    ts.createRawExpression = createRawExpression;
     // Compound nodes
     function createComma(left, right) {
         return createBinary(left, 25 /* CommaToken */, right);
@@ -14334,7 +14337,7 @@ var ts;
         // Share a single scanner across all calls to parse a source file.  
This helps speed things
         // up by avoiding the cost of creating/compiling scanners over and 
over again.
         var scanner = ts.createScanner(5 /* Latest */, /*skipTrivia*/ true);
-        var disallowInAndDecoratorContext = 65536 /* DisallowInContext */ | 
262144 /* DecoratorContext */;
+        var disallowInAndDecoratorContext = 2048 /* DisallowInContext */ | 
8192 /* DecoratorContext */;
         // capture constructors in 'initializeState' to avoid null checks
         var NodeConstructor;
         var TokenConstructor;
@@ -14458,7 +14461,7 @@ var ts;
             identifiers = ts.createMap();
             identifierCount = 0;
             nodeCount = 0;
-            contextFlags = scriptKind === 1 /* JS */ || scriptKind === 2 /* 
JSX */ ? 2097152 /* JavaScriptFile */ : 0 /* None */;
+            contextFlags = scriptKind === 1 /* JS */ || scriptKind === 2 /* 
JSX */ ? 65536 /* JavaScriptFile */ : 0 /* None */;
             parseErrorBeforeNextFinishedNode = false;
             // Initialize and prime the scanner before parsing the source 
elements.
             scanner.setText(sourceText);
@@ -14566,16 +14569,16 @@ var ts;
             }
         }
         function setDisallowInContext(val) {
-            setContextFlag(val, 65536 /* DisallowInContext */);
+            setContextFlag(val, 2048 /* DisallowInContext */);
         }
         function setYieldContext(val) {
-            setContextFlag(val, 131072 /* YieldContext */);
+            setContextFlag(val, 4096 /* YieldContext */);
         }
         function setDecoratorContext(val) {
-            setContextFlag(val, 262144 /* DecoratorContext */);
+            setContextFlag(val, 8192 /* DecoratorContext */);
         }
         function setAwaitContext(val) {
-            setContextFlag(val, 524288 /* AwaitContext */);
+            setContextFlag(val, 16384 /* AwaitContext */);
         }
         function doOutsideOfContext(context, func) {
             // contextFlagsToClear will contain only the context flags that are
@@ -14616,40 +14619,40 @@ var ts;
             return func();
         }
         function allowInAnd(func) {
-            return doOutsideOfContext(65536 /* DisallowInContext */, func);
+            return doOutsideOfContext(2048 /* DisallowInContext */, func);
         }
         function disallowInAnd(func) {
-            return doInsideOfContext(65536 /* DisallowInContext */, func);
+            return doInsideOfContext(2048 /* DisallowInContext */, func);
         }
         function doInYieldContext(func) {
-            return doInsideOfContext(131072 /* YieldContext */, func);
+            return doInsideOfContext(4096 /* YieldContext */, func);
         }
         function doInDecoratorContext(func) {
-            return doInsideOfContext(262144 /* DecoratorContext */, func);
+            return doInsideOfContext(8192 /* DecoratorContext */, func);
         }
         function doInAwaitContext(func) {
-            return doInsideOfContext(524288 /* AwaitContext */, func);
+            return doInsideOfContext(16384 /* AwaitContext */, func);
         }
         function doOutsideOfAwaitContext(func) {
-            return doOutsideOfContext(524288 /* AwaitContext */, func);
+            return doOutsideOfContext(16384 /* AwaitContext */, func);
         }
         function doInYieldAndAwaitContext(func) {
-            return doInsideOfContext(131072 /* YieldContext */ | 524288 /* 
AwaitContext */, func);
+            return doInsideOfContext(4096 /* YieldContext */ | 16384 /* 
AwaitContext */, func);
         }
         function inContext(flags) {
             return (contextFlags & flags) !== 0;
         }
         function inYieldContext() {
-            return inContext(131072 /* YieldContext */);
+            return inContext(4096 /* YieldContext */);
         }
         function inDisallowInContext() {
-            return inContext(65536 /* DisallowInContext */);
+            return inContext(2048 /* DisallowInContext */);
         }
         function inDecoratorContext() {
-            return inContext(262144 /* DecoratorContext */);
+            return inContext(8192 /* DecoratorContext */);
         }
         function inAwaitContext() {
-            return inContext(524288 /* AwaitContext */);
+            return inContext(16384 /* AwaitContext */);
         }
         function parseErrorAtCurrentToken(message, arg0) {
             var start = scanner.getTokenPos();
@@ -14853,7 +14856,7 @@ var ts;
             // flag so that we don't mark any subsequent nodes.
             if (parseErrorBeforeNextFinishedNode) {
                 parseErrorBeforeNextFinishedNode = false;
-                node.flags |= 1048576 /* ThisNodeHasError */;
+                node.flags |= 32768 /* ThisNodeHasError */;
             }
             return node;
         }
@@ -15247,7 +15250,7 @@ var ts;
             // differently depending on what mode it is in.
             //
             // This also applies to all our other context flags as well.
-            var nodeContextFlags = node.flags & 3080192 /* ContextFlags */;
+            var nodeContextFlags = node.flags & 96256 /* ContextFlags */;
             if (nodeContextFlags !== contextFlags) {
                 return undefined;
             }
@@ -16102,6 +16105,8 @@ var ts;
                 case 16 /* OpenBraceToken */:
                 case 20 /* OpenBracketToken */:
                 case 26 /* LessThanToken */:
+                case 48 /* BarToken */:
+                case 47 /* AmpersandToken */:
                 case 93 /* NewKeyword */:
                 case 9 /* StringLiteral */:
                 case 8 /* NumericLiteral */:
@@ -16156,6 +16161,7 @@ var ts;
             return parseArrayTypeOrHigher();
         }
         function parseUnionOrIntersectionType(kind, parseConstituentType, 
operator) {
+            parseOptional(operator);
             var type = parseConstituentType();
             if (token() === operator) {
                 var types = createNodeArray([type], type.pos);
@@ -16249,7 +16255,7 @@ var ts;
         function parseType() {
             // The rules about 'yield' only apply to actual code/expression 
contexts.  They don't
             // apply to 'type' contexts.  So we disable these parameters here 
before moving on.
-            return doOutsideOfContext(655360 /* TypeExcludesFlags */, 
parseTypeWorker);
+            return doOutsideOfContext(20480 /* TypeExcludesFlags */, 
parseTypeWorker);
         }
         function parseTypeWorker() {
             if (isStartOfFunctionType()) {
@@ -18359,7 +18365,7 @@ var ts;
             // The checker may still error in the static case to explicitly 
disallow the yield expression.
             property.initializer = ts.hasModifier(property, 32 /* Static */)
                 ? allowInAnd(parseNonParameterInitializer)
-                : doOutsideOfContext(131072 /* YieldContext */ | 65536 /* 
DisallowInContext */, parseNonParameterInitializer);
+                : doOutsideOfContext(4096 /* YieldContext */ | 2048 /* 
DisallowInContext */, parseNonParameterInitializer);
             parseSemicolon();
             return addJSDocComment(finishNode(property));
         }
@@ -19437,7 +19443,7 @@ var ts;
                                 break;
                             case 38 /* AsteriskToken */:
                                 var asterisk = scanner.getTokenText();
-                                if (state === 1 /* SawAsterisk */) {
+                                if (state === 1 /* SawAsterisk */ || state === 
2 /* SavingComments */) {
                                     // If we've already seen an asterisk, then 
we can no longer parse a tag on this line
                                     state = 2 /* SavingComments */;
                                     pushComment(asterisk);
@@ -19458,7 +19464,10 @@ var ts;
                             case 5 /* WhitespaceTrivia */:
                                 // only collect whitespace if we're already 
saving comments or have just crossed the comment indent margin
                                 var whitespace = scanner.getTokenText();
-                                if (state === 2 /* SavingComments */ || margin 
!== undefined && indent + whitespace.length > margin) {
+                                if (state === 2 /* SavingComments */) {
+                                    comments.push(whitespace);
+                                }
+                                else if (margin !== undefined && indent + 
whitespace.length > margin) {
                                     comments.push(whitespace.slice(margin - 
indent - 1));
                                 }
                                 indent += whitespace.length;
@@ -19466,6 +19475,8 @@ var ts;
                             case 1 /* EndOfFileToken */:
                                 break;
                             default:
+                                // anything other than whitespace or asterisk 
at the beginning of the line starts the comment text
+                                state = 2 /* SavingComments */;
                                 pushComment(scanner.getTokenText());
                                 break;
                         }
@@ -19556,7 +19567,7 @@ var ts;
                 }
                 function parseTagComments(indent) {
                     var comments = [];
-                    var state = 1 /* SawAsterisk */;
+                    var state = 0 /* BeginningOfLine */;
                     var margin;
                     function pushComment(text) {
                         if (!margin) {
@@ -20840,8 +20851,7 @@ var ts;
                 hasExplicitReturn = false;
                 bindChildren(node);
                 // Reset all reachability check related flags on node (for 
incremental scenarios)
-                // Reset all emit helper flags on node (for incremental 
scenarios)
-                node.flags &= ~64896 /* ReachabilityAndEmitFlags */;
+                node.flags &= ~1408 /* ReachabilityAndEmitFlags */;
                 if (!(currentFlow.flags & 1 /* Unreachable */) && 
containerFlags & 8 /* IsFunctionLike */ && ts.nodeIsPresent(node.body)) {
                     node.flags |= 128 /* HasImplicitReturn */;
                     if (hasExplicitReturn)
@@ -22154,9 +22164,6 @@ var ts;
                     return bindParameter(node);
                 case 223 /* VariableDeclaration */:
                 case 174 /* BindingElement */:
-                    if (node.dotDotDotToken && node.parent.kind === 172 /* 
ObjectBindingPattern */) {
-                        emitFlags |= 32768 /* HasRestAttribute */;
-                    }
                     return bindVariableDeclarationOrBindingElement(node);
                 case 147 /* PropertyDeclaration */:
                 case 146 /* PropertySignature */:
@@ -22183,7 +22190,6 @@ var ts;
                         }
                         root = root.parent;
                     }
-                    emitFlags |= hasRest ? 32768 /* HasRestAttribute */ : 
16384 /* HasSpreadAttribute */;
                     return;
                 case 153 /* CallSignature */:
                 case 154 /* ConstructSignature */:
@@ -22409,14 +22415,6 @@ var ts;
             }
         }
         function bindClassLikeDeclaration(node) {
-            if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
-                if (ts.getClassExtendsHeritageClauseElement(node) !== 
undefined) {
-                    emitFlags |= 1024 /* HasClassExtends */;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048 /* HasDecorators */;
-                }
-            }
             if (node.kind === 226 /* ClassDeclaration */) {
                 bindBlockScopedDeclaration(node, 32 /* Class */, 899519 /* 
ClassExcludes */);
             }
@@ -22479,11 +22477,6 @@ var ts;
             }
         }
         function bindParameter(node) {
-            if (!ts.isDeclarationFile(file) &&
-                !ts.isInAmbientContext(node) &&
-                ts.nodeIsDecorated(node)) {
-                emitFlags |= (2048 /* HasDecorators */ | 4096 /* 
HasParamDecorators */);
-            }
             if (inStrictMode) {
                 // It is a SyntaxError if the identifier eval or arguments 
appears within a FormalParameterList of a
                 // strict mode FunctionLikeDeclaration or 
FunctionExpression(13.1)
@@ -22505,7 +22498,7 @@ var ts;
         function bindFunctionDeclaration(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             checkStrictModeFunctionName(node);
@@ -22520,7 +22513,7 @@ var ts;
         function bindFunctionExpression(node) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             if (currentFlow) {
@@ -22533,10 +22526,7 @@ var ts;
         function bindPropertyOrMethodOrAccessor(node, symbolFlags, 
symbolExcludes) {
             if (!ts.isDeclarationFile(file) && !ts.isInAmbientContext(node)) {
                 if (ts.isAsyncFunctionLike(node)) {
-                    emitFlags |= 8192 /* HasAsyncFunctions */;
-                }
-                if (ts.nodeIsDecorated(node)) {
-                    emitFlags |= 2048 /* HasDecorators */;
+                    emitFlags |= 1024 /* HasAsyncFunctions */;
                 }
             }
             if (currentFlow && 
ts.isObjectLiteralOrClassExpressionMethod(node)) {
@@ -23406,10 +23396,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    /** Create Resolved from a file with unknown extension. */
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     /** Adds `isExernalLibraryImport` to a Resolved to get a ResolvedModule. */
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
@@ -23422,20 +23408,15 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    /** Reads from "main" or "types"/"typings" depending on `extensions`. */
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2 /* DtsOnly */:
             case 0 /* TypeScript */:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1 /* JavaScript */:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -23495,6 +23476,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -23572,7 +23554,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2 /* DtsOnly */, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState));
+                var result = loadModuleFromNodeModules(2 /* DtsOnly */, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, /*cache*/ undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -23625,31 +23608,134 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            /**
+             * At first this function add entry directory -> module resolution 
result to the table.
+             * Then it computes the set of parent folders for 'directory' that 
should have the same module resolution result
+             * and for every parent folder in set it adds entry: parent -> 
module resolution. .
+             * Lets say we first directory name: /a/b/c/d/e and resolution 
result is: /a/b/bar.ts.
+             * Set of parent folders that should have the same result will be:
+             * [
+             *     /a/b/c/d, /a/b/c, /a/b
+             * ]
+             * this means that request for module resolution from file in any 
of these folder will be immediately found in cache.
+             */
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                // if entry is already in cache do nothing
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                // find common prefix between directory and resolved file name
+                // this common prefix should be the shorted path that has the 
same resolution
+                // directory: /a/b/c/d/e
+                // resolvedFileName: /a/b/foo.d.ts
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_5 = ts.getDirectoryPath(current);
+                    if (parent_5 === current || 
directoryPathMap.contains(parent_5)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_5, result);
+                    current = parent_5;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                // find first position where directory and resolution differs
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                // find last directory separator before position i
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                // put result in per-module name cache
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -23842,34 +23928,34 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0 /* TypeScript */) || tryResolve(1 /* 
JavaScript */);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
                 // For node_modules lookups, get the real path so that 
multiple accesses to an `npm link`-ed module do not create duplicate files.
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, /*onlyRecordFailures*/ false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -23963,18 +24049,32 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
                 // A package.json "typings" may specify an exact filename, or 
may choose to omit an extension.
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    // Note: this would allow a package.json to specify a 
".js" file as typings. Maybe that should be forbidden.
-                    return resolvedFromAnyFile(fromFile);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
+                }
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0 /* 
TypeScript */, failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
                 }
-                var x = tryAddingExtensions(typesFile, 0 /* TypeScript */, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                if (extensions === 1 /* JavaScript */) {
+                    // A package.json "main" may specify an exact filename, or 
may choose to omit an extension.
+                    // We tried the ts extensions erlier, now try the js 
extensions.
+                    // tryReadPackageJsonMainOrTypes returns main  iff 
extensions is Extensions.JavaScript.
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1 /* 
JavaScript */, failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -23992,6 +24092,22 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    /** Resolve from an arbitrarily specified file. Return `undefined` if it 
has an unsupported extension. */
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    /** True if `extension` is one of the supported `extensions`. */
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1 /* JavaScript */:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0 /* TypeScript */:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2 /* DtsOnly */:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -24002,17 +24118,22 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
         // Extensions parameter here doesn't actually matter, because 
typesOnly ensures we're just doing @types lookup, which is always DtsOnly.
-        return loadModuleFromNodeModulesWorker(2 /* DtsOnly */, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ true);
+        return loadModuleFromNodeModulesWorker(2 /* DtsOnly */, moduleName, 
directory, failedLookupLocations, state, /*typesOnly*/ true, /*cache*/ 
undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -24027,26 +24148,40 @@ var ts;
             return loadModuleFromNodeModulesFolder(2 /* DtsOnly */, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0 /* TypeScript */) || tryResolve(1 /* 
JavaScript */);
-        return createResolvedModuleWithFailedLookupLocations(resolved, 
/*isExternalLibraryImport*/ false, failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, /*isExternalLibraryImport*/ false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
                 // Climb up parent directories looking for a module.
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, /*onlyRecordFailures*/ false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, /*onlyRecordFailures*/ false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0 /* TypeScript */) {
                     // If we didn't find the file normally, look it up in 
@types.
@@ -24055,7 +24190,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, /*onlyRecordFailures*/ false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, /*onlyRecordFailures*/ false, state));
             }
         }
     }
@@ -24076,6 +24211,13 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, 
/*isExternalLibraryImport*/ true, failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    /**
+     * Wraps value to SearchResult.
+     * @returns undefined if value is undefined or { value } otherwise
+     */
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     /** Calls `callback` on `directory` and every ancestor directory it has, 
returning the first defined result. */
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
@@ -24128,6 +24270,8 @@ var ts;
         // is because diagnostics can be quite expensive, and we want to allow 
hosts to bail out if
         // they no longer need the information (for example, if the user 
started editing again).
         var cancellationToken;
+        var requestedExternalEmitHelpers;
+        var externalHelpersModule;
         var Symbol = ts.objectAllocator.getSymbolConstructor();
         var Type = ts.objectAllocator.getTypeConstructor();
         var Signature = ts.objectAllocator.getSignatureConstructor();
@@ -24523,9 +24667,7 @@ var ts;
                     // other kinds of value declarations take precedence over 
modules
                     target.valueDeclaration = source.valueDeclaration;
                 }
-                ts.forEach(source.declarations, function (node) {
-                    target.declarations.push(node);
-                });
+                ts.addRange(target.declarations, source.declarations);
                 if (source.members) {
                     if (!target.members)
                         target.members = ts.createMap();
@@ -24682,9 +24824,21 @@ var ts;
             }
             if (declaration.pos <= usage.pos) {
                 // declaration is before usage
-                // still might be illegal if usage is in the initializer of 
the variable declaration
-                return declaration.kind !== 223 /* VariableDeclaration */ ||
-                    
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                if (declaration.kind === 174 /* BindingElement */) {
+                    // still might be illegal if declaration and usage are 
both binding elements (eg var [a = b, b = b] = [1, 2])
+                    var errorBindingElement = ts.getAncestor(usage, 174 /* 
BindingElement */);
+                    if (errorBindingElement) {
+                        return getAncestorBindingPattern(errorBindingElement) 
!== getAncestorBindingPattern(declaration) ||
+                            declaration.pos < errorBindingElement.pos;
+                    }
+                    // or it might be illegal if usage happens before parent 
variable is declared (eg var [a] = a)
+                    return 
isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223 /* 
VariableDeclaration */), usage);
+                }
+                else if (declaration.kind === 223 /* VariableDeclaration */) {
+                    // still might be illegal if usage is in the initializer 
of the variable declaration (eg var a = a)
+                    return 
!isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);
+                }
+                return true;
             }
             // declaration is after usage
             // can be legal if usage is deferred (i.e. inside function or in 
initializer of instance property)
@@ -24733,6 +24887,15 @@ var ts;
                 }
                 return false;
             }
+            function getAncestorBindingPattern(node) {
+                while (node) {
+                    if (ts.isBindingPattern(node)) {
+                        return node;
+                    }
+                    node = node.parent;
+                }
+                return undefined;
+            }
         }
         // Resolve a given name for a given meaning at a given location. An 
error is reported if the name was not found and
         // the nameNotFoundMessage argument is not undefined. Returns the 
resolved symbol, or undefined if no symbol with
@@ -25068,7 +25231,7 @@ var ts;
             // Block-scoped variables cannot be used before their definition
             var declaration = ts.forEach(result.declarations, function (d) { 
return ts.isBlockOrCatchScoped(d) ? d : undefined; });
             ts.Debug.assert(declaration !== undefined, "Block-scoped variable 
declaration is undefined");
-            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 223 /* 
VariableDeclaration */), errorLocation)) {
+            if (!ts.isInAmbientContext(declaration) && 
!isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {
                 error(errorLocation, 
ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, 
ts.declarationNameToString(declaration.name));
             }
         }
@@ -25099,7 +25262,7 @@ var ts;
             }
         }
         function getDeclarationOfAliasSymbol(symbol) {
-            return ts.forEach(symbol.declarations, function (d) { return 
ts.isAliasSymbolDeclaration(d) ? d : undefined; });
+            return ts.find(symbol.declarations, ts.isAliasSymbolDeclaration);
         }
         function getTargetOfImportEqualsDeclaration(node) {
             if (node.moduleReference.kind === 245 /* ExternalModuleReference 
*/) {
@@ -25409,9 +25572,8 @@ var ts;
             // May be an untyped module. If so, ignore resolutionDiagnostic.
             if (!isRelative && resolvedModule && 
!ts.extensionIsTypeScript(resolvedModule.extension)) {
                 if (isForAugmentation) {
-                    ts.Debug.assert(!!moduleNotFoundError);
                     var diag = 
ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
-                    error(errorNode, diag, moduleName, 
resolvedModule.resolvedFileName);
+                    error(errorNode, diag, moduleReference, 
resolvedModule.resolvedFileName);
                 }
                 else if (compilerOptions.noImplicitAny && moduleNotFoundError) 
{
                     error(errorNode, 
ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
 moduleReference, resolvedModule.resolvedFileName);
@@ -25666,6 +25828,16 @@ var ts;
         }
         function getAccessibleSymbolChain(symbol, enclosingDeclaration, 
meaning, useOnlyExternalAliasing) {
             function getAccessibleSymbolChainFromSymbolTable(symbols) {
+                return getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
[]);
+            }
+            function getAccessibleSymbolChainFromSymbolTableWorker(symbols, 
visitedSymbolTables) {
+                if (ts.contains(visitedSymbolTables, symbols)) {
+                    return undefined;
+                }
+                visitedSymbolTables.push(symbols);
+                var result = trySymbolTable(symbols);
+                visitedSymbolTables.pop();
+                return result;
                 function canQualifySymbol(symbolFromSymbolTable, meaning) {
                     // If the symbol is equivalent and doesn't need further 
qualification, this symbol is accessible
                     if (!needsQualification(symbolFromSymbolTable, 
enclosingDeclaration, meaning)) {
@@ -25684,31 +25856,33 @@ var ts;
                             canQualifySymbol(symbolFromSymbolTable, meaning);
                     }
                 }
-                // If symbol is directly available by its name in the symbol 
table
-                if (isAccessible(symbols[symbol.name])) {
-                    return [symbol];
-                }
-                // Check if symbol is any of the alias
-                return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
-                    if (symbolFromSymbolTable.flags & 8388608 /* Alias */
-                        && symbolFromSymbolTable.name !== "export="
-                        && !ts.getDeclarationOfKind(symbolFromSymbolTable, 243 
/* ExportSpecifier */)) {
-                        if (!useOnlyExternalAliasing ||
-                            // Is this external alias, then use it to name
-                            ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
-                            var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
-                            if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
-                                return [symbolFromSymbolTable];
-                            }
-                            // Look in the exported members, if we can find 
accessibleSymbolChain, symbol is accessible using this chain
-                            // but only if the symbolFromSymbolTable can be 
qualified
-                            var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : 
undefined;
-                            if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
-                                return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                function trySymbolTable(symbols) {
+                    // If symbol is directly available by its name in the 
symbol table
+                    if (isAccessible(symbols[symbol.name])) {
+                        return [symbol];
+                    }
+                    // Check if symbol is any of the alias
+                    return ts.forEachProperty(symbols, function 
(symbolFromSymbolTable) {
+                        if (symbolFromSymbolTable.flags & 8388608 /* Alias */
+                            && symbolFromSymbolTable.name !== "export="
+                            && !ts.getDeclarationOfKind(symbolFromSymbolTable, 
243 /* ExportSpecifier */)) {
+                            if (!useOnlyExternalAliasing ||
+                                // Is this external alias, then use it to name
+                                ts.forEach(symbolFromSymbolTable.declarations, 
ts.isExternalModuleImportEqualsDeclaration)) {
+                                var resolvedImportedSymbol = 
resolveAlias(symbolFromSymbolTable);
+                                if (isAccessible(symbolFromSymbolTable, 
resolveAlias(symbolFromSymbolTable))) {
+                                    return [symbolFromSymbolTable];
+                                }
+                                // Look in the exported members, if we can 
find accessibleSymbolChain, symbol is accessible using this chain
+                                // but only if the symbolFromSymbolTable can 
be qualified
+                                var accessibleSymbolsFromExports = 
resolvedImportedSymbol.exports ? 
getAccessibleSymbolChainFromSymbolTableWorker(resolvedImportedSymbol.exports, 
visitedSymbolTables) : undefined;
+                                if (accessibleSymbolsFromExports && 
canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {
+                                    return 
[symbolFromSymbolTable].concat(accessibleSymbolsFromExports);
+                                }
                             }
                         }
-                    }
-                });
+                    });
+                }
             }
             if (symbol) {
                 if (!(isPropertyOrMethodDeclarationSymbol(symbol))) {
@@ -26075,9 +26249,9 @@ var ts;
                     if (!accessibleSymbolChain ||
                         needsQualification(accessibleSymbolChain[0], 
enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : 
getQualifiedLeftMeaning(meaning))) {
                         // Go up and add our parent.
-                        var parent_5 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
-                        if (parent_5) {
-                            walkSymbol(parent_5, 
getQualifiedLeftMeaning(meaning), /*endOfChain*/ false);
+                        var parent_6 = getParentOfSymbol(accessibleSymbolChain 
? accessibleSymbolChain[0] : symbol);
+                        if (parent_6) {
+                            walkSymbol(parent_6, 
getQualifiedLeftMeaning(meaning), /*endOfChain*/ false);
                         }
                     }
                     if (accessibleSymbolChain) {
@@ -26227,14 +26401,14 @@ var ts;
                             while (i < length_1) {
                                 // Find group of type arguments for type 
parameters with the same declaring container.
                                 var start = i;
-                                var parent_6 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
+                                var parent_7 = 
getParentSymbolOfTypeParameter(outerTypeParameters[i]);
                                 do {
                                     i++;
-                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_6);
+                                } while (i < length_1 && 
getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent_7);
                                 // When type parameters are their own type 
arguments for the whole group (i.e. we have
                                 // the default outer type arguments), we don't 
show the group.
                                 if (!ts.rangeEquals(outerTypeParameters, 
typeArguments, start, i)) {
-                                    writeSymbolTypeReference(parent_6, 
typeArguments, start, i, flags);
+                                    writeSymbolTypeReference(parent_7, 
typeArguments, start, i, flags);
                                     writePunctuation(writer, 22 /* DotToken 
*/);
                                 }
                             }
@@ -26525,7 +26699,7 @@ var ts;
                 }
                 ts.Debug.assert(bindingElement.kind === 174 /* BindingElement 
*/);
                 if (bindingElement.propertyName) {
-                    
writer.writeSymbol(ts.getTextOfNode(bindingElement.propertyName), 
bindingElement.symbol);
+                    
writer.writeProperty(ts.getTextOfNode(bindingElement.propertyName));
                     writePunctuation(writer, 55 /* ColonToken */);
                     writeSpace(writer);
                 }
@@ -26673,14 +26847,14 @@ var ts;
                         if (ts.isExternalModuleAugmentation(node)) {
                             return true;
                         }
-                        var parent_7 = getDeclarationContainer(node);
+                        var parent_8 = getDeclarationContainer(node);
                         // If the node is not exported or it is not ambient 
module element (except import declaration)
                         if (!(ts.getCombinedModifierFlags(node) & 1 /* Export 
*/) &&
-                            !(node.kind !== 234 /* ImportEqualsDeclaration */ 
&& parent_7.kind !== 261 /* SourceFile */ && ts.isInAmbientContext(parent_7))) {
-                            return isGlobalSourceFile(parent_7);
+                            !(node.kind !== 234 /* ImportEqualsDeclaration */ 
&& parent_8.kind !== 261 /* SourceFile */ && ts.isInAmbientContext(parent_8))) {
+                            return isGlobalSourceFile(parent_8);
                         }
                         // Exported members/ambient module elements (exception 
import declaration) are visible if parent is visible
-                        return isDeclarationVisible(parent_7);
+                        return isDeclarationVisible(parent_8);
                     case 147 /* PropertyDeclaration */:
                     case 146 /* PropertySignature */:
                     case 151 /* GetAccessor */:
@@ -26868,7 +27042,13 @@ var ts;
             return name.kind === 142 /* ComputedPropertyName */ && 
!ts.isStringOrNumericLiteral(name.expression);
         }
         function getRestType(source, properties, symbol) {
-            ts.Debug.assert(!!(source.flags & 32768 /* Object */), "Rest types 
only support object types right now.");
+            source = filterType(source, function (t) { return !(t.flags & 6144 
/* Nullable */); });
+            if (source.flags & 8192 /* Never */) {
+                return emptyObjectType;
+            }
+            if (source.flags & 65536 /* Union */) {
+                return mapType(source, function (t) { return getRestType(t, 
properties, symbol); });
+            }
             var members = ts.createMap();
             var names = ts.createMap();
             for (var _i = 0, properties_2 = properties; _i < 
properties_2.length; _i++) {
@@ -26909,7 +27089,7 @@ var ts;
             var type;
             if (pattern.kind === 172 /* ObjectBindingPattern */) {
                 if (declaration.dotDotDotToken) {
-                    if (!(parentType.flags & 32768 /* Object */)) {
+                    if (!isValidSpreadType(parentType)) {
                         error(declaration, 
ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -26999,7 +27179,7 @@ var ts;
         }
         // Return the inferred type for a variable, parameter, or property 
declaration
         function getTypeForVariableLikeDeclaration(declaration, 
includeOptionality) {
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 // If this is a variable in a JavaScript file, then use the 
JSDoc type (if it has
                 // one as its type), otherwise fallback to the below standard 
TS codepaths to
                 // try to figure it out.
@@ -27028,7 +27208,7 @@ var ts;
             if (declaration.type) {
                 return addOptionality(getTypeFromTypeNode(declaration.type), 
/*optional*/ declaration.questionToken && includeOptionality);
             }
-            if ((compilerOptions.noImplicitAny || declaration.flags & 2097152 
/* JavaScriptFile */) &&
+            if ((compilerOptions.noImplicitAny || declaration.flags & 65536 /* 
JavaScriptFile */) &&
                 declaration.kind === 223 /* VariableDeclaration */ && 
!ts.isBindingPattern(declaration.name) &&
                 !(ts.getCombinedModifierFlags(declaration) & 1 /* Export */) 
&& !ts.isInAmbientContext(declaration)) {
                 // If --noImplicitAny is on or the declaration is in a 
Javascript file,
@@ -27105,14 +27285,19 @@ var ts;
         // Return the type implied by an object binding pattern
         function getTypeFromObjectBindingPattern(pattern, 
includePatternInType, reportErrors) {
             var members = ts.createMap();
+            var stringIndexInfo;
             var hasComputedProperties = false;
             ts.forEach(pattern.elements, function (e) {
                 var name = e.propertyName || e.name;
-                if (isComputedNonLiteralName(name) || e.dotDotDotToken) {
-                    // do not include computed properties or rests in the 
implied type
+                if (isComputedNonLiteralName(name)) {
+                    // do not include computed properties in the implied type
                     hasComputedProperties = true;
                     return;
                 }
+                if (e.dotDotDotToken) {
+                    stringIndexInfo = createIndexInfo(anyType, /*isReadonly*/ 
false);
+                    return;
+                }
                 var text = ts.getTextOfPropertyName(name);
                 var flags = 4 /* Property */ | 67108864 /* Transient */ | 
(e.initializer ? 536870912 /* Optional */ : 0);
                 var symbol = createSymbol(flags, text);
@@ -27120,7 +27305,7 @@ var ts;
                 symbol.bindingElement = e;
                 members[symbol.name] = symbol;
             });
-            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, undefined, undefined);
+            var result = createAnonymousType(undefined, members, emptyArray, 
emptyArray, stringIndexInfo, undefined);
             if (includePatternInType) {
                 result.pattern = pattern;
             }
@@ -27211,7 +27396,7 @@ var ts;
                 if (declaration.kind === 240 /* ExportAssignment */) {
                     return links.type = 
checkExpression(declaration.expression);
                 }
-                if (declaration.flags & 2097152 /* JavaScriptFile */ && 
declaration.kind === 286 /* JSDocPropertyTag */ && declaration.typeExpression) {
+                if (declaration.flags & 65536 /* JavaScriptFile */ && 
declaration.kind === 286 /* JSDocPropertyTag */ && declaration.typeExpression) {
                     return links.type = 
getTypeFromTypeNode(declaration.typeExpression.type);
                 }
                 // Handle variable, parameter or property
@@ -27227,7 +27412,7 @@ var ts;
                 if (declaration.kind === 192 /* BinaryExpression */ ||
                     declaration.kind === 177 /* PropertyAccessExpression */ && 
declaration.parent.kind === 192 /* BinaryExpression */) {
                     // Use JS Doc type if present on parent expression 
statement
-                    if (declaration.flags & 2097152 /* JavaScriptFile */) {
+                    if (declaration.flags & 65536 /* JavaScriptFile */) {
                         var jsdocType = ts.getJSDocType(declaration.parent);
                         if (jsdocType) {
                             return links.type = getTypeFromTypeNode(jsdocType);
@@ -27242,18 +27427,7 @@ var ts;
                     type = 
getWidenedTypeForVariableLikeDeclaration(declaration, /*reportErrors*/ true);
                 }
                 if (!popTypeResolution()) {
-                    if (symbol.valueDeclaration.type) {
-                        // Variable has type annotation that circularly 
references the variable itself
-                        type = unknownType;
-                        error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
-                    }
-                    else {
-                        // Variable has initializer that circularly references 
the variable itself
-                        type = anyType;
-                        if (compilerOptions.noImplicitAny) {
-                            error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
-                        }
-                    }
+                    type = reportCircularityError(symbol);
                 }
                 links.type = type;
             }
@@ -27283,7 +27457,7 @@ var ts;
             if (!links.type) {
                 var getter = ts.getDeclarationOfKind(symbol, 151 /* 
GetAccessor */);
                 var setter = ts.getDeclarationOfKind(symbol, 152 /* 
SetAccessor */);
-                if (getter && getter.flags & 2097152 /* JavaScriptFile */) {
+                if (getter && getter.flags & 65536 /* JavaScriptFile */) {
                     var jsDocType = 
getTypeForVariableLikeDeclarationFromJSDocComment(getter);
                     if (jsDocType) {
                         return links.type = jsDocType;
@@ -27373,10 +27547,29 @@ var ts;
         function getTypeOfInstantiatedSymbol(symbol) {
             var links = getSymbolLinks(symbol);
             if (!links.type) {
-                links.type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!pushTypeResolution(symbol, 0 /* Type */)) {
+                    return unknownType;
+                }
+                var type = instantiateType(getTypeOfSymbol(links.target), 
links.mapper);
+                if (!popTypeResolution()) {
+                    type = reportCircularityError(symbol);
+                }
+                links.type = type;
             }
             return links.type;
         }
+        function reportCircularityError(symbol) {
+            // Check if variable has type annotation that circularly 
references the variable itself
+            if (symbol.valueDeclaration.type) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
 symbolToString(symbol));
+                return unknownType;
+            }
+            // Otherwise variable has initializer that circularly references 
the variable itself
+            if (compilerOptions.noImplicitAny) {
+                error(symbol.valueDeclaration, 
ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
 symbolToString(symbol));
+            }
+            return anyType;
+        }
         function getTypeOfSymbol(symbol) {
             if (symbol.flags & 16777216 /* Instantiated */) {
                 return getTypeOfInstantiatedSymbol(symbol);
@@ -28218,7 +28411,6 @@ var ts;
         function resolveMappedTypeMembers(type) {
             var members = ts.createMap();
             var stringIndexInfo;
-            var numberIndexInfo;
             // Resolve upfront such that recursive references see an empty 
object type.
             setStructuredTypeMembers(type, emptySymbols, emptyArray, 
emptyArray, undefined, undefined);
             // In { [P in K]: T }, we refer to P as the type parameter type, K 
as the constraint type,
@@ -28226,43 +28418,47 @@ var ts;
             var typeParameter = getTypeParameterFromMappedType(type);
             var constraintType = getConstraintTypeFromMappedType(type);
             var templateType = getTemplateTypeFromMappedType(type);
-            var isReadonly = !!type.declaration.readonlyToken;
-            var isOptional = !!type.declaration.questionToken;
-            // First, if the constraint type is a type parameter, obtain the 
base constraint. Then,
-            // if the key type is a 'keyof X', obtain 'keyof C' where C is the 
base constraint of X.
-            // Finally, iterate over the constituents of the resulting 
iteration type.
-            var keyType = constraintType.flags & 16384 /* TypeParameter */ ? 
getApparentType(constraintType) : constraintType;
-            var iterationType = keyType.flags & 262144 /* Index */ ? 
getIndexType(getApparentType(keyType.type)) : keyType;
-            forEachType(iterationType, function (t) {
+            var modifiersType = 
getApparentType(getModifiersTypeFromMappedType(type));
+            var templateReadonly = !!type.declaration.readonlyToken;
+            var templateOptional = !!type.declaration.questionToken;
+            if (type.declaration.typeParameter.constraint.kind === 168 /* 
TypeOperator */) {
+                // We have a { [P in keyof T]: X }
+                forEachType(getLiteralTypeFromPropertyNames(modifiersType), 
addMemberForKeyType);
+                if (getIndexInfoOfType(modifiersType, 0 /* String */)) {
+                    addMemberForKeyType(stringType);
+                }
+            }
+            else {
+                // First, if the constraint type is a type parameter, obtain 
the base constraint. Then,
+                // if the key type is a 'keyof X', obtain 'keyof C' where C is 
the base constraint of X.
+                // Finally, iterate over the constituents of the resulting 
iteration type.
+                var keyType = constraintType.flags & 540672 /* TypeVariable */ 
? getApparentType(constraintType) : constraintType;
+                var iterationType = keyType.flags & 262144 /* Index */ ? 
getIndexType(getApparentType(keyType.type)) : keyType;
+                forEachType(iterationType, addMemberForKeyType);
+            }
+            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, undefined);
+            function addMemberForKeyType(t) {
                 // Create a mapper from T to the current iteration type 
constituent. Then, if the
                 // mapped type is itself an instantiated type, combine the 
iteration mapper with the
                 // instantiation mapper.
                 var iterationMapper = createUnaryTypeMapper(typeParameter, t);
                 var templateMapper = type.mapper ? 
combineTypeMappers(type.mapper, iterationMapper) : iterationMapper;
                 var propType = instantiateType(templateType, templateMapper);
-                // If the current iteration type constituent is a literal 
type, create a property.
-                // Otherwise, for type string create a string index signature 
and for type number
-                // create a numeric index signature.
-                if (t.flags & (32 /* StringLiteral */ | 64 /* NumberLiteral */ 
| 256 /* EnumLiteral */)) {
+                // If the current iteration type constituent is a string 
literal type, create a property.
+                // Otherwise, for type string create a string index signature.
+                if (t.flags & 32 /* StringLiteral */) {
                     var propName = t.text;
+                    var modifiersProp = getPropertyOfType(modifiersType, 
propName);
+                    var isOptional = templateOptional || !!(modifiersProp && 
modifiersProp.flags & 536870912 /* Optional */);
                     var prop = createSymbol(4 /* Property */ | 67108864 /* 
Transient */ | (isOptional ? 536870912 /* Optional */ : 0), propName);
-                    prop.type = addOptionality(propType, isOptional);
-                    prop.isReadonly = isReadonly;
+                    prop.type = propType;
+                    prop.isReadonly = templateReadonly || modifiersProp && 
isReadonlySymbol(modifiersProp);
                     members[propName] = prop;
                 }
                 else if (t.flags & 2 /* String */) {
-                    stringIndexInfo = createIndexInfo(propType, isReadonly);
+                    stringIndexInfo = createIndexInfo(propType, 
templateReadonly);
                 }
-                else if (t.flags & 4 /* Number */) {
-                    numberIndexInfo = createIndexInfo(propType, isReadonly);
-                }
-            });
-            // If we created both a string and a numeric string index 
signature, and if the two index
-            // signatures have identical types, discard the redundant numeric 
index signature.
-            if (stringIndexInfo && numberIndexInfo && 
isTypeIdenticalTo(stringIndexInfo.type, numberIndexInfo.type)) {
-                numberIndexInfo = undefined;
             }
-            setStructuredTypeMembers(type, members, emptyArray, emptyArray, 
stringIndexInfo, numberIndexInfo);
         }
         function getTypeParameterFromMappedType(type) {
             return type.typeParameter ||
@@ -28275,16 +28471,37 @@ var ts;
         function getTemplateTypeFromMappedType(type) {
             return type.templateType ||
                 (type.templateType = type.declaration.type ?
-                    
instantiateType(getTypeFromTypeNode(type.declaration.type), type.mapper || 
identityMapper) :
+                    
instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), 
!!type.declaration.questionToken), type.mapper || identityMapper) :
                     unknownType);
         }
+        function getModifiersTypeFromMappedType(type) {
+            if (!type.modifiersType) {
+                var constraintDeclaration = 
type.declaration.typeParameter.constraint;
+                if (constraintDeclaration.kind === 168 /* TypeOperator */) {
+                    // If the constraint declaration is a 'keyof T' node, the 
modifiers type is T. We check
+                    // AST nodes here because, when T is a non-generic type, 
the logic below eagerly resolves
+                    // 'keyof T' to a literal union type and we can't recover 
T from that type.
+                    type.modifiersType = 
instantiateType(getTypeFromTypeNode(constraintDeclaration.type), type.mapper || 
identityMapper);
+                }
+                else {
+                    // Otherwise, get the declared constraint type, and if the 
constraint type is a type parameter,
+                    // get the constraint of that type parameter. If the 
resulting type is an indexed type 'keyof T',
+                    // the modifiers type is T. Otherwise, the modifiers type 
is {}.
+                    var declaredType = 
getTypeFromMappedTypeNode(type.declaration);
+                    var constraint = 
getConstraintTypeFromMappedType(declaredType);
+                    var extendedConstraint = constraint && constraint.flags & 
16384 /* TypeParameter */ ? getConstraintOfTypeParameter(constraint) : 
constraint;
+                    type.modifiersType = extendedConstraint && 
extendedConstraint.flags & 262144 /* Index */ ? 
instantiateType(extendedConstraint.type, type.mapper || identityMapper) : 
emptyObjectType;
+                }
+            }
+            return type.modifiersType;
+        }
         function getErasedTemplateTypeFromMappedType(type) {
             return instantiateType(getTemplateTypeFromMappedType(type), 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), anyType));
         }
         function isGenericMappedType(type) {
             if (getObjectFlags(type) & 32 /* Mapped */) {
                 var constraintType = getConstraintTypeFromMappedType(type);
-                return !!(constraintType.flags & (16384 /* TypeParameter */ | 
262144 /* Index */));
+                return maybeTypeOfKind(constraintType, 540672 /* TypeVariable 
*/ | 262144 /* Index */);
             }
             return false;
         }
@@ -28368,31 +28585,23 @@ var ts;
          * The apparent type of a type parameter is the base constraint 
instantiated with the type parameter
          * as the type argument for the 'this' type.
          */
-        function getApparentTypeOfTypeParameter(type) {
+        function getApparentTypeOfTypeVariable(type) {
             if (!type.resolvedApparentType) {
-                var constraintType = getConstraintOfTypeParameter(type);
+                var constraintType = getConstraintOfTypeVariable(type);
                 while (constraintType && constraintType.flags & 16384 /* 
TypeParameter */) {
-                    constraintType = 
getConstraintOfTypeParameter(constraintType);
+                    constraintType = 
getConstraintOfTypeVariable(constraintType);
                 }
                 type.resolvedApparentType = 
getTypeWithThisArgument(constraintType || emptyObjectType, type);
             }
             return type.resolvedApparentType;
         }
         /**
-         * The apparent type of an indexed access T[K] is the type of T's 
string index signature, if any.
-         */
-        function getApparentTypeOfIndexedAccess(type) {
-            return getIndexTypeOfType(getApparentType(type.objectType), 0 /* 
String */) || type;
-        }
-        /**
          * For a type parameter, return the base constraint of the type 
parameter. For the string, number,
          * boolean, and symbol primitive types, return the corresponding 
object types. Otherwise return the
          * type itself. Note that the apparent type of a union type is the 
union type itself.
          */
         function getApparentType(type) {
-            var t = type.flags & 16384 /* TypeParameter */ ? 
getApparentTypeOfTypeParameter(type) :
-                type.flags & 524288 /* IndexedAccess */ ? 
getApparentTypeOfIndexedAccess(type) :
-                    type;
+            var t = type.flags & 540672 /* TypeVariable */ ? 
getApparentTypeOfTypeVariable(type) : type;
             return t.flags & 262178 /* StringLike */ ? globalStringType :
                 t.flags & 340 /* NumberLike */ ? globalNumberType :
                     t.flags & 136 /* BooleanLike */ ? globalBooleanType :
@@ -28561,7 +28770,7 @@ var ts;
             return undefined;
         }
         function getTypeParametersFromJSDocTemplate(declaration) {
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 var templateTag = ts.getJSDocTemplateTag(declaration);
                 if (templateTag) {
                     return 
getTypeParametersFromDeclaration(templateTag.typeParameters);
@@ -28591,7 +28800,7 @@ var ts;
             return result;
         }
         function isJSDocOptionalParameter(node) {
-            if (node.flags & 2097152 /* JavaScriptFile */) {
+            if (node.flags & 65536 /* JavaScriptFile */) {
                 if (node.type && node.type.kind === 273 /* JSDocOptionalType 
*/) {
                     return true;
                 }
@@ -28727,7 +28936,7 @@ var ts;
             else if (declaration.type) {
                 return getTypeFromTypeNode(declaration.type);
             }
-            if (declaration.flags & 2097152 /* JavaScriptFile */) {
+            if (declaration.flags & 65536 /* JavaScriptFile */) {
                 var type = getReturnTypeFromJSDocComment(declaration);
                 if (type && type !== unknownType) {
                     return type;
@@ -28928,6 +29137,11 @@ var ts;
             }
             return typeParameter.constraint === noConstraintType ? undefined : 
typeParameter.constraint;
         }
+        function getConstraintOfTypeVariable(type) {
+            return type.flags & 16384 /* TypeParameter */ ? 
getConstraintOfTypeParameter(type) :
+                type.flags & 524288 /* IndexedAccess */ ? type.constraint :
+                    undefined;
+        }
         function getParentSymbolOfTypeParameter(typeParameter) {
             return 
getSymbolOfNode(ts.getDeclarationOfKind(typeParameter.symbol, 143 /* 
TypeParameter */).parent);
         }
@@ -29439,6 +29653,9 @@ var ts;
                 typeSet.containsAny = true;
             }
             else if (!(type.flags & 8192 /* Never */) && (strictNullChecks || 
!(type.flags & 6144 /* Nullable */)) && !ts.contains(typeSet, type)) {
+                if (type.flags & 65536 /* Union */ && typeSet.unionIndex === 
undefined) {
+                    typeSet.unionIndex = typeSet.length;
+                }
                 typeSet.push(type);
             }
         }
@@ -29464,18 +29681,6 @@ var ts;
             if (types.length === 0) {
                 return emptyObjectType;
             }
-            var _loop_2 = function (i) {
-                var type_1 = types[i];
-                if (type_1.flags & 65536 /* Union */) {
-                    return { value: getUnionType(ts.map(type_1.types, function 
(t) { return getIntersectionType(ts.replaceElement(types, i, t)); }), 
-                        /*subtypeReduction*/ false, aliasSymbol, 
aliasTypeArguments) };
-                }
-            };
-            for (var i = 0; i < types.length; i++) {
-                var state_2 = _loop_2(i);
-                if (typeof state_2 === "object")
-                    return state_2.value;
-            }
             var typeSet = [];
             addTypesToIntersection(typeSet, types);
             if (typeSet.containsAny) {
@@ -29484,6 +29689,14 @@ var ts;
             if (typeSet.length === 1) {
                 return typeSet[0];
             }
+            var unionIndex = typeSet.unionIndex;
+            if (unionIndex !== undefined) {
+                // We are attempting to construct a type of the form X & (A | 
B) & Y. Transform this into a type of
+                // the form X & A & Y | X & B & Y and recursively reduce until 
no union type constituents remain.
+                var unionType = typeSet[unionIndex];
+                return getUnionType(ts.map(unionType.types, function (t) { 
return getIntersectionType(ts.replaceElement(typeSet, unionIndex, t)); }), 
+                /*subtypeReduction*/ false, aliasSymbol, aliasTypeArguments);
+            }
             var id = getTypeListId(typeSet);
             var type = intersectionTypes[id];
             if (!type) {
@@ -29502,7 +29715,7 @@ var ts;
             }
             return links.resolvedType;
         }
-        function getIndexTypeForTypeParameter(type) {
+        function getIndexTypeForGenericType(type) {
             if (!type.resolvedIndexType) {
                 type.resolvedIndexType = createType(262144 /* Index */);
                 type.resolvedIndexType.type = type;
@@ -29518,7 +29731,7 @@ var ts;
             return getUnionType(ts.map(getPropertiesOfType(type), 
getLiteralTypeFromPropertyName));
         }
         function getIndexType(type) {
-            return type.flags & 16384 /* TypeParameter */ ? 
getIndexTypeForTypeParameter(type) :
+            return maybeTypeOfKind(type, 540672 /* TypeVariable */) ? 
getIndexTypeForGenericType(type) :
                 getObjectFlags(type) & 32 /* Mapped */ ? 
getConstraintTypeFromMappedType(type) :
                     type.flags & 1 /* Any */ || getIndexInfoOfType(type, 0 /* 
String */) ? stringType :
                         getLiteralTypeFromPropertyNames(type);
@@ -29538,6 +29751,24 @@ var ts;
             var type = createType(524288 /* IndexedAccess */);
             type.objectType = objectType;
             type.indexType = indexType;
+            // We eagerly compute the constraint of the indexed access type 
such that circularity
+            // errors are immediately caught and reported. For example, class 
C { x: this["x"] }
+            // becomes an error only when the constraint is eagerly computed.
+            if (type.objectType.flags & 229376 /* StructuredType */) {
+                // The constraint of T[K], where T is an object, union, or 
intersection type,
+                // is the type of the string index signature of T, if any.
+                type.constraint = getIndexTypeOfType(type.objectType, 0 /* 
String */);
+            }
+            else if (type.objectType.flags & 540672 /* TypeVariable */) {
+                // The constraint of T[K], where T is a type variable, is 
A[K], where A is the
+                // apparent type of T.
+                var apparentType = 
getApparentTypeOfTypeVariable(type.objectType);
+                if (apparentType !== emptyObjectType) {
+                    type.constraint = isTypeOfKind(type.indexType, 262178 /* 
StringLike */) ?
+                        getIndexedAccessType(apparentType, type.indexType) :
+                        getIndexTypeOfType(apparentType, 0 /* String */);
+                }
+            }
             return type;
         }
         function getPropertyTypeForIndexType(objectType, indexType, 
accessNode, cacheSymbol) {
@@ -29610,16 +29841,22 @@ var ts;
             }
             var mapper = 
createUnaryTypeMapper(getTypeParameterFromMappedType(type), indexType);
             var templateMapper = type.mapper ? combineTypeMappers(type.mapper, 
mapper) : mapper;
-            return 
addOptionality(instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper), !!type.declaration.questionToken);
+            return instantiateType(getTemplateTypeFromMappedType(type), 
templateMapper);
         }
         function getIndexedAccessType(objectType, indexType, accessNode) {
-            if (indexType.flags & 16384 /* TypeParameter */ ||
-                objectType.flags & 16384 /* TypeParameter */ && 
indexType.flags & 262144 /* Index */ ||
+            // If the index type is generic, if the object type is generic and 
doesn't originate in an expression,
+            // or if the object type is a mapped type with a generic 
constraint, we are performing a higher-order
+            // index access where we cannot meaningfully access the properties 
of the object type. Note that for a
+            // generic T and a non-generic K, we eagerly resolve T[K] if it 
originates in an expression. This is to
+            // preserve backwards compatibility. For example, an element 
access 'this["foo"]' has always been resolved
+            // eagerly using the constraint type of 'this' at the given 
location.
+            if (maybeTypeOfKind(indexType, 540672 /* TypeVariable */ | 262144 
/* Index */) ||
+                maybeTypeOfKind(objectType, 540672 /* TypeVariable */) && 
!(accessNode && accessNode.kind === 178 /* ElementAccessExpression */) ||
                 isGenericMappedType(objectType)) {
-                // If either the object type or the index type are type 
parameters, or if the object type is a mapped
-                // type with a generic constraint, we are performing a 
higher-order index access where we cannot
-                // meaningfully access the properties of the object type. In 
those cases, we first check that the
-                // index type is assignable to 'keyof T' for the object type.
+                if (objectType.flags & 1 /* Any */) {
+                    return objectType;
+                }
+                // We first check that the index type is assignable to 'keyof 
T' for the object type.
                 if (accessNode) {
                     if (!isTypeAssignableTo(indexType, 
getIndexType(objectType))) {
                         error(accessNode, 
ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), 
typeToString(objectType));
@@ -29636,6 +29873,7 @@ var ts;
                 var id = objectType.id + "," + indexType.id;
                 return indexedAccessTypes[id] || (indexedAccessTypes[id] = 
createIndexedAccessType(objectType, indexType));
             }
+            // In the following we resolve T[K] to the type of the property in 
T selected by K.
             var apparentObjectType = getApparentType(objectType);
             if (indexType.flags & 65536 /* Union */ && !(indexType.flags & 
8190 /* Primitive */)) {
                 var propTypes = [];
@@ -29702,10 +29940,23 @@ var ts;
          * and right = the new element to be spread.
          */
         function getSpreadType(left, right, isFromObjectLiteral) {
-            ts.Debug.assert(!!(left.flags & (32768 /* Object */ | 1 /* Any 
*/)) && !!(right.flags & (32768 /* Object */ | 1 /* Any */)), "Only object 
types may be spread.");
             if (left.flags & 1 /* Any */ || right.flags & 1 /* Any */) {
                 return anyType;
             }
+            left = filterType(left, function (t) { return !(t.flags & 6144 /* 
Nullable */); });
+            if (left.flags & 8192 /* Never */) {
+                return right;
+            }
+            right = filterType(right, function (t) { return !(t.flags & 6144 
/* Nullable */); });
+            if (right.flags & 8192 /* Never */) {
+                return left;
+            }
+            if (left.flags & 65536 /* Union */) {
+                return mapType(left, function (t) { return getSpreadType(t, 
right, isFromObjectLiteral); });
+            }
+            if (right.flags & 65536 /* Union */) {
+                return mapType(right, function (t) { return 
getSpreadType(left, t, isFromObjectLiteral); });
+            }
             var members = ts.createMap();
             var skippedPrivateMembers = ts.createMap();
             var stringIndexInfo;
@@ -30060,19 +30311,19 @@ var ts;
             return result;
         }
         function instantiateMappedType(type, mapper) {
-            // Check if we have an isomorphic mapped type, i.e. a type of the 
form { [P in keyof T]: X } for some
-            // type parameter T. If so, the mapped type is distributive over a 
union type and when T is instantiated
+            // Check if we have a homomorphic mapped type, i.e. a type of the 
form { [P in keyof T]: X } for some
+            // type variable T. If so, the mapped type is distributive over a 
union type and when T is instantiated
             // to a union type A | B, we produce { [P in keyof A]: X } | { [P 
in keyof B]: X }. Furthermore, for
-            // isomorphic mapped types we leave primitive types alone. For 
example, when T is instantiated to a
+            // homomorphic mapped types we leave primitive types alone. For 
example, when T is instantiated to a
             // union type A | undefined, we produce { [P in keyof A]: X } | 
undefined.
             var constraintType = getConstraintTypeFromMappedType(type);
             if (constraintType.flags & 262144 /* Index */) {
-                var typeParameter_1 = constraintType.type;
-                var mappedTypeParameter = mapper(typeParameter_1);
-                if (typeParameter_1 !== mappedTypeParameter) {
-                    return mapType(mappedTypeParameter, function (t) {
+                var typeVariable_1 = constraintType.type;
+                var mappedTypeVariable = instantiateType(typeVariable_1, 
mapper);
+                if (typeVariable_1 !== mappedTypeVariable) {
+                    return mapType(mappedTypeVariable, function (t) {
                         if (isMappableType(t)) {
-                            var replacementMapper = 
createUnaryTypeMapper(typeParameter_1, t);
+                            var replacementMapper = 
createUnaryTypeMapper(typeVariable_1, t);
                             var combinedMapper = mapper.mappedTypes && 
mapper.mappedTypes.length === 1 ? replacementMapper : 
combineTypeMappers(replacementMapper, mapper);
                             combinedMapper.mappedTypes = mapper.mappedTypes;
                             return instantiateMappedObjectType(type, 
combinedMapper);
@@ -30102,7 +30353,7 @@ var ts;
             // Starting with the parent of the symbol's declaration, check if 
the mapper maps any of
             // the type parameters introduced by enclosing declarations. We 
just pick the first
             // declaration since multiple declarations will all have the same 
parent anyway.
-            var node = symbol.declarations[0].parent;
+            var node = symbol.declarations[0];
             while (node) {
                 switch (node.kind) {
                     case 158 /* FunctionType */:
@@ -30138,6 +30389,15 @@ var ts;
                             }
                         }
                         break;
+                    case 274 /* JSDocFunctionType */:
+                        var func = node;
+                        for (var _b = 0, _c = func.parameters; _b < _c.length; 
_b++) {
+                            var p = _c[_b];
+                            if (ts.contains(mappedTypes, getTypeOfNode(p))) {
+                                return true;
+                            }
+                        }
+                        break;
                     case 230 /* ModuleDeclaration */:
                     case 261 /* SourceFile */:
                         return false;
@@ -30623,6 +30883,25 @@ var ts;
                     
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
 targetType, sourceType);
                 }
             }
+            function 
isUnionOrIntersectionTypeWithoutNullableConstituents(type) {
+                if (!(type.flags & 196608 /* UnionOrIntersection */)) {
+                    return false;
+                }
+                // at this point we know that this is union or intersection 
type possibly with nullable constituents.
+                // check if we still will have compound type if we ignore 
nullable components.
+                var seenNonNullable = false;
+                for (var _i = 0, _a = type.types; _i < _a.length; _i++) {
+                    var t = _a[_i];
+                    if (t.flags & 6144 /* Nullable */) {
+                        continue;
+                    }
+                    if (seenNonNullable) {
+                        return true;
+                    }
+                    seenNonNullable = true;
+                }
+                return false;
+            }
             // Compare two types and return
             // Ternary.True if they are related with no assumptions,
             // Ternary.Maybe if they are related with assumptions of other 
relationships, or
@@ -30654,7 +30933,7 @@ var ts;
                     // and intersection types are further deconstructed on the 
target side, we don't want to
                     // make the check again (as it might fail for a partial 
target type). Therefore we obtain
                     // the regular source type and proceed with that.
-                    if (target.flags & 196608 /* UnionOrIntersection */) {
+                    if 
(isUnionOrIntersectionTypeWithoutNullableConstituents(target)) {
                         source = getRegularTypeOfObjectLiteral(source);
                     }
                 }
@@ -30701,7 +30980,7 @@ var ts;
                         return result;
                     }
                 }
-                if (target.flags & 16384 /* TypeParameter */) {
+                else if (target.flags & 16384 /* TypeParameter */) {
                     // A source type { [P in keyof T]: X } is related to a 
target type T if X is related to T[P].
                     if (getObjectFlags(source) & 32 /* Mapped */ && 
getConstraintTypeFromMappedType(source) === getIndexType(target)) {
                         if (!source.declaration.questionToken) {
@@ -30730,12 +31009,14 @@ var ts;
                             return result;
                         }
                     }
-                    // Given a type parameter T with a constraint C, a type S 
is assignable to
+                    // Given a type variable T with a constraint C, a type S 
is assignable to
                     // keyof T if S is assignable to keyof C.
-                    var constraint = getConstraintOfTypeParameter(target.type);
-                    if (constraint) {
-                        if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
-                            return result;
+                    if (target.type.flags & 540672 /* TypeVariable */) {
+                        var constraint = 
getConstraintOfTypeVariable(target.type);
+                        if (constraint) {
+                            if (result = isRelatedTo(source, 
getIndexType(constraint), reportErrors)) {
+                                return result;
+                            }
                         }
                     }
                 }
@@ -30747,6 +31028,14 @@ var ts;
                             return result;
                         }
                     }
+                    // A type S is related to a type T[K] if S is related to 
A[K], where K is string-like and
+                    // A is the apparent type of S.
+                    if (target.constraint) {
+                        if (result = isRelatedTo(source, target.constraint, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
                 }
                 if (source.flags & 16384 /* TypeParameter */) {
                     // A source type T is related to a target type { [P in 
keyof T]: X } if T[P] is related to X.
@@ -30754,6 +31043,7 @@ var ts;
                         var indexedAccessType = getIndexedAccessType(source, 
getTypeParameterFromMappedType(target));
                         var templateType = 
getTemplateTypeFromMappedType(target);
                         if (result = isRelatedTo(indexedAccessType, 
templateType, reportErrors)) {
+                            errorInfo = saveErrorInfo;
                             return result;
                         }
                     }
@@ -30772,6 +31062,16 @@ var ts;
                         }
                     }
                 }
+                else if (source.flags & 524288 /* IndexedAccess */) {
+                    // A type S[K] is related to a type T if A[K] is related 
to T, where K is string-like and
+                    // A is the apparent type of S.
+                    if (source.constraint) {
+                        if (result = isRelatedTo(source.constraint, target, 
reportErrors)) {
+                            errorInfo = saveErrorInfo;
+                            return result;
+                        }
+                    }
+                }
                 else {
                     if (getObjectFlags(source) & 4 /* Reference */ && 
getObjectFlags(target) & 4 /* Reference */ && source.target === target.target) {
                         // We have type references to same target type, see if 
relationship holds for all type arguments
@@ -31069,8 +31369,11 @@ var ts;
                         }
                     }
                 }
-                else if (relation !== identityRelation && 
isEmptyObjectType(resolveStructuredTypeMembers(target))) {
-                    return -1 /* True */;
+                else if (relation !== identityRelation) {
+                    var resolved = resolveStructuredTypeMembers(target);
+                    if (isEmptyObjectType(resolved) || 
resolved.stringIndexInfo && resolved.stringIndexInfo.type.flags & 1 /* Any */) {
+                        return -1 /* True */;
+                    }
                 }
                 return 0 /* False */;
             }
@@ -31841,25 +32144,73 @@ var ts;
         // Return true if the given type could possibly reference a type 
parameter for which
         // we perform type inference (i.e. a type parameter of a generic 
function). We cache
         // results for union and intersection types for performance reasons.
-        function couldContainTypeParameters(type) {
+        function couldContainTypeVariables(type) {
             var objectFlags = getObjectFlags(type);
-            return !!(type.flags & 16384 /* TypeParameter */ ||
-                objectFlags & 4 /* Reference */ && 
ts.forEach(type.typeArguments, couldContainTypeParameters) ||
+            return !!(type.flags & 540672 /* TypeVariable */ ||
+                objectFlags & 4 /* Reference */ && 
ts.forEach(type.typeArguments, couldContainTypeVariables) ||
                 objectFlags & 16 /* Anonymous */ && type.symbol && 
type.symbol.flags & (8192 /* Method */ | 2048 /* TypeLiteral */ | 32 /* Class 
*/) ||
                 objectFlags & 32 /* Mapped */ ||
-                type.flags & 196608 /* UnionOrIntersection */ && 
couldUnionOrIntersectionContainTypeParameters(type));
+                type.flags & 196608 /* UnionOrIntersection */ && 
couldUnionOrIntersectionContainTypeVariables(type));
         }
-        function couldUnionOrIntersectionContainTypeParameters(type) {
-            if (type.couldContainTypeParameters === undefined) {
-                type.couldContainTypeParameters = ts.forEach(type.types, 
couldContainTypeParameters);
+        function couldUnionOrIntersectionContainTypeVariables(type) {
+            if (type.couldContainTypeVariables === undefined) {
+                type.couldContainTypeVariables = ts.forEach(type.types, 
couldContainTypeVariables);
             }
-            return type.couldContainTypeParameters;
+            return type.couldContainTypeVariables;
         }
         function isTypeParameterAtTopLevel(type, typeParameter) {
             return type === typeParameter || type.flags & 196608 /* 
UnionOrIntersection */ && ts.forEach(type.types, function (t) { return 
isTypeParameterAtTopLevel(t, typeParameter); });
         }
-        function inferTypes(context, originalSource, originalTarget) {
-            var typeParameters = context.signature.typeParameters;
+        // Infer a suitable input type for a homomorphic mapped type { [P in 
keyof T]: X }. We construct
+        // an object type with the same set of properties as the source type, 
where the type of each
+        // property is computed by inferring from the source property type to 
X for the type
+        // variable T[P] (i.e. we treat the type T[P] as the type variable 
we're inferring for).
+        function inferTypeForHomomorphicMappedType(source, target) {
+            var properties = getPropertiesOfType(source);
+            var indexInfo = getIndexInfoOfType(source, 0 /* String */);
+            if (properties.length === 0 && !indexInfo) {
+                return undefined;
+            }
+            var typeVariable = 
getIndexedAccessType(getConstraintTypeFromMappedType(target).type, 
getTypeParameterFromMappedType(target));
+            var typeVariableArray = [typeVariable];
+            var typeInferences = createTypeInferencesObject();
+            var typeInferencesArray = [typeInferences];
+            var templateType = getTemplateTypeFromMappedType(target);
+            var readonlyMask = target.declaration.readonlyToken ? false : true;
+            var optionalMask = target.declaration.questionToken ? 0 : 
536870912 /* Optional */;
+            var members = createSymbolTable(properties);
+            for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
+                var prop = properties_4[_i];
+                var inferredPropType = inferTargetType(getTypeOfSymbol(prop));
+                if (!inferredPropType) {
+                    return undefined;
+                }
+                var inferredProp = createSymbol(4 /* Property */ | 67108864 /* 
Transient */ | prop.flags & optionalMask, prop.name);
+                inferredProp.declarations = prop.declarations;
+                inferredProp.type = inferredPropType;
+                inferredProp.isReadonly = readonlyMask && 
isReadonlySymbol(prop);
+                members[prop.name] = inferredProp;
+            }
+            if (indexInfo) {
+                var inferredIndexType = inferTargetType(indexInfo.type);
+                if (!inferredIndexType) {
+                    return undefined;
+                }
+                indexInfo = createIndexInfo(inferredIndexType, readonlyMask && 
indexInfo.isReadonly);
+            }
+            return createAnonymousType(undefined, members, emptyArray, 
emptyArray, indexInfo, undefined);
+            function inferTargetType(sourceType) {
+                typeInferences.primary = undefined;
+                typeInferences.secondary = undefined;
+                inferTypes(typeVariableArray, typeInferencesArray, sourceType, 
templateType);
+                var inferences = typeInferences.primary || 
typeInferences.secondary;
+                return inferences && getUnionType(inferences, 
/*subtypeReduction*/ true);
+            }
+        }
+        function inferTypesWithContext(context, originalSource, 
originalTarget) {
+            inferTypes(context.signature.typeParameters, context.inferences, 
originalSource, originalTarget);
+        }
+        function inferTypes(typeVariables, typeInferences, originalSource, 
originalTarget) {
             var sourceStack;
             var targetStack;
             var depth = 0;
@@ -31875,7 +32226,7 @@ var ts;
                 return false;
             }
             function inferFromTypes(source, target) {
-                if (!couldContainTypeParameters(target)) {
+                if (!couldContainTypeVariables(target)) {
                     return;
                 }
                 if (source.aliasSymbol && source.aliasTypeArguments && 
source.aliasSymbol === target.aliasSymbol) {
@@ -31927,7 +32278,7 @@ var ts;
                         target = removeTypesFromUnionOrIntersection(target, 
matchingTypes);
                     }
                 }
-                if (target.flags & 16384 /* TypeParameter */) {
+                if (target.flags & 540672 /* TypeVariable */) {
                     // If target is a type parameter, make an inference, 
unless the source type contains
                     // the anyFunctionType (the wildcard type that's used to 
avoid contextually typing functions).
                     // Because the anyFunctionType is internal, it should not 
be exposed to the user by adding
@@ -31937,9 +32288,9 @@ var ts;
                     if (source.flags & 8388608 /* ContainsAnyFunctionType */) {
                         return;
                     }
-                    for (var i = 0; i < typeParameters.length; i++) {
-                        if (target === typeParameters[i]) {
-                            var inferences = context.inferences[i];
+                    for (var i = 0; i < typeVariables.length; i++) {
+                        if (target === typeVariables[i]) {
+                            var inferences = typeInferences[i];
                             if (!inferences.isFixed) {
                                 // Any inferences that are made to a type 
parameter in a union type are inferior
                                 // to inferences made to a flat (non-union) 
type. This is because if we infer to
@@ -31953,7 +32304,7 @@ var ts;
                                 if (!ts.contains(candidates, source)) {
                                     candidates.push(source);
                                 }
-                                if (!isTypeParameterAtTopLevel(originalTarget, 
target)) {
+                                if (target.flags & 16384 /* TypeParameter */ 
&& !isTypeParameterAtTopLevel(originalTarget, target)) {
                                     inferences.topLevel = false;
                                 }
                             }
@@ -31972,25 +32323,25 @@ var ts;
                 }
                 else if (target.flags & 196608 /* UnionOrIntersection */) {
                     var targetTypes = target.types;
-                    var typeParameterCount = 0;
-                    var typeParameter = void 0;
-                    // First infer to each type in union or intersection that 
isn't a type parameter
+                    var typeVariableCount = 0;
+                    var typeVariable = void 0;
+                    // First infer to each type in union or intersection that 
isn't a type variable
                     for (var _d = 0, targetTypes_2 = targetTypes; _d < 
targetTypes_2.length; _d++) {
                         var t = targetTypes_2[_d];
-                        if (t.flags & 16384 /* TypeParameter */ && 
ts.contains(typeParameters, t)) {
-                            typeParameter = t;
-                            typeParameterCount++;
+                        if (t.flags & 540672 /* TypeVariable */ && 
ts.contains(typeVariables, t)) {
+                            typeVariable = t;
+                            typeVariableCount++;
                         }
                         else {
                             inferFromTypes(source, t);
                         }
                     }
-                    // Next, if target containings a single naked type 
parameter, make a secondary inference to that type
-                    // parameter. This gives meaningful results for union 
types in co-variant positions and intersection
+                    // Next, if target containings a single naked type 
variable, make a secondary inference to that type
+                    // variable. This gives meaningful results for union types 
in co-variant positions and intersection
                     // types in contra-variant positions (such as callback 
parameters).
-                    if (typeParameterCount === 1) {
+                    if (typeVariableCount === 1) {
                         inferiority++;
-                        inferFromTypes(source, typeParameter);
+                        inferFromTypes(source, typeVariable);
                         inferiority--;
                     }
                 }
@@ -32031,12 +32382,25 @@ var ts;
             function inferFromObjectTypes(source, target) {
                 if (getObjectFlags(target) & 32 /* Mapped */) {
                     var constraintType = 
getConstraintTypeFromMappedType(target);
-                    if (getObjectFlags(source) & 32 /* Mapped */) {
-                        
inferFromTypes(getConstraintTypeFromMappedType(source), constraintType);
-                        inferFromTypes(getTemplateTypeFromMappedType(source), 
getTemplateTypeFromMappedType(target));
+                    if (constraintType.flags & 262144 /* Index */) {
+                        // We're inferring from some source type S to a 
homomorphic mapped type { [P in keyof T]: X },
+                        // where T is a type variable. Use 
inferTypeForHomomorphicMappedType to infer a suitable source
+                        // type and then make a secondary inference from that 
type to T. We make a secondary inference
+                        // such that direct inferences to T get priority over 
inferences to Partial<T>, for example.
+                        var index = ts.indexOf(typeVariables, 
constraintType.type);
+                        if (index >= 0 && !typeInferences[index].isFixed) {
+                            var inferredType = 
inferTypeForHomomorphicMappedType(source, target);
+                            if (inferredType) {
+                                inferiority++;
+                                inferFromTypes(inferredType, 
typeVariables[index]);
+                                inferiority--;
+                            }
+                        }
                         return;
                     }
                     if (constraintType.flags & 16384 /* TypeParameter */) {
+                        // We're inferring from some source type S to a mapped 
type { [P in T]: X }, where T is a type
+                        // parameter. Infer from 'keyof S' to T and infer from 
a union of each property type in S to X.
                         inferFromTypes(getIndexType(source), constraintType);
                         
inferFromTypes(getUnionType(ts.map(getPropertiesOfType(source), 
getTypeOfSymbol)), getTemplateTypeFromMappedType(target));
                         return;
@@ -32049,8 +32413,8 @@ var ts;
             }
             function inferFromProperties(source, target) {
                 var properties = getPropertiesOfObjectType(target);
-                for (var _i = 0, properties_4 = properties; _i < 
properties_4.length; _i++) {
-                    var targetProp = properties_4[_i];
+                for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
+                    var targetProp = properties_5[_i];
                     var sourceProp = getPropertyOfObjectType(source, 
targetProp.name);
                     if (sourceProp) {
                         inferFromTypes(getTypeOfSymbol(sourceProp), 
getTypeOfSymbol(targetProp));
@@ -33359,7 +33723,7 @@ var ts;
                         error(node, 
ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);
                     }
                 }
-                if (node.flags & 524288 /* AwaitContext */) {
+                if (node.flags & 16384 /* AwaitContext */) {
                     getNodeLinks(container).flags |= 8192 /* CaptureArguments 
*/;
                 }
                 return getTypeOfSymbol(symbol);
@@ -33589,30 +33953,33 @@ var ts;
             var baseConstructorType = 
getBaseConstructorTypeOfClass(classInstanceType);
             return baseConstructorType === nullWideningType;
         }
+        function checkThisBeforeSuper(node, container, diagnosticMessage) {
+            var containingClassDecl = container.parent;
+            var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
+            // If a containing class does not have extends clause or the class 
extends null
+            // skip checking whether super statement is called before "this" 
accessing.
+            if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
+                var superCall = getSuperCallInConstructor(container);
+                // We should give an error in the following cases:
+                //      - No super-call
+                //      - "this" is accessing before super-call.
+                //          i.e super(this)
+                //              this.x; super();
+                // We want to make sure that super-call is done before 
accessing "this" so that
+                // "this" is not accessed as a parameter of the super-call.
+                if (!superCall || superCall.end > node.pos) {
+                    // In ES6, super inside constructor of class-declaration 
has to precede "this" accessing
+                    error(node, diagnosticMessage);
+                }
+            }
+        }
         function checkThisExpression(node) {
             // Stop at the first arrow function so that we can
             // tell whether 'this' needs to be captured.
             var container = ts.getThisContainer(node, /* includeArrowFunctions 
*/ true);
             var needToCaptureLexicalThis = false;
             if (container.kind === 150 /* Constructor */) {
-                var containingClassDecl = container.parent;
-                var baseTypeNode = 
ts.getClassExtendsHeritageClauseElement(containingClassDecl);
-                // If a containing class does not have extends clause or the 
class extends null
-                // skip checking whether super statement is called before 
"this" accessing.
-                if (baseTypeNode && 
!classDeclarationExtendsNull(containingClassDecl)) {
-                    var superCall = getSuperCallInConstructor(container);
-                    // We should give an error in the following cases:
-                    //      - No super-call
-                    //      - "this" is accessing before super-call.
-                    //          i.e super(this)
-                    //              this.x; super();
-                    // We want to make sure that super-call is done before 
accessing "this" so that
-                    // "this" is not accessed as a parameter of the super-call.
-                    if (!superCall || superCall.end > node.pos) {
-                        // In ES6, super inside constructor of 
class-declaration has to precede "this" accessing
-                        error(node, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
-                    }
-                }
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);
             }
             // Now skip arrow functions to get the "real" owner of 'this'.
             if (container.kind === 185 /* ArrowFunction */) {
@@ -33741,6 +34108,9 @@ var ts;
                 }
                 return unknownType;
             }
+            if (!isCallExpression && container.kind === 150 /* Constructor */) 
{
+                checkThisBeforeSuper(node, container, 
ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);
+            }
             if ((ts.getModifierFlags(container) & 32 /* Static */) || 
isCallExpression) {
                 nodeCheckFlag = 512 /* SuperStatic */;
             }
@@ -34349,13 +34719,7 @@ var ts;
             return mapper && mapper.context;
         }
         function checkSpreadExpression(node, contextualMapper) {
-            // It is usually not safe to call checkExpressionCached if we can 
be contextually typing.
-            // You can tell that we are contextually typing because of the 
contextualMapper parameter.
-            // While it is true that a spread element can have a contextual 
type, it does not do anything
-            // with this type. It is neither affected by it, nor does it 
propagate it to its operand.
-            // So the fact that contextualMapper is passed is not important, 
because the operand of a spread
-            // element is not contextually typed.
-            var arrayOrIterableType = checkExpressionCached(node.expression, 
contextualMapper);
+            var arrayOrIterableType = checkExpression(node.expression, 
contextualMapper);
             return checkIteratedTypeOrElementType(arrayOrIterableType, 
node.expression, /*allowStringInput*/ false);
         }
         function hasDefaultValue(node) {
@@ -34549,7 +34913,7 @@ var ts;
                         if (impliedProp) {
                             prop.flags |= impliedProp.flags & 536870912 /* 
Optional */;
                         }
-                        else if 
(!compilerOptions.suppressExcessPropertyErrors) {
+                        else if (!compilerOptions.suppressExcessPropertyErrors 
&& !getIndexInfoOfType(contextualType, 0 /* String */)) {
                             error(memberDecl.name, 
ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
 symbolToString(member), typeToString(contextualType));
                         }
                     }
@@ -34563,6 +34927,9 @@ var ts;
                     member = prop;
                 }
                 else if (memberDecl.kind === 259 /* SpreadAssignment */) {
+                    if (languageVersion < 5 /* ESNext */) {
+                        checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
+                    }
                     if (propertiesArray.length > 0) {
                         spread = getSpreadType(spread, 
createObjectLiteralType(), /*isFromObjectLiteral*/ true);
                         propertiesArray = [];
@@ -34572,7 +34939,7 @@ var ts;
                         typeFlags = 0;
                     }
                     var type = checkExpression(memberDecl.expression);
-                    if (!(type.flags & (32768 /* Object */ | 1 /* Any */))) {
+                    if (!isValidSpreadType(type)) {
                         error(memberDecl, 
ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);
                         return unknownType;
                     }
@@ -34620,8 +34987,11 @@ var ts;
                 if (propertiesArray.length > 0) {
                     spread = getSpreadType(spread, createObjectLiteralType(), 
/*isFromObjectLiteral*/ true);
                 }
-                spread.flags |= propagatedFlags;
-                spread.symbol = node.symbol;
+                if (spread.flags & 32768 /* Object */) {
+                    // only set the symbol and flags if this is a (fresh) 
object type
+                    spread.flags |= propagatedFlags;
+                    spread.symbol = node.symbol;
+                }
                 return spread;
             }
             return createObjectLiteralType();
@@ -34644,6 +35014,11 @@ var ts;
                 return result;
             }
         }
+        function isValidSpreadType(type) {
+            return !!(type.flags & (1 /* Any */ | 4096 /* Null */ | 2048 /* 
Undefined */) ||
+                type.flags & 32768 /* Object */ && !isGenericMappedType(type) 
||
+                type.flags & 196608 /* UnionOrIntersection */ && 
!ts.forEach(type.types, function (t) { return !isValidSpreadType(t); }));
+        }
         function checkJsxSelfClosingElement(node) {
             checkJsxOpeningLikeElement(node);
             return jsxElementType || anyType;
@@ -34733,6 +35108,9 @@ var ts;
             return exprType;
         }
         function checkJsxSpreadAttribute(node, elementAttributesType, 
nameTable) {
+            if (compilerOptions.jsx === 2 /* React */) {
+                checkExternalEmitHelpers(node, 2 /* Assign */);
+            }
             var type = checkExpression(node.expression);
             var props = getPropertiesOfType(type);
             for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
@@ -35408,13 +35786,13 @@ var ts;
             for (var _i = 0, signatures_2 = signatures; _i < 
signatures_2.length; _i++) {
                 var signature = signatures_2[_i];
                 var symbol = signature.declaration && 
getSymbolOfNode(signature.declaration);
-                var parent_8 = signature.declaration && 
signature.declaration.parent;
+                var parent_9 = signature.declaration && 
signature.declaration.parent;
                 if (!lastSymbol || symbol === lastSymbol) {
-                    if (lastParent && parent_8 === lastParent) {
+                    if (lastParent && parent_9 === lastParent) {
                         index++;
                     }
                     else {
-                        lastParent = parent_8;
+                        lastParent = parent_9;
                         index = cutoffIndex;
                     }
                 }
@@ -35422,7 +35800,7 @@ var ts;
                     // current declaration belongs to a different symbol
                     // set cutoffIndex so re-orderings in the future won't 
change result set from 0 to cutoffIndex
                     index = cutoffIndex = result.length;
-                    lastParent = parent_8;
+                    lastParent = parent_9;
                 }
                 lastSymbol = symbol;
                 // specialized signatures always need to be placed before 
non-specialized signatures regardless
@@ -35534,7 +35912,7 @@ var ts;
             var context = createInferenceContext(signature, 
/*inferUnionTypes*/ true);
             forEachMatchingParameterType(contextualSignature, signature, 
function (source, target) {
                 // Type parameters from outer context referenced by source 
type are fixed by instantiation of the source type
-                inferTypes(context, instantiateType(source, contextualMapper), 
target);
+                inferTypesWithContext(context, instantiateType(source, 
contextualMapper), target);
             });
             return getSignatureInstantiation(signature, 
getInferredTypes(context));
         }
@@ -35565,7 +35943,7 @@ var ts;
             if (thisType) {
                 var thisArgumentNode = getThisArgumentOfCall(node);
                 var thisArgumentType = thisArgumentNode ? 
checkExpression(thisArgumentNode) : voidType;
-                inferTypes(context, thisArgumentType, thisType);
+                inferTypesWithContext(context, thisArgumentType, thisType);
             }
             // We perform two passes over the arguments. In the first pass we 
infer from all arguments, but use
             // wildcards for all context sensitive function expressions.
@@ -35584,7 +35962,7 @@ var ts;
                         var mapper = excludeArgument && excludeArgument[i] !== 
undefined ? identityMapper : inferenceMapper;
                         argType = checkExpressionWithContextualType(arg, 
paramType, mapper);
                     }
-                    inferTypes(context, argType, paramType);
+                    inferTypesWithContext(context, argType, paramType);
                 }
             }
             // In the second pass we visit only context sensitive arguments, 
and only those that aren't excluded, this
@@ -35598,7 +35976,7 @@ var ts;
                     if (excludeArgument[i] === false) {
                         var arg = args[i];
                         var paramType = getTypeAtPosition(signature, i);
-                        inferTypes(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
+                        inferTypesWithContext(context, 
checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType);
                     }
                 }
             }
@@ -36329,12 +36707,13 @@ var ts;
                 if (containingClass) {
                     var containingType = getTypeOfNode(containingClass);
                     var baseTypes = getBaseTypes(containingType);
-                    if (baseTypes.length) {
+                    while (baseTypes.length) {
                         var baseType = baseTypes[0];
                         if (modifiers & 16 /* Protected */ &&
                             baseType.symbol === declaration.parent.symbol) {
                             return true;
                         }
+                        baseTypes = getBaseTypes(baseType);
                     }
                 }
                 if (modifiers & 8 /* Private */) {
@@ -36559,7 +36938,7 @@ var ts;
                 for (var i = 0; i < len; i++) {
                     var declaration = signature.parameters[i].valueDeclaration;
                     if (declaration.type) {
-                        inferTypes(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
+                        inferTypesWithContext(mapper.context, 
getTypeFromTypeNode(declaration.type), getTypeAtPosition(context, i));
                     }
                 }
             }
@@ -36644,7 +37023,7 @@ var ts;
                 // T in the second overload so that we do not infer Base as a 
candidate for T
                 // (inferring Base would make type argument inference 
inconsistent between the two
                 // overloads).
-                inferTypes(mapper.context, links.type, 
instantiateType(contextualType, mapper));
+                inferTypesWithContext(mapper.context, links.type, 
instantiateType(contextualType, mapper));
             }
         }
         function getReturnTypeFromJSDocComment(func) {
@@ -36762,7 +37141,7 @@ var ts;
             if (!switchTypes.length) {
                 return false;
             }
-            return eachTypeContainedIn(type, switchTypes);
+            return eachTypeContainedIn(mapType(type, 
getRegularTypeOfLiteralType), switchTypes);
         }
         function functionHasImplicitReturn(func) {
             if (!(func.flags & 128 /* HasImplicitReturn */)) {
@@ -37030,7 +37409,7 @@ var ts;
         function checkAwaitExpression(node) {
             // Grammar checking
             if (produceDiagnostics) {
-                if (!(node.flags & 524288 /* AwaitContext */)) {
+                if (!(node.flags & 16384 /* AwaitContext */)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.await_expression_is_only_allowed_within_an_async_function);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -37164,15 +37543,15 @@ var ts;
             if (!(isTypeComparableTo(leftType, stringType) || 
isTypeOfKind(leftType, 340 /* NumberLike */ | 512 /* ESSymbol */))) {
                 error(left, 
ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);
             }
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 16384 /* TypeParameter */ | 524288 /* IndexedAccess */)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 540672 /* TypeVariable */)) {
                 error(right, 
ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             return booleanType;
         }
         function checkObjectLiteralAssignment(node, sourceType) {
             var properties = node.properties;
-            for (var _i = 0, properties_5 = properties; _i < 
properties_5.length; _i++) {
-                var p = properties_5[_i];
+            for (var _i = 0, properties_6 = properties; _i < 
properties_6.length; _i++) {
+                var p = properties_6[_i];
                 checkObjectLiteralDestructuringPropertyAssignment(sourceType, 
p, properties);
             }
             return sourceType;
@@ -37207,6 +37586,9 @@ var ts;
                 }
             }
             else if (property.kind === 259 /* SpreadAssignment */) {
+                if (languageVersion < 5 /* ESNext */) {
+                    checkExternalEmitHelpers(property, 4 /* Rest */);
+                }
                 var nonRestNames = [];
                 if (allProperties) {
                     for (var i = 0; i < allProperties.length - 1; i++) {
@@ -37603,7 +37985,7 @@ var ts;
         function checkYieldExpression(node) {
             // Grammar checking
             if (produceDiagnostics) {
-                if (!(node.flags & 131072 /* YieldContext */) || 
isYieldExpressionInClass(node)) {
+                if (!(node.flags & 4096 /* YieldContext */) || 
isYieldExpressionInClass(node)) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);
                 }
                 if (isInParameterInitializerBeforeContainingFunction(node)) {
@@ -37702,8 +38084,8 @@ var ts;
         }
         function isLiteralContextualType(contextualType) {
             if (contextualType) {
-                if (contextualType.flags & 16384 /* TypeParameter */) {
-                    var apparentType = 
getApparentTypeOfTypeParameter(contextualType);
+                if (contextualType.flags & 540672 /* TypeVariable */) {
+                    var apparentType = 
getApparentTypeOfTypeVariable(contextualType);
                     // If the type parameter is constrained to the base 
primitive type we're checking for,
                     // consider this a literal context. For example, given a 
type parameter 'T extends string',
                     // this causes us to infer string literal types for T.
@@ -37997,9 +38379,9 @@ var ts;
                 case 158 /* FunctionType */:
                 case 149 /* MethodDeclaration */:
                 case 148 /* MethodSignature */:
-                    var parent_9 = node.parent;
-                    if (node === parent_9.type) {
-                        return parent_9;
+                    var parent_10 = node.parent;
+                    if (node === parent_10.type) {
+                        return parent_10;
                     }
             }
         }
@@ -38033,6 +38415,12 @@ var ts;
                 node.kind === 154 /* ConstructSignature */) {
                 checkGrammarFunctionLikeDeclaration(node);
             }
+            if (ts.isAsyncFunctionLike(node) && languageVersion < 4 /* ES2017 
*/) {
+                checkExternalEmitHelpers(node, 64 /* Awaiter */);
+                if (languageVersion < 2 /* ES2015 */) {
+                    checkExternalEmitHelpers(node, 128 /* Generator */);
+                }
+            }
             checkTypeParameters(node.typeParameters);
             ts.forEach(node.parameters, checkParameter);
             if (node.type) {
@@ -38438,7 +38826,7 @@ var ts;
             checkSourceElement(node.type);
             var type = getTypeFromMappedTypeNode(node);
             var constraintType = getConstraintTypeFromMappedType(type);
-            var keyType = constraintType.flags & 16384 /* TypeParameter */ ? 
getApparentTypeOfTypeParameter(constraintType) : constraintType;
+            var keyType = constraintType.flags & 540672 /* TypeVariable */ ? 
getApparentTypeOfTypeVariable(constraintType) : constraintType;
             checkTypeAssignableTo(keyType, stringType, 
node.typeParameter.constraint);
         }
         function isPrivateWithinAmbient(node) {
@@ -38778,7 +39166,7 @@ var ts;
             if (thenSignatures.length === 0) {
                 return undefined;
             }
-            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 131072 /* NEUndefined */);
+            var onfulfilledParameterType = 
getTypeWithFacts(getUnionType(ts.map(thenSignatures, 
getTypeOfFirstParameterOfSignature)), 524288 /* NEUndefinedOrNull */);
             if (isTypeAny(onfulfilledParameterType)) {
                 return undefined;
             }
@@ -39020,6 +39408,9 @@ var ts;
                 markAliasSymbolAsReferenced(rootSymbol);
             }
         }
+        function getParameterTypeNodeForDecoratorCheck(node) {
+            return node.dotDotDotToken ? 
ts.getRestParameterElementType(node.type) : node.type;
+        }
         /** Check the decorators of a node */
         function checkDecorators(node) {
             if (!node.decorators) {
@@ -39033,7 +39424,13 @@ var ts;
             if (!compilerOptions.experimentalDecorators) {
                 error(node, 
ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);
             }
+            var firstDecorator = node.decorators[0];
+            checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */);
+            if (node.kind === 144 /* Parameter */) {
+                checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
+            }
             if (compilerOptions.emitDecoratorMetadata) {
+                checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */);
                 // we only need to perform these checks if we are emitting 
serialized type metadata for the target of a decorator.
                 switch (node.kind) {
                     case 226 /* ClassDeclaration */:
@@ -39041,7 +39438,7 @@ var ts;
                         if (constructor) {
                             for (var _i = 0, _a = constructor.parameters; _i < 
_a.length; _i++) {
                                 var parameter = _a[_i];
-                                markTypeNodeAsReferenced(parameter.type);
+                                
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                             }
                         }
                         break;
@@ -39050,11 +39447,13 @@ var ts;
                     case 152 /* SetAccessor */:
                         for (var _b = 0, _c = node.parameters; _b < _c.length; 
_b++) {
                             var parameter = _c[_b];
-                            markTypeNodeAsReferenced(parameter.type);
+                            
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));
                         }
                         markTypeNodeAsReferenced(node.type);
                         break;
                     case 147 /* PropertyDeclaration */:
+                        
markTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));
+                        break;
                     case 144 /* Parameter */:
                         markTypeNodeAsReferenced(node.type);
                         break;
@@ -39184,7 +39583,7 @@ var ts;
         }
         function checkUnusedLocalsAndParameters(node) {
             if (node.parent.kind !== 227 /* InterfaceDeclaration */ && 
noUnusedIdentifiers && !ts.isInAmbientContext(node)) {
-                var _loop_3 = function (key) {
+                var _loop_2 = function (key) {
                     var local = node.locals[key];
                     if (!local.isReferenced) {
                         if (local.valueDeclaration && 
ts.getRootDeclaration(local.valueDeclaration).kind === 144 /* Parameter */) {
@@ -39202,10 +39601,17 @@ var ts;
                     }
                 };
                 for (var key in node.locals) {
-                    _loop_3(key);
+                    _loop_2(key);
                 }
             }
         }
+        function isRemovedPropertyFromObjectSpread(node) {
+            if (ts.isBindingElement(node) && 
ts.isObjectBindingPattern(node.parent)) {
+                var lastElement = ts.lastOrUndefined(node.parent.elements);
+                return lastElement !== node && !!lastElement.dotDotDotToken;
+            }
+            return false;
+        }
         function errorUnusedLocal(node, name) {
             if (isIdentifierThatStartsWithUnderScore(node)) {
                 var declaration = ts.getRootDeclaration(node.parent);
@@ -39215,7 +39621,9 @@ var ts;
                     return;
                 }
             }
-            error(node, ts.Diagnostics._0_is_declared_but_never_used, name);
+            if (!isRemovedPropertyFromObjectSpread(node.kind === 70 /* 
Identifier */ ? node.parent : node)) {
+                error(node, ts.Diagnostics._0_is_declared_but_never_used, 
name);
+            }
         }
         function parameterNameStartsWithUnderscore(parameterName) {
             return parameterName && 
isIdentifierThatStartsWithUnderScore(parameterName);
@@ -39272,7 +39680,7 @@ var ts;
                         for (var _i = 0, _a = local.declarations; _i < 
_a.length; _i++) {
                             var declaration = _a[_i];
                             if (!ts.isAmbientModule(declaration)) {
-                                error(declaration.name, 
ts.Diagnostics._0_is_declared_but_never_used, local.name);
+                                errorUnusedLocal(declaration.name, local.name);
                             }
                         }
                     }
@@ -39386,7 +39794,7 @@ var ts;
             }
         }
         function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {
-            if (!needCollisionCheckForIdentifier(node, name, "Promise")) {
+            if (languageVersion >= 4 /* ES2017 */ || 
!needCollisionCheckForIdentifier(node, name, "Promise")) {
                 return;
             }
             // Uninstantiated modules shouldnt do this check
@@ -39395,7 +39803,7 @@ var ts;
             }
             // In case of variable declaration, node.parent is variable 
statement so look at the variable statement's parent
             var parent = getDeclarationContainer(node);
-            if (parent.kind === 261 /* SourceFile */ && 
ts.isExternalOrCommonJsModule(parent) && parent.flags & 8192 /* 
HasAsyncFunctions */) {
+            if (parent.kind === 261 /* SourceFile */ && 
ts.isExternalOrCommonJsModule(parent) && parent.flags & 1024 /* 
HasAsyncFunctions */) {
                 // If the declaration happens to be in external module, report 
error that Promise is a reserved identifier.
                 error(name, 
ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
 ts.declarationNameToString(name), ts.declarationNameToString(name));
             }
@@ -39495,7 +39903,8 @@ var ts;
                     // so we need to do a bit of extra work to check if 
reference is legal
                     var enclosingContainer = 
ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);
                     if (enclosingContainer === func) {
-                        if (symbol.valueDeclaration.kind === 144 /* Parameter 
*/) {
+                        if (symbol.valueDeclaration.kind === 144 /* Parameter 
*/ ||
+                            symbol.valueDeclaration.kind === 174 /* 
BindingElement */) {
                             // it is ok to reference parameter in initializer 
if either
                             // - parameter is located strictly on the left of 
current parameter declaration
                             if (symbol.valueDeclaration.pos < node.pos) {
@@ -39543,18 +39952,21 @@ var ts;
                 }
             }
             if (node.kind === 174 /* BindingElement */) {
+                if (node.parent.kind === 172 /* ObjectBindingPattern */ && 
languageVersion < 5 /* ESNext */ && !ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(node, 4 /* Rest */);
+                }
                 // check computed properties inside property names of binding 
elements
                 if (node.propertyName && node.propertyName.kind === 142 /* 
ComputedPropertyName */) {
                     checkComputedPropertyName(node.propertyName);
                 }
                 // check private/protected variable access
-                var parent_10 = node.parent.parent;
-                var parentType = getTypeForBindingElementParent(parent_10);
+                var parent_11 = node.parent.parent;
+                var parentType = getTypeForBindingElementParent(parent_11);
                 var name_24 = node.propertyName || node.name;
                 var property = getPropertyOfType(parentType, 
ts.getTextOfPropertyName(name_24));
                 markPropertyAsReferenced(property);
-                if (parent_10.initializer && property && 
getParentOfSymbol(property)) {
-                    checkClassPropertyAccess(parent_10, parent_10.initializer, 
parentType, property);
+                if (parent_11.initializer && property && 
getParentOfSymbol(property)) {
+                    checkClassPropertyAccess(parent_11, parent_11.initializer, 
parentType, property);
                 }
             }
             // For a binding pattern, check contained binding elements
@@ -39779,7 +40191,7 @@ var ts;
             }
             // unknownType is returned i.e. if node.expression is identifier 
whose name cannot be resolved
             // in this case error about missing name is already reported - do 
not report extra one
-            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 16384 /* TypeParameter */ | 524288 /* IndexedAccess */)) {
+            if (!isTypeAnyOrAllConstituentTypesHaveKind(rightType, 32768 /* 
Object */ | 540672 /* TypeVariable */)) {
                 error(node.expression, 
ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter);
             }
             checkSourceElement(node.statement);
@@ -40081,7 +40493,7 @@ var ts;
         function checkWithStatement(node) {
             // Grammar checking for withStatement
             if (!checkGrammarStatementInAmbientContext(node)) {
-                if (node.flags & 524288 /* AwaitContext */) {
+                if (node.flags & 16384 /* AwaitContext */) {
                     grammarErrorOnFirstToken(node, 
ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);
                 }
             }
@@ -40352,6 +40764,9 @@ var ts;
             checkClassForDuplicateDeclarations(node);
             var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node);
             if (baseTypeNode) {
+                if (languageVersion < 2 /* ES2015 */ && 
!ts.isInAmbientContext(node)) {
+                    checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends 
*/);
+                }
                 var baseTypes = getBaseTypes(type);
                 if (baseTypes.length && produceDiagnostics) {
                     var baseType_1 = baseTypes[0];
@@ -40561,8 +40976,8 @@ var ts;
             for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; 
_i++) {
                 var base = baseTypes_2[_i];
                 var properties = 
getPropertiesOfObjectType(getTypeWithThisArgument(base, type.thisType));
-                for (var _a = 0, properties_6 = properties; _a < 
properties_6.length; _a++) {
-                    var prop = properties_6[_a];
+                for (var _a = 0, properties_7 = properties; _a < 
properties_7.length; _a++) {
+                    var prop = properties_7[_a];
                     var existing = seen[prop.name];
                     if (!existing) {
                         seen[prop.name] = { prop: prop, containingType: base };
@@ -42382,9 +42797,9 @@ var ts;
             if (startInDeclarationContainer) {
                 // When resolving the name of a declaration as a value, we 
need to start resolution
                 // at a point outside of the declaration.
-                var parent_11 = reference.parent;
-                if (ts.isDeclaration(parent_11) && reference === 
parent_11.name) {
-                    location = getDeclarationContainer(parent_11);
+                var parent_12 = reference.parent;
+                if (ts.isDeclaration(parent_12) && reference === 
parent_12.name) {
+                    location = getDeclarationContainer(parent_12);
                 }
             }
             return resolveName(location, reference.text, 107455 /* Value */ | 
1048576 /* ExportValue */ | 8388608 /* Alias */, /*nodeNotFoundMessage*/ 
undefined, /*nameArg*/ undefined);
@@ -42513,9 +42928,9 @@ var ts;
                 // external modules cannot define or contribute to type 
declaration files
                 var current = symbol;
                 while (true) {
-                    var parent_12 = getParentOfSymbol(current);
-                    if (parent_12) {
-                        current = parent_12;
+                    var parent_13 = getParentOfSymbol(current);
+                    if (parent_13) {
+                        current = parent_13;
                     }
                     else {
                         break;
@@ -42551,8 +42966,6 @@ var ts;
             }
             // Initialize global symbol table
             var augmentations;
-            var requestedExternalEmitHelpers = 0;
-            var firstFileRequestingExternalHelpers;
             for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) 
{
                 var file = _c[_b];
                 if (!ts.isExternalOrCommonJsModule(file)) {
@@ -42573,15 +42986,6 @@ var ts;
                         }
                     }
                 }
-                if ((compilerOptions.isolatedModules || 
ts.isExternalModule(file)) && !file.isDeclarationFile) {
-                    var fileRequestedExternalEmitHelpers = file.flags & 64512 
/* EmitHelperFlags */;
-                    if (fileRequestedExternalEmitHelpers) {
-                        requestedExternalEmitHelpers |= 
fileRequestedExternalEmitHelpers;
-                        if (firstFileRequestingExternalHelpers === undefined) {
-                            firstFileRequestingExternalHelpers = file;
-                        }
-                    }
-                }
             }
             if (augmentations) {
                 // merge module augmentations.
@@ -42640,50 +43044,46 @@ var ts;
             var symbol = getGlobalSymbol("ReadonlyArray", 793064 /* Type */, 
/*diagnostic*/ undefined);
             globalReadonlyArrayType = symbol && getTypeOfGlobalSymbol(symbol, 
/*arity*/ 1);
             anyReadonlyArrayType = globalReadonlyArrayType ? 
createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : 
anyArrayType;
-            // If we have specified that we are importing helpers, we should 
report global
-            // errors if we cannot resolve the helpers external module, or if 
it does not have
-            // the necessary helpers exported.
-            if (compilerOptions.importHelpers && 
firstFileRequestingExternalHelpers) {
-                // Find the first reference to the helpers module.
-                var helpersModule = 
resolveExternalModule(firstFileRequestingExternalHelpers, 
ts.externalHelpersModuleNameText, ts.Diagnostics.Cannot_find_module_0, 
-                /*errorNode*/ undefined);
-                // If we found the module, report errors if it does not have 
the necessary exports.
-                if (helpersModule) {
-                    var exports = helpersModule.exports;
-                    if (requestedExternalEmitHelpers & 1024 /* HasClassExtends 
*/ && languageVersion < 2 /* ES2015 */) {
-                        verifyHelperSymbol(exports, "__extends", 107455 /* 
Value */);
-                    }
-                    if (requestedExternalEmitHelpers & 16384 /* 
HasSpreadAttribute */ &&
-                        (languageVersion < 5 /* ESNext */ || 
compilerOptions.jsx === 2 /* React */)) {
-                        verifyHelperSymbol(exports, "__assign", 107455 /* 
Value */);
-                    }
-                    if (languageVersion < 5 /* ESNext */ && 
requestedExternalEmitHelpers & 32768 /* HasRestAttribute */) {
-                        verifyHelperSymbol(exports, "__rest", 107455 /* Value 
*/);
-                    }
-                    if (requestedExternalEmitHelpers & 2048 /* HasDecorators 
*/) {
-                        verifyHelperSymbol(exports, "__decorate", 107455 /* 
Value */);
-                        if (compilerOptions.emitDecoratorMetadata) {
-                            verifyHelperSymbol(exports, "__metadata", 107455 
/* Value */);
-                        }
-                    }
-                    if (requestedExternalEmitHelpers & 4096 /* 
HasParamDecorators */) {
-                        verifyHelperSymbol(exports, "__param", 107455 /* Value 
*/);
-                    }
-                    if (requestedExternalEmitHelpers & 8192 /* 
HasAsyncFunctions */) {
-                        verifyHelperSymbol(exports, "__awaiter", 107455 /* 
Value */);
-                        if (languageVersion < 2 /* ES2015 */) {
-                            verifyHelperSymbol(exports, "__generator", 107455 
/* Value */);
+        }
+        function checkExternalEmitHelpers(location, helpers) {
+            if ((requestedExternalEmitHelpers & helpers) !== helpers && 
compilerOptions.importHelpers) {
+                var sourceFile = ts.getSourceFileOfNode(location);
+                if (ts.isEffectiveExternalModule(sourceFile, compilerOptions)) 
{
+                    var helpersModule = resolveHelpersModule(sourceFile, 
location);
+                    if (helpersModule !== unknownSymbol) {
+                        var uncheckedHelpers = helpers & 
~requestedExternalEmitHelpers;
+                        for (var helper = 1 /* FirstEmitHelper */; helper <= 
128 /* LastEmitHelper */; helper <<= 1) {
+                            if (uncheckedHelpers & helper) {
+                                var name_27 = getHelperName(helper);
+                                var symbol = getSymbol(helpersModule.exports, 
ts.escapeIdentifier(name_27), 107455 /* Value */);
+                                if (!symbol) {
+                                    error(location, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,
 ts.externalHelpersModuleNameText, name_27);
+                                }
+                            }
                         }
                     }
+                    requestedExternalEmitHelpers |= helpers;
                 }
             }
         }
-        function verifyHelperSymbol(symbols, name, meaning) {
-            var symbol = getSymbol(symbols, ts.escapeIdentifier(name), 
meaning);
-            if (!symbol) {
-                error(/*location*/ undefined, 
ts.Diagnostics.Module_0_has_no_exported_member_1, 
ts.externalHelpersModuleNameText, name);
+        function getHelperName(helper) {
+            switch (helper) {
+                case 1 /* Extends */: return "__extends";
+                case 2 /* Assign */: return "__assign";
+                case 4 /* Rest */: return "__rest";
+                case 8 /* Decorate */: return "__decorate";
+                case 16 /* Metadata */: return "__metadata";
+                case 32 /* Param */: return "__param";
+                case 64 /* Awaiter */: return "__awaiter";
+                case 128 /* Generator */: return "__generator";
             }
         }
+        function resolveHelpersModule(node, errorNode) {
+            if (!externalHelpersModule) {
+                externalHelpersModule = resolveExternalModule(node, 
ts.externalHelpersModuleNameText, 
ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
 errorNode) || unknownSymbol;
+            }
+            return externalHelpersModule;
+        }
         function createInstantiatedPromiseLikeType() {
             var promiseLikeType = getGlobalPromiseLikeType();
             if (promiseLikeType !== emptyGenericType) {
@@ -43218,10 +43618,10 @@ var ts;
                 if (prop.kind === 259 /* SpreadAssignment */) {
                     continue;
                 }
-                var name_27 = prop.name;
-                if (name_27.kind === 142 /* ComputedPropertyName */) {
+                var name_28 = prop.name;
+                if (name_28.kind === 142 /* ComputedPropertyName */) {
                     // If the name is not a ComputedPropertyName, the grammar 
checking will skip it
-                    checkGrammarComputedPropertyName(name_27);
+                    checkGrammarComputedPropertyName(name_28);
                 }
                 if (prop.kind === 258 /* ShorthandPropertyAssignment */ && 
!inDestructuring && prop.objectAssignmentInitializer) {
                     // having objectAssignmentInitializer is only valid in 
ObjectAssignmentPattern
@@ -43249,8 +43649,8 @@ var ts;
                 if (prop.kind === 257 /* PropertyAssignment */ || prop.kind 
=== 258 /* ShorthandPropertyAssignment */) {
                     // Grammar checking for computedPropertyName and 
shorthandPropertyAssignment
                     checkGrammarForInvalidQuestionMark(prop.questionToken, 
ts.Diagnostics.An_object_member_cannot_be_declared_optional);
-                    if (name_27.kind === 8 /* NumericLiteral */) {
-                        checkGrammarNumericLiteral(name_27);
+                    if (name_28.kind === 8 /* NumericLiteral */) {
+                        checkGrammarNumericLiteral(name_28);
                     }
                     currentKind = Property;
                 }
@@ -43266,7 +43666,7 @@ var ts;
                 else {
                     ts.Debug.fail("Unexpected syntax kind:" + prop.kind);
                 }
-                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_27);
+                var effectiveName = 
ts.getPropertyNameForPropertyNameNode(name_28);
                 if (effectiveName === undefined) {
                     continue;
                 }
@@ -43276,18 +43676,18 @@ var ts;
                 else {
                     var existingKind = seen[effectiveName];
                     if (currentKind === Property && existingKind === Property) 
{
-                        grammarErrorOnNode(name_27, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_27));
+                        grammarErrorOnNode(name_28, 
ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name_28));
                     }
                     else if ((currentKind & GetOrSetAccessor) && (existingKind 
& GetOrSetAccessor)) {
                         if (existingKind !== GetOrSetAccessor && currentKind 
!== existingKind) {
                             seen[effectiveName] = currentKind | existingKind;
                         }
                         else {
-                            return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
+                            return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);
                         }
                     }
                     else {
-                        return grammarErrorOnNode(name_27, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
+                        return grammarErrorOnNode(name_28, 
ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);
                     }
                 }
             }
@@ -43300,12 +43700,12 @@ var ts;
                     continue;
                 }
                 var jsxAttr = attr;
-                var name_28 = jsxAttr.name;
-                if (!seen[name_28.text]) {
-                    seen[name_28.text] = true;
+                var name_29 = jsxAttr.name;
+                if (!seen[name_29.text]) {
+                    seen[name_29.text] = true;
                 }
                 else {
-                    return grammarErrorOnNode(name_28, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
+                    return grammarErrorOnNode(name_29, 
ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);
                 }
                 var initializer = jsxAttr.initializer;
                 if (initializer && initializer.kind === 252 /* JsxExpression 
*/ && !initializer.expression) {
@@ -43365,6 +43765,9 @@ var ts;
             else if (accessor.body === undefined && 
!(ts.getModifierFlags(accessor) & 128 /* Abstract */)) {
                 return grammarErrorAtPos(ts.getSourceFileOfNode(accessor), 
accessor.end - 1, ";".length, ts.Diagnostics._0_expected, "{");
             }
+            else if (accessor.body && ts.getModifierFlags(accessor) & 128 /* 
Abstract */) {
+                return grammarErrorOnNode(accessor, 
ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);
+            }
             else if (accessor.typeParameters) {
                 return grammarErrorOnNode(accessor.name, 
ts.Diagnostics.An_accessor_cannot_have_type_parameters);
             }
@@ -43725,8 +44128,19 @@ var ts;
         }
         function checkGrammarNumericLiteral(node) {
             // Grammar checking
-            if (node.isOctalLiteral && languageVersion >= 1 /* ES5 */) {
-                return grammarErrorOnNode(node, 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher);
+            if (node.isOctalLiteral) {
+                var diagnosticMessage = void 0;
+                if (languageVersion >= 1 /* ES5 */) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
+                }
+                else if (ts.isChildOfLiteralType(node)) {
+                    diagnosticMessage = 
ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
+                }
+                if (diagnosticMessage) {
+                    var withMinus = ts.isPrefixUnaryExpression(node.parent) && 
node.parent.operator === 37 /* MinusToken */;
+                    var literal = (withMinus ? "-" : "") + "0o" + node.text;
+                    return grammarErrorOnNode(withMinus ? node.parent : node, 
diagnosticMessage, literal);
+                }
             }
         }
         function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {
@@ -44629,7 +45043,7 @@ var ts;
     function aggregateTransformFlagsForSubtree(node) {
         // We do not transform ambient declarations or types, so there is no 
need to
         // recursively aggregate transform flags.
-        if (ts.hasModifier(node, 2 /* Ambient */) || ts.isTypeNode(node)) {
+        if (ts.hasModifier(node, 2 /* Ambient */) || (ts.isTypeNode(node) && 
node.kind !== 199 /* ExpressionWithTypeArguments */)) {
             return 0 /* None */;
         }
         // Aggregate the transform flags of each child.
@@ -44821,11 +45235,11 @@ var ts;
             }
         }
         for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < 
pendingDeclarations_1.length; _i++) {
-            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_29 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
-            var variable = ts.createVariableDeclaration(name_29, 
+            var _a = pendingDeclarations_1[_i], pendingExpressions_1 = 
_a.pendingExpressions, name_30 = _a.name, value = _a.value, location_2 = 
_a.location, original = _a.original;
+            var variable = ts.createVariableDeclaration(name_30, 
             /*type*/ undefined, pendingExpressions_1 ? 
ts.inlineExpressions(ts.append(pendingExpressions_1, value)) : value, 
location_2);
             variable.original = original;
-            if (ts.isIdentifier(name_29)) {
+            if (ts.isIdentifier(name_30)) {
                 ts.setEmitFlags(variable, 64 /* NoNestedSourceMaps */);
             }
             ts.aggregateTransformFlags(variable);
@@ -45029,8 +45443,8 @@ var ts;
             return ts.createElementAccess(value, argumentExpression);
         }
         else {
-            var name_30 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
-            return ts.createPropertyAccess(value, name_30);
+            var name_31 = 
ts.createIdentifier(ts.unescapeIdentifier(propertyName.text));
+            return ts.createPropertyAccess(value, name_31);
         }
     }
     /**
@@ -45083,7 +45497,7 @@ var ts;
     var restHelper = {
         name: "typescript:rest",
         scoped: false,
-        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (typeof Object.getOwnPropertySymbols === 
\"function\")\n                    for (var i = 0, p = 
Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n  
                      t[p[i]] = s[p[i]];\n     [...]
+        text: "\n            var __rest = (this && this.__rest) || function 
(s, e) {\n                var t = {};\n                for (var p in s) if 
(Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n              
      t[p] = s[p];\n                if (s != null && typeof 
Object.getOwnPropertySymbols === \"function\")\n                    for (var i 
= 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if 
(e.indexOf(p[i]) < 0)\n                        t[p[i]] = s [...]
     };
     /** Given value: o, propName: p, pattern: { a, b, ...p } from the original 
statement
      * `{ a, b, ...p } = o`, create `p = __rest(o, ["a", "b"]);`*/
@@ -45404,7 +45818,8 @@ var ts;
                 case 228 /* TypeAliasDeclaration */:
                 // TypeScript type-only declarations are elided.
                 case 147 /* PropertyDeclaration */:
-                // TypeScript property declarations are elided.
+                    // TypeScript property declarations are elided.
+                    return undefined;
                 case 150 /* Constructor */:
                     return visitConstructor(node);
                 case 227 /* InterfaceDeclaration */:
@@ -45989,8 +46404,8 @@ var ts;
          * @param receiver The receiver on which each property should be 
assigned.
          */
         function addInitializedPropertyStatements(statements, properties, 
receiver) {
-            for (var _i = 0, properties_7 = properties; _i < 
properties_7.length; _i++) {
-                var property = properties_7[_i];
+            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
+                var property = properties_8[_i];
                 var statement = 
ts.createStatement(transformInitializedProperty(property, receiver));
                 ts.setSourceMapRange(statement, 
ts.moveRangePastModifiers(property));
                 ts.setCommentRange(statement, property);
@@ -46005,8 +46420,8 @@ var ts;
          */
         function generateInitializedPropertyExpressions(properties, receiver) {
             var expressions = [];
-            for (var _i = 0, properties_8 = properties; _i < 
properties_8.length; _i++) {
-                var property = properties_8[_i];
+            for (var _i = 0, properties_9 = properties; _i < 
properties_9.length; _i++) {
+                var property = properties_9[_i];
                 var expression = transformInitializedProperty(property, 
receiver);
                 expression.startsOnNewLine = true;
                 ts.setSourceMapRange(expression, 
ts.moveRangePastModifiers(property));
@@ -46135,10 +46550,11 @@ var ts;
                 return undefined;
             }
             var _a = ts.getAllAccessorDeclarations(node.members, accessor), 
firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, 
setAccessor = _a.setAccessor;
-            if (accessor !== firstAccessor) {
+            var firstAccessorWithDecorators = firstAccessor.decorators ? 
firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : 
undefined;
+            if (!firstAccessorWithDecorators || accessor !== 
firstAccessorWithDecorators) {
                 return undefined;
             }
-            var decorators = firstAccessor.decorators || (secondAccessor && 
secondAccessor.decorators);
+            var decorators = firstAccessorWithDecorators.decorators;
             var parameters = getDecoratorsOfParameters(setAccessor);
             if (!decorators && !parameters) {
                 return undefined;
@@ -46179,14 +46595,14 @@ var ts;
          * @param node The declaration node.
          * @param allDecorators An object containing all of the decorators for 
the declaration.
          */
-        function transformAllDecoratorsOfDeclaration(node, allDecorators) {
+        function transformAllDecoratorsOfDeclaration(node, container, 
allDecorators) {
             if (!allDecorators) {
                 return undefined;
             }
             var decoratorExpressions = [];
             ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, 
transformDecorator));
             ts.addRange(decoratorExpressions, 
ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));
-            addTypeMetadata(node, decoratorExpressions);
+            addTypeMetadata(node, container, decoratorExpressions);
             return decoratorExpressions;
         }
         /**
@@ -46233,7 +46649,7 @@ var ts;
          */
         function generateClassElementDecorationExpression(node, member) {
             var allDecorators = getAllDecoratorsOfClassElement(node, member);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(member, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -46296,7 +46712,7 @@ var ts;
          */
         function generateConstructorDecorationExpression(node) {
             var allDecorators = getAllDecoratorsOfConstructor(node);
-            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, allDecorators);
+            var decoratorExpressions = 
transformAllDecoratorsOfDeclaration(node, node, allDecorators);
             if (!decoratorExpressions) {
                 return undefined;
             }
@@ -46342,35 +46758,35 @@ var ts;
          * @param node The declaration node.
          * @param decoratorExpressions The destination array to which to add 
new decorator expressions.
          */
-        function addTypeMetadata(node, decoratorExpressions) {
+        function addTypeMetadata(node, container, decoratorExpressions) {
             if (USE_NEW_TYPE_METADATA_FORMAT) {
-                addNewTypeMetadata(node, decoratorExpressions);
+                addNewTypeMetadata(node, container, decoratorExpressions);
             }
             else {
-                addOldTypeMetadata(node, decoratorExpressions);
+                addOldTypeMetadata(node, container, decoratorExpressions);
             }
         }
-        function addOldTypeMetadata(node, decoratorExpressions) {
+        function addOldTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 if (shouldAddTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:type", serializeTypeOfNode(node)));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node)));
+                    decoratorExpressions.push(createMetadataHelper(context, 
"design:paramtypes", serializeParameterTypesOfNode(node, container)));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     decoratorExpressions.push(createMetadataHelper(context, 
"design:returntype", serializeReturnTypeOfNode(node)));
                 }
             }
         }
-        function addNewTypeMetadata(node, decoratorExpressions) {
+        function addNewTypeMetadata(node, container, decoratorExpressions) {
             if (compilerOptions.emitDecoratorMetadata) {
                 var properties = void 0;
                 if (shouldAddTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("type", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeTypeOfNode(node))));
                 }
                 if (shouldAddParamTypesMetadata(node)) {
-                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeParameterTypesOfNode(node))));
+                    (properties || (properties = 
[])).push(ts.createPropertyAssignment("paramTypes", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeParameterTypesOfNode(node, container))));
                 }
                 if (shouldAddReturnTypeMetadata(node)) {
                     (properties || (properties = 
[])).push(ts.createPropertyAssignment("returnType", 
ts.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, 
[], /*type*/ undefined, ts.createToken(35 /* EqualsGreaterThanToken */), 
serializeReturnTypeOfNode(node))));
@@ -46412,12 +46828,16 @@ var ts;
          * @param node The node to test.
          */
         function shouldAddParamTypesMetadata(node) {
-            var kind = node.kind;
-            return kind === 226 /* ClassDeclaration */
-                || kind === 197 /* ClassExpression */
-                || kind === 149 /* MethodDeclaration */
-                || kind === 151 /* GetAccessor */
-                || kind === 152 /* SetAccessor */;
+            switch (node.kind) {
+                case 226 /* ClassDeclaration */:
+                case 197 /* ClassExpression */:
+                    return ts.getFirstConstructorWithBody(node) !== undefined;
+                case 149 /* MethodDeclaration */:
+                case 151 /* GetAccessor */:
+                case 152 /* SetAccessor */:
+                    return true;
+            }
+            return false;
         }
         /**
          * Serializes the type of a node for use with decorator type metadata.
@@ -46441,28 +46861,11 @@ var ts;
             }
         }
         /**
-         * Gets the most likely element type for a TypeNode. This is not an 
exhaustive test
-         * as it assumes a rest argument can only be an array type (either 
T[], or Array<T>).
-         *
-         * @param node The type node.
-         */
-        function getRestParameterElementType(node) {
-            if (node && node.kind === 162 /* ArrayType */) {
-                return node.elementType;
-            }
-            else if (node && node.kind === 157 /* TypeReference */) {
-                return ts.singleOrUndefined(node.typeArguments);
-            }
-            else {
-                return undefined;
-            }
-        }
-        /**
          * Serializes the types of the parameters of a node for use with 
decorator type metadata.
          *
          * @param node The node that should have its parameter types 
serialized.
          */
-        function serializeParameterTypesOfNode(node) {
+        function serializeParameterTypesOfNode(node, container) {
             var valueDeclaration = ts.isClassLike(node)
                 ? ts.getFirstConstructorWithBody(node)
                 : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)
@@ -46470,7 +46873,7 @@ var ts;
                     : undefined;
             var expressions = [];
             if (valueDeclaration) {
-                var parameters = valueDeclaration.parameters;
+                var parameters = 
getParametersOfDecoratedDeclaration(valueDeclaration, container);
                 var numParameters = parameters.length;
                 for (var i = 0; i < numParameters; i++) {
                     var parameter = parameters[i];
@@ -46478,7 +46881,7 @@ var ts;
                         continue;
                     }
                     if (parameter.dotDotDotToken) {
-                        
expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type)));
+                        
expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));
                     }
                     else {
                         expressions.push(serializeTypeOfNode(parameter));
@@ -46487,6 +46890,15 @@ var ts;
             }
             return ts.createArrayLiteral(expressions);
         }
+        function getParametersOfDecoratedDeclaration(node, container) {
+            if (container && node.kind === 151 /* GetAccessor */) {
+                var setAccessor = 
ts.getAllAccessorDeclarations(container.members, node).setAccessor;
+                if (setAccessor) {
+                    return setAccessor.parameters;
+                }
+            }
+            return node.parameters;
+        }
         /**
          * Serializes the return type of a node for use with decorator type 
metadata.
          *
@@ -46525,6 +46937,9 @@ var ts;
             }
             switch (node.kind) {
                 case 104 /* VoidKeyword */:
+                case 137 /* UndefinedKeyword */:
+                case 94 /* NullKeyword */:
+                case 129 /* NeverKeyword */:
                     return ts.createVoidZero();
                 case 166 /* ParenthesizedType */:
                     return serializeTypeNode(node.type);
@@ -46563,34 +46978,7 @@ var ts;
                     return serializeTypeReferenceNode(node);
                 case 165 /* IntersectionType */:
                 case 164 /* UnionType */:
-                    {
-                        var unionOrIntersection = node;
-                        var serializedUnion = void 0;
-                        for (var _i = 0, _a = unionOrIntersection.types; _i < 
_a.length; _i++) {
-                            var typeNode = _a[_i];
-                            var serializedIndividual = 
serializeTypeNode(typeNode);
-                            // Non identifier
-                            if (serializedIndividual.kind !== 70 /* Identifier 
*/) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            // One of the individual is global object, return 
immediately
-                            if (serializedIndividual.text === "Object") {
-                                return serializedIndividual;
-                            }
-                            // Different types
-                            if (serializedUnion && serializedUnion.text !== 
serializedIndividual.text) {
-                                serializedUnion = undefined;
-                                break;
-                            }
-                            serializedUnion = serializedIndividual;
-                        }
-                        // If we were able to find common type
-                        if (serializedUnion) {
-                            return serializedUnion;
-                        }
-                    }
-                // Fallthrough
+                    return serializeUnionOrIntersectionType(node);
                 case 160 /* TypeQuery */:
                 case 168 /* TypeOperator */:
                 case 169 /* IndexedAccessType */:
@@ -46605,6 +46993,37 @@ var ts;
             }
             return ts.createIdentifier("Object");
         }
+        function serializeUnionOrIntersectionType(node) {
+            var serializedUnion;
+            for (var _i = 0, _a = node.types; _i < _a.length; _i++) {
+                var typeNode = _a[_i];
+                var serializedIndividual = serializeTypeNode(typeNode);
+                if (ts.isVoidExpression(serializedIndividual)) {
+                    // If we dont have any other type already set, set the 
initial type
+                    if (!serializedUnion) {
+                        serializedUnion = serializedIndividual;
+                    }
+                }
+                else if (ts.isIdentifier(serializedIndividual) && 
serializedIndividual.text === "Object") {
+                    // One of the individual is global object, return 
immediately
+                    return serializedIndividual;
+                }
+                else if (serializedUnion && 
!ts.isVoidExpression(serializedUnion)) {
+                    // Different types
+                    if (!ts.isIdentifier(serializedUnion) ||
+                        !ts.isIdentifier(serializedIndividual) ||
+                        serializedUnion.text !== serializedIndividual.text) {
+                        return ts.createIdentifier("Object");
+                    }
+                }
+                else {
+                    // Initialize the union type
+                    serializedUnion = serializedIndividual;
+                }
+            }
+            // If we were able to find common type, use it
+            return serializedUnion;
+        }
         /**
          * Serializes a TypeReferenceNode to an appropriate JS constructor 
value for use with
          * decorator type metadata.
@@ -46654,14 +47073,14 @@ var ts;
                 case 70 /* Identifier */:
                     // Create a clone of the name with a new parent, and treat 
it as if it were
                     // a source tree node for the purposes of the checker.
-                    var name_31 = ts.getMutableClone(node);
-                    name_31.flags &= ~8 /* Synthesized */;
-                    name_31.original = undefined;
-                    name_31.parent = currentScope;
+                    var name_32 = ts.getMutableClone(node);
+                    name_32.flags &= ~8 /* Synthesized */;
+                    name_32.original = undefined;
+                    name_32.parent = currentScope;
                     if (useFallback) {
-                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_31), 
ts.createLiteral("undefined")), name_31);
+                        return 
ts.createLogicalAnd(ts.createStrictInequality(ts.createTypeOf(name_32), 
ts.createLiteral("undefined")), name_32);
                     }
-                    return name_31;
+                    return name_32;
                 case 141 /* QualifiedName */:
                     return serializeQualifiedNameAsExpression(node, 
useFallback);
             }
@@ -46708,7 +47127,7 @@ var ts;
                     : name.expression;
             }
             else if (ts.isIdentifier(name)) {
-                return ts.createLiteral(name.text);
+                return ts.createLiteral(ts.unescapeIdentifier(name.text));
             }
             else {
                 return ts.getSynthesizedClone(name);
@@ -47187,9 +47606,9 @@ var ts;
          */
         function isFirstEmittedDeclarationInScope(node) {
             if (currentScopeFirstDeclarationsOfName) {
-                var name_32 = node.symbol && node.symbol.name;
-                if (name_32) {
-                    return currentScopeFirstDeclarationsOfName[name_32] === 
node;
+                var name_33 = node.symbol && node.symbol.name;
+                if (name_33) {
+                    return currentScopeFirstDeclarationsOfName[name_33] === 
node;
                 }
             }
             return false;
@@ -47326,7 +47745,7 @@ var ts;
             var blockLocation;
             var body = node.body;
             if (body.kind === 231 /* ModuleBlock */) {
-                ts.addRange(statements, ts.visitNodes(body.statements, 
namespaceElementVisitor, ts.isStatement));
+                saveStateAndInvoke(body, function (body) { return 
ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, 
ts.isStatement)); });
                 statementsLocation = body.statements;
                 blockLocation = body;
             }
@@ -47697,16 +48116,16 @@ var ts;
         }
         function substituteShorthandPropertyAssignment(node) {
             if (enabledSubstitutions & 2 /* NamespaceExports */) {
-                var name_33 = node.name;
-                var exportedName = trySubstituteNamespaceExportedName(name_33);
+                var name_34 = node.name;
+                var exportedName = trySubstituteNamespaceExportedName(name_34);
                 if (exportedName) {
                     // A shorthand property with an assignment initializer is 
probably part of a
                     // destructuring assignment
                     if (node.objectAssignmentInitializer) {
                         var initializer = ts.createAssignment(exportedName, 
node.objectAssignmentInitializer);
-                        return ts.createPropertyAssignment(name_33, 
initializer, /*location*/ node);
+                        return ts.createPropertyAssignment(name_34, 
initializer, /*location*/ node);
                     }
-                    return ts.createPropertyAssignment(name_33, exportedName, 
/*location*/ node);
+                    return ts.createPropertyAssignment(name_34, exportedName, 
/*location*/ node);
                 }
             }
             return node;
@@ -48236,6 +48655,9 @@ var ts;
                 return decoded ? ts.createLiteral(decoded, /*location*/ node) 
: node;
             }
             else if (node.kind === 252 /* JsxExpression */) {
+                if (node.expression === undefined) {
+                    return ts.createLiteral(true);
+                }
                 return visitJsxExpression(node);
             }
             else {
@@ -48321,12 +48743,12 @@ var ts;
                 return getTagName(node.openingElement);
             }
             else {
-                var name_34 = node.tagName;
-                if (ts.isIdentifier(name_34) && 
ts.isIntrinsicJsxName(name_34.text)) {
-                    return ts.createLiteral(name_34.text);
+                var name_35 = node.tagName;
+                if (ts.isIdentifier(name_35) && 
ts.isIntrinsicJsxName(name_35.text)) {
+                    return ts.createLiteral(name_35.text);
                 }
                 else {
-                    return ts.createExpressionFromEntityName(name_34);
+                    return ts.createExpressionFromEntityName(name_35);
                 }
             }
         }
@@ -48961,7 +49383,7 @@ var ts;
         name: "typescript:awaiter",
         scoped: false,
         priority: 5,
-        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
+        text: "\n            var __awaiter = (this && this.__awaiter) || 
function (thisArg, _arguments, P, generator) {\n                return new (P 
|| (P = Promise))(function (resolve, reject) {\n                    function 
fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); 
} }\n                    function rejected(value) { try { 
step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n               
     function step(result) { result.done ? reso [...]
     };
     var asyncSuperHelper = {
         name: "typescript:async-super",
@@ -49666,7 +50088,10 @@ var ts;
                 addRestParameterIfNeeded(statements, constructor, 
hasSynthesizedSuper);
                 ts.Debug.assert(statementOffset >= 0, "statementOffset not 
initialized correctly!");
             }
-            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
!!extendsClauseElement, hasSynthesizedSuper, statementOffset);
+            // determine whether the class is known syntactically to be a 
derived class (e.g. a
+            // class that extends a value that is not syntactically known to 
be `null`).
+            var isDerivedClass = extendsClauseElement && 
ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 94 /* 
NullKeyword */;
+            var superCaptureStatus = 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, constructor, 
isDerivedClass, hasSynthesizedSuper, statementOffset);
             // The last statement expression was replaced. Skip it.
             if (superCaptureStatus === 1 /* ReplaceSuperCapture */ || 
superCaptureStatus === 2 /* ReplaceWithReturn */) {
                 statementOffset++;
@@ -49680,7 +50105,7 @@ var ts;
             }
             // Return `_this` unless we're sure enough that it would be 
pointless to add a return statement.
             // If there's a constructor that we can tell returns in enough 
places, then we *do not* want to add a return.
-            if (extendsClauseElement
+            if (isDerivedClass
                 && superCaptureStatus !== 2 /* ReplaceWithReturn */
                 && !(constructor && 
isSufficientlyCoveredByReturnStatements(constructor.body))) {
                 statements.push(ts.createReturn(ts.createIdentifier("_this")));
@@ -49725,9 +50150,9 @@ var ts;
          *
          * @returns The new statement offset into the `statements` array.
          */
-        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
hasExtendsClause, hasSynthesizedSuper, statementOffset) {
+        function 
declareOrCaptureOrReturnThisForConstructorIfNeeded(statements, ctor, 
isDerivedClass, hasSynthesizedSuper, statementOffset) {
             // If this isn't a derived class, just capture 'this' for arrow 
functions if necessary.
-            if (!hasExtendsClause) {
+            if (!isDerivedClass) {
                 if (ctor) {
                     addCaptureThisForNodeIfNeeded(statements, ctor);
                 }
@@ -49775,8 +50200,11 @@ var ts;
                     superCallExpression = 
ts.setOriginalNode(saveStateAndInvoke(superCall, 
visitImmediateSuperCallInBody), superCall);
                 }
             }
-            // Return the result if we have an immediate super() call on the 
last statement.
-            if (superCallExpression && statementOffset === 
ctorStatements.length - 1) {
+            // Return the result if we have an immediate super() call on the 
last statement,
+            // but only if the constructor itself doesn't use 'this' elsewhere.
+            if (superCallExpression
+                && statementOffset === ctorStatements.length - 1
+                && !(ctor.transformFlags & (16384 /* ContainsLexicalThis */ | 
32768 /* ContainsCapturedLexicalThis */))) {
                 var returnStatement = ts.createReturn(superCallExpression);
                 if (superCallExpression.kind !== 192 /* BinaryExpression */
                     || superCallExpression.left.kind !== 179 /* CallExpression 
*/) {
@@ -49788,18 +50216,18 @@ var ts;
                 return 2 /* ReplaceWithReturn */;
             }
             // Perform the capture.
-            captureThisForNode(statements, ctor, superCallExpression, 
firstStatement);
+            captureThisForNode(statements, ctor, superCallExpression || 
createActualThis(), firstStatement);
             // If we're actually replacing the original statement, we need to 
signal this to the caller.
             if (superCallExpression) {
                 return 1 /* ReplaceSuperCapture */;
             }
             return 0 /* NoReplacement */;
         }
+        function createActualThis() {
+            return ts.setEmitFlags(ts.createThis(), 4 /* NoSubstitution */);
+        }
         function createDefaultSuperCallOrThis() {
-            var actualThis = ts.createThis();
-            ts.setEmitFlags(actualThis, 4 /* NoSubstitution */);
-            var superCall = 
ts.createFunctionApply(ts.createIdentifier("_super"), actualThis, 
ts.createIdentifier("arguments"));
-            return ts.createLogicalOr(superCall, actualThis);
+            return 
ts.createLogicalOr(ts.createLogicalAnd(ts.createStrictInequality(ts.createIdentifier("_super"),
 ts.createNull()), ts.createFunctionApply(ts.createIdentifier("_super"), 
createActualThis(), ts.createIdentifier("arguments"))), createActualThis());
         }
         /**
          * Visits a parameter declaration.
@@ -49862,17 +50290,17 @@ var ts;
             }
             for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {
                 var parameter = _a[_i];
-                var name_35 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
+                var name_36 = parameter.name, initializer = 
parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;
                 // A rest parameter cannot have a binding pattern or an 
initializer,
                 // so let's just ignore it.
                 if (dotDotDotToken) {
                     continue;
                 }
-                if (ts.isBindingPattern(name_35)) {
-                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_35, initializer);
+                if (ts.isBindingPattern(name_36)) {
+                    addDefaultValueAssignmentForBindingPattern(statements, 
parameter, name_36, initializer);
                 }
                 else if (initializer) {
-                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_35, initializer);
+                    addDefaultValueAssignmentForInitializer(statements, 
parameter, name_36, initializer);
                 }
             }
         }
@@ -50730,15 +51158,23 @@ var ts;
                     convertedLoopState.hoistedLocalVariables = 
outerConvertedLoopState.hoistedLocalVariables;
                 }
             }
-            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement);
+            startLexicalEnvironment();
+            var loopBody = ts.visitNode(node.statement, visitor, 
ts.isStatement, /*optional*/ false, ts.liftToBlock);
+            var lexicalEnvironment = endLexicalEnvironment();
             var currentState = convertedLoopState;
             convertedLoopState = outerConvertedLoopState;
-            if (loopOutParameters.length) {
+            if (loopOutParameters.length || lexicalEnvironment) {
                 var statements_4 = ts.isBlock(loopBody) ? 
loopBody.statements.slice() : [loopBody];
-                copyOutParameters(loopOutParameters, 1 /* ToOutParameter */, 
statements_4);
+                if (loopOutParameters.length) {
+                    copyOutParameters(loopOutParameters, 1 /* ToOutParameter 
*/, statements_4);
+                }
+                ts.addRange(statements_4, lexicalEnvironment);
                 loopBody = ts.createBlock(statements_4, /*location*/ 
undefined, /*multiline*/ true);
             }
-            if (!ts.isBlock(loopBody)) {
+            if (ts.isBlock(loopBody)) {
+                loopBody.multiLine = true;
+            }
+            else {
                 loopBody = ts.createBlock([loopBody], /*location*/ undefined, 
/*multiline*/ true);
             }
             var isAsyncBlockContainingAwait = enclosingNonArrowFunction
@@ -52340,7 +52776,7 @@ var ts;
                 emitYield(expression, /*location*/ node);
             }
             markLabel(resumeLabel);
-            return createGeneratorResume();
+            return createGeneratorResume(/*location*/ node);
         }
         /**
          * Visits an ArrayLiteralExpression that contains a YieldExpression.
@@ -52572,7 +53008,9 @@ var ts;
         function transformAndEmitVariableDeclarationList(node) {
             for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {
                 var variable = _a[_i];
-                hoistVariableDeclaration(variable.name);
+                var name_37 = ts.getSynthesizedClone(variable.name);
+                ts.setCommentRange(name_37, variable.name);
+                hoistVariableDeclaration(name_37);
             }
             var variables = ts.getInitializedVariables(node);
             var numVariables = variables.length;
@@ -52615,7 +53053,7 @@ var ts;
                 if (containsYield(node.thenStatement) || 
containsYield(node.elseStatement)) {
                     var endLabel = defineLabel();
                     var elseLabel = node.elseStatement ? defineLabel() : 
undefined;
-                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));
+                    emitBreakWhenFalse(node.elseStatement ? elseLabel : 
endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), /*location*/ 
node.expression);
                     transformAndEmitEmbeddedStatement(node.thenStatement);
                     if (node.elseStatement) {
                         emitBreak(endLabel);
@@ -53146,9 +53584,9 @@ var ts;
                 if (ts.isIdentifier(original) && original.parent) {
                     var declaration = 
resolver.getReferencedValueDeclaration(original);
                     if (declaration) {
-                        var name_36 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
-                        if (name_36) {
-                            var clone_6 = ts.getMutableClone(name_36);
+                        var name_38 = 
ts.getProperty(renamedCatchVariableDeclarations, 
String(ts.getOriginalNodeId(declaration)));
+                        if (name_38) {
+                            var clone_6 = ts.getMutableClone(name_38);
                             ts.setSourceMapRange(clone_6, node);
                             ts.setCommentRange(clone_6, node);
                             return clone_6;
@@ -54036,9 +54474,9 @@ var ts;
         function writeReturn(expression, operationLocation) {
             lastOperationWasAbrupt = true;
             lastOperationWasCompletion = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(2 /* Return */), expression]
-                : [createInstruction(2 /* Return */)]), operationLocation));
+                : [createInstruction(2 /* Return */)]), operationLocation), 
384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes a Break operation to the current label's statement list.
@@ -54048,10 +54486,10 @@ var ts;
          */
         function writeBreak(label, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes a BreakWhenTrue operation to the current label's statement 
list.
@@ -54061,10 +54499,10 @@ var ts;
          * @param operationLocation The source map location for the operation.
          */
         function writeBreakWhenTrue(label, condition, operationLocation) {
-            writeStatement(ts.createIf(condition, 
ts.createReturn(ts.createArrayLiteral([
+            writeStatement(ts.setEmitFlags(ts.createIf(condition, 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* 
SingleLine */));
         }
         /**
          * Writes a BreakWhenFalse operation to the current label's statement 
list.
@@ -54074,10 +54512,10 @@ var ts;
          * @param operationLocation The source map location for the operation.
          */
         function writeBreakWhenFalse(label, condition, operationLocation) {
-            writeStatement(ts.createIf(ts.createLogicalNot(condition), 
ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createIf(ts.createLogicalNot(condition), 
ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(3 /* Break */),
                 createLabel(label)
-            ]), operationLocation)));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* 
SingleLine */));
         }
         /**
          * Writes a Yield operation to the current label's statement list.
@@ -54087,9 +54525,9 @@ var ts;
          */
         function writeYield(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral(expression
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral(expression
                 ? [createInstruction(4 /* Yield */), expression]
-                : [createInstruction(4 /* Yield */)]), operationLocation));
+                : [createInstruction(4 /* Yield */)]), operationLocation), 384 
/* NoTokenSourceMaps */));
         }
         /**
          * Writes a YieldStar instruction to the current label's statement 
list.
@@ -54099,10 +54537,10 @@ var ts;
          */
         function writeYieldStar(expression, operationLocation) {
             lastOperationWasAbrupt = true;
-            writeStatement(ts.createReturn(ts.createArrayLiteral([
+            
writeStatement(ts.setEmitFlags(ts.createReturn(ts.createArrayLiteral([
                 createInstruction(5 /* YieldStar */),
                 expression
-            ]), operationLocation));
+            ]), operationLocation), 384 /* NoTokenSourceMaps */));
         }
         /**
          * Writes an Endfinally instruction to the current label's statement 
list.
@@ -54198,6 +54636,18 @@ var ts;
      * @param context Context and state information for the transformation.
      */
     function transformES5(context) {
+        var compilerOptions = context.getCompilerOptions();
+        // enable emit notification only if using --jsx preserve
+        var previousOnEmitNode;
+        var noSubstitution;
+        if (compilerOptions.jsx === 1 /* Preserve */) {
+            previousOnEmitNode = context.onEmitNode;
+            context.onEmitNode = onEmitNode;
+            context.enableEmitNotification(248 /* JsxOpeningElement */);
+            context.enableEmitNotification(249 /* JsxClosingElement */);
+            context.enableEmitNotification(247 /* JsxSelfClosingElement */);
+            noSubstitution = [];
+        }
         var previousOnSubstituteNode = context.onSubstituteNode;
         context.onSubstituteNode = onSubstituteNode;
         context.enableSubstitution(177 /* PropertyAccessExpression */);
@@ -54212,12 +54662,31 @@ var ts;
             return node;
         }
         /**
+         * Called by the printer just before a node is printed.
+         *
+         * @param node The node to be printed.
+         */
+        function onEmitNode(emitContext, node, emitCallback) {
+            switch (node.kind) {
+                case 248 /* JsxOpeningElement */:
+                case 249 /* JsxClosingElement */:
+                case 247 /* JsxSelfClosingElement */:
+                    var tagName = node.tagName;
+                    noSubstitution[ts.getOriginalNodeId(tagName)] = true;
+                    break;
+            }
+            previousOnEmitNode(emitContext, node, emitCallback);
+        }
+        /**
          * Hooks node substitutions.
          *
          * @param emitContext The context for the emitter.
          * @param node The node to substitute.
          */
         function onSubstituteNode(emitContext, node) {
+            if (node.id && noSubstitution && noSubstitution[node.id]) {
+                return previousOnSubstituteNode(emitContext, node);
+            }
             node = previousOnSubstituteNode(emitContext, node);
             if (ts.isPropertyAccessExpression(node)) {
                 return substitutePropertyAccessExpression(node);
@@ -54444,12 +54913,12 @@ var ts;
             // So the helper will be emit at the correct position instead of 
at the top of the source-file
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
             var dependencies = ts.createArrayLiteral(ts.map(dependencyGroups, 
function (dependencyGroup) { return dependencyGroup.name; }));
-            var updated = ts.updateSourceFileNode(node, ts.createNodeArray([
+            var updated = ts.setEmitFlags(ts.updateSourceFileNode(node, 
ts.createNodeArray([
                 
ts.createStatement(ts.createCall(ts.createPropertyAccess(ts.createIdentifier("System"),
 "register"), 
                 /*typeArguments*/ undefined, moduleName
                     ? [moduleName, dependencies, moduleBodyFunction]
                     : [dependencies, moduleBodyFunction]))
-            ], node.statements));
+            ], node.statements)), 1024 /* NoTrailingComments */);
             if (!(compilerOptions.outFile || compilerOptions.out)) {
                 ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) 
{ return !helper.scoped; });
             }
@@ -55839,26 +56308,6 @@ var ts;
         function transformAMDModule(node) {
             var define = ts.createIdentifier("define");
             var moduleName = ts.tryGetModuleNameFromFile(node, host, 
compilerOptions);
-            return transformAsynchronousModule(node, define, moduleName, 
/*includeNonAmdDependencies*/ true);
-        }
-        /**
-         * Transforms a SourceFile into a UMD module.
-         *
-         * @param node The SourceFile node.
-         */
-        function transformUMDModule(node) {
-            var define = ts.createRawExpression(umdHelper);
-            return transformAsynchronousModule(node, define, /*moduleName*/ 
undefined, /*includeNonAmdDependencies*/ false);
-        }
-        /**
-         * Transforms a SourceFile into an AMD or UMD module.
-         *
-         * @param node The SourceFile node.
-         * @param define The expression used to define the module.
-         * @param moduleName An expression for the module name, if available.
-         * @param includeNonAmdDependencies A value indicating whether to 
incldue any non-AMD dependencies.
-         */
-        function transformAsynchronousModule(node, define, moduleName, 
includeNonAmdDependencies) {
             // An AMD define function has the following shape:
             //
             //     define(id?, dependencies?, factory);
@@ -55879,7 +56328,7 @@ var ts;
             //     /// <amd-dependency path= "a.css" />
             //
             // we need to add modules without alias names to the end of the 
dependencies list
-            var _a = collectAsynchronousDependencies(node, 
includeNonAmdDependencies), aliasedModuleNames = _a.aliasedModuleNames, 
unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = 
_a.importAliasNames;
+            var _a = collectAsynchronousDependencies(node, 
/*includeNonAmdDependencies*/ true), aliasedModuleNames = 
_a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, 
importAliasNames = _a.importAliasNames;
             // Create an updated SourceFile:
             //
             //     define(moduleName?, ["module1", "module2"], function ...
@@ -55910,6 +56359,73 @@ var ts;
             /*location*/ node.statements));
         }
         /**
+         * Transforms a SourceFile into a UMD module.
+         *
+         * @param node The SourceFile node.
+         */
+        function transformUMDModule(node) {
+            var _a = collectAsynchronousDependencies(node, 
/*includeNonAmdDependencies*/ false), aliasedModuleNames = 
_a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, 
importAliasNames = _a.importAliasNames;
+            var umdHeader = ts.createFunctionExpression(
+            /*modifiers*/ undefined, 
+            /*asteriskToken*/ undefined, 
+            /*name*/ undefined, 
+            /*typeParameters*/ undefined, [ts.createParameter(/*decorators*/ 
undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "factory")], 
+            /*type*/ undefined, ts.createBlock([
+                
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("module"),
 "object"), 
ts.createTypeCheck(ts.createPropertyAccess(ts.createIdentifier("module"), 
"exports"), "object")), ts.createBlock([
+                    ts.createVariableStatement(
+                    /*modifiers*/ undefined, [
+                        ts.createVariableDeclaration("v", 
+                        /*type*/ undefined, 
ts.createCall(ts.createIdentifier("factory"), 
+                        /*typeArguments*/ undefined, [
+                            ts.createIdentifier("require"),
+                            ts.createIdentifier("exports")
+                        ]))
+                    ]),
+                    
ts.setEmitFlags(ts.createIf(ts.createStrictInequality(ts.createIdentifier("v"), 
ts.createIdentifier("undefined")), 
ts.createStatement(ts.createAssignment(ts.createPropertyAccess(ts.createIdentifier("module"),
 "exports"), ts.createIdentifier("v")))), 1 /* SingleLine */)
+                ]), 
ts.createIf(ts.createLogicalAnd(ts.createTypeCheck(ts.createIdentifier("define"),
 "function"), ts.createPropertyAccess(ts.createIdentifier("define"), "amd")), 
ts.createBlock([
+                    
ts.createStatement(ts.createCall(ts.createIdentifier("define"), 
+                    /*typeArguments*/ undefined, [
+                        ts.createArrayLiteral([
+                            ts.createLiteral("require"),
+                            ts.createLiteral("exports")
+                        ].concat(aliasedModuleNames, unaliasedModuleNames)),
+                        ts.createIdentifier("factory")
+                    ]))
+                ])))
+            ], 
+            /*location*/ undefined, 
+            /*multiLine*/ true));
+            // Create an updated SourceFile:
+            //
+            //  (function (factory) {
+            //      if (typeof module === "object" && typeof module.exports 
=== "object") {
+            //          var v = factory(require, exports);
+            //          if (v !== undefined) module.exports = v;
+            //      }
+            //      else if (typeof define === 'function' && define.amd) {
+            //          define(["require", "exports"], factory);
+            //      }
+            //  })(function ...)
+            return ts.updateSourceFileNode(node, ts.createNodeArray([
+                ts.createStatement(ts.createCall(umdHeader, 
+                /*typeArguments*/ undefined, [
+                    // Add the module body function argument:
+                    //
+                    //     function (require, exports) ...
+                    ts.createFunctionExpression(
+                    /*modifiers*/ undefined, 
+                    /*asteriskToken*/ undefined, 
+                    /*name*/ undefined, 
+                    /*typeParameters*/ undefined, [
+                        ts.createParameter(/*decorators*/ undefined, 
/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "require"),
+                        ts.createParameter(/*decorators*/ undefined, 
/*modifiers*/ undefined, /*dotDotDotToken*/ undefined, "exports")
+                    ].concat(importAliasNames), 
+                    /*type*/ undefined, transformAsynchronousModuleBody(node))
+                ]))
+            ], 
+            /*location*/ node.statements));
+        }
+        /**
          * Collect the additional asynchronous dependencies for the module.
          *
          * @param node The source file.
@@ -56697,8 +57213,8 @@ var ts;
                         /*location*/ node);
                     }
                     else if (ts.isImportSpecifier(importDeclaration)) {
-                        var name_37 = importDeclaration.propertyName || 
importDeclaration.name;
-                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_37), 
+                        var name_39 = importDeclaration.propertyName || 
importDeclaration.name;
+                        return 
ts.createPropertyAccess(ts.getGeneratedNameForNode(importDeclaration.parent.parent.parent),
 ts.getSynthesizedClone(name_39), 
                         /*location*/ node);
                     }
                 }
@@ -56800,8 +57316,6 @@ var ts;
         scoped: true,
         text: "\n            function __export(m) {\n                for (var 
p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"
     };
-    // emit output for the UMD helper function.
-    var umdHelper = "\n        (function (dependencies, factory) {\n           
 if (typeof module === 'object' && typeof module.exports === 'object') {\n      
          var v = factory(require, exports); if (v !== undefined) 
module.exports = v;\n            }\n            else if (typeof define === 
'function' && define.amd) {\n                define(dependencies, factory);\n   
         }\n        })";
 })(ts || (ts = {}));
 /// <reference path="visitor.ts" />
 /// <reference path="transformers/ts.ts" />
@@ -56871,7 +57385,7 @@ var ts;
      * @param transforms An array of Transformers.
      */
     function transformFiles(resolver, host, sourceFiles, transformers) {
-        var enabledSyntaxKindFeatures = new Array(298 /* Count */);
+        var enabledSyntaxKindFeatures = new Array(297 /* Count */);
         var lexicalEnvironmentDisabled = false;
         var lexicalEnvironmentVariableDeclarations;
         var lexicalEnvironmentFunctionDeclarations;
@@ -57391,7 +57905,7 @@ var ts;
                 return;
             }
             encodeLastRecordedSourceMapSpan();
-            return ts.stringify({
+            return JSON.stringify({
                 version: 3,
                 file: sourceMapData.sourceMapFile,
                 sourceRoot: sourceMapData.sourceMapSourceRoot,
@@ -57579,6 +58093,9 @@ var ts;
             }
             if (!skipTrailingComments) {
                 emitLeadingComments(detachedRange.end, /*isEmittedNode*/ true);
+                if (hasWrittenComment && !writer.isAtStartOfLine()) {
+                    writer.writeLine();
+                }
             }
             if (extendedDiagnostics) {
                 ts.performance.measure("commentTime", 
"beginEmitBodyWithDetachedCommetns");
@@ -57888,6 +58405,7 @@ var ts;
             writer.writeSpace = writer.write;
             writer.writeStringLiteral = writer.writeLiteral;
             writer.writeParameter = writer.write;
+            writer.writeProperty = writer.write;
             writer.writeSymbol = writer.write;
             setWriter(writer);
         }
@@ -58239,9 +58757,9 @@ var ts;
             var count = 0;
             while (true) {
                 count++;
-                var name_38 = baseName + "_" + count;
-                if (!(name_38 in currentIdentifiers)) {
-                    return name_38;
+                var name_40 = baseName + "_" + count;
+                if (!(name_40 in currentIdentifiers)) {
+                    return name_40;
                 }
             }
         }
@@ -59189,6 +59707,11 @@ var ts;
                         return symbolAccessibilityResult.errorModuleName ?
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
                             
ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
+                    case 155 /* IndexSignature */:
+                        // Interfaces cannot have parameter types that cannot 
be named
+                        return symbolAccessibilityResult.errorModuleName ?
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
 :
+                            
ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
                     case 149 /* MethodDeclaration */:
                     case 148 /* MethodSignature */:
                         if (ts.hasModifier(node.parent, 32 /* Static */)) {
@@ -59977,8 +60500,6 @@ var ts;
                 // Transformation nodes
                 case 294 /* PartiallyEmittedExpression */:
                     return emitPartiallyEmittedExpression(node);
-                case 297 /* RawExpression */:
-                    return writeLines(node.text);
             }
         }
         //
@@ -60519,27 +61040,27 @@ var ts;
             writeToken(18 /* OpenParenToken */, openParenPos, node);
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end, node);
-            emitEmbeddedStatement(node.thenStatement);
+            emitEmbeddedStatement(node, node.thenStatement);
             if (node.elseStatement) {
-                writeLine();
+                writeLineOrSpace(node);
                 writeToken(81 /* ElseKeyword */, node.thenStatement.end, node);
                 if (node.elseStatement.kind === 208 /* IfStatement */) {
                     write(" ");
                     emit(node.elseStatement);
                 }
                 else {
-                    emitEmbeddedStatement(node.elseStatement);
+                    emitEmbeddedStatement(node, node.elseStatement);
                 }
             }
         }
         function emitDoStatement(node) {
             write("do");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
             if (ts.isBlock(node.statement)) {
                 write(" ");
             }
             else {
-                writeLine();
+                writeLineOrSpace(node);
             }
             write("while (");
             emitExpression(node.expression);
@@ -60549,7 +61070,7 @@ var ts;
             write("while (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60561,7 +61082,7 @@ var ts;
             write(";");
             emitExpressionWithPrefix(" ", node.incrementor);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForInStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60571,7 +61092,7 @@ var ts;
             write(" in ");
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForOfStatement(node) {
             var openParenPos = writeToken(87 /* ForKeyword */, node.pos);
@@ -60581,7 +61102,7 @@ var ts;
             write(" of ");
             emitExpression(node.expression);
             writeToken(19 /* CloseParenToken */, node.expression.end);
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitForBinding(node) {
             if (node !== undefined) {
@@ -60612,7 +61133,7 @@ var ts;
             write("with (");
             emitExpression(node.expression);
             write(")");
-            emitEmbeddedStatement(node.statement);
+            emitEmbeddedStatement(node, node.statement);
         }
         function emitSwitchStatement(node) {
             var openParenPos = writeToken(97 /* SwitchKeyword */, node.pos);
@@ -60636,9 +61157,12 @@ var ts;
         function emitTryStatement(node) {
             write("try ");
             emit(node.tryBlock);
-            emit(node.catchClause);
+            if (node.catchClause) {
+                writeLineOrSpace(node);
+                emit(node.catchClause);
+            }
             if (node.finallyBlock) {
-                writeLine();
+                writeLineOrSpace(node);
                 write("finally ");
                 emit(node.finallyBlock);
             }
@@ -61216,8 +61740,8 @@ var ts;
                 write(suffix);
             }
         }
-        function emitEmbeddedStatement(node) {
-            if (ts.isBlock(node)) {
+        function emitEmbeddedStatement(parent, node) {
+            if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1 /* SingleLine 
*/) {
                 write(" ");
                 emit(node);
             }
@@ -61358,6 +61882,14 @@ var ts;
                 write(getClosingBracket(format));
             }
         }
+        function writeLineOrSpace(node) {
+            if (ts.getEmitFlags(node) & 1 /* SingleLine */) {
+                write(" ");
+            }
+            else {
+                writeLine();
+            }
+        }
         function writeIfAny(nodes, text) {
             if (nodes && nodes.length > 0) {
                 write(text);
@@ -61549,10 +62081,10 @@ var ts;
         */
         function makeTempVariableName(flags) {
             if (flags && !(tempFlags & flags)) {
-                var name_39 = flags === 268435456 /* _i */ ? "_i" : "_n";
-                if (isUniqueName(name_39)) {
+                var name_41 = flags === 268435456 /* _i */ ? "_i" : "_n";
+                if (isUniqueName(name_41)) {
                     tempFlags |= flags;
-                    return name_39;
+                    return name_41;
                 }
             }
             while (true) {
@@ -61560,11 +62092,11 @@ var ts;
                 tempFlags++;
                 // Skip over 'i' and 'n'
                 if (count !== 8 && count !== 13) {
-                    var name_40 = count < 26
+                    var name_42 = count < 26
                         ? "_" + String.fromCharCode(97 /* a */ + count)
                         : "_" + (count - 26);
-                    if (isUniqueName(name_40)) {
-                        return name_40;
+                    if (isUniqueName(name_42)) {
+                        return name_42;
                     }
                 }
             }
@@ -62015,10 +62547,10 @@ var ts;
         var resolutions = [];
         var cache = ts.createMap();
         for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {
-            var name_41 = names_1[_i];
-            var result = name_41 in cache
-                ? cache[name_41]
-                : cache[name_41] = loader(name_41, containingFile);
+            var name_43 = names_1[_i];
+            var result = name_43 in cache
+                ? cache[name_43]
+                : cache[name_43] = loader(name_43, containingFile);
             resolutions.push(result);
         }
         return resolutions;
@@ -62054,6 +62586,7 @@ var ts;
         var supportedExtensions = ts.getSupportedExtensions(options);
         // Map storing if there is emit blocking diagnostics for given input
         var hasEmitBlockingDiagnostics = 
ts.createFileMap(getCanonicalFileName);
+        var moduleResolutionCache;
         var resolveModuleNamesWorker;
         if (host.resolveModuleNames) {
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return host.resolveModuleNames(moduleNames, containingFile).map(function 
(resolved) {
@@ -62067,7 +62600,8 @@ var ts;
             }); };
         }
         else {
-            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host).resolvedModule; 
};
+            moduleResolutionCache = 
ts.createModuleResolutionCache(currentDirectory, function (x) { return 
host.getCanonicalFileName(x); });
+            var loader_1 = function (moduleName, containingFile) { return 
ts.resolveModuleName(moduleName, containingFile, options, host, 
moduleResolutionCache).resolvedModule; };
             resolveModuleNamesWorker = function (moduleNames, containingFile) 
{ return loadWithLocalCache(moduleNames, containingFile, loader_1); };
         }
         var resolveTypeReferenceDirectiveNamesWorker;
@@ -62113,6 +62647,8 @@ var ts;
                 }
             }
         }
+        // unconditionally set moduleResolutionCache to undefined to avoid 
unnecessary leaks
+        moduleResolutionCache = undefined;
         // unconditionally set oldProgram to undefined to prevent it from 
being captured in closure
         oldProgram = undefined;
         program = {
@@ -63586,7 +64122,7 @@ var ts;
                 "es2017": 4 /* ES2017 */,
                 "esnext": 5 /* ESNext */,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -63851,14 +64387,7 @@ var ts;
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     /* @internal */
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     /* @internal */
@@ -63882,7 +64411,6 @@ var ts;
         }
     }
     ts.parseListTypeOption = parseListTypeOption;
-    /* @internal */
     function parseCommandLine(commandLine, readFile) {
         var options = {};
         var fileNames = [];
@@ -64067,11 +64595,11 @@ var ts;
         function serializeCompilerOptions(options) {
             var result = ts.createMap();
             var optionsNameMap = getOptionNameMap().optionNameMap;
-            for (var name_42 in options) {
-                if (ts.hasProperty(options, name_42)) {
+            for (var name_44 in options) {
+                if (ts.hasProperty(options, name_44)) {
                     // tsconfig only options cannot be specified via command 
line,
                     // so we can assume that only types that can appear here 
string | number | boolean
-                    switch (name_42) {
+                    switch (name_44) {
                         case "init":
                         case "watch":
                         case "version":
@@ -64079,14 +64607,14 @@ var ts;
                         case "project":
                             break;
                         default:
-                            var value = options[name_42];
-                            var optionDefinition = 
optionsNameMap[name_42.toLowerCase()];
+                            var value = options[name_44];
+                            var optionDefinition = 
optionsNameMap[name_44.toLowerCase()];
                             if (optionDefinition) {
                                 var customTypeMap = 
getCustomTypeMapOfCommandLineOption(optionDefinition);
                                 if (!customTypeMap) {
                                     // There is no map associated with this 
compiler option then use the value as-is
                                     // This is the case if the value is expect 
to be string, number, boolean or list of string
-                                    result[name_42] = value;
+                                    result[name_44] = value;
                                 }
                                 else {
                                     if (optionDefinition.type === "list") {
@@ -64095,11 +64623,11 @@ var ts;
                                             var element = _a[_i];
                                             
convertedValue.push(getNameOfCompilerOptionValue(element, customTypeMap));
                                         }
-                                        result[name_42] = convertedValue;
+                                        result[name_44] = convertedValue;
                                     }
                                     else {
                                         // There is a typeMap associated with 
this command-line option so use it to map value back to its name
-                                        result[name_42] = 
getNameOfCompilerOptionValue(value, customTypeMap);
+                                        result[name_44] = 
getNameOfCompilerOptionValue(value, customTypeMap);
                                     }
                                 }
                             }
@@ -64142,9 +64670,10 @@ var ts;
       * @param basePath A root directory to resolve relative path entries in 
the config
       *    file to. e.g. outDir
       */
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -64272,7 +64801,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -64449,7 +64978,7 @@ var ts;
      * @param host The host used to resolve files and directories.
      * @param errors An array for diagnostic reporting.
      */
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         // The exclude spec list is converted into a regular expression, which 
allows us to quickly
         // test whether a file or directory should be excluded before 
recursively traversing the
@@ -64476,7 +65005,7 @@ var ts;
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
         // Rather than requery this for each file and filespec, we query the 
supported extensions
         // once and store it on the expansion context.
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         // Literal files are always included verbatim. An "include" or 
"exclude" specification cannot
         // remove a literal file.
         if (fileNames) {
@@ -64673,7 +65202,9 @@ var ts;
                 this.text = text;
             }
             StringScriptSnapshot.prototype.getText = function (start, end) {
-                return this.text.substring(start, end);
+                return start === 0 && end === this.text.length
+                    ? this.text
+                    : this.text.substring(start, end);
             };
             StringScriptSnapshot.prototype.getLength = function () {
                 return this.text.length;
@@ -65946,6 +66477,7 @@ var ts;
             writeSpace: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.space); },
             writeStringLiteral: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.stringLiteral); },
             writeParameter: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.parameterName); },
+            writeProperty: function (text) { return writeKind(text, 
ts.SymbolDisplayPartKind.propertyName); },
             writeSymbol: writeSymbol,
             writeLine: writeLine,
             increaseIndent: function () { indent++; },
@@ -67132,14 +67664,14 @@ var ts;
             function getJavaScriptCompletionEntries(sourceFile, position, 
uniqueNames) {
                 var entries = [];
                 var nameTable = ts.getNameTable(sourceFile);
-                for (var name_43 in nameTable) {
+                for (var name_45 in nameTable) {
                     // Skip identifiers produced only from the current location
-                    if (nameTable[name_43] === position) {
+                    if (nameTable[name_45] === position) {
                         continue;
                     }
-                    if (!uniqueNames[name_43]) {
-                        uniqueNames[name_43] = name_43;
-                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_43), 
compilerOptions.target, /*performCharacterChecks*/ true);
+                    if (!uniqueNames[name_45]) {
+                        uniqueNames[name_45] = name_45;
+                        var displayName = 
getCompletionEntryDisplayName(ts.unescapeIdentifier(name_45), 
compilerOptions.target, /*performCharacterChecks*/ true);
                         if (displayName) {
                             var entry = {
                                 name: displayName,
@@ -67652,11 +68184,11 @@ var ts;
                     if (currentConfigPath) {
                         paths.push(currentConfigPath);
                         currentDir = ts.getDirectoryPath(currentConfigPath);
-                        var parent_13 = ts.getDirectoryPath(currentDir);
-                        if (currentDir === parent_13) {
+                        var parent_14 = ts.getDirectoryPath(currentDir);
+                        if (currentDir === parent_14) {
                             break;
                         }
-                        currentDir = parent_13;
+                        currentDir = parent_14;
                     }
                     else {
                         break;
@@ -67744,13 +68276,14 @@ var ts;
                 // completion entry.
                 var symbol = ts.forEach(symbols, function (s) { return 
getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, 
/*performCharacterChecks*/ false, location_3) === entryName ? s : undefined; });
                 if (symbol) {
-                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7 /* All */), displayParts = 
_a.displayParts, documentation = _a.documentation, symbolKind = _a.symbolKind;
+                    var _a = 
ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, 
symbol, sourceFile, location_3, location_3, 7 /* All */), displayParts = 
_a.displayParts, documentation = _a.documentation, symbolKind = _a.symbolKind, 
tags = _a.tags;
                     return {
                         name: entryName,
                         kindModifiers: 
ts.SymbolDisplay.getSymbolModifiers(symbol),
                         kind: symbolKind,
                         displayParts: displayParts,
-                        documentation: documentation
+                        documentation: documentation,
+                        tags: tags
                     };
                 }
             }
@@ -67762,7 +68295,8 @@ var ts;
                     kind: ts.ScriptElementKind.keyword,
                     kindModifiers: ts.ScriptElementKindModifier.none,
                     displayParts: [ts.displayPart(entryName, 
ts.SymbolDisplayPartKind.keyword)],
-                    documentation: undefined
+                    documentation: undefined,
+                    tags: undefined
                 };
             }
             return undefined;
@@ -67855,13 +68389,13 @@ var ts;
                     log("Returning an empty list because completion was 
requested in an invalid position.");
                     return undefined;
                 }
-                var parent_14 = contextToken.parent, kind = contextToken.kind;
+                var parent_15 = contextToken.parent, kind = contextToken.kind;
                 if (kind === 22 /* DotToken */) {
-                    if (parent_14.kind === 177 /* PropertyAccessExpression */) 
{
+                    if (parent_15.kind === 177 /* PropertyAccessExpression */) 
{
                         node = contextToken.parent.expression;
                         isRightOfDot = true;
                     }
-                    else if (parent_14.kind === 141 /* QualifiedName */) {
+                    else if (parent_15.kind === 141 /* QualifiedName */) {
                         node = contextToken.parent.left;
                         isRightOfDot = true;
                     }
@@ -68248,9 +68782,9 @@ var ts;
                     switch (contextToken.kind) {
                         case 16 /* OpenBraceToken */: // const x = { |
                         case 25 /* CommaToken */:
-                            var parent_15 = contextToken.parent;
-                            if (parent_15 && (parent_15.kind === 176 /* 
ObjectLiteralExpression */ || parent_15.kind === 172 /* ObjectBindingPattern 
*/)) {
-                                return parent_15;
+                            var parent_16 = contextToken.parent;
+                            if (parent_16 && (parent_16.kind === 176 /* 
ObjectLiteralExpression */ || parent_16.kind === 172 /* ObjectBindingPattern 
*/)) {
+                                return parent_16;
                             }
                             break;
                     }
@@ -68277,37 +68811,37 @@ var ts;
             }
             function tryGetContainingJsxElement(contextToken) {
                 if (contextToken) {
-                    var parent_16 = contextToken.parent;
+                    var parent_17 = contextToken.parent;
                     switch (contextToken.kind) {
                         case 27 /* LessThanSlashToken */:
                         case 40 /* SlashToken */:
                         case 70 /* Identifier */:
                         case 250 /* JsxAttribute */:
                         case 251 /* JsxSpreadAttribute */:
-                            if (parent_16 && (parent_16.kind === 247 /* 
JsxSelfClosingElement */ || parent_16.kind === 248 /* JsxOpeningElement */)) {
-                                return parent_16;
+                            if (parent_17 && (parent_17.kind === 247 /* 
JsxSelfClosingElement */ || parent_17.kind === 248 /* JsxOpeningElement */)) {
+                                return parent_17;
                             }
-                            else if (parent_16.kind === 250 /* JsxAttribute 
*/) {
-                                return parent_16.parent;
+                            else if (parent_17.kind === 250 /* JsxAttribute 
*/) {
+                                return parent_17.parent;
                             }
                             break;
                         // The context token is the closing } or " of an 
attribute, which means
                         // its parent is a JsxExpression, whose parent is a 
JsxAttribute,
                         // whose parent is a JsxOpeningLikeElement
                         case 9 /* StringLiteral */:
-                            if (parent_16 && ((parent_16.kind === 250 /* 
JsxAttribute */) || (parent_16.kind === 251 /* JsxSpreadAttribute */))) {
-                                return parent_16.parent;
+                            if (parent_17 && ((parent_17.kind === 250 /* 
JsxAttribute */) || (parent_17.kind === 251 /* JsxSpreadAttribute */))) {
+                                return parent_17.parent;
                             }
                             break;
                         case 17 /* CloseBraceToken */:
-                            if (parent_16 &&
-                                parent_16.kind === 252 /* JsxExpression */ &&
-                                parent_16.parent &&
-                                (parent_16.parent.kind === 250 /* JsxAttribute 
*/)) {
-                                return parent_16.parent.parent;
+                            if (parent_17 &&
+                                parent_17.kind === 252 /* JsxExpression */ &&
+                                parent_17.parent &&
+                                (parent_17.parent.kind === 250 /* JsxAttribute 
*/)) {
+                                return parent_17.parent.parent;
                             }
-                            if (parent_16 && parent_16.kind === 251 /* 
JsxSpreadAttribute */) {
-                                return parent_16.parent;
+                            if (parent_17 && parent_17.kind === 251 /* 
JsxSpreadAttribute */) {
+                                return parent_17.parent;
                             }
                             break;
                     }
@@ -68444,8 +68978,8 @@ var ts;
                     if (element.getStart() <= position && position <= 
element.getEnd()) {
                         continue;
                     }
-                    var name_44 = element.propertyName || element.name;
-                    existingImportsOrExports[name_44.text] = true;
+                    var name_46 = element.propertyName || element.name;
+                    existingImportsOrExports[name_46.text] = true;
                 }
                 if (!ts.someProperties(existingImportsOrExports)) {
                     return ts.filter(exportsOfModule, function (e) { return 
e.name !== "default"; });
@@ -68804,19 +69338,19 @@ var ts;
                 function getThrowStatementOwner(throwStatement) {
                     var child = throwStatement;
                     while (child.parent) {
-                        var parent_17 = child.parent;
-                        if (ts.isFunctionBlock(parent_17) || parent_17.kind 
=== 261 /* SourceFile */) {
-                            return parent_17;
+                        var parent_18 = child.parent;
+                        if (ts.isFunctionBlock(parent_18) || parent_18.kind 
=== 261 /* SourceFile */) {
+                            return parent_18;
                         }
                         // A throw-statement is only owned by a try-statement 
if the try-statement has
                         // a catch clause, and if the throw-statement occurs 
within the try block.
-                        if (parent_17.kind === 221 /* TryStatement */) {
-                            var tryStatement = parent_17;
+                        if (parent_18.kind === 221 /* TryStatement */) {
+                            var tryStatement = parent_18;
                             if (tryStatement.tryBlock === child && 
tryStatement.catchClause) {
                                 return child;
                             }
                         }
-                        child = parent_17;
+                        child = parent_18;
                     }
                     return undefined;
                 }
@@ -69773,24 +70307,24 @@ var ts;
                     // If we got a type reference, try and see if the 
reference applies to any expressions that can implement an interface
                     var containingTypeReference = 
getContainingTypeReference(refNode);
                     if (containingTypeReference) {
-                        var parent_18 = containingTypeReference.parent;
-                        if (ts.isVariableLike(parent_18) && parent_18.type === 
containingTypeReference && parent_18.initializer && 
isImplementationExpression(parent_18.initializer)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.initializer));
+                        var parent_19 = containingTypeReference.parent;
+                        if (ts.isVariableLike(parent_19) && parent_19.type === 
containingTypeReference && parent_19.initializer && 
isImplementationExpression(parent_19.initializer)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.initializer));
                         }
-                        else if (ts.isFunctionLike(parent_18) && 
parent_18.type === containingTypeReference && parent_18.body) {
-                            if (parent_18.body.kind === 204 /* Block */) {
-                                ts.forEachReturnStatement(parent_18.body, 
function (returnStatement) {
+                        else if (ts.isFunctionLike(parent_19) && 
parent_19.type === containingTypeReference && parent_19.body) {
+                            if (parent_19.body.kind === 204 /* Block */) {
+                                ts.forEachReturnStatement(parent_19.body, 
function (returnStatement) {
                                     if (returnStatement.expression && 
isImplementationExpression(returnStatement.expression)) {
                                         
maybeAdd(getReferenceEntryFromNode(returnStatement.expression));
                                     }
                                 });
                             }
-                            else if 
(isImplementationExpression(parent_18.body)) {
-                                
maybeAdd(getReferenceEntryFromNode(parent_18.body));
+                            else if 
(isImplementationExpression(parent_19.body)) {
+                                
maybeAdd(getReferenceEntryFromNode(parent_19.body));
                             }
                         }
-                        else if (ts.isAssertionExpression(parent_18) && 
isImplementationExpression(parent_18.expression)) {
-                            
maybeAdd(getReferenceEntryFromNode(parent_18.expression));
+                        else if (ts.isAssertionExpression(parent_19) && 
isImplementationExpression(parent_19.expression)) {
+                            
maybeAdd(getReferenceEntryFromNode(parent_19.expression));
                         }
                     }
                 }
@@ -70092,8 +70626,8 @@ var ts;
                         if (!node_2 || node_2.kind !== 9 /* StringLiteral */) {
                             return;
                         }
-                        var type_2 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
-                        if (type_2 === searchType) {
+                        var type_1 = ts.getStringLiteralTypeForNode(node_2, 
typeChecker);
+                        if (type_1 === searchType) {
                             references.push(getReferenceEntryFromNode(node_2));
                         }
                     }
@@ -70777,6 +71311,7 @@ var ts;
             "lends",
             "link",
             "memberOf",
+            "method",
             "name",
             "namespace",
             "param",
@@ -70822,6 +71357,30 @@ var ts;
             return documentationComment;
         }
         JsDoc.getJsDocCommentsFromDeclarations = 
getJsDocCommentsFromDeclarations;
+        function getJsDocTagsFromDeclarations(declarations) {
+            // Only collect doc comments from duplicate declarations once.
+            var tags = [];
+            forEachUnique(declarations, function (declaration) {
+                var jsDocs = ts.getJSDocs(declaration);
+                if (!jsDocs) {
+                    return;
+                }
+                for (var _i = 0, jsDocs_1 = jsDocs; _i < jsDocs_1.length; 
_i++) {
+                    var doc = jsDocs_1[_i];
+                    var tagsForDoc = doc.tags;
+                    if (tagsForDoc) {
+                        tags.push.apply(tags, tagsForDoc.filter(function (tag) 
{ return tag.kind === 279 /* JSDocTag */; }).map(function (jsDocTag) {
+                            return {
+                                name: jsDocTag.tagName.text,
+                                text: jsDocTag.comment
+                            };
+                        }));
+                    }
+                }
+            });
+            return tags;
+        }
+        JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;
         /**
          * Iterates through 'array' by index and performs the callback on each 
element of array until the callback
          * returns a truthy value, then returns that value.
@@ -70914,13 +71473,19 @@ var ts;
             var posLineAndChar = 
sourceFile.getLineAndCharacterOfPosition(position);
             var lineStart = sourceFile.getLineStarts()[posLineAndChar.line];
             var indentationStr = sourceFile.text.substr(lineStart, 
posLineAndChar.character);
+            var isJavaScriptFile = 
ts.hasJavaScriptFileExtension(sourceFile.fileName);
             var docParams = "";
             for (var i = 0, numParams = parameters.length; i < numParams; i++) 
{
                 var currentName = parameters[i].name;
                 var paramName = currentName.kind === 70 /* Identifier */ ?
                     currentName.text :
                     "param" + i;
-                docParams += indentationStr + " * @param " + paramName + 
newLine;
+                if (isJavaScriptFile) {
+                    docParams += indentationStr + " * @param {any} " + 
paramName + newLine;
+                }
+                else {
+                    docParams += indentationStr + " * @param " + paramName + 
newLine;
+                }
             }
             // A doc comment consists of the following
             // * The opening comment line
@@ -71062,9 +71627,9 @@ var ts;
                 }
             }
             // Add the cached typing locations for inferred typings that are 
already installed
-            for (var name_45 in packageNameToTypingLocation) {
-                if (name_45 in inferredTypings && !inferredTypings[name_45]) {
-                    inferredTypings[name_45] = 
packageNameToTypingLocation[name_45];
+            for (var name_47 in packageNameToTypingLocation) {
+                if (name_47 in inferredTypings && !inferredTypings[name_47]) {
+                    inferredTypings[name_47] = 
packageNameToTypingLocation[name_47];
                 }
             }
             // Remove typings that the user has added to the exclude list
@@ -71202,12 +71767,12 @@ var ts;
                     return;
                 }
                 var nameToDeclarations = sourceFile.getNamedDeclarations();
-                for (var name_46 in nameToDeclarations) {
-                    var declarations = nameToDeclarations[name_46];
+                for (var name_48 in nameToDeclarations) {
+                    var declarations = nameToDeclarations[name_48];
                     if (declarations) {
                         // First do a quick check to see if the name of the 
declaration matches the
                         // last portion of the (possibly) dotted name they're 
searching for.
-                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_46);
+                        var matches = 
patternMatcher.getMatchesForLastSegmentOfPattern(name_48);
                         if (!matches) {
                             continue;
                         }
@@ -71220,14 +71785,14 @@ var ts;
                                 if (!containers) {
                                     return undefined;
                                 }
-                                matches = 
patternMatcher.getMatches(containers, name_46);
+                                matches = 
patternMatcher.getMatches(containers, name_48);
                                 if (!matches) {
                                     continue;
                                 }
                             }
                             var fileName = sourceFile.fileName;
                             var matchKind = bestMatchKind(matches);
-                            rawItems.push({ name: name_46, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
+                            rawItems.push({ name: name_48, fileName: fileName, 
matchKind: matchKind, isCaseSensitive: allMatchesAreCaseSensitive(matches), 
declaration: declaration });
                         }
                     }
                 }
@@ -71516,9 +72081,9 @@ var ts;
                 case 174 /* BindingElement */:
                 case 223 /* VariableDeclaration */:
                     var decl = node;
-                    var name_47 = decl.name;
-                    if (ts.isBindingPattern(name_47)) {
-                        addChildrenRecursively(name_47);
+                    var name_49 = decl.name;
+                    if (ts.isBindingPattern(name_49)) {
+                        addChildrenRecursively(name_49);
                     }
                     else if (decl.initializer && 
isFunctionOrClassExpression(decl.initializer)) {
                         // For `const x = function() {}`, just use the 
function node, not the const.
@@ -72025,28 +72590,28 @@ var ts;
                 switch (n.kind) {
                     case 204 /* Block */:
                         if (!ts.isFunctionBlock(n)) {
-                            var parent_19 = n.parent;
+                            var parent_20 = n.parent;
                             var openBrace = ts.findChildOfKind(n, 16 /* 
OpenBraceToken */, sourceFile);
                             var closeBrace = ts.findChildOfKind(n, 17 /* 
CloseBraceToken */, sourceFile);
                             // Check if the block is standalone, or 'attached' 
to some parent statement.
                             // If the latter, we want to collapse the block, 
but consider its hint span
                             // to be the entire span of the parent.
-                            if (parent_19.kind === 209 /* DoStatement */ ||
-                                parent_19.kind === 212 /* ForInStatement */ ||
-                                parent_19.kind === 213 /* ForOfStatement */ ||
-                                parent_19.kind === 211 /* ForStatement */ ||
-                                parent_19.kind === 208 /* IfStatement */ ||
-                                parent_19.kind === 210 /* WhileStatement */ ||
-                                parent_19.kind === 217 /* WithStatement */ ||
-                                parent_19.kind === 256 /* CatchClause */) {
-                                addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                            if (parent_20.kind === 209 /* DoStatement */ ||
+                                parent_20.kind === 212 /* ForInStatement */ ||
+                                parent_20.kind === 213 /* ForOfStatement */ ||
+                                parent_20.kind === 211 /* ForStatement */ ||
+                                parent_20.kind === 208 /* IfStatement */ ||
+                                parent_20.kind === 210 /* WhileStatement */ ||
+                                parent_20.kind === 217 /* WithStatement */ ||
+                                parent_20.kind === 256 /* CatchClause */) {
+                                addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                 break;
                             }
-                            if (parent_19.kind === 221 /* TryStatement */) {
+                            if (parent_20.kind === 221 /* TryStatement */) {
                                 // Could be the try-block, or the 
finally-block.
-                                var tryStatement = parent_19;
+                                var tryStatement = parent_20;
                                 if (tryStatement.tryBlock === n) {
-                                    addOutliningSpan(parent_19, openBrace, 
closeBrace, autoCollapse(n));
+                                    addOutliningSpan(parent_20, openBrace, 
closeBrace, autoCollapse(n));
                                     break;
                                 }
                                 else if (tryStatement.finallyBlock === n) {
@@ -73596,7 +74161,8 @@ var ts;
                     suffixDisplayParts: suffixDisplayParts,
                     separatorDisplayParts: [ts.punctuationPart(25 /* 
CommaToken */), ts.spacePart()],
                     parameters: signatureHelpParameters,
-                    documentation: candidateSignature.getDocumentationComment()
+                    documentation: 
candidateSignature.getDocumentationComment(),
+                    tags: candidateSignature.getJsDocTags()
                 };
             });
             var argumentIndex = argumentListInfo.argumentIndex;
@@ -73740,6 +74306,7 @@ var ts;
             if (semanticMeaning === void 0) { semanticMeaning = 
ts.getMeaningFromLocation(location); }
             var displayParts = [];
             var documentation;
+            var tags;
             var symbolFlags = symbol.flags;
             var symbolKind = 
getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, 
symbol, symbolFlags, location);
             var hasAddedSymbolInfo;
@@ -74044,6 +74611,7 @@ var ts;
             }
             if (!documentation) {
                 documentation = symbol.getDocumentationComment();
+                tags = symbol.getJsDocTags();
                 if (documentation.length === 0 && symbol.flags & 4 /* Property 
*/) {
                     // For some special property access expressions like 
`experts.foo = foo` or `module.exports.foo = foo`
                     // there documentation comments might be attached to the 
right hand side symbol of their declarations.
@@ -74059,6 +74627,7 @@ var ts;
                                 continue;
                             }
                             documentation = 
rhsSymbol.getDocumentationComment();
+                            tags = rhsSymbol.getJsDocTags();
                             if (documentation.length > 0) {
                                 break;
                             }
@@ -74066,7 +74635,7 @@ var ts;
                     }
                 }
             }
-            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind };
+            return { displayParts: displayParts, documentation: documentation, 
symbolKind: symbolKind, tags: tags };
             function addNewLineIfDisplayPartsExist() {
                 if (displayParts.length) {
                     displayParts.push(ts.lineBreakPart());
@@ -74117,6 +74686,7 @@ var ts;
                     displayParts.push(ts.punctuationPart(19 /* CloseParenToken 
*/));
                 }
                 documentation = signature.getDocumentationComment();
+                tags = signature.getJsDocTags();
             }
             function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) 
{
                 var typeParameterParts = ts.mapToDisplayParts(function 
(writer) {
@@ -74139,9 +74709,9 @@ var ts;
                     return false;
                 }
                 // If the parent is not sourceFile or module block it is local 
variable
-                for (var parent_20 = declaration.parent; 
!ts.isFunctionBlock(parent_20); parent_20 = parent_20.parent) {
+                for (var parent_21 = declaration.parent; 
!ts.isFunctionBlock(parent_21); parent_21 = parent_21.parent) {
                     // Reached source file or module block
-                    if (parent_20.kind === 261 /* SourceFile */ || 
parent_20.kind === 231 /* ModuleBlock */) {
+                    if (parent_21.kind === 261 /* SourceFile */ || 
parent_21.kind === 231 /* ModuleBlock */) {
                         return false;
                     }
                 }
@@ -74252,7 +74822,7 @@ var ts;
             return typeof o.type === "object" && !ts.forEachProperty(o.type, 
function (v) { return typeof v !== "number"; });
         });
         options = ts.clone(options);
-        var _loop_4 = function (opt) {
+        var _loop_3 = function (opt) {
             if (!ts.hasProperty(options, opt.name)) {
                 return "continue";
             }
@@ -74271,7 +74841,7 @@ var ts;
         };
         for (var _i = 0, commandLineOptionsStringToEnum_1 = 
commandLineOptionsStringToEnum; _i < commandLineOptionsStringToEnum_1.length; 
_i++) {
             var opt = commandLineOptionsStringToEnum_1[_i];
-            _loop_4(opt);
+            _loop_3(opt);
         }
         return options;
     }
@@ -74848,6 +75418,7 @@ var ts;
                 this.SpaceAfterLetConstInVariableDeclaration = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([109
 /* LetKeyword */, 75 /* ConstKeyword */]), formatting.Shared.TokenRange.Any), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsStartOfVariableDeclarationList), 2 /* Space */));
                 this.NoSpaceBeforeOpenParenInFuncCall = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8 /* Delete 
*/));
                 this.SpaceAfterFunctionInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create3(88 /* FunctionKeyword */, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */));
+                this.SpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 2 /* Space */));
                 this.NoSpaceBeforeOpenParenInFuncDecl = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any,
 18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsFunctionDeclContext), 8 /* Delete */));
                 this.SpaceAfterVoidOperator = new 
formatting.Rule(formatting.RuleDescriptor.create3(104 /* VoidKeyword */, 
formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsVoidOpContext), 2 /* Space */));
                 this.NoSpaceBetweenReturnAndSemicolon = new 
formatting.Rule(formatting.RuleDescriptor.create1(95 /* ReturnKeyword */, 24 /* 
SemicolonToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
@@ -74864,11 +75435,12 @@ var ts;
                 this.SpaceAfterBinaryKeywordOperator = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators,
 formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext, 
Rules.IsBinaryOpContext), 2 /* Space */));
                 // TypeScript-specific higher priority rules
                 // Treat constructor as an identifier in a function 
declaration, and remove spaces between constructor and following left 
parentheses
+                this.SpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122 /* ConstructorKeyword */, 
18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2 /* Space 
*/));
                 this.NoSpaceAfterConstructor = new 
formatting.Rule(formatting.RuleDescriptor.create1(122 /* ConstructorKeyword */, 
18 /* OpenParenToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
                 // Use of module as a function call. e.g.: import m2 = 
module("m2");
                 this.NoSpaceAfterModuleImport = new 
formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([127
 /* ModuleKeyword */, 131 /* RequireKeyword */]), 18 /* OpenParenToken */), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 8 /* 
Delete */));
                 // Add a space around certain TypeScript keywords
-                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116
 /* AbstractKeyword */, 74 /* ClassKeyword */, 123 /* DeclareKeyword */, 78 /* 
DefaultKeyword */, 82 /* EnumKeyword */, 83 /* ExportKeyword */, 84 /* 
ExtendsKeyword */, 124 /* GetKeyword */, 107 /* ImplementsKeyword */, 90 /* 
ImportKeyword */, 108 /* InterfaceKeyword */, 127 /* ModuleKeyword */, 128 /* 
NamespaceKeyword */, 111 /* Pri [...]
+                this.SpaceAfterCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([116
 /* AbstractKeyword */, 74 /* ClassKeyword */, 123 /* DeclareKeyword */, 78 /* 
DefaultKeyword */, 82 /* EnumKeyword */, 83 /* ExportKeyword */, 84 /* 
ExtendsKeyword */, 124 /* GetKeyword */, 107 /* ImplementsKeyword */, 90 /* 
ImportKeyword */, 108 /* InterfaceKeyword */, 127 /* ModuleKeyword */, 128 /* 
NamespaceKeyword */, 111 /* Pri [...]
                 this.SpaceBeforeCertainTypeScriptKeywords = new 
formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any,
 formatting.Shared.TokenRange.FromTokens([84 /* ExtendsKeyword */, 107 /* 
ImplementsKeyword */, 138 /* FromKeyword */])), 
formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsNonJsxSameLineTokenContext), 2 /* Space 
*/));
                 // Treat string literals in module names as identifiers, and 
add a space between the literal and the opening Brace braces, e.g.: module "m2" 
{
                 this.SpaceAfterModuleName = new 
formatting.Rule(formatting.RuleDescriptor.create1(9 /* StringLiteral */, 16 /* 
OpenBraceToken */), formatting.RuleOperation.create2(new 
formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2 /* Space */));
@@ -74935,7 +75507,7 @@ var ts;
                     this.SpaceBeforeJsxAttribute, 
this.SpaceBeforeSlashInJsxOpeningElement, 
this.NoSpaceBeforeGreaterThanTokenInJsxOpeningElement,
                     this.NoSpaceBeforeEqualInJsxAttribute, 
this.NoSpaceAfterEqualInJsxAttribute,
                     // TypeScript-specific rules
-                    this.NoSpaceAfterConstructor, 
this.NoSpaceAfterModuleImport,
+                    this.NoSpaceAfterModuleImport,
                     this.SpaceAfterCertainTypeScriptKeywords, 
this.SpaceBeforeCertainTypeScriptKeywords,
                     this.SpaceAfterModuleName,
                     this.SpaceBeforeArrow, this.SpaceAfterArrow,
@@ -74959,7 +75531,6 @@ var ts;
                     this.NoSpaceBeforeOpenBracket,
                     this.NoSpaceAfterCloseBracket,
                     this.SpaceAfterSemicolon,
-                    this.NoSpaceBeforeOpenParenInFuncDecl,
                     this.SpaceBetweenStatements, this.SpaceAfterTryFinally
                 ];
                 ///
@@ -75017,9 +75588,9 @@ var ts;
             }
             Rules.prototype.getRuleName = function (rule) {
                 var o = this;
-                for (var name_48 in o) {
-                    if (o[name_48] === rule) {
-                        return name_48;
+                for (var name_50 in o) {
+                    if (o[name_50] === rule) {
+                        return name_50;
                     }
                 }
                 throw new Error("Unknown rule");
@@ -75060,6 +75631,8 @@ var ts;
                         return context.currentTokenSpan.kind === 57 /* 
EqualsToken */ || context.nextTokenSpan.kind === 57 /* EqualsToken */;
                     // "in" keyword in for (let x in []) { }
                     case 212 /* ForInStatement */:
+                    // "in" keyword in [P in keyof T]: T[P]
+                    case 143 /* TypeParameter */:
                         return context.currentTokenSpan.kind === 91 /* 
InKeyword */ || context.nextTokenSpan.kind === 91 /* InKeyword */;
                     // Technically, "of" is not a binary operator, but format 
it the same way as "in"
                     case 213 /* ForOfStatement */:
@@ -75171,11 +75744,17 @@ var ts;
                     case 226 /* ClassDeclaration */:
                     case 230 /* ModuleDeclaration */:
                     case 229 /* EnumDeclaration */:
-                    case 204 /* Block */:
                     case 256 /* CatchClause */:
                     case 231 /* ModuleBlock */:
                     case 218 /* SwitchStatement */:
                         return true;
+                    case 204 /* Block */: {
+                        var blockParent = context.currentTokenParent.parent;
+                        if (blockParent.kind !== 185 /* ArrowFunction */ &&
+                            blockParent.kind !== 184 /* FunctionExpression */) 
{
+                            return true;
+                        }
+                    }
                 }
                 return false;
             };
@@ -75272,6 +75851,7 @@ var ts;
                 switch (parent.kind) {
                     case 157 /* TypeReference */:
                     case 182 /* TypeAssertionExpression */:
+                    case 228 /* TypeAliasDeclaration */:
                     case 226 /* ClassDeclaration */:
                     case 197 /* ClassExpression */:
                     case 227 /* InterfaceDeclaration */:
@@ -75621,6 +76201,12 @@ var ts;
             };
             RulesProvider.prototype.createActiveRules = function (options) {
                 var rules = this.globalRules.HighPriorityCommonRules.slice(0);
+                if (options.insertSpaceAfterConstructor) {
+                    rules.push(this.globalRules.SpaceAfterConstructor);
+                }
+                else {
+                    rules.push(this.globalRules.NoSpaceAfterConstructor);
+                }
                 if (options.insertSpaceAfterCommaDelimiter) {
                     rules.push(this.globalRules.SpaceAfterComma);
                 }
@@ -75701,6 +76287,12 @@ var ts;
                     rules.push(this.globalRules.NoSpaceBeforeBinaryOperator);
                     rules.push(this.globalRules.NoSpaceAfterBinaryOperator);
                 }
+                if (options.insertSpaceBeforeFunctionParenthesis) {
+                    
rules.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl);
+                }
+                else {
+                    
rules.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl);
+                }
                 if (options.placeOpenBraceOnNewLineForControlBlocks) {
                     
rules.push(this.globalRules.NewLineBeforeOpenBraceInControl);
                 }
@@ -76091,18 +76683,31 @@ var ts;
                             // open and close brace, 'else' and 'while' (in do 
statement) tokens has indentation of the parent
                             case 16 /* OpenBraceToken */:
                             case 17 /* CloseBraceToken */:
-                            case 20 /* OpenBracketToken */:
-                            case 21 /* CloseBracketToken */:
                             case 18 /* OpenParenToken */:
                             case 19 /* CloseParenToken */:
                             case 81 /* ElseKeyword */:
                             case 105 /* WhileKeyword */:
                             case 56 /* AtToken */:
                                 return indentation;
-                            default:
-                                // if token line equals to the line of 
containing node (this is a first token in the node) - use node indentation
-                                return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
+                            case 40 /* SlashToken */:
+                            case 28 /* GreaterThanToken */: {
+                                if (container.kind === 248 /* 
JsxOpeningElement */ ||
+                                    container.kind === 249 /* 
JsxClosingElement */ ||
+                                    container.kind === 247 /* 
JsxSelfClosingElement */) {
+                                    return indentation;
+                                }
+                                break;
+                            }
+                            case 20 /* OpenBracketToken */:
+                            case 21 /* CloseBracketToken */: {
+                                if (container.kind !== 170 /* MappedType */) {
+                                    return indentation;
+                                }
+                                break;
+                            }
                         }
+                        // if token line equals to the line of containing node 
(this is a first token in the node) - use node indentation
+                        return nodeStartLine !== line ? indentation + 
getEffectiveDelta(delta, container) : indentation;
                     },
                     getIndentation: function () { return indentation; },
                     getDelta: function (child) { return 
getEffectiveDelta(delta, child); },
@@ -76158,7 +76763,7 @@ var ts;
                     if (tokenInfo.token.end > node.end) {
                         break;
                     }
-                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation);
+                    consumeTokenAndAdvanceScanner(tokenInfo, node, 
nodeDynamicIndentation, node);
                 }
                 function processChildNode(child, inheritedIndentation, parent, 
parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, 
isListItem, isFirstListItem) {
                     var childStartPos = child.getStart(sourceFile);
@@ -76192,7 +76797,7 @@ var ts;
                             // stop when formatting scanner advances past the 
beginning of the child
                             break;
                         }
-                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation);
+                        consumeTokenAndAdvanceScanner(tokenInfo, node, 
parentDynamicIndentation, node);
                     }
                     if (!formattingScanner.isOnToken()) {
                         return inheritedIndentation;
@@ -76232,11 +76837,11 @@ var ts;
                                 startLine = 
sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;
                                 var indentation_1 = 
computeIndentation(tokenInfo.token, startLine, -1 /* Unknown */, parent, 
parentDynamicIndentation, parentStartLine);
                                 listDynamicIndentation = 
getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, 
indentation_1.delta);
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                             else {
                                 // consume any tokens that precede the list as 
child elements of 'node' using its indentation scope
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, parentDynamicIndentation, parent);
                             }
                         }
                     }
@@ -76254,7 +76859,7 @@ var ts;
                             // without this check close paren will be 
interpreted as list end token for function expression which is wrong
                             if (tokenInfo.token.kind === listEndToken && 
ts.rangeContainsRange(parent, tokenInfo.token)) {
                                 // consume list end token
-                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation);
+                                consumeTokenAndAdvanceScanner(tokenInfo, 
parent, listDynamicIndentation, parent);
                             }
                         }
                     }
@@ -77027,6 +77632,7 @@ var ts;
                     case 231 /* ModuleBlock */:
                     case 176 /* ObjectLiteralExpression */:
                     case 161 /* TypeLiteral */:
+                    case 170 /* MappedType */:
                     case 163 /* TupleType */:
                     case 232 /* CaseBlock */:
                     case 254 /* DefaultClause */:
@@ -77212,663 +77818,676 @@ var ts;
         });
     })(codefix = ts.codefix || (ts.codefix = {}));
 })(ts || (ts = {}));
-/* @internal */
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        var ModuleSpecifierComparison;
-        (function (ModuleSpecifierComparison) {
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Better"] = 0] 
= "Better";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Equal"] = 1] 
= "Equal";
-            ModuleSpecifierComparison[ModuleSpecifierComparison["Worse"] = 2] 
= "Worse";
-        })(ModuleSpecifierComparison || (ModuleSpecifierComparison = {}));
-        var ImportCodeActionMap = (function () {
-            function ImportCodeActionMap() {
-                this.symbolIdToActionMap = ts.createMap();
-            }
-            ImportCodeActionMap.prototype.addAction = function (symbolId, 
newAction) {
-                if (!newAction) {
-                    return;
-                }
-                if (!this.symbolIdToActionMap[symbolId]) {
-                    this.symbolIdToActionMap[symbolId] = [newAction];
-                    return;
-                }
-                if (newAction.kind === "CodeChange") {
-                    this.symbolIdToActionMap[symbolId].push(newAction);
-                    return;
-                }
-                var updatedNewImports = [];
-                for (var _i = 0, _a = this.symbolIdToActionMap[symbolId]; _i < 
_a.length; _i++) {
-                    var existingAction = _a[_i];
-                    if (existingAction.kind === "CodeChange") {
-                        // only import actions should compare
-                        updatedNewImports.push(existingAction);
-                        continue;
-                    }
-                    switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
-                        case ModuleSpecifierComparison.Better:
-                            // the new one is not worth considering if it is a 
new improt.
-                            // However if it is instead a insertion into 
existing import, the user might want to use
-                            // the module specifier even it is worse by our 
standards. So keep it.
-                            if (newAction.kind === "NewImport") {
-                                return;
-                            }
-                        case ModuleSpecifierComparison.Equal:
-                            // the current one is safe. But it is still 
possible that the new one is worse
-                            // than another existing one. For example, you may 
have new imports from "./foo/bar"
-                            // and "bar", when the new one is "bar/bar2" and 
the current one is "./foo/bar". The new
-                            // one and the current one are not comparable (one 
relative path and one absolute path),
-                            // but the new one is worse than the other one, so 
should not add to the list.
-                            updatedNewImports.push(existingAction);
-                            break;
-                        case ModuleSpecifierComparison.Worse:
-                            // the existing one is worse, remove from the list.
-                            continue;
-                    }
-                }
-                // if we reach here, it means the new one is better or equal 
to all of the existing ones.
-                updatedNewImports.push(newAction);
-                this.symbolIdToActionMap[symbolId] = updatedNewImports;
-            };
-            ImportCodeActionMap.prototype.addActions = function (symbolId, 
newActions) {
-                for (var _i = 0, newActions_1 = newActions; _i < 
newActions_1.length; _i++) {
-                    var newAction = newActions_1[_i];
-                    this.addAction(symbolId, newAction);
-                }
-            };
-            ImportCodeActionMap.prototype.getAllActions = function () {
-                var result = [];
-                for (var symbolId in this.symbolIdToActionMap) {
-                    result = ts.concatenate(result, 
this.symbolIdToActionMap[symbolId]);
-                }
-                return result;
-            };
-            ImportCodeActionMap.prototype.compareModuleSpecifiers = function 
(moduleSpecifier1, moduleSpecifier2) {
-                if (moduleSpecifier1 === moduleSpecifier2) {
-                    return ModuleSpecifierComparison.Equal;
-                }
-                // if moduleSpecifier1 (ms1) is a substring of ms2, then it is 
better
-                if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
-                    return ModuleSpecifierComparison.Better;
-                }
-                if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
-                    return ModuleSpecifierComparison.Worse;
-                }
-                // if both are relative paths, and ms1 has fewer levels, then 
it is better
-                if (ts.isExternalModuleNameRelative(moduleSpecifier1) && 
ts.isExternalModuleNameRelative(moduleSpecifier2)) {
-                    var regex = new RegExp(ts.directorySeparator, "g");
-                    var moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
-                    var moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
-                    return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
-                        ? ModuleSpecifierComparison.Better
-                        : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
-                            ? ModuleSpecifierComparison.Equal
-                            : ModuleSpecifierComparison.Worse;
-                }
-                // the equal cases include when the two specifiers are not 
comparable.
-                return ModuleSpecifierComparison.Equal;
-            };
-            return ImportCodeActionMap;
-        }());
-        codefix.registerCodeFix({
-            errorCodes: [ts.Diagnostics.Cannot_find_name_0.code],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var checker = context.program.getTypeChecker();
-                var allSourceFiles = context.program.getSourceFiles();
-                var useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
-                var token = ts.getTokenAtPosition(sourceFile, 
context.span.start);
-                var name = token.getText();
-                var symbolIdActionMap = new ImportCodeActionMap();
-                // this is a module id -> module import declaration map
-                var cachedImportDeclarations = ts.createMap();
-                var cachedNewImportInsertPosition;
-                var allPotentialModules = checker.getAmbientModules();
-                for (var _i = 0, allSourceFiles_1 = allSourceFiles; _i < 
allSourceFiles_1.length; _i++) {
-                    var otherSourceFile = allSourceFiles_1[_i];
-                    if (otherSourceFile !== sourceFile && 
ts.isExternalOrCommonJsModule(otherSourceFile)) {
-                        allPotentialModules.push(otherSourceFile.symbol);
-                    }
-                }
-                var currentTokenMeaning = ts.getMeaningFromLocation(token);
-                for (var _a = 0, allPotentialModules_1 = allPotentialModules; 
_a < allPotentialModules_1.length; _a++) {
-                    var moduleSymbol = allPotentialModules_1[_a];
-                    context.cancellationToken.throwIfCancellationRequested();
-                    // check the default export
-                    var defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
-                    if (defaultExport) {
-                        var localSymbol = 
ts.getLocalSymbolForExportDefault(defaultExport);
-                        if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
-                            // check if this symbol is already used
-                            var symbolId = getUniqueSymbolId(localSymbol);
-                            symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, /*isDefault*/ true));
-                        }
-                    }
-                    // check exports with the same name
-                    var exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
-                    if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
-                        var symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
-                        symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
-                    }
-                }
-                return symbolIdActionMap.getAllActions();
-                function getImportDeclarations(moduleSymbol) {
-                    var moduleSymbolId = getUniqueSymbolId(moduleSymbol);
-                    if (cachedImportDeclarations[moduleSymbolId]) {
-                        return cachedImportDeclarations[moduleSymbolId];
-                    }
-                    var existingDeclarations = [];
-                    for (var _i = 0, _a = sourceFile.imports; _i < _a.length; 
_i++) {
-                        var importModuleSpecifier = _a[_i];
-                        var importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
-                        if (importSymbol === moduleSymbol) {
-                            
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
-                        }
-                    }
-                    cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
-                    return existingDeclarations;
-                    function getImportDeclaration(moduleSpecifier) {
-                        var node = moduleSpecifier;
-                        while (node) {
-                            if (node.kind === 235 /* ImportDeclaration */) {
-                                return node;
-                            }
-                            if (node.kind === 234 /* ImportEqualsDeclaration 
*/) {
-                                return node;
-                            }
-                            node = node.parent;
-                        }
-                        return undefined;
-                    }
-                }
-                function getUniqueSymbolId(symbol) {
-                    if (symbol.flags & 8388608 /* Alias */) {
-                        return 
ts.getSymbolId(checker.getAliasedSymbol(symbol));
-                    }
-                    return ts.getSymbolId(symbol);
-                }
-                function checkSymbolHasMeaning(symbol, meaning) {
-                    var declarations = symbol.getDeclarations();
-                    return declarations ? ts.some(symbol.declarations, 
function (decl) { return !!(ts.getMeaningFromDeclaration(decl) & meaning); }) : 
false;
-                }
-                function getCodeActionForImport(moduleSymbol, isDefault) {
-                    var existingDeclarations = 
getImportDeclarations(moduleSymbol);
-                    if (existingDeclarations.length > 0) {
-                        // With an existing import statement, there are more 
than one actions the user can do.
-                        return 
getCodeActionsForExistingImport(existingDeclarations);
-                    }
-                    else {
-                        return [getCodeActionForNewImport()];
-                    }
-                    function getCodeActionsForExistingImport(declarations) {
-                        var actions = [];
-                        // It is possible that multiple import statements with 
the same specifier exist in the file.
-                        // e.g.
-                        //
-                        //     import * as ns from "foo";
-                        //     import { member1, member2 } from "foo";
-                        //
-                        //     member3/**/ <-- cusor here
-                        //
-                        // in this case we should provie 2 actions:
-                        //     1. change "member3" to "ns.member3"
-                        //     2. add "member3" to the second import 
statement's import list
-                        // and it is up to the user to decide which one fits 
best.
-                        var namespaceImportDeclaration;
-                        var namedImportDeclaration;
-                        var existingModuleSpecifier;
-                        for (var _i = 0, declarations_11 = declarations; _i < 
declarations_11.length; _i++) {
-                            var declaration = declarations_11[_i];
-                            if (declaration.kind === 235 /* ImportDeclaration 
*/) {
-                                var namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
-                                if (namedBindings && namedBindings.kind === 
237 /* NamespaceImport */) {
-                                    // case:
-                                    // import * as ns from "foo"
-                                    namespaceImportDeclaration = declaration;
-                                }
-                                else {
-                                    // cases:
-                                    // import default from "foo"
-                                    // import { bar } from "foo" or 
combination with the first one
-                                    // import "foo"
-                                    namedImportDeclaration = declaration;
-                                }
-                                existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
-                            }
-                            else {
-                                // case:
-                                // import foo = require("foo")
-                                namespaceImportDeclaration = declaration;
-                                existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
-                            }
-                        }
-                        if (namespaceImportDeclaration) {
-                            
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
-                        }
-                        if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
-                            (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
-                            /**
-                             * If the existing import declaration already has 
a named import list, just
-                             * insert the identifier into that list.
-                             */
-                            var textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
-                            var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
-                            
actions.push(createCodeAction(ts.Diagnostics.Add_0_to_existing_import_declaration_from_1,
 [name, moduleSpecifierWithoutQuotes], textChange.newText, textChange.span, 
sourceFile.fileName, "InsertingIntoExistingImport", 
moduleSpecifierWithoutQuotes));
-                        }
-                        else {
-                            // we need to create a new import statement, but 
the existing module specifier can be reused.
-                            
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
-                        }
-                        return actions;
-                        function 
getModuleSpecifierFromImportEqualsDeclaration(declaration) {
-                            if (declaration.moduleReference && 
declaration.moduleReference.kind === 245 /* ExternalModuleReference */) {
-                                return 
declaration.moduleReference.expression.getText();
-                            }
-                            return declaration.moduleReference.getText();
-                        }
-                        function getTextChangeForImportClause(importClause) {
-                            var newImportText = isDefault ? "default as " + 
name : name;
-                            var importList = importClause.namedBindings;
-                            // case 1:
-                            // original text: import default from "module"
-                            // change to: import default, { name } from 
"module"
-                            if (!importList && importClause.name) {
-                                var start = importClause.name.getEnd();
-                                return {
-                                    newText: ", { " + newImportText + " }",
-                                    span: { start: start, length: 0 }
-                                };
-                            }
-                            // case 2:
-                            // original text: import {} from "module"
-                            // change to: import { name } from "module"
-                            if (importList.elements.length === 0) {
-                                var start = importList.getStart();
-                                return {
-                                    newText: "{ " + newImportText + " }",
-                                    span: { start: start, length: 
importList.getEnd() - start }
-                                };
-                            }
-                            // case 3:
-                            // original text: import { foo, bar } from "module"
-                            // change to: import { foo, bar, name } from 
"module"
-                            var insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
-                            /**
-                             * If the import list has one import per line, 
preserve that. Otherwise, insert on same line as last element
-                             *     import {
-                             *         foo
-                             *     } from "./module";
-                             */
-                            var startLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getStart());
-                            var endLine = 
ts.getLineOfLocalPosition(sourceFile, importList.getEnd());
-                            var oneImportPerLine = endLine - startLine > 
importList.elements.length;
-                            return {
-                                newText: "," + (oneImportPerLine ? 
context.newLineCharacter : " ") + newImportText,
-                                span: { start: insertPoint, length: 0 }
-                            };
-                        }
-                        function getCodeActionForNamespaceImport(declaration) {
-                            var namespacePrefix;
-                            if (declaration.kind === 235 /* ImportDeclaration 
*/) {
-                                namespacePrefix = 
declaration.importClause.namedBindings.name.getText();
-                            }
-                            else {
-                                namespacePrefix = declaration.name.getText();
-                            }
-                            namespacePrefix = ts.stripQuotes(namespacePrefix);
-                            /**
-                             * Cases:
-                             *     import * as ns from "mod"
-                             *     import default, * as ns from "mod"
-                             *     import ns = require("mod")
-                             *
-                             * Because there is no import list, we alter the 
reference to include the
-                             * namespace instead of altering the import 
declaration. For example, "foo" would
-                             * become "ns.foo"
-                             */
-                            return 
createCodeAction(ts.Diagnostics.Change_0_to_1, [name, namespacePrefix + "." + 
name], namespacePrefix + ".", { start: token.getStart(), length: 0 }, 
sourceFile.fileName, "CodeChange");
-                        }
-                    }
-                    function getCodeActionForNewImport(moduleSpecifier) {
-                        if (!cachedNewImportInsertPosition) {
-                            // insert after any existing imports
-                            var lastModuleSpecifierEnd = -1;
-                            for (var _i = 0, _a = sourceFile.imports; _i < 
_a.length; _i++) {
-                                var moduleSpecifier_1 = _a[_i];
-                                var end = moduleSpecifier_1.getEnd();
-                                if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
-                                    lastModuleSpecifierEnd = end;
-                                }
-                            }
-                            cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
-                        }
-                        var getCanonicalFileName = 
ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
-                        var moduleSpecifierWithoutQuotes = 
ts.stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
-                        var importStatementText = isDefault
-                            ? "import " + name + " from \"" + 
moduleSpecifierWithoutQuotes + "\""
-                            : "import { " + name + " } from \"" + 
moduleSpecifierWithoutQuotes + "\"";
-                        // if this file doesn't have any import statements, 
insert an import statement and then insert a new line
-                        // between the only import statement and user code. 
Otherwise just insert the statement because chances
-                        // are there are already a new line seperating code 
and import statements.
-                        var newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
-                            ? importStatementText + ";" + 
context.newLineCharacter + context.newLineCharacter
-                            : "" + context.newLineCharacter + 
importStatementText + ";";
-                        return 
createCodeAction(ts.Diagnostics.Import_0_from_1, [name, "\"" + 
moduleSpecifierWithoutQuotes + "\""], newText, { start: 
cachedNewImportInsertPosition, length: 0 }, sourceFile.fileName, "NewImport", 
moduleSpecifierWithoutQuotes);
-                        function getModuleSpecifierForNewImport() {
-                            var fileName = sourceFile.path;
-                            var moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
-                            var sourceDirectory = 
ts.getDirectoryPath(fileName);
-                            var options = context.program.getCompilerOptions();
-                            return tryGetModuleNameFromAmbientModule() ||
-                                tryGetModuleNameFromBaseUrl() ||
-                                tryGetModuleNameFromRootDirs() ||
-                                tryGetModuleNameFromTypeRoots() ||
-                                tryGetModuleNameAsNodeModule() ||
-                                
ts.removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
-                            function tryGetModuleNameFromAmbientModule() {
-                                if (moduleSymbol.valueDeclaration.kind !== 261 
/* SourceFile */) {
-                                    return moduleSymbol.name;
-                                }
-                            }
-                            function tryGetModuleNameFromBaseUrl() {
-                                if (!options.baseUrl) {
-                                    return undefined;
-                                }
-                                var normalizedBaseUrl = 
ts.toPath(options.baseUrl, ts.getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
-                                var relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
-                                if (!relativeName) {
-                                    return undefined;
-                                }
-                                relativeName = 
removeExtensionAndIndexPostFix(relativeName);
-                                if (options.paths) {
-                                    for (var key in options.paths) {
-                                        for (var _i = 0, _a = 
options.paths[key]; _i < _a.length; _i++) {
-                                            var pattern = _a[_i];
-                                            var indexOfStar = 
pattern.indexOf("*");
-                                            if (indexOfStar === 0 && 
pattern.length === 1) {
-                                                continue;
-                                            }
-                                            else if (indexOfStar !== -1) {
-                                                var prefix = pattern.substr(0, 
indexOfStar);
-                                                var suffix = 
pattern.substr(indexOfStar + 1);
-                                                if (relativeName.length >= 
prefix.length + suffix.length &&
-                                                    
ts.startsWith(relativeName, prefix) &&
-                                                    ts.endsWith(relativeName, 
suffix)) {
-                                                    var matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
-                                                    return key.replace("\*", 
matchedStar);
-                                                }
-                                            }
-                                            else if (pattern === relativeName) 
{
-                                                return key;
-                                            }
-                                        }
-                                    }
-                                }
-                                return relativeName;
-                            }
-                            function tryGetModuleNameFromRootDirs() {
-                                if (options.rootDirs) {
-                                    var normalizedRootDirs = 
ts.map(options.rootDirs, function (rootDir) { return ts.toPath(rootDir, 
/*basePath*/ undefined, getCanonicalFileName); });
-                                    var normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
-                                    var normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
-                                    if (normalizedTargetPath !== undefined) {
-                                        var relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
-                                        return 
ts.removeFileExtension(relativePath);
-                                    }
-                                }
-                                return undefined;
-                            }
-                            function tryGetModuleNameFromTypeRoots() {
-                                var typeRoots = 
ts.getEffectiveTypeRoots(options, context.host);
-                                if (typeRoots) {
-                                    var normalizedTypeRoots = 
ts.map(typeRoots, function (typeRoot) { return ts.toPath(typeRoot, /*basePath*/ 
undefined, getCanonicalFileName); });
-                                    for (var _i = 0, normalizedTypeRoots_1 = 
normalizedTypeRoots; _i < normalizedTypeRoots_1.length; _i++) {
-                                        var typeRoot = 
normalizedTypeRoots_1[_i];
-                                        if (ts.startsWith(moduleFileName, 
typeRoot)) {
-                                            var relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
-                                            return 
removeExtensionAndIndexPostFix(relativeFileName);
-                                        }
-                                    }
-                                }
-                            }
-                            function tryGetModuleNameAsNodeModule() {
-                                if (ts.getEmitModuleResolutionKind(options) 
!== ts.ModuleResolutionKind.NodeJs) {
-                                    // nothing to do here
-                                    return undefined;
-                                }
-                                var indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
-                                if (indexOfNodeModules < 0) {
-                                    return undefined;
-                                }
-                                var relativeFileName;
-                                if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
-                                    // if node_modules folder is in this 
folder or any of its parent folder, no need to keep it.
-                                    relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13 /* "node_modules\".length */);
-                                }
-                                else {
-                                    relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
-                                }
-                                relativeFileName = 
ts.removeFileExtension(relativeFileName);
-                                if (ts.endsWith(relativeFileName, "/index")) {
-                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                }
-                                else {
-                                    try {
-                                        var moduleDirectory = 
ts.getDirectoryPath(moduleFileName);
-                                        var packageJsonContent = 
JSON.parse(context.host.readFile(ts.combinePaths(moduleDirectory, 
"package.json")));
-                                        if (packageJsonContent) {
-                                            var mainFile = 
packageJsonContent.main || packageJsonContent.typings;
-                                            if (mainFile) {
-                                                var mainExportFile = 
ts.toPath(mainFile, moduleDirectory, getCanonicalFileName);
-                                                if 
(ts.removeFileExtension(mainExportFile) === 
ts.removeFileExtension(moduleFileName)) {
-                                                    relativeFileName = 
ts.getDirectoryPath(relativeFileName);
-                                                }
-                                            }
-                                        }
-                                    }
-                                    catch (e) { }
-                                }
-                                return relativeFileName;
-                            }
-                        }
-                        function getPathRelativeToRootDirs(path, rootDirs) {
-                            for (var _i = 0, rootDirs_2 = rootDirs; _i < 
rootDirs_2.length; _i++) {
-                                var rootDir = rootDirs_2[_i];
-                                var relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
-                                if (relativeName !== undefined) {
-                                    return relativeName;
-                                }
-                            }
-                            return undefined;
-                        }
-                        function removeExtensionAndIndexPostFix(fileName) {
-                            fileName = ts.removeFileExtension(fileName);
-                            if (ts.endsWith(fileName, "/index")) {
-                                fileName = fileName.substr(0, fileName.length 
- 6 /* "/index".length */);
-                            }
-                            return fileName;
-                        }
-                        function getRelativePath(path, directoryPath) {
-                            var relativePath = 
ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
-                            return ts.moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
-                        }
-                        function tryRemoveParentDirectoryName(path, 
parentDirectory) {
-                            var index = path.indexOf(parentDirectory);
-                            if (index === 0) {
-                                return ts.endsWith(parentDirectory, 
ts.directorySeparator)
-                                    ? path.substring(parentDirectory.length)
-                                    : path.substring(parentDirectory.length + 
1);
-                            }
-                            return undefined;
-                        }
-                    }
-                }
-                function createCodeAction(description, diagnosticArgs, 
newText, span, fileName, kind, moduleSpecifier) {
-                    return {
-                        description: ts.formatMessage.apply(undefined, 
[undefined, description].concat(diagnosticArgs)),
-                        changes: [{ fileName: fileName, textChanges: [{ 
newText: newText, span: span }] }],
-                        kind: kind,
-                        moduleSpecifier: moduleSpecifier
-                    };
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
-/* @internal */
-var ts;
-(function (ts) {
-    var codefix;
-    (function (codefix) {
-        codefix.registerCodeFix({
-            errorCodes: [
-                ts.Diagnostics._0_is_declared_but_never_used.code,
-                ts.Diagnostics.Property_0_is_declared_but_never_used.code
-            ],
-            getCodeActions: function (context) {
-                var sourceFile = context.sourceFile;
-                var start = context.span.start;
-                var token = ts.getTokenAtPosition(sourceFile, start);
-                // this handles var ["computed"] = 12;
-                if (token.kind === 20 /* OpenBracketToken */) {
-                    token = ts.getTokenAtPosition(sourceFile, start + 1);
-                }
-                switch (token.kind) {
-                    case 70 /* Identifier */:
-                        switch (token.parent.kind) {
-                            case 223 /* VariableDeclaration */:
-                                switch (token.parent.parent.parent.kind) {
-                                    case 211 /* ForStatement */:
-                                        var forStatement = 
token.parent.parent.parent;
-                                        var forInitializer = 
forStatement.initializer;
-                                        if (forInitializer.declarations.length 
=== 1) {
-                                            return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
-                                        }
-                                        else {
-                                            return 
removeSingleItem(forInitializer.declarations, token);
-                                        }
-                                    case 213 /* ForOfStatement */:
-                                        var forOfStatement = 
token.parent.parent.parent;
-                                        if (forOfStatement.initializer.kind 
=== 224 /* VariableDeclarationList */) {
-                                            var forOfInitializer = 
forOfStatement.initializer;
-                                            return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
-                                        }
-                                        break;
-                                    case 212 /* ForInStatement */:
-                                        // There is no valid fix in the case 
of:
-                                        //  for .. in
-                                        return undefined;
-                                    case 256 /* CatchClause */:
-                                        var catchClause = token.parent.parent;
-                                        var parameter = 
catchClause.variableDeclaration.getChildren()[0];
-                                        return createCodeFix("", 
parameter.pos, parameter.end - parameter.pos);
-                                    default:
-                                        var variableStatement = 
token.parent.parent.parent;
-                                        if 
(variableStatement.declarationList.declarations.length === 1) {
-                                            return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
-                                        }
-                                        else {
-                                            var declarations = 
variableStatement.declarationList.declarations;
-                                            return 
removeSingleItem(declarations, token);
-                                        }
-                                }
-                            case 143 /* TypeParameter */:
-                                var typeParameters = 
token.parent.parent.typeParameters;
-                                if (typeParameters.length === 1) {
-                                    return createCodeFix("", token.parent.pos 
- 1, token.parent.end - token.parent.pos + 2);
-                                }
-                                else {
-                                    return removeSingleItem(typeParameters, 
token);
-                                }
-                            case 144 /* Parameter */:
-                                var functionDeclaration = token.parent.parent;
-                                if (functionDeclaration.parameters.length === 
1) {
-                                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(functionDeclaration.parameters, token);
-                                }
-                            // handle case where 'import a = A;'
-                            case 234 /* ImportEqualsDeclaration */:
-                                var importEquals = 
findImportDeclaration(token);
-                                return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
-                            case 239 /* ImportSpecifier */:
-                                var namedImports = token.parent.parent;
-                                if (namedImports.elements.length === 1) {
-                                    // Only 1 import and it is unused. So the 
entire declaration should be removed.
-                                    var importSpec = 
findImportDeclaration(token);
-                                    return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
-                                }
-                                else {
-                                    return 
removeSingleItem(namedImports.elements, token);
-                                }
-                            // handle case where "import d, * as ns from 
'./file'" 
-                            // or "'import {a, b as ns} from './file'"
-                            case 236 /* ImportClause */:
-                                var importClause = token.parent;
-                                if (!importClause.namedBindings) {
-                                    var importDecl = 
findImportDeclaration(importClause);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
-                                }
-                            case 237 /* NamespaceImport */:
-                                var namespaceImport = token.parent;
-                                if (namespaceImport.name == token && 
!namespaceImport.parent.name) {
-                                    var importDecl = 
findImportDeclaration(namespaceImport);
-                                    return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
-                                }
-                                else {
-                                    var start_4 = 
namespaceImport.parent.name.end;
-                                    return createCodeFix("", start_4, 
namespaceImport.parent.namedBindings.end - start_4);
-                                }
-                        }
-                        break;
-                    case 147 /* PropertyDeclaration */:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                    case 237 /* NamespaceImport */:
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                if (ts.isDeclarationName(token)) {
-                    return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
-                }
-                else if (ts.isLiteralComputedPropertyDeclarationName(token)) {
-                    return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
-                }
-                else {
-                    return undefined;
-                }
-                function findImportDeclaration(token) {
-                    var importDecl = token;
-                    while (importDecl.kind != 235 /* ImportDeclaration */ && 
importDecl.parent) {
-                        importDecl = importDecl.parent;
-                    }
-                    return importDecl;
-                }
-                function createCodeFix(newText, start, length) {
-                    return [{
-                            description: 
ts.getLocaleSpecificMessage(ts.Diagnostics.Remove_unused_identifiers),
-                            changes: [{
-                                    fileName: sourceFile.fileName,
-                                    textChanges: [{ newText: newText, span: { 
start: start, length: length } }]
-                                }]
-                        }];
-                }
-                function removeSingleItem(elements, token) {
-                    if (elements[0] === token.parent) {
-                        return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
-                    }
-                    else {
-                        return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
-                    }
-                }
-            }
-        });
-    })(codefix = ts.codefix || (ts.codefix = {}));
-})(ts || (ts = {}));
+// /* @internal */
+// namespace ts.codefix {
+//     type ImportCodeActionKind = "CodeChange" | 
"InsertingIntoExistingImport" | "NewImport";
+//     interface ImportCodeAction extends CodeAction {
+//         kind: ImportCodeActionKind,
+//         moduleSpecifier?: string
+//     }
+//     enum ModuleSpecifierComparison {
+//         Better,
+//         Equal,
+//         Worse
+//     }
+//     class ImportCodeActionMap {
+//         private symbolIdToActionMap = createMap<ImportCodeAction[]>();
+//         addAction(symbolId: number, newAction: ImportCodeAction) {
+//             if (!newAction) {
+//                 return;
+//             }
+//             if (!this.symbolIdToActionMap[symbolId]) {
+//                 this.symbolIdToActionMap[symbolId] = [newAction];
+//                 return;
+//             }
+//             if (newAction.kind === "CodeChange") {
+//                 this.symbolIdToActionMap[symbolId].push(newAction);
+//                 return;
+//             }
+//             const updatedNewImports: ImportCodeAction[] = [];
+//             for (const existingAction of 
this.symbolIdToActionMap[symbolId]) {
+//                 if (existingAction.kind === "CodeChange") {
+//                     // only import actions should compare
+//                     updatedNewImports.push(existingAction);
+//                     continue;
+//                 }
+//                 switch 
(this.compareModuleSpecifiers(existingAction.moduleSpecifier, 
newAction.moduleSpecifier)) {
+//                     case ModuleSpecifierComparison.Better:
+//                         // the new one is not worth considering if it is a 
new improt.
+//                         // However if it is instead a insertion into 
existing import, the user might want to use
+//                         // the module specifier even it is worse by our 
standards. So keep it.
+//                         if (newAction.kind === "NewImport") {
+//                             return;
+//                         }
+//                     case ModuleSpecifierComparison.Equal:
+//                         // the current one is safe. But it is still 
possible that the new one is worse
+//                         // than another existing one. For example, you may 
have new imports from "./foo/bar"
+//                         // and "bar", when the new one is "bar/bar2" and 
the current one is "./foo/bar". The new
+//                         // one and the current one are not comparable (one 
relative path and one absolute path),
+//                         // but the new one is worse than the other one, so 
should not add to the list.
+//                         updatedNewImports.push(existingAction);
+//                         break;
+//                     case ModuleSpecifierComparison.Worse:
+//                         // the existing one is worse, remove from the list.
+//                         continue;
+//                 }
+//             }
+//             // if we reach here, it means the new one is better or equal to 
all of the existing ones.
+//             updatedNewImports.push(newAction);
+//             this.symbolIdToActionMap[symbolId] = updatedNewImports;
+//         }
+//         addActions(symbolId: number, newActions: ImportCodeAction[]) {
+//             for (const newAction of newActions) {
+//                 this.addAction(symbolId, newAction);
+//             }
+//         }
+//         getAllActions() {
+//             let result: ImportCodeAction[] = [];
+//             for (const symbolId in this.symbolIdToActionMap) {
+//                 result = concatenate(result, 
this.symbolIdToActionMap[symbolId]);
+//             }
+//             return result;
+//         }
+//         private compareModuleSpecifiers(moduleSpecifier1: string, 
moduleSpecifier2: string): ModuleSpecifierComparison {
+//             if (moduleSpecifier1 === moduleSpecifier2) {
+//                 return ModuleSpecifierComparison.Equal;
+//             }
+//             // if moduleSpecifier1 (ms1) is a substring of ms2, then it is 
better
+//             if (moduleSpecifier2.indexOf(moduleSpecifier1) === 0) {
+//                 return ModuleSpecifierComparison.Better;
+//             }
+//             if (moduleSpecifier1.indexOf(moduleSpecifier2) === 0) {
+//                 return ModuleSpecifierComparison.Worse;
+//             }
+//             // if both are relative paths, and ms1 has fewer levels, then 
it is better
+//             if (isExternalModuleNameRelative(moduleSpecifier1) && 
isExternalModuleNameRelative(moduleSpecifier2)) {
+//                 const regex = new RegExp(directorySeparator, "g");
+//                 const moduleSpecifier1LevelCount = 
(moduleSpecifier1.match(regex) || []).length;
+//                 const moduleSpecifier2LevelCount = 
(moduleSpecifier2.match(regex) || []).length;
+//                 return moduleSpecifier1LevelCount < 
moduleSpecifier2LevelCount
+//                     ? ModuleSpecifierComparison.Better
+//                     : moduleSpecifier1LevelCount === 
moduleSpecifier2LevelCount
+//                         ? ModuleSpecifierComparison.Equal
+//                         : ModuleSpecifierComparison.Worse;
+//             }
+//             // the equal cases include when the two specifiers are not 
comparable.
+//             return ModuleSpecifierComparison.Equal;
+//         }
+//     }
+//     registerCodeFix({
+//         errorCodes: [Diagnostics.Cannot_find_name_0.code],
+//         getCodeActions: (context: CodeFixContext) => {
+//             const sourceFile = context.sourceFile;
+//             const checker = context.program.getTypeChecker();
+//             const allSourceFiles = context.program.getSourceFiles();
+//             const useCaseSensitiveFileNames = 
context.host.useCaseSensitiveFileNames ? 
context.host.useCaseSensitiveFileNames() : false;
+//             const token = getTokenAtPosition(sourceFile, 
context.span.start);
+//             const name = token.getText();
+//             const symbolIdActionMap = new ImportCodeActionMap();
+//             // this is a module id -> module import declaration map
+//             const cachedImportDeclarations = createMap<(ImportDeclaration | 
ImportEqualsDeclaration)[]>();
+//             let cachedNewImportInsertPosition: number;
+//             const allPotentialModules = checker.getAmbientModules();
+//             for (const otherSourceFile of allSourceFiles) {
+//                 if (otherSourceFile !== sourceFile && 
isExternalOrCommonJsModule(otherSourceFile)) {
+//                     allPotentialModules.push(otherSourceFile.symbol);
+//                 }
+//             }
+//             const currentTokenMeaning = getMeaningFromLocation(token);
+//             for (const moduleSymbol of allPotentialModules) {
+//                 context.cancellationToken.throwIfCancellationRequested();
+//                 // check the default export
+//                 const defaultExport = 
checker.tryGetMemberInModuleExports("default", moduleSymbol);
+//                 if (defaultExport) {
+//                     const localSymbol = 
getLocalSymbolForExportDefault(defaultExport);
+//                     if (localSymbol && localSymbol.name === name && 
checkSymbolHasMeaning(localSymbol, currentTokenMeaning)) {
+//                         // check if this symbol is already used
+//                         const symbolId = getUniqueSymbolId(localSymbol);
+//                         symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol, /*isDefault*/ true));
+//                     }
+//                 }
+//                 // check exports with the same name
+//                 const exportSymbolWithIdenticalName = 
checker.tryGetMemberInModuleExports(name, moduleSymbol);
+//                 if (exportSymbolWithIdenticalName && 
checkSymbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {
+//                     const symbolId = 
getUniqueSymbolId(exportSymbolWithIdenticalName);
+//                     symbolIdActionMap.addActions(symbolId, 
getCodeActionForImport(moduleSymbol));
+//                 }
+//             }
+//             return symbolIdActionMap.getAllActions();
+//             function getImportDeclarations(moduleSymbol: Symbol) {
+//                 const moduleSymbolId = getUniqueSymbolId(moduleSymbol);
+//                 if (cachedImportDeclarations[moduleSymbolId]) {
+//                     return cachedImportDeclarations[moduleSymbolId];
+//                 }
+//                 const existingDeclarations: (ImportDeclaration | 
ImportEqualsDeclaration)[] = [];
+//                 for (const importModuleSpecifier of sourceFile.imports) {
+//                     const importSymbol = 
checker.getSymbolAtLocation(importModuleSpecifier);
+//                     if (importSymbol === moduleSymbol) {
+//                         
existingDeclarations.push(getImportDeclaration(importModuleSpecifier));
+//                     }
+//                 }
+//                 cachedImportDeclarations[moduleSymbolId] = 
existingDeclarations;
+//                 return existingDeclarations;
+//                 function getImportDeclaration(moduleSpecifier: 
LiteralExpression) {
+//                     let node: Node = moduleSpecifier;
+//                     while (node) {
+//                         if (node.kind === SyntaxKind.ImportDeclaration) {
+//                             return <ImportDeclaration>node;
+//                         }
+//                         if (node.kind === 
SyntaxKind.ImportEqualsDeclaration) {
+//                             return <ImportEqualsDeclaration>node;
+//                         }
+//                         node = node.parent;
+//                     }
+//                     return undefined;
+//                 }
+//             }
+//             function getUniqueSymbolId(symbol: Symbol) {
+//                 if (symbol.flags & SymbolFlags.Alias) {
+//                     return getSymbolId(checker.getAliasedSymbol(symbol));
+//                 }
+//                 return getSymbolId(symbol);
+//             }
+//             function checkSymbolHasMeaning(symbol: Symbol, meaning: 
SemanticMeaning) {
+//                 const declarations = symbol.getDeclarations();
+//                 return declarations ? some(symbol.declarations, decl => 
!!(getMeaningFromDeclaration(decl) & meaning)) : false;
+//             }
+//             function getCodeActionForImport(moduleSymbol: Symbol, 
isDefault?: boolean): ImportCodeAction[] {
+//                 const existingDeclarations = 
getImportDeclarations(moduleSymbol);
+//                 if (existingDeclarations.length > 0) {
+//                     // With an existing import statement, there are more 
than one actions the user can do.
+//                     return 
getCodeActionsForExistingImport(existingDeclarations);
+//                 }
+//                 else {
+//                     return [getCodeActionForNewImport()];
+//                 }
+//                 function getCodeActionsForExistingImport(declarations: 
(ImportDeclaration | ImportEqualsDeclaration)[]): ImportCodeAction[] {
+//                     const actions: ImportCodeAction[] = [];
+//                     // It is possible that multiple import statements with 
the same specifier exist in the file.
+//                     // e.g.
+//                     //
+//                     //     import * as ns from "foo";
+//                     //     import { member1, member2 } from "foo";
+//                     //
+//                     //     member3/**/ <-- cusor here
+//                     //
+//                     // in this case we should provie 2 actions:
+//                     //     1. change "member3" to "ns.member3"
+//                     //     2. add "member3" to the second import 
statement's import list
+//                     // and it is up to the user to decide which one fits 
best.
+//                     let namespaceImportDeclaration: ImportDeclaration | 
ImportEqualsDeclaration;
+//                     let namedImportDeclaration: ImportDeclaration;
+//                     let existingModuleSpecifier: string;
+//                     for (const declaration of declarations) {
+//                         if (declaration.kind === 
SyntaxKind.ImportDeclaration) {
+//                             const namedBindings = declaration.importClause 
&& declaration.importClause.namedBindings;
+//                             if (namedBindings && namedBindings.kind === 
SyntaxKind.NamespaceImport) {
+//                                 // case:
+//                                 // import * as ns from "foo"
+//                                 namespaceImportDeclaration = declaration;
+//                             }
+//                             else {
+//                                 // cases:
+//                                 // import default from "foo"
+//                                 // import { bar } from "foo" or combination 
with the first one
+//                                 // import "foo"
+//                                 namedImportDeclaration = declaration;
+//                             }
+//                             existingModuleSpecifier = 
declaration.moduleSpecifier.getText();
+//                         }
+//                         else {
+//                             // case:
+//                             // import foo = require("foo")
+//                             namespaceImportDeclaration = declaration;
+//                             existingModuleSpecifier = 
getModuleSpecifierFromImportEqualsDeclaration(declaration);
+//                         }
+//                     }
+//                     if (namespaceImportDeclaration) {
+//                         
actions.push(getCodeActionForNamespaceImport(namespaceImportDeclaration));
+//                     }
+//                     if (namedImportDeclaration && 
namedImportDeclaration.importClause &&
+//                         (namedImportDeclaration.importClause.name || 
namedImportDeclaration.importClause.namedBindings)) {
+//                         /**
+//                          * If the existing import declaration already has a 
named import list, just
+//                          * insert the identifier into that list.
+//                          */
+//                         const textChange = 
getTextChangeForImportClause(namedImportDeclaration.importClause);
+//                         const moduleSpecifierWithoutQuotes = 
stripQuotes(namedImportDeclaration.moduleSpecifier.getText());
+//                         actions.push(createCodeAction(
+//                             
Diagnostics.Add_0_to_existing_import_declaration_from_1,
+//                             [name, moduleSpecifierWithoutQuotes],
+//                             textChange.newText,
+//                             textChange.span,
+//                             sourceFile.fileName,
+//                             "InsertingIntoExistingImport",
+//                             moduleSpecifierWithoutQuotes
+//                         ));
+//                     }
+//                     else {
+//                         // we need to create a new import statement, but 
the existing module specifier can be reused.
+//                         
actions.push(getCodeActionForNewImport(existingModuleSpecifier));
+//                     }
+//                     return actions;
+//                     function 
getModuleSpecifierFromImportEqualsDeclaration(declaration: 
ImportEqualsDeclaration) {
+//                         if (declaration.moduleReference && 
declaration.moduleReference.kind === SyntaxKind.ExternalModuleReference) {
+//                             return 
declaration.moduleReference.expression.getText();
+//                         }
+//                         return declaration.moduleReference.getText();
+//                     }
+//                     function getTextChangeForImportClause(importClause: 
ImportClause): TextChange {
+//                         const newImportText = isDefault ? `default as 
${name}` : name;
+//                         const importList = 
<NamedImports>importClause.namedBindings;
+//                         // case 1:
+//                         // original text: import default from "module"
+//                         // change to: import default, { name } from "module"
+//                         if (!importList && importClause.name) {
+//                             const start = importClause.name.getEnd();
+//                             return {
+//                                 newText: `, { ${newImportText} }`,
+//                                 span: { start, length: 0 }
+//                             };
+//                         }
+//                         // case 2:
+//                         // original text: import {} from "module"
+//                         // change to: import { name } from "module"
+//                         if (importList.elements.length === 0) {
+//                             const start = importList.getStart();
+//                             return {
+//                                 newText: `{ ${newImportText} }`,
+//                                 span: { start, length: importList.getEnd() 
- start }
+//                             };
+//                         }
+//                         // case 3:
+//                         // original text: import { foo, bar } from "module"
+//                         // change to: import { foo, bar, name } from 
"module"
+//                         const insertPoint = 
importList.elements[importList.elements.length - 1].getEnd();
+//                         /**
+//                          * If the import list has one import per line, 
preserve that. Otherwise, insert on same line as last element
+//                          *     import {
+//                          *         foo
+//                          *     } from "./module";
+//                          */
+//                         const startLine = 
getLineOfLocalPosition(sourceFile, importList.getStart());
+//                         const endLine = getLineOfLocalPosition(sourceFile, 
importList.getEnd());
+//                         const oneImportPerLine = endLine - startLine > 
importList.elements.length;
+//                         return {
+//                             newText: `,${oneImportPerLine ? 
context.newLineCharacter : " "}${newImportText}`,
+//                             span: { start: insertPoint, length: 0 }
+//                         };
+//                     }
+//                     function getCodeActionForNamespaceImport(declaration: 
ImportDeclaration | ImportEqualsDeclaration): ImportCodeAction {
+//                         let namespacePrefix: string;
+//                         if (declaration.kind === 
SyntaxKind.ImportDeclaration) {
+//                             namespacePrefix = 
(<NamespaceImport>declaration.importClause.namedBindings).name.getText();
+//                         }
+//                         else {
+//                             namespacePrefix = declaration.name.getText();
+//                         }
+//                         namespacePrefix = stripQuotes(namespacePrefix);
+//                         /**
+//                          * Cases:
+//                          *     import * as ns from "mod"
+//                          *     import default, * as ns from "mod"
+//                          *     import ns = require("mod")
+//                          *
+//                          * Because there is no import list, we alter the 
reference to include the
+//                          * namespace instead of altering the import 
declaration. For example, "foo" would
+//                          * become "ns.foo"
+//                          */
+//                         return createCodeAction(
+//                             Diagnostics.Change_0_to_1,
+//                             [name, `${namespacePrefix}.${name}`],
+//                             `${namespacePrefix}.`,
+//                             { start: token.getStart(), length: 0 },
+//                             sourceFile.fileName,
+//                             "CodeChange"
+//                         );
+//                     }
+//                 }
+//                 function getCodeActionForNewImport(moduleSpecifier?: 
string): ImportCodeAction {
+//                     if (!cachedNewImportInsertPosition) {
+//                         // insert after any existing imports
+//                         let lastModuleSpecifierEnd = -1;
+//                         for (const moduleSpecifier of sourceFile.imports) {
+//                             const end = moduleSpecifier.getEnd();
+//                             if (!lastModuleSpecifierEnd || end > 
lastModuleSpecifierEnd) {
+//                                 lastModuleSpecifierEnd = end;
+//                             }
+//                         }
+//                         cachedNewImportInsertPosition = 
lastModuleSpecifierEnd > 0 ? 
sourceFile.getLineEndOfPosition(lastModuleSpecifierEnd) : sourceFile.getStart();
+//                     }
+//                     const getCanonicalFileName = 
createGetCanonicalFileName(useCaseSensitiveFileNames);
+//                     const moduleSpecifierWithoutQuotes = 
stripQuotes(moduleSpecifier || getModuleSpecifierForNewImport());
+//                     const importStatementText = isDefault
+//                         ? `import ${name} from 
"${moduleSpecifierWithoutQuotes}"`
+//                         : `import { ${name} } from 
"${moduleSpecifierWithoutQuotes}"`;
+//                     // if this file doesn't have any import statements, 
insert an import statement and then insert a new line
+//                     // between the only import statement and user code. 
Otherwise just insert the statement because chances
+//                     // are there are already a new line seperating code and 
import statements.
+//                     const newText = cachedNewImportInsertPosition === 
sourceFile.getStart()
+//                         ? 
`${importStatementText};${context.newLineCharacter}${context.newLineCharacter}`
+//                         : 
`${context.newLineCharacter}${importStatementText};`;
+//                     return createCodeAction(
+//                         Diagnostics.Import_0_from_1,
+//                         [name, `"${moduleSpecifierWithoutQuotes}"`],
+//                         newText,
+//                         { start: cachedNewImportInsertPosition, length: 0 },
+//                         sourceFile.fileName,
+//                         "NewImport",
+//                         moduleSpecifierWithoutQuotes
+//                     );
+//                     function getModuleSpecifierForNewImport() {
+//                         const fileName = sourceFile.path;
+//                         const moduleFileName = 
moduleSymbol.valueDeclaration.getSourceFile().path;
+//                         const sourceDirectory = getDirectoryPath(fileName);
+//                         const options = 
context.program.getCompilerOptions();
+//                         return tryGetModuleNameFromAmbientModule() ||
+//                             tryGetModuleNameFromBaseUrl() ||
+//                             tryGetModuleNameFromRootDirs() ||
+//                             tryGetModuleNameFromTypeRoots() ||
+//                             tryGetModuleNameAsNodeModule() ||
+//                             
removeFileExtension(getRelativePath(moduleFileName, sourceDirectory));
+//                         function tryGetModuleNameFromAmbientModule(): 
string {
+//                             if (moduleSymbol.valueDeclaration.kind !== 
SyntaxKind.SourceFile) {
+//                                 return moduleSymbol.name;
+//                             }
+//                         }
+//                         function tryGetModuleNameFromBaseUrl() {
+//                             if (!options.baseUrl) {
+//                                 return undefined;
+//                             }
+//                             const normalizedBaseUrl = 
toPath(options.baseUrl, getDirectoryPath(options.baseUrl), 
getCanonicalFileName);
+//                             let relativeName = 
tryRemoveParentDirectoryName(moduleFileName, normalizedBaseUrl);
+//                             if (!relativeName) {
+//                                 return undefined;
+//                             }
+//                             relativeName = 
removeExtensionAndIndexPostFix(relativeName);
+//                             if (options.paths) {
+//                                 for (const key in options.paths) {
+//                                     for (const pattern of 
options.paths[key]) {
+//                                         const indexOfStar = 
pattern.indexOf("*");
+//                                         if (indexOfStar === 0 && 
pattern.length === 1) {
+//                                             continue;
+//                                         }
+//                                         else if (indexOfStar !== -1) {
+//                                             const prefix = 
pattern.substr(0, indexOfStar);
+//                                             const suffix = 
pattern.substr(indexOfStar + 1);
+//                                             if (relativeName.length >= 
prefix.length + suffix.length &&
+//                                                 startsWith(relativeName, 
prefix) &&
+//                                                 endsWith(relativeName, 
suffix)) {
+//                                                 const matchedStar = 
relativeName.substr(prefix.length, relativeName.length - suffix.length);
+//                                                 return key.replace("\*", 
matchedStar);
+//                                             }
+//                                         }
+//                                         else if (pattern === relativeName) {
+//                                             return key;
+//                                         }
+//                                     }
+//                                 }
+//                             }
+//                             return relativeName;
+//                         }
+//                         function tryGetModuleNameFromRootDirs() {
+//                             if (options.rootDirs) {
+//                                 const normalizedRootDirs = 
map(options.rootDirs, rootDir => toPath(rootDir, /*basePath*/ undefined, 
getCanonicalFileName));
+//                                 const normalizedTargetPath = 
getPathRelativeToRootDirs(moduleFileName, normalizedRootDirs);
+//                                 const normalizedSourcePath = 
getPathRelativeToRootDirs(sourceDirectory, normalizedRootDirs);
+//                                 if (normalizedTargetPath !== undefined) {
+//                                     const relativePath = 
normalizedSourcePath !== undefined ? getRelativePath(normalizedTargetPath, 
normalizedSourcePath) : normalizedTargetPath;
+//                                     return 
removeFileExtension(relativePath);
+//                                 }
+//                             }
+//                             return undefined;
+//                         }
+//                         function tryGetModuleNameFromTypeRoots() {
+//                             const typeRoots = 
getEffectiveTypeRoots(options, context.host);
+//                             if (typeRoots) {
+//                                 const normalizedTypeRoots = map(typeRoots, 
typeRoot => toPath(typeRoot, /*basePath*/ undefined, getCanonicalFileName));
+//                                 for (const typeRoot of normalizedTypeRoots) 
{
+//                                     if (startsWith(moduleFileName, 
typeRoot)) {
+//                                         const relativeFileName = 
moduleFileName.substring(typeRoot.length + 1);
+//                                         return 
removeExtensionAndIndexPostFix(relativeFileName);
+//                                     }
+//                                 }
+//                             }
+//                         }
+//                         function tryGetModuleNameAsNodeModule() {
+//                             if (getEmitModuleResolutionKind(options) !== 
ModuleResolutionKind.NodeJs) {
+//                                 // nothing to do here
+//                                 return undefined;
+//                             }
+//                             const indexOfNodeModules = 
moduleFileName.indexOf("node_modules");
+//                             if (indexOfNodeModules < 0) {
+//                                 return undefined;
+//                             }
+//                             let relativeFileName: string;
+//                             if 
(sourceDirectory.indexOf(moduleFileName.substring(0, indexOfNodeModules - 1)) 
=== 0) {
+//                                 // if node_modules folder is in this folder 
or any of its parent folder, no need to keep it.
+//                                 relativeFileName = 
moduleFileName.substring(indexOfNodeModules + 13 /* "node_modules\".length */);
+//                             }
+//                             else {
+//                                 relativeFileName = 
getRelativePath(moduleFileName, sourceDirectory);
+//                             }
+//                             relativeFileName = 
removeFileExtension(relativeFileName);
+//                             if (endsWith(relativeFileName, "/index")) {
+//                                 relativeFileName = 
getDirectoryPath(relativeFileName);
+//                             }
+//                             else {
+//                                 try {
+//                                     const moduleDirectory = 
getDirectoryPath(moduleFileName);
+//                                     const packageJsonContent = 
JSON.parse(context.host.readFile(combinePaths(moduleDirectory, 
"package.json")));
+//                                     if (packageJsonContent) {
+//                                         const mainFile = 
packageJsonContent.main || packageJsonContent.typings;
+//                                         if (mainFile) {
+//                                             const mainExportFile = 
toPath(mainFile, moduleDirectory, getCanonicalFileName);
+//                                             if 
(removeFileExtension(mainExportFile) === removeFileExtension(moduleFileName)) {
+//                                                 relativeFileName = 
getDirectoryPath(relativeFileName);
+//                                             }
+//                                         }
+//                                     }
+//                                 }
+//                                 catch (e) { }
+//                             }
+//                             return relativeFileName;
+//                         }
+//                     }
+//                     function getPathRelativeToRootDirs(path: Path, 
rootDirs: Path[]) {
+//                         for (const rootDir of rootDirs) {
+//                             const relativeName = 
tryRemoveParentDirectoryName(path, rootDir);
+//                             if (relativeName !== undefined) {
+//                                 return relativeName;
+//                             }
+//                         }
+//                         return undefined;
+//                     }
+//                     function removeExtensionAndIndexPostFix(fileName: 
string) {
+//                         fileName = removeFileExtension(fileName);
+//                         if (endsWith(fileName, "/index")) {
+//                             fileName = fileName.substr(0, fileName.length - 
6/* "/index".length */);
+//                         }
+//                         return fileName;
+//                     }
+//                     function getRelativePath(path: string, directoryPath: 
string) {
+//                         const relativePath = 
getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, 
getCanonicalFileName, false);
+//                         return moduleHasNonRelativeName(relativePath) ? 
"./" + relativePath : relativePath;
+//                     }
+//                     function tryRemoveParentDirectoryName(path: Path, 
parentDirectory: Path) {
+//                         const index = path.indexOf(parentDirectory);
+//                         if (index === 0) {
+//                             return endsWith(parentDirectory, 
directorySeparator)
+//                                 ? path.substring(parentDirectory.length)
+//                                 : path.substring(parentDirectory.length + 
1);
+//                         }
+//                         return undefined;
+//                     }
+//                 }
+//             }
+//             function createCodeAction(
+//                 description: DiagnosticMessage,
+//                 diagnosticArgs: string[],
+//                 newText: string,
+//                 span: TextSpan,
+//                 fileName: string,
+//                 kind: ImportCodeActionKind,
+//                 moduleSpecifier?: string): ImportCodeAction {
+//                 return {
+//                     description: formatMessage.apply(undefined, [undefined, 
description].concat(<any[]>diagnosticArgs)),
+//                     changes: [{ fileName, textChanges: [{ newText, span }] 
}],
+//                     kind,
+//                     moduleSpecifier
+//                 };
+//             }
+//         }
+//     });
+// } 
+// /* @internal */
+// namespace ts.codefix {
+//     registerCodeFix({
+//         errorCodes: [
+//             Diagnostics._0_is_declared_but_never_used.code,
+//             Diagnostics.Property_0_is_declared_but_never_used.code
+//         ],
+//         getCodeActions: (context: CodeFixContext) => {
+//             const sourceFile = context.sourceFile;
+//             const start = context.span.start;
+//             let token = getTokenAtPosition(sourceFile, start);
+//             // this handles var ["computed"] = 12;
+//             if (token.kind === SyntaxKind.OpenBracketToken) {
+//                 token = getTokenAtPosition(sourceFile, start + 1);
+//             }
+//             switch (token.kind) {
+//                 case ts.SyntaxKind.Identifier:
+//                     switch (token.parent.kind) {
+//                         case ts.SyntaxKind.VariableDeclaration:
+//                             switch (token.parent.parent.parent.kind) {
+//                                 case SyntaxKind.ForStatement:
+//                                     const forStatement = 
<ForStatement>token.parent.parent.parent;
+//                                     const forInitializer = 
<VariableDeclarationList>forStatement.initializer;
+//                                     if (forInitializer.declarations.length 
=== 1) {
+//                                         return createCodeFix("", 
forInitializer.pos, forInitializer.end - forInitializer.pos);
+//                                     }
+//                                     else {
+//                                         return 
removeSingleItem(forInitializer.declarations, token);
+//                                     }
+//                                 case SyntaxKind.ForOfStatement:
+//                                     const forOfStatement = 
<ForOfStatement>token.parent.parent.parent;
+//                                     if (forOfStatement.initializer.kind === 
SyntaxKind.VariableDeclarationList) {
+//                                         const forOfInitializer = 
<VariableDeclarationList>forOfStatement.initializer;
+//                                         return createCodeFix("{}", 
forOfInitializer.declarations[0].pos, forOfInitializer.declarations[0].end - 
forOfInitializer.declarations[0].pos);
+//                                     }
+//                                     break;
+//                                 case SyntaxKind.ForInStatement:
+//                                     // There is no valid fix in the case of:
+//                                     //  for .. in
+//                                     return undefined;
+//                                 case SyntaxKind.CatchClause:
+//                                     const catchClause = 
<CatchClause>token.parent.parent;
+//                                     const parameter = 
catchClause.variableDeclaration.getChildren()[0];
+//                                     return createCodeFix("", parameter.pos, 
parameter.end - parameter.pos);
+//                                 default:
+//                                     const variableStatement = 
<VariableStatement>token.parent.parent.parent;
+//                                     if 
(variableStatement.declarationList.declarations.length === 1) {
+//                                         return createCodeFix("", 
variableStatement.pos, variableStatement.end - variableStatement.pos);
+//                                     }
+//                                     else {
+//                                         const declarations = 
variableStatement.declarationList.declarations;
+//                                         return 
removeSingleItem(declarations, token);
+//                                     }
+//                             }
+//                         case SyntaxKind.TypeParameter:
+//                             const typeParameters = 
(<DeclarationWithTypeParameters>token.parent.parent).typeParameters;
+//                             if (typeParameters.length === 1) {
+//                                 return createCodeFix("", token.parent.pos - 
1, token.parent.end - token.parent.pos + 2);
+//                             }
+//                             else {
+//                                 return removeSingleItem(typeParameters, 
token);
+//                             }
+//                         case ts.SyntaxKind.Parameter:
+//                             const functionDeclaration = 
<FunctionDeclaration>token.parent.parent;
+//                             if (functionDeclaration.parameters.length === 
1) {
+//                                 return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//                             }
+//                             else {
+//                                 return 
removeSingleItem(functionDeclaration.parameters, token);
+//                             }
+//                         // handle case where 'import a = A;'
+//                         case SyntaxKind.ImportEqualsDeclaration:
+//                             const importEquals = 
findImportDeclaration(token);
+//                             return createCodeFix("", importEquals.pos, 
importEquals.end - importEquals.pos);
+//                         case SyntaxKind.ImportSpecifier:
+//                             const namedImports = 
<NamedImports>token.parent.parent;
+//                             if (namedImports.elements.length === 1) {
+//                                 // Only 1 import and it is unused. So the 
entire declaration should be removed.
+//                                 const importSpec = 
findImportDeclaration(token);
+//                                 return createCodeFix("", importSpec.pos, 
importSpec.end - importSpec.pos);
+//                             }
+//                             else {
+//                                 return 
removeSingleItem(namedImports.elements, token);
+//                             }
+//                         // handle case where "import d, * as ns from 
'./file'"
+//                         // or "'import {a, b as ns} from './file'"
+//                         case SyntaxKind.ImportClause: // this covers both 
'import |d|' and 'import |d,| *'
+//                             const importClause = <ImportClause>token.parent;
+//                             if (!importClause.namedBindings) { // |import d 
from './file'| or |import * as ns from './file'|
+//                                 const importDecl = 
findImportDeclaration(importClause);
+//                                 return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
+//                             }
+//                             else { // import |d,| * as ns from './file'
+//                                 return createCodeFix("", 
importClause.name.pos, importClause.namedBindings.pos - importClause.name.pos);
+//                             }
+//                         case SyntaxKind.NamespaceImport:
+//                             const namespaceImport = 
<NamespaceImport>token.parent;
+//                             if (namespaceImport.name == token && 
!(<ImportClause>namespaceImport.parent).name) {
+//                                 const importDecl = 
findImportDeclaration(namespaceImport);
+//                                 return createCodeFix("", importDecl.pos, 
importDecl.end - importDecl.pos);
+//                             }
+//                             else {
+//                                 const start = 
(<ImportClause>namespaceImport.parent).name.end;
+//                                 return createCodeFix("", start, 
(<ImportClause>namespaceImport.parent).namedBindings.end - start);
+//                             }
+//                     }
+//                     break;
+//                 case SyntaxKind.PropertyDeclaration:
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//                 case SyntaxKind.NamespaceImport:
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos);
+//             }
+//             if (isDeclarationName(token)) {
+//                 return createCodeFix("", token.parent.pos, token.parent.end 
- token.parent.pos);
+//             }
+//             else if (isLiteralComputedPropertyDeclarationName(token)) {
+//                 return createCodeFix("", token.parent.parent.pos, 
token.parent.parent.end - token.parent.parent.pos);
+//             }
+//             else {
+//                 return undefined;
+//             }
+//             function findImportDeclaration(token: Node): Node {
+//                 let importDecl = token;
+//                 while (importDecl.kind != SyntaxKind.ImportDeclaration && 
importDecl.parent) {
+//                     importDecl = importDecl.parent;
+//                 }
+//                 return importDecl;
+//             }
+//             function createCodeFix(newText: string, start: number, length: 
number): CodeAction[] {
+//                 return [{
+//                     description: 
getLocaleSpecificMessage(Diagnostics.Remove_unused_identifiers),
+//                     changes: [{
+//                         fileName: sourceFile.fileName,
+//                         textChanges: [{ newText, span: { start, length } }]
+//                     }]
+//                 }];
+//             }
+//             function removeSingleItem<T extends Node>(elements: 
NodeArray<T>, token: T): CodeAction[] {
+//                 if (elements[0] === token.parent) {
+//                     return createCodeFix("", token.parent.pos, 
token.parent.end - token.parent.pos + 1);
+//                 }
+//                 else {
+//                     return createCodeFix("", token.parent.pos - 1, 
token.parent.end - token.parent.pos + 1);
+//                 }
+//             }
+//         }
+//     });
+// } 
 ///<reference path='superFixes.ts' />
 ///<reference path='importFixes.ts' />
 ///<reference path='unusedIdentifierFixes.ts' />
@@ -78127,6 +78746,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SymbolObject.prototype.getJsDocTags = function () {
+            if (this.tags === undefined) {
+                this.tags = 
ts.JsDoc.getJsDocTagsFromDeclarations(this.declarations);
+            }
+            return this.tags;
+        };
         return SymbolObject;
     }());
     var TokenObject = (function (_super) {
@@ -78210,6 +78835,12 @@ var ts;
             }
             return this.documentationComment;
         };
+        SignatureObject.prototype.getJsDocTags = function () {
+            if (this.jsDocTags === undefined) {
+                this.jsDocTags = this.declaration ? 
ts.JsDoc.getJsDocTagsFromDeclarations([this.declaration]) : [];
+            }
+            return this.jsDocTags;
+        };
         return SignatureObject;
     }());
     var SourceFileObject = (function (_super) {
@@ -78310,8 +78941,8 @@ var ts;
                             else {
                                 declarations.push(functionDeclaration);
                             }
-                            ts.forEachChild(node, visit);
                         }
+                        ts.forEachChild(node, visit);
                         break;
                     case 226 /* ClassDeclaration */:
                     case 197 /* ClassExpression */:
@@ -78914,7 +79545,8 @@ var ts;
                                 kindModifiers: 
ts.ScriptElementKindModifier.none,
                                 textSpan: ts.createTextSpan(node.getStart(), 
node.getWidth()),
                                 displayParts: 
ts.typeToDisplayParts(typeChecker, type, ts.getContainerNode(node)),
-                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined
+                                documentation: type.symbol ? 
type.symbol.getDocumentationComment() : undefined,
+                                tags: type.symbol ? type.symbol.getJsDocTags() 
: undefined
                             };
                         }
                 }
@@ -78926,7 +79558,8 @@ var ts;
                 kindModifiers: ts.SymbolDisplay.getSymbolModifiers(symbol),
                 textSpan: ts.createTextSpan(node.getStart(), node.getWidth()),
                 displayParts: displayPartsDocumentationsAndKind.displayParts,
-                documentation: displayPartsDocumentationsAndKind.documentation
+                documentation: displayPartsDocumentationsAndKind.documentation,
+                tags: displayPartsDocumentationsAndKind.tags
             };
         }
         /// Goto definition
@@ -79248,7 +79881,7 @@ var ts;
             }
             var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
             // Check if in a context where we don't want to perform any 
insertion
-            if (ts.isInString(sourceFile, position) || 
ts.isInComment(sourceFile, position)) {
+            if (ts.isInString(sourceFile, position)) {
                 return false;
             }
             if (ts.isInsideJsxElementOrAttribute(sourceFile, position)) {
@@ -80906,4 +81539,4 @@ var TypeScript;
 // 'toolsVersion' gets consumed by the managed side, so it's not unused.
 // TODO: it should be moved into a namespace though.
 /* @internal */
-var toolsVersion = "2.2";
+var toolsVersion = "2.1";
diff --git a/node_modules/typescript/lib/typingsInstaller.js 
b/node_modules/typescript/lib/typingsInstaller.js
index 904f144..0f6cec6 100644
--- a/node_modules/typescript/lib/typingsInstaller.js
+++ b/node_modules/typescript/lib/typingsInstaller.js
@@ -1,18 +1,18 @@
-/*! 
*****************************************************************************
-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.
-***************************************************************************** 
*/
-
+/*! 
*****************************************************************************
+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 __extends = (this && this.__extends) || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
@@ -137,7 +137,7 @@ var ts;
 })(ts || (ts = {}));
 var ts;
 (function (ts) {
-    ts.version = "2.2.0-dev.20161127";
+    ts.version = "2.1.6";
 })(ts || (ts = {}));
 (function (ts) {
     var createObject = Object.create;
@@ -818,15 +818,6 @@ var ts;
         return result;
     }
     ts.reduceProperties = reduceProperties;
-    function reduceOwnProperties(map, callback, initial) {
-        var result = initial;
-        for (var key in map)
-            if (hasOwnProperty.call(map, key)) {
-                result = callback(result, map[key], String(key));
-            }
-        return result;
-    }
-    ts.reduceOwnProperties = reduceOwnProperties;
     function equalOwnProperties(left, right, equalityComparer) {
         if (left === right)
             return true;
@@ -1673,8 +1664,19 @@ var ts;
     ts.supportedTypescriptExtensionsForExtractExtension = [".d.ts", ".ts", 
".tsx"];
     ts.supportedJavascriptExtensions = [".js", ".jsx"];
     var allSupportedExtensions = 
ts.supportedTypeScriptExtensions.concat(ts.supportedJavascriptExtensions);
-    function getSupportedExtensions(options) {
-        return options && options.allowJs ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+    function getSupportedExtensions(options, extraFileExtensions) {
+        var needAllExtensions = options && options.allowJs;
+        if (!extraFileExtensions || extraFileExtensions.length === 0) {
+            return needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions;
+        }
+        var extensions = (needAllExtensions ? allSupportedExtensions : 
ts.supportedTypeScriptExtensions).slice(0);
+        for (var _i = 0, extraFileExtensions_1 = extraFileExtensions; _i < 
extraFileExtensions_1.length; _i++) {
+            var extInfo = extraFileExtensions_1[_i];
+            if (needAllExtensions || extInfo.scriptKind === 3) {
+                extensions.push(extInfo.extension);
+            }
+        }
+        return extensions;
     }
     ts.getSupportedExtensions = getSupportedExtensions;
     function hasJavaScriptFileExtension(fileName) {
@@ -1685,11 +1687,11 @@ var ts;
         return forEach(ts.supportedTypeScriptExtensions, function (extension) 
{ return fileExtensionIs(fileName, extension); });
     }
     ts.hasTypeScriptFileExtension = hasTypeScriptFileExtension;
-    function isSupportedSourceFileName(fileName, compilerOptions) {
+    function isSupportedSourceFileName(fileName, compilerOptions, 
extraFileExtensions) {
         if (!fileName) {
             return false;
         }
-        for (var _i = 0, _a = getSupportedExtensions(compilerOptions); _i < 
_a.length; _i++) {
+        for (var _i = 0, _a = getSupportedExtensions(compilerOptions, 
extraFileExtensions); _i < _a.length; _i++) {
             var extension = _a[_i];
             if (fileExtensionIs(fileName, extension)) {
                 return true;
@@ -2259,7 +2261,7 @@ var ts;
                 },
                 watchDirectory: function (directoryName, callback, recursive) {
                     var options;
-                    if (!directoryExists(directoryName)) {
+                    if (!directoryExists(directoryName) || 
(isUNCPath(directoryName) && process.platform === "win32")) {
                         return noOpFileWatcher;
                     }
                     if (isNode4OrLater() && (process.platform === "win32" || 
process.platform === "darwin")) {
@@ -2274,6 +2276,9 @@ var ts;
                         }
                         ;
                     });
+                    function isUNCPath(s) {
+                        return s.length > 2 && s.charCodeAt(0) === 47 && 
s.charCodeAt(1) === 47;
+                    }
                 },
                 resolvePath: function (path) {
                     return _path.resolve(path);
@@ -2473,7 +2478,7 @@ var ts;
         _0_modifier_cannot_appear_on_an_index_signature: { code: 1071, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_an_index_signature_1071", message: "'{0}' 
modifier cannot appear on an index signature." },
         A_0_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, 
category: ts.DiagnosticCategory.Error, key: 
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079", message: "A 
'{0}' modifier cannot be used with an import declaration." },
         Invalid_reference_directive_syntax: { code: 1084, category: 
ts.DiagnosticCategory.Error, key: "Invalid_reference_directive_syntax_1084", 
message: "Invalid 'reference' directive syntax." },
-        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { 
code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_1085", 
message: "Octal literals are not available when targeting ECMAScript 5 and 
higher." },
+        
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:
 { code: 1085, category: ts.DiagnosticCategory.Error, key: 
"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",
 message: "Octal literals are not available when targeting ECMAScript 5 and 
higher. Use the syntax '{0}'." },
         An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, 
category: ts.DiagnosticCategory.Error, key: 
"An_accessor_cannot_be_declared_in_an_ambient_context_1086", message: "An 
accessor cannot be declared in an ambient context." },
         _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, 
category: ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089", message: "'{0}' 
modifier cannot appear on a constructor declaration." },
         _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: 
ts.DiagnosticCategory.Error, key: 
"_0_modifier_cannot_appear_on_a_parameter_1090", message: "'{0}' modifier 
cannot appear on a parameter." },
@@ -2629,6 +2634,7 @@ var ts;
         Global_module_exports_may_only_appear_in_declaration_files: { code: 
1315, category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_in_declaration_files_1315", message: 
"Global module exports may only appear in declaration files." },
         Global_module_exports_may_only_appear_at_top_level: { code: 1316, 
category: ts.DiagnosticCategory.Error, key: 
"Global_module_exports_may_only_appear_at_top_level_1316", message: "Global 
module exports may only appear at top level." },
         A_parameter_property_cannot_be_declared_using_a_rest_parameter: { 
code: 1317, category: ts.DiagnosticCategory.Error, key: 
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", message: 
"A parameter property cannot be declared using a rest parameter." },
+        An_abstract_accessor_cannot_have_an_implementation: { code: 1318, 
category: ts.DiagnosticCategory.Error, key: 
"An_abstract_accessor_cannot_have_an_implementation_1318", message: "An 
abstract accessor cannot have an implementation." },
         Duplicate_identifier_0: { code: 2300, category: 
ts.DiagnosticCategory.Error, key: "Duplicate_identifier_0_2300", message: 
"Duplicate identifier '{0}'." },
         
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
 { code: 2301, category: ts.DiagnosticCategory.Error, key: 
"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
 message: "Initializer of instance member variable '{0}' cannot reference 
identifier '{1}' declared in the constructor." },
         Static_members_cannot_reference_class_type_parameters: { code: 2302, 
category: ts.DiagnosticCategory.Error, key: 
"Static_members_cannot_reference_class_type_parameters_2302", message: "Static 
members cannot reference class type parameters." },
@@ -2672,6 +2678,7 @@ var ts;
         
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
 { code: 2340, category: ts.DiagnosticCategory.Error, key: 
"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
 message: "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: { code: 
2341, category: ts.DiagnosticCategory.Error, key: 
"Property_0_is_private_and_only_accessible_within_class_1_2341", message: 
"Property '{0}' is private and only accessible within class '{1}'." },
         
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { 
code: 2342, category: ts.DiagnosticCategory.Error, key: 
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",
 message: "An index expression argument must be of type 'string', 'number', 
'symbol', or 'any'." },
+        
This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:
 { code: 2343, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",
 message: "This syntax requires an imported helper named '{1}', but module 
'{0}' has no exported member '{1}'." },
         Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: 
ts.DiagnosticCategory.Error, key: 
"Type_0_does_not_satisfy_the_constraint_1_2344", message: "Type '{0}' does not 
satisfy the constraint '{1}'." },
         Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 
2345, category: ts.DiagnosticCategory.Error, key: 
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", message: 
"Argument of type '{0}' is not assignable to parameter of type '{1}'." },
         Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 
2346, category: ts.DiagnosticCategory.Error, key: 
"Supplied_parameters_do_not_match_any_signature_of_call_target_2346", message: 
"Supplied parameters do not match any signature of call target." },
@@ -2682,6 +2689,7 @@ var ts;
         
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:
 { code: 2351, category: ts.DiagnosticCategory.Error, key: 
"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",
 message: "Cannot use 'new' with an expression whose type lacks a call or 
construct signature." },
         Type_0_cannot_be_converted_to_type_1: { code: 2352, category: 
ts.DiagnosticCategory.Error, key: "Type_0_cannot_be_converted_to_type_1_2352", 
message: "Type '{0}' cannot be converted to type '{1}'." },
         
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
 { code: 2353, category: ts.DiagnosticCategory.Error, key: 
"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
 message: "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: 
{ code: 2354, category: ts.DiagnosticCategory.Error, key: 
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", 
message: "This syntax requires an imported helper but module '{0}' cannot be 
found." },
         
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: { 
code: 2355, category: ts.DiagnosticCategory.Error, key: 
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",
 message: "A function whose declared type is neither 'void' nor 'any' must 
return a value." },
         An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { 
code: 2356, category: ts.DiagnosticCategory.Error, key: 
"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356", 
message: "An arithmetic operand must be of type 'any', 'number' or an enum 
type." },
         
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
 { code: 2357, category: ts.DiagnosticCategory.Error, key: 
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
 message: "The operand of an increment or decrement operator must be a variable 
or a property access." },
@@ -2988,6 +2996,8 @@ var ts;
         Default_export_of_the_module_has_or_is_using_private_name_0: { code: 
4082, category: ts.DiagnosticCategory.Error, key: 
"Default_export_of_the_module_has_or_is_using_private_name_0_4082", message: 
"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: { code: 
4083, category: ts.DiagnosticCategory.Error, key: 
"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", 
message: "Type parameter '{0}' of exported type alias has or is using private 
name '{1}'." },
         
Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:
 { code: 4090, category: ts.DiagnosticCategory.Message, key: 
"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",
 message: "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider 
installing a specific version of this library to resolve the conflict." },
+        
Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
 { code: 4091, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
 message: "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:
 { code: 4092, category: ts.DiagnosticCategory.Error, key: 
"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
 message: "Parameter '{0}' of index signature from exported interface has or is 
using private name '{1}'." },
         The_current_host_does_not_support_the_0_option: { code: 5001, 
category: ts.DiagnosticCategory.Error, key: 
"The_current_host_does_not_support_the_0_option_5001", message: "The current 
host does not support the '{0}' option." },
         Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 
5009, category: ts.DiagnosticCategory.Error, key: 
"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", message: 
"Cannot find the common subdirectory path for the input files." },
         
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
 { code: 5010, category: ts.DiagnosticCategory.Error, key: 
"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
 message: "File specification cannot end in a recursive directory wildcard 
('**'): '{0}'." },
@@ -3029,7 +3039,7 @@ var ts;
         Do_not_emit_outputs: { code: 6010, category: 
ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do 
not emit outputs." },
         
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
 { code: 6011, category: ts.DiagnosticCategory.Message, key: 
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
 message: "Allow default imports from modules with no default export. This does 
not affect code emit, just typechecking." },
         Skip_type_checking_of_declaration_files: { code: 6012, category: 
ts.DiagnosticCategory.Message, key: 
"Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of 
declaration files." },
-        Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { 
code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", 
message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 
'ES2015'" },
+        
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:
 { code: 6015, category: ts.DiagnosticCategory.Message, key: 
"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",
 message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 
'ES2016', 'ES2017', or 'ESNEXT'" },
         
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 
6016, category: ts.DiagnosticCategory.Message, key: 
"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", 
message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 
'es2015'" },
         Print_this_message: { code: 6017, category: 
ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print 
this message." },
         Print_the_compiler_s_version: { code: 6019, category: 
ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", 
message: "Print the compiler's version." },
@@ -3082,6 +3092,7 @@ var ts;
         Disallow_inconsistently_cased_references_to_the_same_file: { code: 
6078, category: ts.DiagnosticCategory.Message, key: 
"Disallow_inconsistently_cased_references_to_the_same_file_6078", message: 
"Disallow inconsistently-cased references to the same file." },
         Specify_library_files_to_be_included_in_the_compilation_Colon: { code: 
6079, category: ts.DiagnosticCategory.Message, key: 
"Specify_library_files_to_be_included_in_the_compilation_Colon_6079", message: 
"Specify library files to be included in the compilation: " },
         Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, 
category: ts.DiagnosticCategory.Message, key: 
"Specify_JSX_code_generation_Colon_preserve_or_react_6080", message: "Specify 
JSX code generation: 'preserve' or 'react'" },
+        File_0_has_an_unsupported_extension_so_skipping_it: { code: 6081, 
category: ts.DiagnosticCategory.Message, key: 
"File_0_has_an_unsupported_extension_so_skipping_it_6081", message: "File '{0}' 
has an unsupported extension, so skipping it." },
         Only_amd_and_system_modules_are_supported_alongside_0: { code: 6082, 
category: ts.DiagnosticCategory.Error, key: 
"Only_amd_and_system_modules_are_supported_alongside_0_6082", message: "Only 
'amd' and 'system' modules are supported alongside --{0}." },
         Base_directory_to_resolve_non_absolute_module_names: { code: 6083, 
category: ts.DiagnosticCategory.Message, key: 
"Base_directory_to_resolve_non_absolute_module_names_6083", message: "Base 
directory to resolve non-absolute module names." },
         
Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit:
 { code: 6084, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_object_invoked_for_createElement_and_spread_when_targeting_react_JSX_emit_6084",
 message: "Specify the object invoked for createElement and __spread when 
targeting 'react' JSX emit" },
@@ -3147,6 +3158,7 @@ var ts;
         Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: { 
code: 6144, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", 
message: "Module '{0}' was resolved as locally declared ambient module in file 
'{1}'." },
         
Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:
 { code: 6145, category: ts.DiagnosticCategory.Message, key: 
"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",
 message: "Module '{0}' was resolved as ambient module declared in '{1}' since 
this file was not modified." },
         
Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
 { code: 6146, category: ts.DiagnosticCategory.Message, key: 
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
 message: "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: { code: 6147, category: 
ts.DiagnosticCategory.Message, key: 
"Resolution_for_module_0_was_found_in_cache_6147", message: "Resolution for 
module '{0}' was found in cache" },
         Variable_0_implicitly_has_an_1_type: { code: 7005, category: 
ts.DiagnosticCategory.Error, key: "Variable_0_implicitly_has_an_1_type_7005", 
message: "Variable '{0}' implicitly has an '{1}' type." },
         Parameter_0_implicitly_has_an_1_type: { code: 7006, category: 
ts.DiagnosticCategory.Error, key: "Parameter_0_implicitly_has_an_1_type_7006", 
message: "Parameter '{0}' implicitly has an '{1}' type." },
         Member_0_implicitly_has_an_1_type: { code: 7008, category: 
ts.DiagnosticCategory.Error, key: "Member_0_implicitly_has_an_1_type_7008", 
message: "Member '{0}' implicitly has an '{1}' type." },
@@ -3202,6 +3214,7 @@ var ts;
         JSX_element_0_has_no_corresponding_closing_tag: { code: 17008, 
category: ts.DiagnosticCategory.Error, key: 
"JSX_element_0_has_no_corresponding_closing_tag_17008", message: "JSX element 
'{0}' has no corresponding closing tag." },
         
super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
 { code: 17009, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
 message: "'super' must be called before accessing 'this' in the constructor of 
a derived class." },
         Unknown_type_acquisition_option_0: { code: 17010, category: 
ts.DiagnosticCategory.Error, key: "Unknown_type_acquisition_option_0_17010", 
message: "Unknown type acquisition option '{0}'." },
+        
super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
 { code: 17011, category: ts.DiagnosticCategory.Error, key: 
"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
 message: "'super' must be called before accessing a property of 'super' in the 
constructor of a derived class." },
         Circularity_detected_while_resolving_configuration_Colon_0: { code: 
18000, category: ts.DiagnosticCategory.Error, key: 
"Circularity_detected_while_resolving_configuration_Colon_0_18000", message: 
"Circularity detected while resolving configuration: {0}" },
         A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: { 
code: 18001, category: ts.DiagnosticCategory.Error, key: 
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001", 
message: "A path in an 'extends' option must be relative or rooted, but '{0}' 
is not." },
         The_files_list_in_config_file_0_is_empty: { code: 18002, category: 
ts.DiagnosticCategory.Error, key: 
"The_files_list_in_config_file_0_is_empty_18002", message: "The 'files' list in 
config file '{0}' is empty." },
@@ -3218,6 +3231,7 @@ var ts;
         Import_0_from_1: { code: 90013, category: 
ts.DiagnosticCategory.Message, key: "Import_0_from_1_90013", message: "Import 
{0} from {1}" },
         Change_0_to_1: { code: 90014, category: ts.DiagnosticCategory.Message, 
key: "Change_0_to_1_90014", message: "Change {0} to {1}" },
         Add_0_to_existing_import_declaration_from_1: { code: 90015, category: 
ts.DiagnosticCategory.Message, key: 
"Add_0_to_existing_import_declaration_from_1_90015", message: "Add {0} to 
existing import declaration from {1}" },
+        Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: { code: 
8017, category: ts.DiagnosticCategory.Error, key: 
"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", message: 
"Octal literal types must use ES2015 syntax. Use the syntax '{0}'." },
     };
 })(ts || (ts = {}));
 var ts;
@@ -5038,7 +5052,7 @@ var ts;
                 "es2017": 4,
                 "esnext": 5,
             }),
-            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
+            description: 
ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
             paramType: ts.Diagnostics.VERSION,
         },
         {
@@ -5286,14 +5300,7 @@ var ts;
     }
     ts.createCompilerDiagnosticForInvalidCustomType = 
createCompilerDiagnosticForInvalidCustomType;
     function parseCustomTypeOption(opt, value, errors) {
-        var key = trimString((value || "")).toLowerCase();
-        var map = opt.type;
-        if (key in map) {
-            return map[key];
-        }
-        else {
-            errors.push(createCompilerDiagnosticForInvalidCustomType(opt));
-        }
+        return convertJsonOptionOfCustomType(opt, trimString(value || ""), 
errors);
     }
     ts.parseCustomTypeOption = parseCustomTypeOption;
     function parseListTypeOption(opt, value, errors) {
@@ -5533,9 +5540,10 @@ var ts;
         }
         return output;
     }
-    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack) {
+    function parseJsonConfigFileContent(json, host, basePath, existingOptions, 
configFileName, resolutionStack, extraFileExtensions) {
         if (existingOptions === void 0) { existingOptions = {}; }
         if (resolutionStack === void 0) { resolutionStack = []; }
+        if (extraFileExtensions === void 0) { extraFileExtensions = []; }
         var errors = [];
         var getCanonicalFileName = 
ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);
         var resolvedPath = ts.toPath(configFileName || "", basePath, 
getCanonicalFileName);
@@ -5658,7 +5666,7 @@ var ts;
             if (fileNames === undefined && includeSpecs === undefined) {
                 includeSpecs = ["**/*"];
             }
-            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors);
+            var result = matchFileNames(fileNames, includeSpecs, excludeSpecs, 
basePath, options, host, errors, extraFileExtensions);
             if (result.fileNames.length === 0 && !ts.hasProperty(json, 
"files") && resolutionStack.length === 0) {
                 
errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
 configFileName || "tsconfig.json", JSON.stringify(includeSpecs || []), 
JSON.stringify(excludeSpecs || [])));
             }
@@ -5762,7 +5770,7 @@ var ts;
     var invalidDotDotAfterRecursiveWildcardPattern = 
/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/;
     var watchRecursivePattern = /\/[^/]*?[*?][^/]*\//;
     var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
-    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors) {
+    function matchFileNames(fileNames, include, exclude, basePath, options, 
host, errors, extraFileExtensions) {
         basePath = ts.normalizePath(basePath);
         var keyMapper = host.useCaseSensitiveFileNames ? 
caseSensitiveKeyMapper : caseInsensitiveKeyMapper;
         var literalFileMap = ts.createMap();
@@ -5774,7 +5782,7 @@ var ts;
             exclude = validateSpecs(exclude, errors, true);
         }
         var wildcardDirectories = getWildcardDirectories(include, exclude, 
basePath, host.useCaseSensitiveFileNames);
-        var supportedExtensions = ts.getSupportedExtensions(options);
+        var supportedExtensions = ts.getSupportedExtensions(options, 
extraFileExtensions);
         if (fileNames) {
             for (var _i = 0, fileNames_1 = fileNames; _i < fileNames_1.length; 
_i++) {
                 var fileName = fileNames_1[_i];
@@ -6069,7 +6077,8 @@ var ts;
     (function (server) {
         server.ActionSet = "action::set";
         server.ActionInvalidate = "action::invalidate";
-        server.EventInstall = "event::install";
+        server.EventBeginInstallTypes = "event::beginInstallTypes";
+        server.EventEndInstallTypes = "event::endInstallTypes";
         var Arguments;
         (function (Arguments) {
             Arguments.GlobalCacheLocation = "--globalTypingsCacheLocation";
@@ -6106,9 +6115,6 @@ var ts;
         ts.Debug.assert(ts.extensionIsTypeScript(resolved.extension));
         return resolved.path;
     }
-    function resolvedFromAnyFile(path) {
-        return { path: path, extension: ts.extensionFromPath(path) };
-    }
     function resolvedModuleFromResolved(_a, isExternalLibraryImport) {
         var path = _a.path, extension = _a.extension;
         return { resolvedFileName: path, extension: extension, 
isExternalLibraryImport: isExternalLibraryImport };
@@ -6120,20 +6126,14 @@ var ts;
         return !(ts.isRootedDiskPath(moduleName) || 
ts.isExternalModuleNameRelative(moduleName));
     }
     ts.moduleHasNonRelativeName = moduleHasNonRelativeName;
-    function tryReadTypesSection(extensions, packageJsonPath, baseDirectory, 
state) {
+    function tryReadPackageJsonMainOrTypes(extensions, packageJsonPath, 
baseDirectory, state) {
         var jsonContent = readJson(packageJsonPath, state.host);
         switch (extensions) {
             case 2:
             case 0:
                 return tryReadFromField("typings") || 
tryReadFromField("types");
             case 1:
-                if (typeof jsonContent.main === "string") {
-                    if (state.traceEnabled) {
-                        trace(state.host, 
ts.Diagnostics.No_types_specified_in_package_json_so_returning_main_value_of_0, 
jsonContent.main);
-                    }
-                    return ts.normalizePath(ts.combinePaths(baseDirectory, 
jsonContent.main));
-                }
-                return undefined;
+                return tryReadFromField("main");
         }
         function tryReadFromField(fieldName) {
             if (ts.hasProperty(jsonContent, fieldName)) {
@@ -6188,6 +6188,7 @@ var ts;
             if (host.directoryExists(atTypes)) {
                 (typeRoots || (typeRoots = [])).push(atTypes);
             }
+            return undefined;
         });
         return typeRoots;
     }
@@ -6258,7 +6259,8 @@ var ts;
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, 
initialLocationForSecondaryLookup);
                 }
-                resolvedFile = 
resolvedTypeScriptOnly(loadModuleFromNodeModules(2, typeReferenceDirectiveName, 
initialLocationForSecondaryLookup, failedLookupLocations, 
moduleResolutionState));
+                var result = loadModuleFromNodeModules(2, 
typeReferenceDirectiveName, initialLocationForSecondaryLookup, 
failedLookupLocations, moduleResolutionState, undefined);
+                resolvedFile = resolvedTypeScriptOnly(result && result.value);
                 if (!resolvedFile && traceEnabled) {
                     trace(host, 
ts.Diagnostics.Type_reference_directive_0_was_not_resolved, 
typeReferenceDirectiveName);
                 }
@@ -6299,31 +6301,115 @@ var ts;
         return result;
     }
     ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;
-    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host) {
+    function createModuleResolutionCache(currentDirectory, 
getCanonicalFileName) {
+        var directoryToModuleNameMap = ts.createFileMap();
+        var moduleNameToDirectoryMap = ts.createMap();
+        return { getOrCreateCacheForDirectory: getOrCreateCacheForDirectory, 
getOrCreateCacheForModuleName: getOrCreateCacheForModuleName };
+        function getOrCreateCacheForDirectory(directoryName) {
+            var path = ts.toPath(directoryName, currentDirectory, 
getCanonicalFileName);
+            var perFolderCache = directoryToModuleNameMap.get(path);
+            if (!perFolderCache) {
+                perFolderCache = ts.createMap();
+                directoryToModuleNameMap.set(path, perFolderCache);
+            }
+            return perFolderCache;
+        }
+        function getOrCreateCacheForModuleName(nonRelativeModuleName) {
+            if (!moduleHasNonRelativeName(nonRelativeModuleName)) {
+                return undefined;
+            }
+            var perModuleNameCache = 
moduleNameToDirectoryMap[nonRelativeModuleName];
+            if (!perModuleNameCache) {
+                moduleNameToDirectoryMap[nonRelativeModuleName] = 
perModuleNameCache = createPerModuleNameCache();
+            }
+            return perModuleNameCache;
+        }
+        function createPerModuleNameCache() {
+            var directoryPathMap = ts.createFileMap();
+            return { get: get, set: set };
+            function get(directory) {
+                return directoryPathMap.get(ts.toPath(directory, 
currentDirectory, getCanonicalFileName));
+            }
+            function set(directory, result) {
+                var path = ts.toPath(directory, currentDirectory, 
getCanonicalFileName);
+                if (directoryPathMap.contains(path)) {
+                    return;
+                }
+                directoryPathMap.set(path, result);
+                var resolvedFileName = result.resolvedModule && 
result.resolvedModule.resolvedFileName;
+                var commonPrefix = getCommonPrefix(path, resolvedFileName);
+                var current = path;
+                while (true) {
+                    var parent_1 = ts.getDirectoryPath(current);
+                    if (parent_1 === current || 
directoryPathMap.contains(parent_1)) {
+                        break;
+                    }
+                    directoryPathMap.set(parent_1, result);
+                    current = parent_1;
+                    if (current == commonPrefix) {
+                        break;
+                    }
+                }
+            }
+            function getCommonPrefix(directory, resolution) {
+                if (resolution === undefined) {
+                    return undefined;
+                }
+                var resolutionDirectory = 
ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, 
getCanonicalFileName);
+                var i = 0;
+                while (i < Math.min(directory.length, 
resolutionDirectory.length) && directory.charCodeAt(i) === 
resolutionDirectory.charCodeAt(i)) {
+                    i++;
+                }
+                var sep = directory.lastIndexOf(ts.directorySeparator, i);
+                if (sep < 0) {
+                    return undefined;
+                }
+                return directory.substr(0, sep);
+            }
+        }
+    }
+    ts.createModuleResolutionCache = createModuleResolutionCache;
+    function resolveModuleName(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         if (traceEnabled) {
             trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, 
containingFile);
         }
-        var moduleResolution = compilerOptions.moduleResolution;
-        if (moduleResolution === undefined) {
-            moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+        var containingDirectory = ts.getDirectoryPath(containingFile);
+        var perFolderCache = cache && 
cache.getOrCreateCacheForDirectory(containingDirectory);
+        var result = perFolderCache && perFolderCache[moduleName];
+        if (result) {
             if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
             }
         }
         else {
-            if (traceEnabled) {
-                trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+            var moduleResolution = compilerOptions.moduleResolution;
+            if (moduleResolution === undefined) {
+                moduleResolution = ts.getEmitModuleKind(compilerOptions) === 
ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : 
ts.ModuleResolutionKind.Classic;
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            else {
+                if (traceEnabled) {
+                    trace(host, 
ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, 
ts.ModuleResolutionKind[moduleResolution]);
+                }
+            }
+            switch (moduleResolution) {
+                case ts.ModuleResolutionKind.NodeJs:
+                    result = nodeModuleNameResolver(moduleName, 
containingFile, compilerOptions, host, cache);
+                    break;
+                case ts.ModuleResolutionKind.Classic:
+                    result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host, cache);
+                    break;
+            }
+            if (perFolderCache) {
+                perFolderCache[moduleName] = result;
+                var perModuleNameCache = 
cache.getOrCreateCacheForModuleName(moduleName);
+                if (perModuleNameCache) {
+                    perModuleNameCache.set(containingDirectory, result);
+                }
             }
-        }
-        var result;
-        switch (moduleResolution) {
-            case ts.ModuleResolutionKind.NodeJs:
-                result = nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
-            case ts.ModuleResolutionKind.Classic:
-                result = classicNameResolver(moduleName, containingFile, 
compilerOptions, host);
-                break;
         }
         if (traceEnabled) {
             if (result.resolvedModule) {
@@ -6448,33 +6534,33 @@ var ts;
             return loader(extensions, candidate, failedLookupLocations, 
!directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);
         }
     }
-    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host) {
+    function nodeModuleNameResolver(moduleName, containingFile, 
compilerOptions, host, cache) {
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var failedLookupLocations = [];
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var result = tryResolve(0) || tryResolve(1);
-        if (result) {
-            var resolved = result.resolved, isExternalLibraryImport = 
result.isExternalLibraryImport;
+        if (result && result.value) {
+            var _a = result.value, resolved = _a.resolved, 
isExternalLibraryImport = _a.isExternalLibraryImport;
             return createResolvedModuleWithFailedLookupLocations(resolved, 
isExternalLibraryImport, failedLookupLocations);
         }
         return { resolvedModule: undefined, failedLookupLocations: 
failedLookupLocations };
         function tryResolve(extensions) {
             var resolved = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, nodeLoadModuleByRelativeName, failedLookupLocations, 
state);
             if (resolved) {
-                return { resolved: resolved, isExternalLibraryImport: false };
+                return toSearchResult({ resolved: resolved, 
isExternalLibraryImport: false });
             }
             if (moduleHasNonRelativeName(moduleName)) {
                 if (traceEnabled) {
                     trace(host, 
ts.Diagnostics.Loading_module_0_from_node_modules_folder, moduleName);
                 }
-                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state);
-                return resolved_1 && { resolved: { path: 
realpath(resolved_1.path, host, traceEnabled), extension: resolved_1.extension 
}, isExternalLibraryImport: true };
+                var resolved_1 = loadModuleFromNodeModules(extensions, 
moduleName, containingDirectory, failedLookupLocations, state, cache);
+                return resolved_1 && { value: resolved_1.value && { resolved: 
{ path: realpath(resolved_1.value.path, host, traceEnabled), extension: 
resolved_1.value.extension }, isExternalLibraryImport: true } };
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
                 var resolved_2 = nodeLoadModuleByRelativeName(extensions, 
candidate, failedLookupLocations, false, state);
-                return resolved_2 && { resolved: resolved_2, 
isExternalLibraryImport: false };
+                return resolved_2 && toSearchResult({ resolved: resolved_2, 
isExternalLibraryImport: false });
             }
         }
     }
@@ -6556,16 +6642,28 @@ var ts;
             if (state.traceEnabled) {
                 trace(state.host, ts.Diagnostics.Found_package_json_at_0, 
packageJsonPath);
             }
-            var typesFile = tryReadTypesSection(extensions, packageJsonPath, 
candidate, state);
-            if (typesFile) {
-                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(typesFile), state.host);
-                var fromFile = tryFile(typesFile, failedLookupLocations, 
onlyRecordFailures_1, state);
-                if (fromFile) {
-                    return resolvedFromAnyFile(fromFile);
+            var mainOrTypesFile = tryReadPackageJsonMainOrTypes(extensions, 
packageJsonPath, candidate, state);
+            if (mainOrTypesFile) {
+                var onlyRecordFailures_1 = 
!directoryProbablyExists(ts.getDirectoryPath(mainOrTypesFile), state.host);
+                var fromExactFile = tryFile(mainOrTypesFile, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (fromExactFile) {
+                    var resolved_3 = fromExactFile && 
resolvedIfExtensionMatches(extensions, fromExactFile);
+                    if (resolved_3) {
+                        return resolved_3;
+                    }
+                    if (state.traceEnabled) {
+                        trace(state.host, 
ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, 
fromExactFile);
+                    }
                 }
-                var x = tryAddingExtensions(typesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
-                if (x) {
-                    return x;
+                var resolved = tryAddingExtensions(mainOrTypesFile, 0, 
failedLookupLocations, onlyRecordFailures_1, state);
+                if (resolved) {
+                    return resolved;
+                }
+                if (extensions === 1) {
+                    var resolved_4 = tryAddingExtensions(mainOrTypesFile, 1, 
failedLookupLocations, onlyRecordFailures_1, state);
+                    if (resolved_4) {
+                        return resolved_4;
+                    }
                 }
             }
             else {
@@ -6582,6 +6680,20 @@ var ts;
         }
         return loadModuleFromFile(extensions, ts.combinePaths(candidate, 
"index"), failedLookupLocations, !directoryExists, state);
     }
+    function resolvedIfExtensionMatches(extensions, path) {
+        var extension = ts.tryGetExtensionFromPath(path);
+        return extension !== undefined && extensionIsOk(extensions, extension) 
? { path: path, extension: extension } : undefined;
+    }
+    function extensionIsOk(extensions, extension) {
+        switch (extensions) {
+            case 1:
+                return extension === ts.Extension.Js || extension === 
ts.Extension.Jsx;
+            case 0:
+                return extension === ts.Extension.Ts || extension === 
ts.Extension.Tsx || extension === ts.Extension.Dts;
+            case 2:
+                return extension === ts.Extension.Dts;
+        }
+    }
     function pathToPackageJson(directory) {
         return ts.combinePaths(directory, "package.json");
     }
@@ -6592,16 +6704,21 @@ var ts;
         return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state) ||
             loadNodeModuleFromDirectory(extensions, candidate, 
failedLookupLocations, !nodeModulesFolderExists, state);
     }
-    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false);
+    function loadModuleFromNodeModules(extensions, moduleName, directory, 
failedLookupLocations, state, cache) {
+        return loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, false, cache);
     }
     function loadModuleFromNodeModulesAtTypes(moduleName, directory, 
failedLookupLocations, state) {
-        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true);
+        return loadModuleFromNodeModulesWorker(2, moduleName, directory, 
failedLookupLocations, state, true, undefined);
     }
-    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly) {
+    function loadModuleFromNodeModulesWorker(extensions, moduleName, 
directory, failedLookupLocations, state, typesOnly, cache) {
+        var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
         return forEachAncestorDirectory(ts.normalizeSlashes(directory), 
function (ancestorDirectory) {
             if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
-                return loadModuleFromNodeModulesOneLevel(extensions, 
moduleName, ancestorDirectory, failedLookupLocations, state, typesOnly);
+                var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, 
ancestorDirectory, state.traceEnabled, state.host);
+                if (resolutionFromCache) {
+                    return resolutionFromCache;
+                }
+                return 
toSearchResult(loadModuleFromNodeModulesOneLevel(extensions, moduleName, 
ancestorDirectory, failedLookupLocations, state, typesOnly));
             }
         });
     }
@@ -6615,25 +6732,39 @@ var ts;
             return loadModuleFromNodeModulesFolder(2, 
ts.combinePaths("@types", moduleName), directory, failedLookupLocations, state);
         }
     }
-    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host) {
+    function tryFindNonRelativeModuleNameInCache(cache, moduleName, 
containingDirectory, traceEnabled, host) {
+        var result = cache && cache.get(containingDirectory);
+        if (result) {
+            if (traceEnabled) {
+                trace(host, 
ts.Diagnostics.Resolution_for_module_0_was_found_in_cache, moduleName);
+            }
+            return { value: result.resolvedModule && { path: 
result.resolvedModule.resolvedFileName, extension: 
result.resolvedModule.extension } };
+        }
+    }
+    function classicNameResolver(moduleName, containingFile, compilerOptions, 
host, cache) {
         var traceEnabled = isTraceEnabled(compilerOptions, host);
         var state = { compilerOptions: compilerOptions, host: host, 
traceEnabled: traceEnabled };
         var failedLookupLocations = [];
         var containingDirectory = ts.getDirectoryPath(containingFile);
         var resolved = tryResolve(0) || tryResolve(1);
-        return createResolvedModuleWithFailedLookupLocations(resolved, false, 
failedLookupLocations);
+        return createResolvedModuleWithFailedLookupLocations(resolved && 
resolved.value, false, failedLookupLocations);
         function tryResolve(extensions) {
             var resolvedUsingSettings = 
tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, 
containingDirectory, loadModuleFromFile, failedLookupLocations, state);
             if (resolvedUsingSettings) {
-                return resolvedUsingSettings;
+                return { value: resolvedUsingSettings };
             }
+            var perModuleNameCache = cache && 
cache.getOrCreateCacheForModuleName(moduleName);
             if (moduleHasNonRelativeName(moduleName)) {
-                var resolved_3 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                var resolved_5 = forEachAncestorDirectory(containingDirectory, 
function (directory) {
+                    var resolutionFromCache = 
tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, directory, 
traceEnabled, host);
+                    if (resolutionFromCache) {
+                        return resolutionFromCache;
+                    }
                     var searchName = 
ts.normalizePath(ts.combinePaths(directory, moduleName));
-                    return loadModuleFromFile(extensions, searchName, 
failedLookupLocations, false, state);
+                    return toSearchResult(loadModuleFromFile(extensions, 
searchName, failedLookupLocations, false, state));
                 });
-                if (resolved_3) {
-                    return resolved_3;
+                if (resolved_5) {
+                    return resolved_5;
                 }
                 if (extensions === 0) {
                     return loadModuleFromNodeModulesAtTypes(moduleName, 
containingDirectory, failedLookupLocations, state);
@@ -6641,7 +6772,7 @@ var ts;
             }
             else {
                 var candidate = 
ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));
-                return loadModuleFromFile(extensions, candidate, 
failedLookupLocations, false, state);
+                return toSearchResult(loadModuleFromFile(extensions, 
candidate, failedLookupLocations, false, state));
             }
         }
     }
@@ -6657,6 +6788,9 @@ var ts;
         return createResolvedModuleWithFailedLookupLocations(resolved, true, 
failedLookupLocations);
     }
     ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;
+    function toSearchResult(value) {
+        return value !== undefined ? { value: value } : undefined;
+    }
     function forEachAncestorDirectory(directory, callback) {
         while (true) {
             var result = callback(directory);
@@ -6727,13 +6861,12 @@ var ts;
             }
             typingsInstaller.validatePackageName = validatePackageName;
             var TypingsInstaller = (function () {
-                function TypingsInstaller(installTypingHost, globalCachePath, 
safeListPath, throttleLimit, telemetryEnabled, log) {
+                function TypingsInstaller(installTypingHost, globalCachePath, 
safeListPath, throttleLimit, log) {
                     if (log === void 0) { log = nullLog; }
                     this.installTypingHost = installTypingHost;
                     this.globalCachePath = globalCachePath;
                     this.safeListPath = safeListPath;
                     this.throttleLimit = throttleLimit;
-                    this.telemetryEnabled = telemetryEnabled;
                     this.log = log;
                     this.packageNameToTypingLocation = ts.createMap();
                     this.missingTypingsSet = ts.createMap();
@@ -6914,8 +7047,7 @@ var ts;
                         this.log.writeLine("Installing typings " + 
JSON.stringify(typingsToInstall));
                     }
                     var filteredTypings = this.filterTypings(typingsToInstall);
-                    var scopedTypings = filteredTypings.map(function (x) { 
return "@types/" + x; });
-                    if (scopedTypings.length === 0) {
+                    if (filteredTypings.length === 0) {
                         if (this.log.isEnabled()) {
                             this.log.writeLine("All typings are known to be 
missing or invalid - no need to go any further");
                         }
@@ -6924,45 +7056,56 @@ var ts;
                     this.ensurePackageDirectoryExists(cachePath);
                     var requestId = this.installRunCount;
                     this.installRunCount++;
+                    this.sendResponse({
+                        kind: server.EventBeginInstallTypes,
+                        eventId: requestId,
+                        typingsInstallerVersion: ts.version,
+                        projectName: req.projectName
+                    });
+                    var scopedTypings = filteredTypings.map(typingsName);
                     this.installTypingsAsync(requestId, scopedTypings, 
cachePath, function (ok) {
-                        if (_this.telemetryEnabled) {
-                            _this.sendResponse({
-                                kind: server.EventInstall,
-                                packagesToInstall: scopedTypings,
-                                installSuccess: ok,
-                                typingsInstallerVersion: ts.version
-                            });
-                        }
-                        if (!ok) {
-                            if (_this.log.isEnabled()) {
-                                _this.log.writeLine("install request failed, 
marking packages as missing to prevent repeated requests: " + 
JSON.stringify(filteredTypings));
+                        try {
+                            if (!ok) {
+                                if (_this.log.isEnabled()) {
+                                    _this.log.writeLine("install request 
failed, marking packages as missing to prevent repeated requests: " + 
JSON.stringify(filteredTypings));
+                                }
+                                for (var _i = 0, filteredTypings_1 = 
filteredTypings; _i < filteredTypings_1.length; _i++) {
+                                    var typing = filteredTypings_1[_i];
+                                    _this.missingTypingsSet[typing] = true;
+                                }
+                                return;
                             }
-                            for (var _i = 0, filteredTypings_1 = 
filteredTypings; _i < filteredTypings_1.length; _i++) {
-                                var typing = filteredTypings_1[_i];
-                                _this.missingTypingsSet[typing] = true;
+                            if (_this.log.isEnabled()) {
+                                _this.log.writeLine("Installed typings " + 
JSON.stringify(scopedTypings));
                             }
-                            return;
-                        }
-                        if (_this.log.isEnabled()) {
-                            _this.log.writeLine("Installed typings " + 
JSON.stringify(scopedTypings));
-                        }
-                        var installedTypingFiles = [];
-                        for (var _a = 0, filteredTypings_2 = filteredTypings; 
_a < filteredTypings_2.length; _a++) {
-                            var packageName = filteredTypings_2[_a];
-                            var typingFile = typingToFileName(cachePath, 
packageName, _this.installTypingHost, _this.log);
-                            if (!typingFile) {
-                                _this.missingTypingsSet[packageName] = true;
-                                continue;
+                            var installedTypingFiles = [];
+                            for (var _a = 0, filteredTypings_2 = 
filteredTypings; _a < filteredTypings_2.length; _a++) {
+                                var packageName = filteredTypings_2[_a];
+                                var typingFile = typingToFileName(cachePath, 
packageName, _this.installTypingHost, _this.log);
+                                if (!typingFile) {
+                                    _this.missingTypingsSet[packageName] = 
true;
+                                    continue;
+                                }
+                                if 
(!_this.packageNameToTypingLocation[packageName]) {
+                                    
_this.packageNameToTypingLocation[packageName] = typingFile;
+                                }
+                                installedTypingFiles.push(typingFile);
                             }
-                            if 
(!_this.packageNameToTypingLocation[packageName]) {
-                                _this.packageNameToTypingLocation[packageName] 
= typingFile;
+                            if (_this.log.isEnabled()) {
+                                _this.log.writeLine("Installed typing files " 
+ JSON.stringify(installedTypingFiles));
                             }
-                            installedTypingFiles.push(typingFile);
+                            _this.sendResponse(_this.createSetTypings(req, 
currentlyCachedTypings.concat(installedTypingFiles)));
                         }
-                        if (_this.log.isEnabled()) {
-                            _this.log.writeLine("Installed typing files " + 
JSON.stringify(installedTypingFiles));
+                        finally {
+                            _this.sendResponse({
+                                kind: server.EventEndInstallTypes,
+                                eventId: requestId,
+                                projectName: req.projectName,
+                                packagesToInstall: scopedTypings,
+                                installSuccess: ok,
+                                typingsInstallerVersion: ts.version
+                            });
                         }
-                        _this.sendResponse(_this.createSetTypings(req, 
currentlyCachedTypings.concat(installedTypingFiles)));
                     });
                 };
                 TypingsInstaller.prototype.ensureDirectoryExists = function 
(directory, host) {
@@ -7030,6 +7173,11 @@ var ts;
                 return TypingsInstaller;
             }());
             typingsInstaller.TypingsInstaller = TypingsInstaller;
+            function typingsName(packageName) {
+                return "@types/" + packageName + "@ts" + versionMajorMinor;
+            }
+            typingsInstaller.typingsName = typingsName;
+            var versionMajorMinor = ts.version.split(".").slice(0, 
2).join(".");
         })(typingsInstaller = server.typingsInstaller || 
(server.typingsInstaller = {}));
     })(server = ts.server || (ts.server = {}));
 })(ts || (ts = {}));
@@ -7085,8 +7233,8 @@ var ts;
             }
             var NodeTypingsInstaller = (function (_super) {
                 __extends(NodeTypingsInstaller, _super);
-                function NodeTypingsInstaller(globalTypingsCacheLocation, 
throttleLimit, telemetryEnabled, log) {
-                    var _this = _super.call(this, ts.sys, 
globalTypingsCacheLocation, ts.toPath("typingSafeList.json", __dirname, 
ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames)), 
throttleLimit, telemetryEnabled, log) || this;
+                function NodeTypingsInstaller(globalTypingsCacheLocation, 
throttleLimit, log) {
+                    var _this = _super.call(this, ts.sys, 
globalTypingsCacheLocation, ts.toPath("typingSafeList.json", __dirname, 
ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames)), 
throttleLimit, log) || this;
                     if (_this.log.isEnabled()) {
                         _this.log.writeLine("Process id: " + process.pid);
                     }
@@ -7155,7 +7303,6 @@ var ts;
             typingsInstaller.NodeTypingsInstaller = NodeTypingsInstaller;
             var logFilePath = server.findArgument(server.Arguments.LogFile);
             var globalTypingsCacheLocation = 
server.findArgument(server.Arguments.GlobalCacheLocation);
-            var telemetryEnabled = 
server.hasArgument(server.Arguments.EnableTelemetry);
             var log = new FileLog(logFilePath);
             if (log.isEnabled()) {
                 process.on("uncaughtException", function (e) {
@@ -7168,7 +7315,7 @@ var ts;
                 }
                 process.exit(0);
             });
-            var installer = new 
NodeTypingsInstaller(globalTypingsCacheLocation, 5, telemetryEnabled, log);
+            var installer = new 
NodeTypingsInstaller(globalTypingsCacheLocation, 5, log);
             installer.listen();
         })(typingsInstaller = server.typingsInstaller || 
(server.typingsInstaller = {}));
     })(server = ts.server || (ts.server = {}));
diff --git a/node_modules/typescript/package.json 
b/node_modules/typescript/package.json
index cd55aa0..745755a 100644
--- a/node_modules/typescript/package.json
+++ b/node_modules/typescript/package.json
@@ -1,100 +1,128 @@
 {
+  "name": "typescript",
+  "author": {
+    "name": "Microsoft Corp."
+  },
+  "homepage": "http://typescriptlang.org/";,
+  "version": "2.1.6",
+  "license": "Apache-2.0",
+  "description": "TypeScript is a language for application scale JavaScript 
development",
+  "keywords": [
+    "TypeScript",
+    "Microsoft",
+    "compiler",
+    "language",
+    "javascript"
+  ],
+  "bugs": {
+    "url": "https://github.com/Microsoft/TypeScript/issues";
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/Microsoft/TypeScript.git";
+  },
+  "main": "./lib/typescript.js",
+  "typings": "./lib/typescript.d.ts",
+  "bin": {
+    "tsc": "./bin/tsc",
+    "tsserver": "./bin/tsserver"
+  },
+  "engines": {
+    "node": ">=4.2.0"
+  },
+  "devDependencies": {
+    "@types/browserify": "latest",
+    "@types/chai": "latest",
+    "@types/convert-source-map": "latest",
+    "@types/del": "latest",
+    "@types/glob": "latest",
+    "@types/gulp": "latest",
+    "@types/gulp-concat": "latest",
+    "@types/gulp-help": "latest",
+    "@types/gulp-newer": "latest",
+    "@types/gulp-sourcemaps": "latest",
+    "@types/gulp-typescript": "latest",
+    "@types/merge2": "latest",
+    "@types/minimatch": "latest",
+    "@types/minimist": "latest",
+    "@types/mkdirp": "latest",
+    "@types/mocha": "latest",
+    "@types/node": "latest",
+    "@types/q": "latest",
+    "@types/run-sequence": "latest",
+    "@types/through2": "latest",
+    "browserify": "latest",
+    "chai": "latest",
+    "convert-source-map": "latest",
+    "del": "latest",
+    "gulp": "latest",
+    "gulp-clone": "latest",
+    "gulp-concat": "latest",
+    "gulp-help": "latest",
+    "gulp-insert": "latest",
+    "gulp-newer": "latest",
+    "gulp-sourcemaps": "latest",
+    "gulp-typescript": "latest",
+    "into-stream": "latest",
+    "istanbul": "latest",
+    "jake": "latest",
+    "merge2": "latest",
+    "minimist": "latest",
+    "mkdirp": "latest",
+    "mocha": "latest",
+    "mocha-fivemat-progress-reporter": "latest",
+    "q": "latest",
+    "run-sequence": "latest",
+    "sorcery": "latest",
+    "through2": "latest",
+    "travis-fold": "latest",
+    "ts-node": "latest",
+    "tslint": "4.0.0-dev.3",
+    "typescript": "^2.1"
+  },
+  "scripts": {
+    "pretest": "jake tests",
+    "test": "jake runtests-parallel",
+    "build": "npm run build:compiler && npm run build:tests",
+    "build:compiler": "jake local",
+    "build:tests": "jake tests",
+    "start": "node lib/tsc",
+    "clean": "jake clean",
+    "gulp": "gulp",
+    "jake": "jake",
+    "lint": "jake lint",
+    "setup-hooks": "node scripts/link-hooks.js"
+  },
+  "browser": {
+    "buffer": false,
+    "fs": false,
+    "os": false,
+    "path": false
+  },
+  "gitHead": "496e7ab55937c699ffd449960876a1285a7b5cbf",
+  "_id": "address@hidden",
+  "_shasum": "40c7e6e9e5da7961b7718b55505f9cac9487a607",
+  "_from": "typescript@",
+  "_npmVersion": "3.10.3",
+  "_nodeVersion": "6.3.0",
+  "_npmUser": {
     "name": "typescript",
-    "author": "Microsoft Corp.",
-    "homepage": "http://typescriptlang.org/";,
-    "version": "2.2.0-dev.20161127",
-    "license": "Apache-2.0",
-    "description": "TypeScript is a language for application scale JavaScript 
development",
-    "keywords": [
-        "TypeScript",
-        "Microsoft",
-        "compiler",
-        "language",
-        "javascript"
-    ],
-    "bugs": {
-        "url": "https://github.com/Microsoft/TypeScript/issues";
-    },
-    "repository": {
-        "type": "git",
-        "url": "https://github.com/Microsoft/TypeScript.git";
-    },
-    "main": "./lib/typescript.js",
-    "typings": "./lib/typescript.d.ts",
-    "bin": {
-        "tsc": "./bin/tsc",
-        "tsserver": "./bin/tsserver"
-    },
-    "engines": {
-        "node": ">=0.8.0"
-    },
-    "devDependencies": {
-        "@types/browserify": "latest",
-        "@types/chai": "latest",
-        "@types/convert-source-map": "latest",
-        "@types/del": "latest",
-        "@types/glob": "latest",
-        "@types/gulp": "latest",
-        "@types/gulp-concat": "latest",
-        "@types/gulp-help": "latest",
-        "@types/gulp-newer": "latest",
-        "@types/gulp-sourcemaps": "latest",
-        "@types/gulp-typescript": "latest",
-        "@types/merge2": "latest",
-        "@types/minimatch": "latest",
-        "@types/minimist": "latest",
-        "@types/mkdirp": "latest",
-        "@types/mocha": "latest",
-        "@types/node": "latest",
-        "@types/q": "latest",
-        "@types/run-sequence": "latest",
-        "@types/through2": "latest",
-        "browserify": "latest",
-        "chai": "latest",
-        "convert-source-map": "latest",
-        "del": "latest",
-        "gulp": "latest",
-        "gulp-clone": "latest",
-        "gulp-concat": "latest",
-        "gulp-help": "latest",
-        "gulp-insert": "latest",
-        "gulp-newer": "latest",
-        "gulp-sourcemaps": "latest",
-        "gulp-typescript": "latest",
-        "into-stream": "latest",
-        "istanbul": "latest",
-        "jake": "latest",
-        "merge2": "latest",
-        "minimist": "latest",
-        "mkdirp": "latest",
-        "mocha": "latest",
-        "mocha-fivemat-progress-reporter": "latest",
-        "q": "latest",
-        "run-sequence": "latest",
-        "sorcery": "latest",
-        "through2": "latest",
-        "travis-fold": "latest",
-        "ts-node": "latest",
-        "tslint": "next",
-        "typescript": "next"
-    },
-    "scripts": {
-        "pretest": "jake tests",
-        "test": "jake runtests-parallel",
-        "build": "npm run build:compiler && npm run build:tests",
-        "build:compiler": "jake local",
-        "build:tests": "jake tests",
-        "start": "node lib/tsc",
-        "clean": "jake clean",
-        "gulp": "gulp",
-        "jake": "jake",
-        "lint": "jake lint",
-        "setup-hooks": "node scripts/link-hooks.js"
-    },
-    "browser": {
-        "buffer": false,
-        "fs": false,
-        "os": false,
-        "path": false
+    "email": "address@hidden"
+  },
+  "maintainers": [
+    {
+      "name": "typescript",
+      "email": "address@hidden"
     }
-}
\ No newline at end of file
+  ],
+  "dist": {
+    "shasum": "40c7e6e9e5da7961b7718b55505f9cac9487a607",
+    "tarball": "https://registry.npmjs.org/typescript/-/typescript-2.1.6.tgz";
+  },
+  "_npmOperationalInternal": {
+    "host": "packages-12-west.internal.npmjs.com",
+    "tmp": "tmp/typescript-2.1.6.tgz_1486595501310_0.9944379008375108"
+  },
+  "directories": {},
+  "_resolved": "https://registry.npmjs.org/typescript/-/typescript-2.1.6.tgz";
+}
diff --git a/selenium/chrome_responsive.py b/selenium/chrome_responsive.py
index d3b8a30..9628c08 100644
--- a/selenium/chrome_responsive.py
+++ b/selenium/chrome_responsive.py
@@ -1,9 +1,7 @@
 #!/usr/bin/env python3
 
 """
-Tests for the wallet. It looks for an env variable called TALER_BASEURL
-where it appends "/banks" etc. in order to find bank and shops. If not
-found, it defaults to https://test.taler.net/
+Simple script to play around invoking chrome via selenium.
 """
 
 from selenium import webdriver
diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index dd1fc8a..3bc70cb 100644
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -43,19 +43,20 @@ def client_setup(args):
         client = webdriver.Remote(desired_capabilities=cap, 
command_executor=args.remote)
     else:
         client = webdriver.Chrome(desired_capabilities=cap)
-    client.get('https://taler.net')
-    listener = """\
-        document.addEventListener('taler-id', function(evt){
-          var html = document.getElementsByTagName('html')[0];
-          html.setAttribute('data-taler-wallet-id', evt.detail.id);
-        }); 
-
-        var evt = new CustomEvent('taler-query-id');
-        document.dispatchEvent(evt);
-        """
-    client.execute_script(listener)
-    html = client.find_element(By.TAG_NAME, "html")
-    return {'client': client, 'ext_id': 
html.get_attribute('data-taler-wallet-id')}
+#    client.get('https://taler.net')
+    return {'client': client}
+#    listener = """\
+#        document.addEventListener('taler-id', function(evt){
+#          var html = document.getElementsByTagName('html')[0];
+#          html.setAttribute('data-taler-wallet-id', evt.detail.id);
+#        }); 
+#
+#        var evt = new CustomEvent('taler-query-id');
+#        document.dispatchEvent(evt);
+#        """
+#    client.execute_script(listener)
+#    html = client.find_element(By.TAG_NAME, "html")
+#    return {'client': client, 'ext_id': 
html.get_attribute('data-taler-wallet-id')}
 
 def is_error(client):
     """Return True in case of errors in the browser, False otherwise"""
@@ -259,7 +260,8 @@ def withdraw(client, amount_menuentry=None):
 parser = argparse.ArgumentParser()
 parser.add_argument('--ext', help="packed extension (.crx file)", 
metavar="CRX", type=str, dest="ext")
 parser.add_argument('--ext-unpacked', help="loads unpacked extension from 
directory", metavar="EXTDIR", type=str, dest="extdir")
-parser.add_argument('--remote', help="Whether the test is to be run against 
URI, or locally", metavar="URI", type=str, dest="remote")
+# --remote executes this testcase on a chrome browser that listens at URI
+parser.add_argument('--remote', help="Whether the test is to be run against 
URI", metavar="URI", type=str, dest="remote")
 args = parser.parse_args()
 logger.info("testing against " + taler_baseurl)
 logger.info("Getting extension's ID..")

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]